Edit, duplicate, delete
You will find the three functionalities described here when hovering the mouse over a query

Edit query
The edition of a query lets you change all of the parameters that form a query. From the name and the category to the query itself.
By pressing the 'pencil' button, the same window as when creating a new query will be opened but this time the window will have loaded the data of the query you want to edit.
The same restrictions as when creating a new query will be evaluated here upon saving the changes.
Duplicate query
This funcionality is also known as copy. You can press the 'copy' button and a window that lets you select the library, category and subcategory will open. This will allow you to save a copy of the original query in the library, category and subcategory of your choice. Take into account that if you decide to save a copy in the same library, category and subcategory as the original query, the name of the copied query must be different.
Delete query
By pressing the 'trash' button, the query will be deleted. You will have a confirmation window but take into account that this action has no rollback.
You can only delete queries made by you. If you delete a query that is being shared in a shared library, the query will not be available in the shared library after the deletion.