read queries from args