You can use variables to parametrize your queries and change data in your panel:
You can also provide queries via variables: