Saving a Query or renaming it deletes everything since
If you have a query that you have already run, then write more of the query before running it, then save it under a new name it deletes anything you've written between but saves the new name. I don't remember this happening in the past but I have accidentally done it about 5 times now