move query to external .spaql  file