To archive a query, open the little menu at the top-right area of the query editor, next to the Save option and click Archive!