How can I modify a pre existing query?

By clicking in the query a menu appears so you can click the “modify” option and make the changes you like. Then click on “confirm changes” and the query is going to be modified, as you can see in the GIF above.