If you accidentally closed a query console, an SQL script or any other tab, press &shortcut:RecentFiles;. The Recent Files dialog displays a list of recently edited files.