one way would be to create a query in a php file and insert this line in the header:
echo "<meta http-equiv=refresh content=500;url=page.php>";
replace 500 with the actual number for 5 minutes, I forget what 500 represents.
page.php should be the same page that the query is saved to, so that it refreshes itself.
That line should be in the page header.
This is probably not the best solution, but it's one I suppose. Just open the page and leave your computer on and the page up.