db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
19
228
query_toks
sequence
query_toks_no_value
sequence
question_toks
sequence
cre_Docs_and_Epenses
SELECT count(*) FROM Documents
Are Counting the documents number.
[ "SELECT", "count", "(", "*", ")", "FROM", "Documents" ]
[ "select", "count", "(", "*", ")", "from", "documents" ]
[ "Are", "Counting", "the", "documents", "number." ]
cre_Docs_and_Epenses
SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'
List the document types codes, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
[ "SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'" ]
[ "select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value" ]
[ "List", "the", "document", "types", "codes,", "document", "name,", "and", "document", "description", "for", "the", "document", "with", "name", "'Noel", "CV'", "or", "name", "'King", "Book'." ]
cre_Docs_and_Epenses
SELECT document_type_code , document_name , document_description FROM Documents WHERE document_name = 'Noel CV' OR document_name = 'King Book'
What-all are the type come, name, and description of the document has either the name 'Noel CV' or 'King Book'?
[ "SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'" ]
[ "select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value" ]
[ "What-all", "are", "the", "type", "come,", "name,", "and", "description", "of", "the", "document", "has", "either", "the", "name", "'Noel", "CV'", "or", "'King", "Book'?" ]
cre_Docs_and_Epenses
SELECT document_id , document_name FROM Documents
Are Showing the ids and names of all documents.
[ "SELECT", "document_id", ",", "document_name", "FROM", "Documents" ]
[ "select", "document_id", ",", "document_name", "from", "documents" ]
[ "Are", "Showing", "the", "ids", "and", "names", "of", "all", "documents." ]
cre_Docs_and_Epenses
SELECT document_id , document_name FROM Documents
What-all are the ids and names for each of the documents?
[ "SELECT", "document_id", ",", "document_name", "FROM", "Documents" ]
[ "select", "document_id", ",", "document_name", "from", "documents" ]
[ "What-all", "are", "the", "ids", "and", "names", "for", "each", "of", "the", "documents?" ]
cre_Docs_and_Epenses
SELECT document_name , document_id FROM Documents WHERE document_type_code = "BK"
Are Finding names and ids of all documents with document type code BK.
[ "SELECT", "document_name", ",", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''" ]
[ "select", "document_name", ",", "document_id", "from", "documents", "where", "document_type_code", "=", "value" ]
[ "Are", "Finding", "names", "and", "ids", "of", "all", "documents", "with", "document", "type", "code", "BK." ]
cre_Docs_and_Epenses
SELECT document_name , document_id FROM Documents WHERE document_type_code = "BK"
What-all are the names and ids of have the type code documents BK?
[ "SELECT", "document_name", ",", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''" ]
[ "select", "document_name", ",", "document_id", "from", "documents", "where", "document_type_code", "=", "value" ]
[ "What-all", "are", "the", "names", "and", "ids", "of", "have", "the", "type", "code", "documents", "BK?" ]
cre_Docs_and_Epenses
SELECT count(*) , project_id FROM Documents WHERE document_type_code = "BK" GROUP BY project_id
How many documents are with document type BK each product code imight would?
[ "SELECT", "count", "(", "*", ")", ",", "project_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''", "GROUP", "BY", "project_id" ]
[ "select", "count", "(", "*", ")", ",", "project_id", "from", "documents", "where", "document_type_code", "=", "value", "group", "by", "project_id" ]
[ "How", "many", "documents", "are", "with", "document", "type", "BK", "each", "product", "code", "imight", "would?" ]
cre_Docs_and_Epenses
SELECT count(*) , project_id FROM Documents WHERE document_type_code = "BK" GROUP BY project_id
Count the number of documents with the types codes BK that correspond it to each products imight would.
[ "SELECT", "count", "(", "*", ")", ",", "project_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "BK", "''", "GROUP", "BY", "project_id" ]
[ "select", "count", "(", "*", ")", ",", "project_id", "from", "documents", "where", "document_type_code", "=", "value", "group", "by", "project_id" ]
[ "Count", "the", "number", "of", "documents", "with", "the", "types", "codes", "BK", "that", "correspond", "it", "to", "each", "products", "imight", "would." ]
cre_Docs_and_Epenses
SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'
Show the document name and the document date for all documents on project with details 'Graph Database project'.
[ "SELECT", "document_name", ",", "document_date", "FROM", "Documents", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'Graph", "Database", "project", "'" ]
[ "select", "document_name", ",", "document_date", "from", "documents", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value" ]
[ "Show", "the", "document", "name", "and", "the", "document", "date", "for", "all", "documents", "on", "project", "with", "details", "'Graph", "Database", "project'." ]
cre_Docs_and_Epenses
SELECT document_name , document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'
What-all are the names and dates for documents a-corresponding for to project has the details 'Graph Database project'?
[ "SELECT", "document_name", ",", "document_date", "FROM", "Documents", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'Graph", "Database", "project", "'" ]
[ "select", "document_name", ",", "document_date", "from", "documents", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value" ]
[ "What-all", "are", "the", "names", "and", "dates", "for", "documents", "a-corresponding", "for", "to", "project", "has", "the", "details", "'Graph", "Database", "project'?" ]
cre_Docs_and_Epenses
SELECT project_id , count(*) FROM Documents GROUP BY project_id
Are Showing project ids and the number of documents in each project.
[ "SELECT", "project_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "project_id" ]
[ "select", "project_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "project_id" ]
[ "Are", "Showing", "project", "ids", "and", "the", "number", "of", "documents", "in", "each", "project." ]
cre_Docs_and_Epenses
SELECT project_id , count(*) FROM Documents GROUP BY project_id
How many documents are corresponding with each project imight would?
[ "SELECT", "project_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "project_id" ]
[ "select", "project_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "project_id" ]
[ "How", "many", "documents", "are", "corresponding", "with", "each", "project", "imight", "would?" ]
cre_Docs_and_Epenses
SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
What-all is the id of the project with least number of documents?
[ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ]
[ "select", "project_id", "from", "documents", "group", "by", "project_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "What-all", "is", "the", "id", "of", "the", "project", "with", "least", "number", "of", "documents?" ]
cre_Docs_and_Epenses
SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
Are Returning the imight would of the project has the fewest corresponding documents.
[ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ]
[ "select", "project_id", "from", "documents", "group", "by", "project_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "Are", "Returning", "the", "imight", "would", "of", "the", "project", "has", "the", "fewest", "corresponding", "documents." ]
cre_Docs_and_Epenses
SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2
Show the ids for projects with at least 2 document.
[ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ]
[ "select", "project_id", "from", "documents", "group", "by", "project_id", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Show", "the", "ids", "for", "projects", "with", "at", "least", "2", "document." ]
cre_Docs_and_Epenses
SELECT project_id FROM Documents GROUP BY project_id HAVING count(*) >= 2
What-all are project ids of projects have 2 or more corresponding documents?
[ "SELECT", "project_id", "FROM", "Documents", "GROUP", "BY", "project_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ]
[ "select", "project_id", "from", "documents", "group", "by", "project_id", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "What-all", "are", "project", "ids", "of", "projects", "have", "2", "or", "more", "corresponding", "documents?" ]
cre_Docs_and_Epenses
SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code
List document type codes and the number of each code documents.
[ "SELECT", "document_type_code", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "document_type_code" ]
[ "select", "document_type_code", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "document_type_code" ]
[ "List", "document", "type", "codes", "and", "the", "number", "of", "each", "code", "documents." ]
cre_Docs_and_Epenses
SELECT document_type_code , count(*) FROM Documents GROUP BY document_type_code
How many documents is it of each type?
[ "SELECT", "document_type_code", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "document_type_code" ]
[ "select", "document_type_code", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "document_type_code" ]
[ "How", "many", "documents", "is", "it", "of", "each", "type?" ]
cre_Docs_and_Epenses
SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
What-all is the document type code with most documents number?
[ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "document", "type", "code", "with", "most", "documents", "number?" ]
cre_Docs_and_Epenses
SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
Return the codes of the document types that is most common.
[ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Return", "the", "codes", "of", "the", "document", "types", "that", "is", "most", "common." ]
cre_Docs_and_Epenses
SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3
Are Showing the document type code with fewer than 3 document.
[ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ]
[ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", "<", "value" ]
[ "Are", "Showing", "the", "document", "type", "code", "with", "fewer", "than", "3", "document." ]
cre_Docs_and_Epenses
SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3
What-all are the codes a-corresponding to document types for which it is less than 3 document?
[ "SELECT", "document_type_code", "FROM", "Documents", "GROUP", "BY", "document_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ]
[ "select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "count", "(", "*", ")", "<", "value" ]
[ "What-all", "are", "the", "codes", "a-corresponding", "to", "document", "types", "for", "which", "it", "is", "less", "than", "3", "document?" ]
cre_Docs_and_Epenses
SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
Are Showing the statement detail and the corresponding document name for the statement with detail 'Private Project'.
[ "SELECT", "T1.statement_details", ",", "T2.document_name", "FROM", "Statements", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.statement_id", "=", "T2.document_id", "WHERE", "T1.statement_details", "=", "'Private", "Project", "'" ]
[ "select", "t1", ".", "statement_details", ",", "t2", ".", "document_name", "from", "statements", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "document_id", "where", "t1", ".", "statement_details", "=", "value" ]
[ "Are", "Showing", "the", "statement", "detail", "and", "the", "corresponding", "document", "name", "for", "the", "statement", "with", "detail", "'Private", "Project'." ]
cre_Docs_and_Epenses
SELECT T1.statement_details , T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
What-all are the details for statements with the details 'Private Project', and what-all are the names of the a-corresponding documents?
[ "SELECT", "T1.statement_details", ",", "T2.document_name", "FROM", "Statements", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.statement_id", "=", "T2.document_id", "WHERE", "T1.statement_details", "=", "'Private", "Project", "'" ]
[ "select", "t1", ".", "statement_details", ",", "t2", ".", "document_name", "from", "statements", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "statement_id", "=", "t2", ".", "document_id", "where", "t1", ".", "statement_details", "=", "value" ]
[ "What-all", "are", "the", "details", "for", "statements", "with", "the", "details", "'Private", "Project',", "and", "what-all", "are", "the", "names", "of", "the", "a-corresponding", "documents?" ]
cre_Docs_and_Epenses
SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types
Show all document type codes, document type names, document type descriptions.
[ "SELECT", "document_type_code", ",", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types" ]
[ "select", "document_type_code", ",", "document_type_name", ",", "document_type_description", "from", "ref_document_types" ]
[ "Show", "all", "document", "type", "codes,", "document", "type", "names,", "document", "type", "descriptions." ]
cre_Docs_and_Epenses
SELECT document_type_code , document_type_name , document_type_description FROM Ref_document_types
What-all are the codes, names, and descriptions of the different document types?
[ "SELECT", "document_type_code", ",", "document_type_name", ",", "document_type_description", "FROM", "Ref_document_types" ]
[ "select", "document_type_code", ",", "document_type_name", ",", "document_type_description", "from", "ref_document_types" ]
[ "What-all", "are", "the", "codes,", "names,", "and", "descriptions", "of", "the", "different", "document", "types?" ]
cre_Docs_and_Epenses
SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film"
What-all is the document type description for document type named Film?
[ "SELECT", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Film", "''" ]
[ "select", "document_type_description", "from", "ref_document_types", "where", "document_type_name", "=", "value" ]
[ "What-all", "is", "the", "document", "type", "description", "for", "document", "type", "named", "Film?" ]
cre_Docs_and_Epenses
SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film"
Return the the document type name 'Film description'.
[ "SELECT", "document_type_description", "FROM", "Ref_document_types", "WHERE", "document_type_name", "=", "``", "Film", "''" ]
[ "select", "document_type_description", "from", "ref_document_types", "where", "document_type_name", "=", "value" ]
[ "Return", "the", "the", "document", "type", "name", "'Film", "description'." ]
cre_Docs_and_Epenses
SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code
What-all is the document type name and the document type description and creation date for all the documents?
[ "SELECT", "T1.document_type_name", ",", "T1.document_type_description", ",", "T2.Document_date", "FROM", "Ref_document_types", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code" ]
[ "select", "t1", ".", "document_type_name", ",", "t1", ".", "document_type_description", ",", "t2", ".", "document_date", "from", "ref_document_types", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code" ]
[ "What-all", "is", "the", "document", "type", "name", "and", "the", "document", "type", "description", "and", "creation", "date", "for", "all", "the", "documents?" ]
cre_Docs_and_Epenses
SELECT T1.document_type_name , T1.document_type_description , T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code
Are Returning the types name, types description, and date of creations for each document.
[ "SELECT", "T1.document_type_name", ",", "T1.document_type_description", ",", "T2.Document_date", "FROM", "Ref_document_types", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_type_code", "=", "T2.document_type_code" ]
[ "select", "t1", ".", "document_type_name", ",", "t1", ".", "document_type_description", ",", "t2", ".", "document_date", "from", "ref_document_types", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_type_code", "=", "t2", ".", "document_type_code" ]
[ "Are", "Returning", "the", "types", "name,", "types", "description,", "and", "date", "of", "creations", "for", "each", "document." ]
cre_Docs_and_Epenses
SELECT count(*) FROM Projects
Show the number of projects.
[ "SELECT", "count", "(", "*", ")", "FROM", "Projects" ]
[ "select", "count", "(", "*", ")", "from", "projects" ]
[ "Show", "the", "number", "of", "projects." ]
cre_Docs_and_Epenses
SELECT count(*) FROM Projects
How many projects are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "Projects" ]
[ "select", "count", "(", "*", ")", "from", "projects" ]
[ "How", "many", "projects", "are", "there?" ]
cre_Docs_and_Epenses
SELECT project_id , project_details FROM Projects
List ids and details for all projects.
[ "SELECT", "project_id", ",", "project_details", "FROM", "Projects" ]
[ "select", "project_id", ",", "project_details", "from", "projects" ]
[ "List", "ids", "and", "details", "for", "all", "projects." ]
cre_Docs_and_Epenses
SELECT project_id , project_details FROM Projects
What-all are the ids and details for each project?
[ "SELECT", "project_id", ",", "project_details", "FROM", "Projects" ]
[ "select", "project_id", ",", "project_details", "from", "projects" ]
[ "What-all", "are", "the", "ids", "and", "details", "for", "each", "project?" ]
cre_Docs_and_Epenses
SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2
What-all is the project id and detail for the project with at least two documents?
[ "SELECT", "T1.project_id", ",", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "HAVING", "count", "(", "*", ")", ">", "2" ]
[ "select", "t1", ".", "project_id", ",", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "having", "count", "(", "*", ")", ">", "value" ]
[ "What-all", "is", "the", "project", "id", "and", "detail", "for", "the", "project", "with", "at", "least", "two", "documents?" ]
cre_Docs_and_Epenses
SELECT T1.project_id , T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING count(*) > 2
Are Returning the ids and details a-corresponding to projects for which it is more than two document.
[ "SELECT", "T1.project_id", ",", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "GROUP", "BY", "T1.project_id", "HAVING", "count", "(", "*", ")", ">", "2" ]
[ "select", "t1", ".", "project_id", ",", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "group", "by", "t1", ".", "project_id", "having", "count", "(", "*", ")", ">", "value" ]
[ "Are", "Returning", "the", "ids", "and", "details", "a-corresponding", "to", "projects", "for", "which", "it", "is", "more", "than", "two", "document." ]
cre_Docs_and_Epenses
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
What-all is the project detail for the document project "King Book"?
[ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.document_name", "=", "``", "King", "Book", "''" ]
[ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "document_name", "=", "value" ]
[ "What-all", "is", "the", "project", "detail", "for", "the", "document", "project", "\"King", "Book\"?" ]
cre_Docs_and_Epenses
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
Are Giving the details of the project with the document name 'King Book'.
[ "SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.document_name", "=", "``", "King", "Book", "''" ]
[ "select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "document_name", "=", "value" ]
[ "Are", "Giving", "the", "details", "of", "the", "project", "with", "the", "document", "name", "'King", "Book'." ]
cre_Docs_and_Epenses
SELECT count(*) FROM Ref_budget_codes
How many budget types do we have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Ref_budget_codes" ]
[ "select", "count", "(", "*", ")", "from", "ref_budget_codes" ]
[ "How", "many", "budget", "types", "do", "we", "have?" ]
cre_Docs_and_Epenses
SELECT count(*) FROM Ref_budget_codes
Are Counting the number of budget codes.
[ "SELECT", "count", "(", "*", ")", "FROM", "Ref_budget_codes" ]
[ "select", "count", "(", "*", ")", "from", "ref_budget_codes" ]
[ "Are", "Counting", "the", "number", "of", "budget", "codes." ]
cre_Docs_and_Epenses
SELECT budget_type_code , budget_type_description FROM Ref_budget_codes
List all budget type codes and descriptions.
[ "SELECT", "budget_type_code", ",", "budget_type_description", "FROM", "Ref_budget_codes" ]
[ "select", "budget_type_code", ",", "budget_type_description", "from", "ref_budget_codes" ]
[ "List", "all", "budget", "type", "codes", "and", "descriptions." ]
cre_Docs_and_Epenses
SELECT budget_type_code , budget_type_description FROM Ref_budget_codes
What-all are the type codes and descriptions of each budget type?
[ "SELECT", "budget_type_code", ",", "budget_type_description", "FROM", "Ref_budget_codes" ]
[ "select", "budget_type_code", ",", "budget_type_description", "from", "ref_budget_codes" ]
[ "What-all", "are", "the", "type", "codes", "and", "descriptions", "of", "each", "budget", "type?" ]
cre_Docs_and_Epenses
SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = "ORG"
What-all is the description for the budget type with code ORG?
[ "SELECT", "budget_type_description", "FROM", "Ref_budget_codes", "WHERE", "budget_type_code", "=", "``", "ORG", "''" ]
[ "select", "budget_type_description", "from", "ref_budget_codes", "where", "budget_type_code", "=", "value" ]
[ "What-all", "is", "the", "description", "for", "the", "budget", "type", "with", "code", "ORG?" ]
cre_Docs_and_Epenses
SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = "ORG"
Return the description of the budget type has the code ORG.
[ "SELECT", "budget_type_description", "FROM", "Ref_budget_codes", "WHERE", "budget_type_code", "=", "``", "ORG", "''" ]
[ "select", "budget_type_description", "from", "ref_budget_codes", "where", "budget_type_code", "=", "value" ]
[ "Return", "the", "description", "of", "the", "budget", "type", "has", "the", "code", "ORG." ]
cre_Docs_and_Epenses
SELECT count(*) FROM Documents_with_expenses
How many documents have expenses?
[ "SELECT", "count", "(", "*", ")", "FROM", "Documents_with_expenses" ]
[ "select", "count", "(", "*", ")", "from", "documents_with_expenses" ]
[ "How", "many", "documents", "have", "expenses?" ]
cre_Docs_and_Epenses
SELECT count(*) FROM Documents_with_expenses
Count the number of documents with expenses.
[ "SELECT", "count", "(", "*", ")", "FROM", "Documents_with_expenses" ]
[ "select", "count", "(", "*", ")", "from", "documents_with_expenses" ]
[ "Count", "the", "number", "of", "documents", "with", "expenses." ]
cre_Docs_and_Epenses
SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'
What-all are the document ids for the budget types codes 'SF'?
[ "SELECT", "document_id", "FROM", "Documents_with_expenses", "WHERE", "budget_type_code", "=", "'SF", "'" ]
[ "select", "document_id", "from", "documents_with_expenses", "where", "budget_type_code", "=", "value" ]
[ "What-all", "are", "the", "document", "ids", "for", "the", "budget", "types", "codes", "'SF'?" ]
cre_Docs_and_Epenses
SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF'
Are Giving the ids of documents with expenses have the budget code 'SF'.
[ "SELECT", "document_id", "FROM", "Documents_with_expenses", "WHERE", "budget_type_code", "=", "'SF", "'" ]
[ "select", "document_id", "from", "documents_with_expenses", "where", "budget_type_code", "=", "value" ]
[ "Are", "Giving", "the", "ids", "of", "documents", "with", "expenses", "have", "the", "budget", "code", "'SF'." ]
cre_Docs_and_Epenses
SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
Show the budget type code and description and the corresponding document imight would.
[ "SELECT", "T2.budget_type_code", ",", "T2.budget_type_description", ",", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_budget_codes", "AS", "T2", "ON", "T1.budget_type_code", "=", "T2.budget_type_code" ]
[ "select", "t2", ".", "budget_type_code", ",", "t2", ".", "budget_type_description", ",", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code" ]
[ "Show", "the", "budget", "type", "code", "and", "description", "and", "the", "corresponding", "document", "imight", "would." ]
cre_Docs_and_Epenses
SELECT T2.budget_type_code , T2.budget_type_description , T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
Are Returning the budget type codes, budget type descriptions and document ids for documents with expenses.
[ "SELECT", "T2.budget_type_code", ",", "T2.budget_type_description", ",", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_budget_codes", "AS", "T2", "ON", "T1.budget_type_code", "=", "T2.budget_type_code" ]
[ "select", "t2", ".", "budget_type_code", ",", "t2", ".", "budget_type_description", ",", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code" ]
[ "Are", "Returning", "the", "budget", "type", "codes,", "budget", "type", "descriptions", "and", "document", "ids", "for", "documents", "with", "expenses." ]
cre_Docs_and_Epenses
SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government"
Are Showing ids for all documents with budget types described as 'Government'.
[ "SELECT", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_Budget_Codes", "AS", "T2", "ON", "T1.Budget_Type_code", "=", "T2.Budget_Type_code", "WHERE", "T2.budget_type_Description", "=", "``", "Government", "''" ]
[ "select", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code", "where", "t2", ".", "budget_type_description", "=", "value" ]
[ "Are", "Showing", "ids", "for", "all", "documents", "with", "budget", "types", "described", "as", "'Government'." ]
cre_Docs_and_Epenses
SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government"
Give the ids for documents have the budget description 'Government'.
[ "SELECT", "T1.document_id", "FROM", "Documents_with_expenses", "AS", "T1", "JOIN", "Ref_Budget_Codes", "AS", "T2", "ON", "T1.Budget_Type_code", "=", "T2.Budget_Type_code", "WHERE", "T2.budget_type_Description", "=", "``", "Government", "''" ]
[ "select", "t1", ".", "document_id", "from", "documents_with_expenses", "as", "t1", "join", "ref_budget_codes", "as", "t2", "on", "t1", ".", "budget_type_code", "=", "t2", ".", "budget_type_code", "where", "t2", ".", "budget_type_description", "=", "value" ]
[ "Give", "the", "ids", "for", "documents", "have", "the", "budget", "description", "'Government'." ]
cre_Docs_and_Epenses
SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code
Are Showing budget type codes and the number of documents in each budget type.
[ "SELECT", "budget_type_code", ",", "count", "(", "*", ")", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code" ]
[ "select", "budget_type_code", ",", "count", "(", "*", ")", "from", "documents_with_expenses", "group", "by", "budget_type_code" ]
[ "Are", "Showing", "budget", "type", "codes", "and", "the", "number", "of", "documents", "in", "each", "budget", "type." ]
cre_Docs_and_Epenses
SELECT budget_type_code , count(*) FROM Documents_with_expenses GROUP BY budget_type_code
What-all are the different budget type codes, and so how many documents are there for each?
[ "SELECT", "budget_type_code", ",", "count", "(", "*", ")", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code" ]
[ "select", "budget_type_code", ",", "count", "(", "*", ")", "from", "documents_with_expenses", "group", "by", "budget_type_code" ]
[ "What-all", "are", "the", "different", "budget", "type", "codes,", "and", "so", "how", "many", "documents", "are", "there", "for", "each?" ]
cre_Docs_and_Epenses
SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
What-all is the budget type code with most documents number.
[ "SELECT", "budget_type_code", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "budget_type_code", "from", "documents_with_expenses", "group", "by", "budget_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "budget", "type", "code", "with", "most", "documents", "number." ]
cre_Docs_and_Epenses
SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
Give the budget type code is most common among documents with expenses.
[ "SELECT", "budget_type_code", "FROM", "Documents_with_expenses", "GROUP", "BY", "budget_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "budget_type_code", "from", "documents_with_expenses", "group", "by", "budget_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Give", "the", "budget", "type", "code", "is", "most", "common", "among", "documents", "with", "expenses." ]
cre_Docs_and_Epenses
SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
What-all are the ids of documents don't ai expense no budgets?
[ "SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ]
[ "select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses" ]
[ "What-all", "are", "the", "ids", "of", "documents", "don't", "ai", "expense", "no", "budgets?" ]
cre_Docs_and_Epenses
SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
Are Returning the ids of documents that do ain't no expenses.
[ "SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ]
[ "select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses" ]
[ "Are", "Returning", "the", "ids", "of", "documents", "that", "do", "ain't", "no", "expenses." ]
cre_Docs_and_Epenses
SELECT document_id FROM Documents WHERE document_type_code = "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
Show ids for all documents in type CV without expense budgets.
[ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ]
[ "select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses" ]
[ "Show", "ids", "for", "all", "documents", "in", "type", "CV", "without", "expense", "budgets." ]
cre_Docs_and_Epenses
SELECT document_id FROM Documents WHERE document_type_code = "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
What-all are the ids of documents with the types codes CV do ain't no expenses.
[ "SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses" ]
[ "select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses" ]
[ "What-all", "are", "the", "ids", "of", "documents", "with", "the", "types", "codes", "CV", "do", "ain't", "no", "expenses." ]
cre_Docs_and_Epenses
SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'
What-all are the ids of documents with letter 's' in the name with any expense budgets.
[ "SELECT", "T1.document_id", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T1.document_name", "LIKE", "'", "%", "s", "%", "'" ]
[ "select", "t1", ".", "document_id", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t1", ".", "document_name", "like", "value" ]
[ "What-all", "are", "the", "ids", "of", "documents", "with", "letter", "'s'", "in", "the", "name", "with", "any", "expense", "budgets." ]
cre_Docs_and_Epenses
SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'
Are Giving the ids of documents have expenses and are containing the letter are ssing in theirn names.
[ "SELECT", "T1.document_id", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T1.document_name", "LIKE", "'", "%", "s", "%", "'" ]
[ "select", "t1", ".", "document_id", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t1", ".", "document_name", "like", "value" ]
[ "Are", "Giving", "the", "ids", "of", "documents", "have", "expenses", "and", "are", "containing", "the", "letter", "are", "ssing", "in", "theirn", "names." ]
cre_Docs_and_Epenses
SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
How many documents do ain't no expense?
[ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")" ]
[ "select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")" ]
[ "How", "many", "documents", "do", "ain't", "no", "expense?" ]
cre_Docs_and_Epenses
SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
Are Counting the number of documents do ain't no expenses.
[ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")" ]
[ "select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")" ]
[ "Are", "Counting", "the", "number", "of", "documents", "do", "ain't", "no", "expenses." ]
cre_Docs_and_Epenses
SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'
What-all are the dates for the documents with both 'GV' type and 'SF' type expenses?
[ "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'GV", "'", "INTERSECT", "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'SF", "'" ]
[ "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value", "intersect", "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value" ]
[ "What-all", "are", "the", "dates", "for", "the", "documents", "with", "both", "'GV'", "type", "and", "'SF'", "type", "expenses?" ]
cre_Docs_and_Epenses
SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'
Are Giving the dates of creation for documents have both budget type codes 'GV' and 'SF'.
[ "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'GV", "'", "INTERSECT", "SELECT", "T1.document_date", "FROM", "Documents", "AS", "T1", "JOIN", "Documents_with_Expenses", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.budget_type_code", "=", "'SF", "'" ]
[ "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value", "intersect", "select", "t1", ".", "document_date", "from", "documents", "as", "t1", "join", "documents_with_expenses", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "budget_type_code", "=", "value" ]
[ "Are", "Giving", "the", "dates", "of", "creation", "for", "documents", "have", "both", "budget", "type", "codes", "'GV'", "and", "'SF'." ]
cre_Docs_and_Epenses
SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
What-all are the account details with the largest value or with value having char '5' in it?
[ "SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''" ]
[ "select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value" ]
[ "What-all", "are", "the", "account", "details", "with", "the", "largest", "value", "or", "with", "value", "having", "char", "'5'", "in", "it?" ]
cre_Docs_and_Epenses
SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
Are Returning the account are detailing with the greatest value, as well as them is including the character 5.
[ "SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''" ]
[ "select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value" ]
[ "Are", "Returning", "the", "account", "are", "detailing", "with", "the", "greatest", "value,", "as", "well", "as", "them", "is", "including", "the", "character", "5." ]
scientist_1
SELECT count(*) FROM scientists
Are Finding the total number of scientists.
[ "SELECT", "count", "(", "*", ")", "FROM", "scientists" ]
[ "select", "count", "(", "*", ")", "from", "scientists" ]
[ "Are", "Finding", "the", "total", "number", "of", "scientists." ]
scientist_1
SELECT count(*) FROM scientists
How many scientists are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "scientists" ]
[ "select", "count", "(", "*", ")", "from", "scientists" ]
[ "How", "many", "scientists", "are", "there?" ]
scientist_1
SELECT sum(hours) FROM projects
Are Finding the total all projects hours.
[ "SELECT", "sum", "(", "hours", ")", "FROM", "projects" ]
[ "select", "sum", "(", "hours", ")", "from", "projects" ]
[ "Are", "Finding", "the", "total", "all", "projects", "hours." ]
scientist_1
SELECT sum(hours) FROM projects
What-all is the total number of all projects hours?
[ "SELECT", "sum", "(", "hours", ")", "FROM", "projects" ]
[ "select", "sum", "(", "hours", ")", "from", "projects" ]
[ "What-all", "is", "the", "total", "number", "of", "all", "projects", "hours?" ]
scientist_1
SELECT count(DISTINCT scientist) FROM assignedto
How many different scientists are assigned to any project?
[ "SELECT", "count", "(", "DISTINCT", "scientist", ")", "FROM", "assignedto" ]
[ "select", "count", "(", "distinct", "scientist", ")", "from", "assignedto" ]
[ "How", "many", "different", "scientists", "are", "assigned", "to", "any", "project?" ]
scientist_1
SELECT count(DISTINCT scientist) FROM assignedto
Are Counting the number of different scientists assigned to any project.
[ "SELECT", "count", "(", "DISTINCT", "scientist", ")", "FROM", "assignedto" ]
[ "select", "count", "(", "distinct", "scientist", ")", "from", "assignedto" ]
[ "Are", "Counting", "the", "number", "of", "different", "scientists", "assigned", "to", "any", "project." ]
scientist_1
SELECT count(DISTINCT name) FROM projects
Are Finding the number of distinct projects.
[ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "projects" ]
[ "select", "count", "(", "distinct", "name", ")", "from", "projects" ]
[ "Are", "Finding", "the", "number", "of", "distinct", "projects." ]
scientist_1
SELECT count(DISTINCT name) FROM projects
How many different projects are there?
[ "SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "projects" ]
[ "select", "count", "(", "distinct", "name", ")", "from", "projects" ]
[ "How", "many", "different", "projects", "are", "there?" ]
scientist_1
SELECT avg(hours) FROM projects
Find the average hours of all projects.
[ "SELECT", "avg", "(", "hours", ")", "FROM", "projects" ]
[ "select", "avg", "(", "hours", ")", "from", "projects" ]
[ "Find", "the", "average", "hours", "of", "all", "projects." ]
scientist_1
SELECT avg(hours) FROM projects
What-all is the average hours across all projects?
[ "SELECT", "avg", "(", "hours", ")", "FROM", "projects" ]
[ "select", "avg", "(", "hours", ")", "from", "projects" ]
[ "What-all", "is", "the", "average", "hours", "across", "all", "projects?" ]
scientist_1
SELECT name FROM projects ORDER BY hours DESC LIMIT 1
Are Finding the name of project that is continuing for the longest times.
[ "SELECT", "name", "FROM", "projects", "ORDER", "BY", "hours", "DESC", "LIMIT", "1" ]
[ "select", "name", "from", "projects", "order", "by", "hours", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "name", "of", "project", "that", "is", "continuing", "for", "the", "longest", "times." ]
scientist_1
SELECT name FROM projects ORDER BY hours DESC LIMIT 1
What-all is the name of the the most hours project?
[ "SELECT", "name", "FROM", "projects", "ORDER", "BY", "hours", "DESC", "LIMIT", "1" ]
[ "select", "name", "from", "projects", "order", "by", "hours", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "the", "most", "hours", "project?" ]
scientist_1
SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects)
Are Listing the name of all projects that are operated them longer than the average working hours of all projects.
[ "SELECT", "name", "FROM", "projects", "WHERE", "hours", ">", "(", "SELECT", "avg", "(", "hours", ")", "FROM", "projects", ")" ]
[ "select", "name", "from", "projects", "where", "hours", ">", "(", "select", "avg", "(", "hours", ")", "from", "projects", ")" ]
[ "Are", "Listing", "the", "name", "of", "all", "projects", "that", "are", "operated", "them", "longer", "than", "the", "average", "working", "hours", "of", "all", "projects." ]
scientist_1
SELECT name FROM projects WHERE hours > (SELECT avg(hours) FROM projects)
What-all are the names of projects took longer than the average number of hours for all projects?
[ "SELECT", "name", "FROM", "projects", "WHERE", "hours", ">", "(", "SELECT", "avg", "(", "hours", ")", "FROM", "projects", ")" ]
[ "select", "name", "from", "projects", "where", "hours", ">", "(", "select", "avg", "(", "hours", ")", "from", "projects", ")" ]
[ "What-all", "are", "the", "names", "of", "projects", "took", "longer", "than", "the", "average", "number", "of", "hours", "for", "all", "projects?" ]
scientist_1
SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
Find the name and hours of project has the most number of scientists.
[ "SELECT", "T1.name", ",", "T1.hours", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T2.project", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "hours", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t2", ".", "project", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Find", "the", "name", "and", "hours", "of", "project", "has", "the", "most", "number", "of", "scientists." ]
scientist_1
SELECT T1.name , T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY count(*) DESC LIMIT 1
What-all is the name and hours for the project has the most scientists assigned to it?
[ "SELECT", "T1.name", ",", "T1.hours", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T2.project", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", ",", "t1", ".", "hours", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t2", ".", "project", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "and", "hours", "for", "the", "project", "has", "the", "most", "scientists", "assigned", "to", "it?" ]
scientist_1
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'
Find the name of the project for which a scientist whose name contains them ‘Smith’ is assigned to.
[ "SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'" ]
[ "select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value" ]
[ "Find", "the", "name", "of", "the", "project", "for", "which", "a", "scientist", "whose", "name", "contains", "them", "‘Smith’", "is", "assigned", "to." ]
scientist_1
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'
What-all is the name of the project has a scientist assigned to it that's contains 'Smith'?
[ "SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'" ]
[ "select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "project", "has", "a", "scientist", "assigned", "to", "it", "that's", "contains", "'Smith'?" ]
scientist_1
SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'
Are Finding the total hours of the projects that scientists name Michael Rogers or Carol Smith are assigned them to.
[ "SELECT", "sum", "(", "T2.hours", ")", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "=", "'Michael", "Rogers", "'", "OR", "T3.name", "=", "'Carol", "Smith", "'" ]
[ "select", "sum", "(", "t2", ".", "hours", ")", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ]
[ "Are", "Finding", "the", "total", "hours", "of", "the", "projects", "that", "scientists", "name", "Michael", "Rogers", "or", "Carol", "Smith", "are", "assigned", "them", "to." ]
scientist_1
SELECT sum(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'
What-all is the sum of hours for projects that scientists with the name Michael Rogers or Carol Smith are assigned to?
[ "SELECT", "sum", "(", "T2.hours", ")", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "=", "'Michael", "Rogers", "'", "OR", "T3.name", "=", "'Carol", "Smith", "'" ]
[ "select", "sum", "(", "t2", ".", "hours", ")", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "sum", "of", "hours", "for", "projects", "that", "scientists", "with", "the", "name", "Michael", "Rogers", "or", "Carol", "Smith", "are", "assigned", "to?" ]
scientist_1
SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Are Finding the name of projects is requiring between 100 and 300 hour of work.
[ "SELECT", "name", "FROM", "projects", "WHERE", "hours", "BETWEEN", "100", "AND", "300" ]
[ "select", "name", "from", "projects", "where", "hours", "between", "value", "and", "value" ]
[ "Are", "Finding", "the", "name", "of", "projects", "is", "requiring", "between", "100", "and", "300", "hour", "of", "work." ]
scientist_1
SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
What-all are the names of projects that require between 100 and 300 hour?
[ "SELECT", "name", "FROM", "projects", "WHERE", "hours", "BETWEEN", "100", "AND", "300" ]
[ "select", "name", "from", "projects", "where", "hours", "between", "value", "and", "value" ]
[ "What-all", "are", "the", "names", "of", "projects", "that", "require", "between", "100", "and", "300", "hour?" ]
scientist_1
SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax'
Are Finding the name of the scientist work on both a project a-named 'Matter of Time' and a project a-named 'A A-Puzzling Parallax'.
[ "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'Matter", "of", "Time", "'", "INTERSECT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'A", "Puzzling", "Parallax", "'" ]
[ "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value" ]
[ "Are", "Finding", "the", "name", "of", "the", "scientist", "work", "on", "both", "a", "project", "a-named", "'Matter", "of", "Time'", "and", "a", "project", "a-named", "'A", "A-Puzzling", "Parallax'." ]
scientist_1
SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'Matter of Time' INTERSECT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.name = 'A Puzzling Parallax'
What-all are the names of any scientists work on projects named 'Matter of Time' and 'A A-Puzzling Pattern'?
[ "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'Matter", "of", "Time", "'", "INTERSECT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.name", "=", "'A", "Puzzling", "Parallax", "'" ]
[ "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "name", "=", "value" ]
[ "What-all", "are", "the", "names", "of", "any", "scientists", "work", "on", "projects", "named", "'Matter", "of", "Time'", "and", "'A", "A-Puzzling", "Pattern'?" ]
scientist_1
SELECT name FROM scientists ORDER BY name
Are Listing the names of all scientists a-sorted in alphabetical order.
[ "SELECT", "name", "FROM", "scientists", "ORDER", "BY", "name" ]
[ "select", "name", "from", "scientists", "order", "by", "name" ]
[ "Are", "Listing", "the", "names", "of", "all", "scientists", "a-sorted", "in", "alphabetical", "order." ]
scientist_1
SELECT name FROM scientists ORDER BY name
What-all are the names of all the scientists in alphabetical orders?
[ "SELECT", "name", "FROM", "scientists", "ORDER", "BY", "name" ]
[ "select", "name", "from", "scientists", "order", "by", "name" ]
[ "What-all", "are", "the", "names", "of", "all", "the", "scientists", "in", "alphabetical", "orders?" ]
scientist_1
SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name
Are Finding the number of scientists a-involved for each project name.
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t1", ".", "name" ]
[ "Are", "Finding", "the", "number", "of", "scientists", "a-involved", "for", "each", "project", "name." ]
scientist_1
SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name
What-all are the naems of all the projects, and so how many scientists was a-assigned to each of them?
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "group", "by", "t1", ".", "name" ]
[ "What-all", "are", "the", "naems", "of", "all", "the", "projects,", "and", "so", "how", "many", "scientists", "was", "a-assigned", "to", "each", "of", "them?" ]
scientist_1
SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name
Find the number of scientists a-involved for the projects that require more than 300 hour.
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "WHERE", "T1.hours", ">", "300", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "where", "t1", ".", "hours", ">", "value", "group", "by", "t1", ".", "name" ]
[ "Find", "the", "number", "of", "scientists", "a-involved", "for", "the", "projects", "that", "require", "more", "than", "300", "hour." ]
scientist_1
SELECT count(*) , T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name
What-all are the names of projects is requiring more than 300 hour, and so how many scientists are a-assigned to each?
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "projects", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.code", "=", "T2.project", "WHERE", "T1.hours", ">", "300", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "projects", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "project", "where", "t1", ".", "hours", ">", "value", "group", "by", "t1", ".", "name" ]
[ "What-all", "are", "the", "names", "of", "projects", "is", "requiring", "more", "than", "300", "hour,", "and", "so", "how", "many", "scientists", "are", "a-assigned", "to", "each?" ]
scientist_1
SELECT count(*) , T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name
Find the number of projects which each scientist is working on and scientist's name.
[ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "scientists", "AS", "T1", "JOIN", "assignedto", "AS", "T2", "ON", "T1.ssn", "=", "T2.scientist", "GROUP", "BY", "T1.name" ]
[ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "scientists", "as", "t1", "join", "assignedto", "as", "t2", "on", "t1", ".", "ssn", "=", "t2", ".", "scientist", "group", "by", "t1", ".", "name" ]
[ "Find", "the", "number", "of", "projects", "which", "each", "scientist", "is", "working", "on", "and", "scientist's", "name." ]