All queries submitted via the Query Editor will be logged in the History tab on the left sidebar.
To use a query from the history:
Double click on the query to insert in into the current Query Editor.
Right click on the query in the History and choose:
Copy to copy the query to the clipboard
Run to execute the query in a new tab
Open in anew tab to open Query Editor in a new tab and insert the query into it.
Insert to SQL Editor to insert the query into the current Query Editor.
To delete a query from History, right click on the query and choose
To clear all query history, right click on a query and choose
Clear all history
To save a query from History to Favorite:
Right click on the query and choose
Add to favorite
Name the query and assign the bending keyword
⌘ + S to save, then close the window.
To see the location of the SQL file that contains query, right click on the query and choose
Show in Finder