William,
Usually there is a 'restore window' icon on the tab that you can click to restore this. It looks like on your screen it might be hidden by the query name. You can see where it is on this screenshot from my machine. Try clicking where this would be.