added queries script