GenerateQuery supports straight queries as string input.