aherntech/spider-syn huggingface dataset:
Database: school_bus
Question: How many drivers are from Hartford city or younger than 40?
Paraphrased question: How many chauffeurs are from Hartford city or younger than 40?
SQL: SELECT count(*) FROM driver WHERE home_city  =  'Hartford' OR age  <  40
Database: school_bus
Question: List names for drivers from Hartford city and younger than 40.
Paraphrased question: List names for chauffeurs from Hartford city and younger than 40.
SQL: SELECT name FROM driver WHERE home_city  =  'Hartford' AND age  <  40
Database: school_bus
Question: find the name of driver who is driving the school bus with the longest working history.
Paraphrased question: find the name of chauffeur who is driving the school bus with the longest working history.
SQL: SELECT t1.name FROM driver AS t1 JOIN school_bus AS t2 ON t1.driver_id  =  t2.driver_id ORDER BY years_working DESC LIMIT 1
Database: flight_company
Question: How many flights have a velocity larger than 200?
Paraphrased question: How many flights have a speed larger than 200?
SQL: SELECT count(*) FROM flight WHERE velocity  >  200
Database: flight_company
Question: List the vehicle flight number, date and pilot of all the flights, ordered by altitude.
Paraphrased question: List the vehicle flight number, day and aviator of all the flights, ordered by altitude.
SQL: SELECT vehicle_flight_number ,  date ,  pilot FROM flight ORDER BY altitude ASC
Database: flight_company
Question: List the id, country, city and name of the airports ordered alphabetically by the name.
Paraphrased question: List the id, nation, city and name of the aerodromes ordered alphabetically by the name.
SQL: SELECT id ,  country ,  city ,  name FROM airport ORDER BY name
Database: flight_company
Question: What is maximum group equity shareholding of the companies?
Paraphrased question: What is maximum group equity shareholding of the companies?
SQL: SELECT max(group_equity_shareholding) FROM operate_company
Database: flight_company
Question: What is the velocity of the pilot named 'Thompson'?
Paraphrased question: What is the speed of the aviator named 'Thompson'?
SQL: SELECT avg(velocity) FROM flight WHERE pilot  =  'Thompson'
Database: flight_company
Question: What are the names and types of the companies that have ever operated a flight?
Paraphrased question: What are the names and types of the enterprise that have ever operated a flight?
SQL: SELECT T1.name ,  T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id
Database: flight_company
Question: What are the names of the airports which are not in the country 'Iceland'?
Paraphrased question: What are the names of the aerodromes which are not in the country 'Iceland'?
SQL: SELECT name FROM airport WHERE country != 'Iceland'
Database: flight_company
Question: What are the distinct types of the companies that have operated any flights with velocity less than 200?
Paraphrased question: What are the different types of the enterprise that have operated any flights with velocity less than 200?
SQL: SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T2.velocity  <  200
Database: flight_company
Question: What are the ids and names of the companies that operated more than one flight?
Paraphrased question: What are the ids and names of the enterprise that operated more than one flight?
SQL: SELECT T1.id ,  T1.name FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id GROUP BY T1.id HAVING count(*)  >  1
Database: flight_company
Question: What is the id, name and IATA code of the airport that had most number of flights?
Paraphrased question: What is the id, name and IATA code of the aerodrome that had most number of flights?
SQL: SELECT T1.id ,  T1.name ,  T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1
Database: flight_company
Question: What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?
Paraphrased question: What are the different aviator names who had piloted a flight in the country 'United States' or in the aerodrome named 'Billund Airport'?
SQL: SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id  =  T2.airport_id WHERE T1.country  =  'United States' OR T1.name  =  'Billund Airport'
Database: flight_company
Question: What is the most common company type, and how many are there?
Paraphrased question: What is the most common enterprise category, and how many are there?
SQL: SELECT TYPE ,  count(*) FROM operate_company GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Database: flight_company
Question: How many airports haven't the pilot 'Thompson' driven an aircraft?
Paraphrased question: How many aerodromes haven't the aviator 'Thompson' driven an aircraft?
SQL: SELECT count(*) FROM airport WHERE id NOT IN ( SELECT airport_id FROM flight WHERE pilot  =  'Thompson' );
Database: flight_company
Question: List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.
Paraphrased question: List the name of the aviators who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities.
SQL: SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id WHERE T1.principal_activities  =  'Catering services'
Database: flight_company
Question: Which of the airport names contains the word 'international'?
Paraphrased question: Which of the aerodrome names contains the word 'international'?
SQL: SELECT name FROM airport WHERE name LIKE '%international%'
Database: flight_company
Question: How many companies operates airlines in each airport?
Paraphrased question: How many enterprise operates airlines in each aerodrome?
SQL: SELECT T3.id ,  count(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id  =  T2.company_id JOIN airport AS T3 ON T2.airport_id  =  T3.id GROUP BY T3.id
Database: flight_company
Question: how many airports are there in each country?
Paraphrased question: how many aerodromes are there in each nation?
SQL: SELECT count(*) ,  country FROM airport GROUP BY country
Database: flight_company
Question: which countries have more than 2 airports?
Paraphrased question: which nations have more than 2 aerodromes?
SQL: SELECT country FROM airport GROUP BY country HAVING count(*)  >  2
Database: flight_company
Question: which pilot is in charge of the most number of flights?
Paraphrased question: which aviator is in charge of the most number of flights?
SQL: SELECT pilot FROM flight GROUP BY pilot ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: How many accounts do we have?
Paraphrased question: How many accounts do we have?
SQL: SELECT count(*) FROM Accounts
Database: cre_Docs_and_Epenses
Question: Count the number of accounts.
Paraphrased question: Count the number of accounts.
SQL: SELECT count(*) FROM Accounts
Database: cre_Docs_and_Epenses
Question: Show all account ids and account details.
Paraphrased question: Show all account ids and account information.
SQL: SELECT account_id ,  account_details FROM Accounts
Database: cre_Docs_and_Epenses
Question: What are the ids and details of all accounts?
Paraphrased question: What are the ids and information of all accounts?
SQL: SELECT account_id ,  account_details FROM Accounts
Database: cre_Docs_and_Epenses
Question: How many statements do we have?
Paraphrased question: How many statements do we have?
SQL: SELECT count(*) FROM Statements
Database: cre_Docs_and_Epenses
Question: Count the number of statements.
Paraphrased question: Count the number of statements.
SQL: SELECT count(*) FROM Statements
Database: cre_Docs_and_Epenses
Question: List all statement ids and statement details.
Paraphrased question: List all statement ids and statement information.
SQL: SELECT STATEMENT_ID ,  statement_details FROM Statements
Database: cre_Docs_and_Epenses
Question: What are the ids and details of all statements?
Paraphrased question: What are the ids and information of all statements?
SQL: SELECT STATEMENT_ID ,  statement_details FROM Statements
Database: cre_Docs_and_Epenses
Question: Show statement id, statement detail, account detail for accounts.
Paraphrased question: Show statement id, statement information, account information for accounts.
SQL: SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id
Database: cre_Docs_and_Epenses
Question: What are the statement ids, statement details, and account details, for all accounts?
Paraphrased question: What are the statement ids, statement information, and account information, for all accounts?
SQL: SELECT T1.statement_id ,  T2.statement_details ,  T1.account_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id
Database: cre_Docs_and_Epenses
Question: Show all statement id and the number of accounts for each statement.
Paraphrased question: Show all statement id and the number of accounts for each statement.
SQL: SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID
Database: cre_Docs_and_Epenses
Question: What are the different statement ids on accounts, and the number of accounts for each?
Paraphrased question: What are the different statement ids on accounts, and the number of accounts for each?
SQL: SELECT STATEMENT_ID ,  count(*) FROM Accounts GROUP BY STATEMENT_ID
Database: cre_Docs_and_Epenses
Question: Show the statement id and the statement detail for the statement with most number of accounts.
Paraphrased question: Show the statement id and the statement information for the statement with most number of accounts.
SQL: SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: What are the statement id and statement detail for the statement that has the most corresponding accounts?
Paraphrased question: What are the statement id and statement information for the statement that has the most corresponding accounts?
SQL: SELECT T1.statement_id ,  T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id  =  T2.statement_id GROUP BY T1.statement_id ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: Show the number of documents.
Paraphrased question: Show the number of files.
SQL: SELECT count(*) FROM Documents
Database: cre_Docs_and_Epenses
Question: Count the number of documents.
Paraphrased question: Count the number of files.
SQL: SELECT count(*) FROM Documents
Database: cre_Docs_and_Epenses
Question: List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.
Paraphrased question: List the file type code, file name, and file describing content for the file with name 'Noel CV' or name 'King Book'.
SQL: SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV' OR document_name  =  'King Book'
Database: cre_Docs_and_Epenses
Question: What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?
Paraphrased question: What are the type come, name, and describing content of the file that has either the name 'Noel CV' or 'King Book'?
SQL: SELECT document_type_code ,  document_name ,  document_description FROM Documents WHERE document_name  =  'Noel CV' OR document_name  =  'King Book'
Database: cre_Docs_and_Epenses
Question: Show the ids and names of all documents.
Paraphrased question: Show the ids and names of all files.
SQL: SELECT document_id ,  document_name FROM Documents
Database: cre_Docs_and_Epenses
Question: What are the ids and names for each of the documents?
Paraphrased question: What are the ids and names for each of the files?
SQL: SELECT document_id ,  document_name FROM Documents
Database: cre_Docs_and_Epenses
Question: Find names and ids of all documents with document type code BK.
Paraphrased question: Find names and ids of all files with file type code BK.
SQL: SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  "BK"
Database: cre_Docs_and_Epenses
Question: What are the names and ids of documents that have the type code BK?
Paraphrased question: What are the names and ids of files that have the type code BK?
SQL: SELECT document_name ,  document_id FROM Documents WHERE document_type_code  =  "BK"
Database: cre_Docs_and_Epenses
Question: How many documents are with document type code BK for each product id?
Paraphrased question: How many files are with file type code BK for each goods id?
SQL: SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  "BK" GROUP BY project_id
Database: cre_Docs_and_Epenses
Question: Count the number of documents with the type code BK that correspond to each product id.
Paraphrased question: Count the number of files with the type code BK that correspond to each goods id.
SQL: SELECT count(*) ,  project_id FROM Documents WHERE document_type_code  =  "BK" GROUP BY project_id
Database: cre_Docs_and_Epenses
Question: Show the document name and the document date for all documents on project with details 'Graph Database project'.
Paraphrased question: Show the file name and the file date for all files on project with details 'Graph Database project'.
SQL: 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'
Database: cre_Docs_and_Epenses
Question: What are the names and dates for documents corresponding to project that has the details 'Graph Database project'?
Paraphrased question: What are the names and day for files corresponding to project that has the details 'Graph Database project'?
SQL: 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'
Database: cre_Docs_and_Epenses
Question: Show project ids and the number of documents in each project.
Paraphrased question: Show project ids and the number of files in each project.
SQL: SELECT project_id ,  count(*) FROM Documents GROUP BY project_id
Database: cre_Docs_and_Epenses
Question: How many documents correspond with each project id?
Paraphrased question: How many files correspond with each project id?
SQL: SELECT project_id ,  count(*) FROM Documents GROUP BY project_id
Database: cre_Docs_and_Epenses
Question: What is the id of the project with least number of documents?
Paraphrased question: What is the id of the project with least number of files?
SQL: SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
Database: cre_Docs_and_Epenses
Question: Return the id of the project that has the fewest corresponding documents.
Paraphrased question: Return the id of the project that has the fewest corresponding files.
SQL: SELECT project_id FROM Documents GROUP BY project_id ORDER BY count(*) ASC LIMIT 1
Database: cre_Docs_and_Epenses
Question: Show the ids for projects with at least 2 documents.
Paraphrased question: Show the ids for projects with at least 2 files.
SQL: SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2
Database: cre_Docs_and_Epenses
Question: What are project ids of projects that have 2 or more corresponding documents?
Paraphrased question: What are project ids of projects that have 2 or more corresponding files?
SQL: SELECT project_id FROM Documents GROUP BY project_id HAVING count(*)  >=  2
Database: cre_Docs_and_Epenses
Question: List document type codes and the number of documents in each code.
Paraphrased question: List file type codes and the number of files in each code.
SQL: SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code
Database: cre_Docs_and_Epenses
Question: How many documents are there of each type?
Paraphrased question: How many files are there of each type?
SQL: SELECT document_type_code ,  count(*) FROM Documents GROUP BY document_type_code
Database: cre_Docs_and_Epenses
Question: What is the document type code with most number of documents?
Paraphrased question: What is the file type code with most number of files?
SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: Return the code of the document type that is most common.
Paraphrased question: Return the code of the file type that is most common.
SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: Show the document type code with fewer than 3 documents.
Paraphrased question: Show the file type code with fewer than 3 files.
SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3
Database: cre_Docs_and_Epenses
Question: What are the codes corresponding to document types for which there are less than 3 documents?
Paraphrased question: What are the codes corresponding to file types for which there are less than 3 files?
SQL: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*)  <  3
Database: cre_Docs_and_Epenses
Question: Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.
Paraphrased question: Show the statement information and the corresponding file name for the statement with information 'Private Project'.
SQL: 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'
Database: cre_Docs_and_Epenses
Question: What are the details for statements with the details 'Private Project', and what are the names of the corresponding documents?
Paraphrased question: What are the information for statements with the information 'Private Project', and what are the names of the corresponding files?
SQL: 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'
Database: cre_Docs_and_Epenses
Question: Show all document type codes, document type names, document type descriptions.
Paraphrased question: Show all file type codes, file type names, file type descriptions.
SQL: SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types
Database: cre_Docs_and_Epenses
Question: What are the codes, names, and descriptions of the different document types?
Paraphrased question: What are the codes, names, and descriptions of the different file types?
SQL: SELECT document_type_code ,  document_type_name ,  document_type_description FROM Ref_document_types
Database: cre_Docs_and_Epenses
Question: What is the document type description for document type named Film?
Paraphrased question: What is the file type describing content for file type named Film?
SQL: SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  "Film"
Database: cre_Docs_and_Epenses
Question: Return the description of the document type name 'Film'.
Paraphrased question: Return the describing content of the file type name 'Film'.
SQL: SELECT document_type_description FROM Ref_document_types WHERE document_type_name  =  "Film"
Database: cre_Docs_and_Epenses
Question: What is the document type name and the document type description and creation date for all the documents?
Paraphrased question: What is the file type name and the file type describing content and creation date for all the files?
SQL: 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
Database: cre_Docs_and_Epenses
Question: Return the type name, type description, and date of creation for each document.
Paraphrased question: Return the type name, type description, and day of creation for each file.
SQL: 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
Database: cre_Docs_and_Epenses
Question: Show the number of projects.
Paraphrased question: Show the number of projects.
SQL: SELECT count(*) FROM Projects
Database: cre_Docs_and_Epenses
Question: How many projects are there?
Paraphrased question: How many projects are there?
SQL: SELECT count(*) FROM Projects
Database: cre_Docs_and_Epenses
Question: List ids and details for all projects.
Paraphrased question: List ids and information for all projects.
SQL: SELECT project_id ,  project_details FROM Projects
Database: cre_Docs_and_Epenses
Question: What are the ids and details for each project?
Paraphrased question: What are the ids and information for each project?
SQL: SELECT project_id ,  project_details FROM Projects
Database: cre_Docs_and_Epenses
Question: What is the project id and detail for the project with at least two documents?
Paraphrased question: What is the project id and information for the project with at least two files?
SQL: 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
Database: cre_Docs_and_Epenses
Question: Return the ids and details corresponding to projects for which there are more than two documents.
Paraphrased question: Return the ids and information corresponding to projects for which there are more than two files.
SQL: 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
Database: cre_Docs_and_Epenses
Question: What is the project detail for the project with document "King Book"?
Paraphrased question: What is the project information for the project with file "King Book"?
SQL: 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"
Database: cre_Docs_and_Epenses
Question: Give the details of the project with the document name 'King Book'.
Paraphrased question: Give the information of the project with the file name 'King Book'.
SQL: 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"
Database: cre_Docs_and_Epenses
Question: How many budget types do we have?
Paraphrased question: How many budget types do we have?
SQL: SELECT count(*) FROM Ref_budget_codes
Database: cre_Docs_and_Epenses
Question: Count the number of budget codes.
Paraphrased question: Count the number of budget codes.
SQL: SELECT count(*) FROM Ref_budget_codes
Database: cre_Docs_and_Epenses
Question: List all budget type codes and descriptions.
Paraphrased question: List all budget type codes and describing details.
SQL: SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes
Database: cre_Docs_and_Epenses
Question: What are the type codes and descriptions of each budget type?
Paraphrased question: What are the type codes and describing details of each budget type?
SQL: SELECT budget_type_code ,  budget_type_description FROM Ref_budget_codes
Database: cre_Docs_and_Epenses
Question: What is the description for the budget type with code ORG?
Paraphrased question: What is the describing detail for the budget type with code ORG?
SQL: SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  "ORG"
Database: cre_Docs_and_Epenses
Question: Return the description of the budget type that has the code ORG.
Paraphrased question: Return the describing detail of the budget type that has the code ORG.
SQL: SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code  =  "ORG"
Database: cre_Docs_and_Epenses
Question: How many documents have expenses?
Paraphrased question: How many documents have expenses?
SQL: SELECT count(*) FROM Documents_with_expenses
Database: cre_Docs_and_Epenses
Question: Count the number of documents with expenses.
Paraphrased question: Count the number of files with expenses.
SQL: SELECT count(*) FROM Documents_with_expenses
Database: cre_Docs_and_Epenses
Question: What are the document ids for the budget type code 'SF'?
Paraphrased question: What are the file ids for the budget type code 'SF'?
SQL: SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  'SF'
Database: cre_Docs_and_Epenses
Question: Give the ids of documents with expenses that have the budget code 'SF'.
Paraphrased question: Give the ids of files with expenses that have the budget code 'SF'.
SQL: SELECT document_id FROM Documents_with_expenses WHERE budget_type_code  =  'SF'
Database: cre_Docs_and_Epenses
Question: Show the budget type code and description and the corresponding document id.
Paraphrased question: Show the budget type code and describing detail and the corresponding file id.
SQL: 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
Database: cre_Docs_and_Epenses
Question: Return the budget type codes, budget type descriptions and document ids for documents with expenses.
Paraphrased question: Return the budget type codes, budget type descriptions and file ids for files with expenses.
SQL: 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
Database: cre_Docs_and_Epenses
Question: Show ids for all documents with budget types described as 'Government'.
Paraphrased question: Show ids for all files with budget types described as 'Government'.
SQL: 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"
Database: cre_Docs_and_Epenses
Question: Give the ids for documents that have the budget description 'Government'.
Paraphrased question: Give the ids for files that have the budget description 'Government'.
SQL: 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"
Database: cre_Docs_and_Epenses
Question: Show budget type codes and the number of documents in each budget type.
Paraphrased question: Show budget type codes and the number of files in each budget type.
SQL: SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code
Database: cre_Docs_and_Epenses
Question: What are the different budget type codes, and how many documents are there for each?
Paraphrased question: What are the different budget type codes, and how many files are there for each?
SQL: SELECT budget_type_code ,  count(*) FROM Documents_with_expenses GROUP BY budget_type_code
Database: cre_Docs_and_Epenses
Question: What is the budget type code with most number of documents.
Paraphrased question: What is the budget type code with most number of files.
SQL: SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: Give the budget type code that is most common among documents with expenses.
Paraphrased question: Give the budget type code that is most common among files with expenses.
SQL: SELECT budget_type_code FROM Documents_with_expenses GROUP BY budget_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Docs_and_Epenses
Question: What are the ids of documents which don't have expense budgets?
Paraphrased question: What are the ids of files which don't have expense budgets?
SQL: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
Database: cre_Docs_and_Epenses
Question: Return the ids of documents that do not have expenses.
Paraphrased question: Return the ids of files that do not have expenses.
SQL: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses
Database: cre_Docs_and_Epenses
Question: Show ids for all documents in type CV without expense budgets.
Paraphrased question: Show ids for all files in type CV without expense budgets.
SQL: SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
Database: cre_Docs_and_Epenses
Question: What are the ids of documents with the type code CV that do not have expenses.
Paraphrased question: What are the ids of files with the type code CV that do not have expenses.
SQL: SELECT document_id FROM Documents WHERE document_type_code  =  "CV" EXCEPT SELECT document_id FROM Documents_with_expenses
Database: cre_Docs_and_Epenses
Question: What are the ids of documents with letter 's' in the name with any expense budgets.
Paraphrased question: What are the ids of files with letter 's' in the name with any expense budgets.
SQL: 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%'
Database: cre_Docs_and_Epenses
Question: Give the ids of documents that have expenses and contain the letter s in their names.
Paraphrased question: Give the ids of files that have expenses and contain the letter s in their names.
SQL: 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%'
Database: cre_Docs_and_Epenses
Question: How many documents do not have any expense?
Paraphrased question: How many files do not have any expense?
SQL: SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
Database: cre_Docs_and_Epenses
Question: Count the number of documents that do not have expenses.
Paraphrased question: Count the number of files that do not have expenses.
SQL: SELECT count(*) FROM Documents WHERE document_id NOT IN ( SELECT document_id FROM Documents_with_expenses )
Database: cre_Docs_and_Epenses
Question: What are the dates for the documents with both 'GV' type and 'SF' type expenses?
Paraphrased question: What are the day for the files with both 'GV' type and 'SF' type expenses?
SQL: 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'
Database: cre_Docs_and_Epenses
Question: Give the dates of creation for documents that have both budget type codes 'GV' and 'SF'.
Paraphrased question: Give the day of creation for files that have both budget type codes 'GV' and 'SF'.
SQL: 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'
Database: cre_Docs_and_Epenses
Question: What are the account details with the largest value or with value having char '5' in it?
Paraphrased question: What are the account information with the largest value or with value having char '5' in it?
SQL: SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
Database: cre_Docs_and_Epenses
Question: Return the account details with the greatest value, as well as those that include the character 5.
Paraphrased question: Return the account information with the greatest value, as well as those that include the character 5.
SQL: SELECT max(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
Database: scientist_1
Question: Find the total number of scientists.
Paraphrased question: Find the total number of scientists.
SQL: SELECT count(*) FROM scientists
Database: scientist_1
Question: How many scientists are there?
Paraphrased question: How many scientists are there?
SQL: SELECT count(*) FROM scientists
Database: scientist_1
Question: Find the total hours of all projects.
Paraphrased question: Find the total hours of all projects.
SQL: SELECT sum(hours) FROM projects
Database: scientist_1
Question: What is the total number of hours for all projects?
Paraphrased question: What is the total number of hours for all projects?
SQL: SELECT sum(hours) FROM projects
Database: scientist_1
Question: How many different scientists are assigned to any project?
Paraphrased question: How many different scientists are assigned to any project?
SQL: SELECT count(DISTINCT scientist) FROM assignedto
Database: scientist_1
Question: Count the number of different scientists assigned to any project.
Paraphrased question: Count the number of different scientists assigned to any project.
SQL: SELECT count(DISTINCT scientist) FROM assignedto
Database: scientist_1
Question: Find the number of distinct projects.
Paraphrased question: Find the number of different projects.
SQL: SELECT count(DISTINCT name) FROM projects
Database: scientist_1
Question: How many different projects are there?
Paraphrased question: How many different projects are there?
SQL: SELECT count(DISTINCT name) FROM projects
Database: scientist_1
Question: Find the average hours of all projects.
Paraphrased question: Find the average hours of all projects.
SQL: SELECT avg(hours) FROM projects
Database: scientist_1
Question: What is the average hours across all projects?
Paraphrased question: What is the average hours across all projects?
SQL: SELECT avg(hours) FROM projects
Database: scientist_1
Question: Find the name of project that continues for the longest time.
Paraphrased question: Find the name of project that continues for the longest time.
SQL: SELECT name FROM projects ORDER BY hours DESC LIMIT 1
Database: scientist_1
Question: What is the name of the project with the most hours?
Paraphrased question: What is the name of the project with the most hours?
SQL: SELECT name FROM projects ORDER BY hours DESC LIMIT 1
Database: scientist_1
Question: List the name of all projects that are operated longer than the average working hours of all projects.
Paraphrased question: List the name of all projects that are operated longer than the average working hours of all projects.
SQL: SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)
Database: scientist_1
Question: What are the names of projects that have taken longer than the average number of hours for all projects?
Paraphrased question: What are the names of projects that have taken longer than the average number of hours for all projects?
SQL: SELECT name FROM projects WHERE hours  >  (SELECT avg(hours) FROM projects)
Database: scientist_1
Question: Find the name and hours of project that has the most number of scientists.
Paraphrased question: Find the name and hours of project that has the most number of scientists.
SQL: 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
Database: scientist_1
Question: What is the name and hours for the project which has the most scientists assigned to it?
Paraphrased question: What is the name and hours for the project which has the most scientists assigned to it?
SQL: 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
Database: scientist_1
Question: Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.
Paraphrased question: Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.
SQL: 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%'
Database: scientist_1
Question: What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?
Paraphrased question: What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?
SQL: 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%'
Database: scientist_1
Question: Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.
Paraphrased question: Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.
SQL: 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'
Database: scientist_1
Question: What is the sum of hours for projects that scientists with the name Michael Rogers or Carol Smith are assigned to?
Paraphrased question: What is the sum of hours for projects that scientists with the name Michael Rogers or Carol Smith are assigned to?
SQL: 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'
Database: scientist_1
Question: Find the name of projects that require between 100 and 300 hours of work.
Paraphrased question: Find the name of projects that require between 100 and 300 hours of work.
SQL: SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Database: scientist_1
Question: What are the names of projects that require between 100 and 300 hours?
Paraphrased question: What are the names of projects that require between 100 and 300 hours?
SQL: SELECT name FROM projects WHERE hours BETWEEN 100 AND 300
Database: scientist_1
Question: Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.
Paraphrased question: Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.
SQL: 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'
Database: scientist_1
Question: What are the names of any scientists who worked on projects named 'Matter of Time' and 'A Puzzling Pattern'?
Paraphrased question: What are the names of any scientists who worked on projects named 'Matter of Time' and 'A Puzzling Pattern'?
SQL: 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'
Database: scientist_1
Question: List the names of all scientists sorted in alphabetical order.
Paraphrased question: List the names of all scientists sorted in alphabetical order.
SQL: SELECT name FROM scientists ORDER BY name
Database: scientist_1
Question: What are the names of all the scientists in alphabetical order?
Paraphrased question: What are the names of all the scientists in alphabetical order?
SQL: SELECT name FROM scientists ORDER BY name
Database: scientist_1
Question: Find the number of scientists involved for each project name.
Paraphrased question: Find the number of scientists involved for each project name.
SQL: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name
Database: scientist_1
Question: What are the naems of all the projects, and how many scientists were assigned to each of them?
Paraphrased question: What are the naems of all the projects, and how many scientists were assigned to each of them?
SQL: SELECT count(*) ,  T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code  =  T2.project GROUP BY T1.name
Database: scientist_1
Question: Find the number of scientists involved for the projects that require more than 300 hours.
Paraphrased question: Find the number of scientists involved for the projects that require more than 300 hours.
SQL: 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
Database: scientist_1
Question: What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?
Paraphrased question: What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?
SQL: 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
Database: scientist_1
Question: Find the number of projects which each scientist is working on and scientist's name.
Paraphrased question: Find the number of projects which each scientist is working on and scientist's name.
SQL: SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name
Database: scientist_1
Question: What are the names of the scientists, and how many projects are each of them working on?
Paraphrased question: What are the names of the scientists, and how many projects are each of them working on?
SQL: SELECT count(*) ,  T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn  =  T2.scientist GROUP BY T1.name
Database: scientist_1
Question: Find the SSN and name of scientists who are assigned to the project with the longest hours.
Paraphrased question: Find the SSN and name of scientists who are assigned to the project with the longest hours.
SQL: SELECT T3.ssn ,  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.hours  =  (SELECT max(hours) FROM projects)
Database: scientist_1
Question: What are the SSN and names of scientists working on the project with the most hours?
Paraphrased question: What are the SSN and names of scientists working on the project with the most hours?
SQL: SELECT T3.ssn ,  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.hours  =  (SELECT max(hours) FROM projects)
Database: scientist_1
Question: Find the name of scientists who are assigned to some project.
Paraphrased question: Find the name of scientists who are assigned to some project.
SQL: SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn
Database: scientist_1
Question: What are the names of scientists who are assigned to any project?
Paraphrased question: What are the names of scientists who are assigned to any project?
SQL: SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist  =  T2.ssn
Database: scientist_1
Question: Select the project names which are not assigned yet.
Paraphrased question: Select the project names which are not assigned yet.
SQL: SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)
Database: scientist_1
Question: What are the names of projects that have not been assigned?
Paraphrased question: What are the names of projects that have not been assigned?
SQL: SELECT Name FROM Projects WHERE Code NOT IN (SELECT Project FROM AssignedTo)
Database: scientist_1
Question: Find the name of scientists who are not assigned to any project.
Paraphrased question: Find the name of scientists who are not assigned to any project.
SQL: SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Database: scientist_1
Question: What are the names of scientists who have not been assigned a project?
Paraphrased question: What are the names of scientists who have not been assigned a project?
SQL: SELECT Name FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Database: scientist_1
Question: Find the number of scientists who are not assigned to any project.
Paraphrased question: Find the number of scientists who are not assigned to any project.
SQL: SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Database: scientist_1
Question: How many scientists do not have any projects assigned to them?
Paraphrased question: How many scientists do not have any projects assigned to them?
SQL: SELECT count(*) FROM scientists WHERE ssn NOT IN (SELECT scientist FROM AssignedTo)
Database: scientist_1
Question: Find the names of scientists who are not working on the project with the highest hours.
Paraphrased question: Find the names of scientists who are not working on the project with the highest hours.
SQL: SELECT name FROM scientists EXCEPT 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.hours  =  (SELECT max(hours) FROM projects)
Database: scientist_1
Question: What are the names of scientists who are not working on the project with the most hours?
Paraphrased question: What are the names of scientists who are not working on the project with the most hours?
SQL: SELECT name FROM scientists EXCEPT 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.hours  =  (SELECT max(hours) FROM projects)
Database: scientist_1
Question: List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
Paraphrased question: List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
SQL: SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name ,  T1.Name
Database: scientist_1
Question: What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name.
Paraphrased question: What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name.
SQL: SELECT T1.Name ,  T3.Name ,  T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name ,  T1.Name
Database: scientist_1
Question: Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.
Paraphrased question: Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.
SQL: SELECT T2.name ,  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.hours  =  (SELECT min(hours) FROM projects)
Database: scientist_1
Question: What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?
Paraphrased question: What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?
SQL: SELECT T2.name ,  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.hours  =  (SELECT min(hours) FROM projects)
Database: wine_1
Question: What is the name of the highest rated wine?
Paraphrased question: What is the name of the highest rated alcoholic drink?
SQL: SELECT Name FROM WINE ORDER BY Score LIMIT 1
Database: wine_1
Question: Give the name of the wine with the highest score.
Paraphrased question: Give the name of the alcoholic drink with the highest score.
SQL: SELECT Name FROM WINE ORDER BY Score LIMIT 1