How to edit the query of a lens?

Click on this:
image

Then you'll be in Discover area where you can edit the query and Save it.