Help me find the implementation part for dynamic query search

how dynamic web query search is implemented in Grafana and also how to go through this GitHub source(where can I find the implementation part for dynamic query search that is happening)