text
stringlengths
150
1.06k
source
dict
### QUESTION Show the names of companies and of employees. ### CONTEXT CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### ANSWER SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID</s>
{ "answer": "SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID", "context": "CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "question": "Show the names of companies and of employees." }
### QUESTION Show names of companies and that of employees in descending order of number of years working for that employee. ### CONTEXT CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR, Year_working VARCHAR) ### ANSWER SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working</s>
{ "answer": "SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working", "context": "CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR, Year_working VARCHAR)", "question": "Show names of companies and that of employees in descending order of number of years working for that employee." }
### QUESTION Show the names of employees that work for companies with sales bigger than 200. ### CONTEXT CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### ANSWER SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200</s>
{ "answer": "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200", "context": "CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "question": "Show the names of employees that work for companies with sales bigger than 200." }
### QUESTION Show the names of companies and the number of employees they have ### CONTEXT CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR) ### ANSWER SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name</s>
{ "answer": "SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name", "context": "CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR)", "question": "Show the names of companies and the number of employees they have" }
### QUESTION The episode titled "Epiphany" received what scripted show ranking? ### CONTEXT CREATE TABLE table_22170495_7 (scripted_show_ranking INTEGER, title VARCHAR) ### ANSWER SELECT MIN(scripted_show_ranking) FROM table_22170495_7 WHERE title = "Epiphany"</s>
{ "answer": "SELECT MIN(scripted_show_ranking) FROM table_22170495_7 WHERE title = \"Epiphany\"", "context": "CREATE TABLE table_22170495_7 (scripted_show_ranking INTEGER, title VARCHAR)", "question": "The episode titled \"Epiphany\" received what scripted show ranking?" }
### QUESTION What venue has an against over 14, an opposing team of scotland, and a status of five nations? ### CONTEXT CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR, opposing_teams VARCHAR) ### ANSWER SELECT venue FROM table_name_16 WHERE against > 14 AND opposing_teams = "scotland" AND status = "five nations"</s>
{ "answer": "SELECT venue FROM table_name_16 WHERE against > 14 AND opposing_teams = \"scotland\" AND status = \"five nations\"", "context": "CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR, opposing_teams VARCHAR)", "question": "What venue has an against over 14, an opposing team of scotland, and a status of five nations?" }
### QUESTION WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE? ### CONTEXT CREATE TABLE table_name_9 (project_management VARCHAR, social_software VARCHAR, enterprise_search VARCHAR, blogs VARCHAR, xml_forms_management_and_workflow VARCHAR) ### ANSWER SELECT project_management FROM table_name_9 WHERE blogs = "no" AND xml_forms_management_and_workflow = "no" AND enterprise_search = "no" AND social_software = "no"</s>
{ "answer": "SELECT project_management FROM table_name_9 WHERE blogs = \"no\" AND xml_forms_management_and_workflow = \"no\" AND enterprise_search = \"no\" AND social_software = \"no\"", "context": "CREATE TABLE table_name_9 (project_management VARCHAR, social_software VARCHAR, enterprise_search VARCHAR, blogs VARCHAR, xml_forms_management_and_workflow VARCHAR)", "question": "WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?" }
### QUESTION WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER? ### CONTEXT CREATE TABLE table_name_1 (bookmarking VARCHAR, _tagging VARCHAR, _rating_and_comments VARCHAR, name VARCHAR, web_publishing VARCHAR, list_management VARCHAR, charting VARCHAR) ### ANSWER SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = "no" AND charting = "no" AND web_publishing = "no" AND name = "microsoft exchange server"</s>
{ "answer": "SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = \"no\" AND charting = \"no\" AND web_publishing = \"no\" AND name = \"microsoft exchange server\"", "context": "CREATE TABLE table_name_1 (bookmarking VARCHAR, _tagging VARCHAR, _rating_and_comments VARCHAR, name VARCHAR, web_publishing VARCHAR, list_management VARCHAR, charting VARCHAR)", "question": "WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?" }
### QUESTION What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4? ### CONTEXT CREATE TABLE table_22170495_6 (position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR) ### ANSWER SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = "June 30, 2010"</s>
{ "answer": "SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = \"June 30, 2010\"", "context": "CREATE TABLE table_22170495_6 (position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR)", "question": "What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?" }
### QUESTION Please show the titles of films and the types of market estimations. ### CONTEXT CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR) ### ANSWER SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID</s>
{ "answer": "SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID", "context": "CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR)", "question": "Please show the titles of films and the types of market estimations." }
### QUESTION How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4? ### CONTEXT CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR) ### ANSWER SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = "February 24, 2010"</s>
{ "answer": "SELECT COUNT(position_in_channel_4s_ratings_a) FROM table_22170495_6 WHERE original_airing_on_channel_4 = \"February 24, 2010\"", "context": "CREATE TABLE table_22170495_6 (position_in_channel_4s_ratings_a VARCHAR, original_airing_on_channel_4 VARCHAR)", "question": "How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?" }
### QUESTION What is the average number of cities of markets with low film market estimate bigger than 10000? ### CONTEXT CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER) ### ANSWER SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000</s>
{ "answer": "SELECT AVG(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T1.Low_Estimate > 10000", "context": "CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER)", "question": "What is the average number of cities of markets with low film market estimate bigger than 10000?" }
### QUESTION Please list the countries and years of film market estimations. ### CONTEXT CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Country VARCHAR, Market_ID VARCHAR) ### ANSWER SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID</s>
{ "answer": "SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID", "context": "CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Country VARCHAR, Market_ID VARCHAR)", "question": "Please list the countries and years of film market estimations." }
### QUESTION Please list the years of film market estimations when the market is in country "Japan" in descending order. ### CONTEXT CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR) ### ANSWER SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC</s>
{ "answer": "SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = \"Japan\" ORDER BY T1.Year DESC", "context": "CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR)", "question": "Please list the years of film market estimations when the market is in country \"Japan\" in descending order." }
### QUESTION What is the title of the film that has the highest high market estimation. ### CONTEXT CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR) ### ANSWER SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1</s>
{ "answer": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1", "context": "CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR)", "question": "What is the title of the film that has the highest high market estimation." }
### QUESTION What are the titles and directors of the films were never presented in China? ### CONTEXT CREATE TABLE film (title VARCHAR, director VARCHAR, film_id VARCHAR, country VARCHAR); CREATE TABLE market (Market_ID VARCHAR); CREATE TABLE film_market_estimation (market_id VARCHAR) ### ANSWER SELECT title, director FROM film WHERE NOT film_id IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')</s>
{ "answer": "SELECT title, director FROM film WHERE NOT film_id IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')", "context": "CREATE TABLE film (title VARCHAR, director VARCHAR, film_id VARCHAR, country VARCHAR); CREATE TABLE market (Market_ID VARCHAR); CREATE TABLE film_market_estimation (market_id VARCHAR)", "question": "What are the titles and directors of the films were never presented in China?" }
### QUESTION How many laps have a race time of 3:31:24? ### CONTEXT CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR) ### ANSWER SELECT laps FROM table_2226343_1 WHERE race_time = "3:31:24"</s>
{ "answer": "SELECT laps FROM table_2226343_1 WHERE race_time = \"3:31:24\"", "context": "CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR)", "question": "How many laps have a race time of 3:31:24?" }
### QUESTION What is the document type code for document type "Paper"? ### CONTEXT CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR) ### ANSWER SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"</s>
{ "answer": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"", "context": "CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)", "question": "What is the document type code for document type \"Paper\"?" }
### QUESTION What is the document type name for the document with name "How to read a book"? ### CONTEXT CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR) ### ANSWER SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"</s>
{ "answer": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "context": "CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR)", "question": "What is the document type name for the document with name \"How to read a book\"?" }
### QUESTION What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1? ### CONTEXT CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR) ### ANSWER SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1</s>
{ "answer": "SELECT MIN(rank) FROM table_name_75 WHERE gold < 1 AND silver = 0 AND bronze = 1 AND total < 1", "context": "CREATE TABLE table_name_75 (rank INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR, silver VARCHAR)", "question": "What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?" }
### QUESTION What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16? ### CONTEXT CREATE TABLE table_name_51 (total VARCHAR, rank VARCHAR, bronze VARCHAR, nation VARCHAR) ### ANSWER SELECT COUNT(total) FROM table_name_51 WHERE bronze < 8 AND nation = "netherlands" AND rank < 16</s>
{ "answer": "SELECT COUNT(total) FROM table_name_51 WHERE bronze < 8 AND nation = \"netherlands\" AND rank < 16", "context": "CREATE TABLE table_name_51 (total VARCHAR, rank VARCHAR, bronze VARCHAR, nation VARCHAR)", "question": "What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16?" }
### QUESTION Show the name, role code, and date of birth for the employee with name 'Armani'. ### CONTEXT CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR) ### ANSWER SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'</s>
{ "answer": "SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'", "context": "CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR)", "question": "Show the name, role code, and date of birth for the employee with name 'Armani'." }
### QUESTION What are all the production codes of episodes written by Michael G. Moye? ### CONTEXT CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR) ### ANSWER SELECT production_code FROM table_2226817_8 WHERE written_by = "Michael G. Moye"</s>
{ "answer": "SELECT production_code FROM table_2226817_8 WHERE written_by = \"Michael G. Moye\"", "context": "CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)", "question": "What are all the production codes of episodes written by Michael G. Moye?" }
### QUESTION What is the role code with the largest number of employees? ### CONTEXT CREATE TABLE Employees (role_code VARCHAR) ### ANSWER SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Employees (role_code VARCHAR)", "question": "What is the role code with the largest number of employees?" }
### QUESTION What is the role name and role description for employee called Ebba? ### CONTEXT CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR); CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR) ### ANSWER SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = "Ebba"</s>
{ "answer": "SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = \"Ebba\"", "context": "CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR); CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR)", "question": "What is the role name and role description for employee called Ebba?" }
### QUESTION Show the names of employees with role name Editor. ### CONTEXT CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) ### ANSWER SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"</s>
{ "answer": "SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Editor\"", "context": "CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR)", "question": "Show the names of employees with role name Editor." }
### QUESTION Show the employee ids for all employees with role name "Human Resource" or "Manager". ### CONTEXT CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR) ### ANSWER SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager"</s>
{ "answer": "SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = \"Human Resource\" OR T2.role_name = \"Manager\"", "context": "CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR)", "question": "Show the employee ids for all employees with role name \"Human Resource\" or \"Manager\"." }
### QUESTION What is the lowest Population, when Per Capita Income is "$16,330"? ### CONTEXT CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR) ### ANSWER SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = "$16,330"</s>
{ "answer": "SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = \"$16,330\"", "context": "CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR)", "question": "What is the lowest Population, when Per Capita Income is \"$16,330\"?" }
### QUESTION Show the location name for document "Robin CV". ### CONTEXT CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR) ### ANSWER SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV"</s>
{ "answer": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"", "context": "CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR)", "question": "Show the location name for document \"Robin CV\"." }
### QUESTION What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287? ### CONTEXT CREATE TABLE table_name_86 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR) ### ANSWER SELECT MAX(population) FROM table_name_86 WHERE per_capita_income = "$17,168" AND number_of_households > 3 OFFSET 287</s>
{ "answer": "SELECT MAX(population) FROM table_name_86 WHERE per_capita_income = \"$17,168\" AND number_of_households > 3 OFFSET 287", "context": "CREATE TABLE table_name_86 (population INTEGER, per_capita_income VARCHAR, number_of_households VARCHAR)", "question": "What is the highest Population, when Per Capita Income is \"$17,168\", and when Number of Households is greater than 3,287?" }
### QUESTION What is "the date in location from" and "the date in location to" for the document with name "Robin CV"? ### CONTEXT CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR) ### ANSWER SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV"</s>
{ "answer": "SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Robin CV\"", "context": "CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR)", "question": "What is \"the date in location from\" and \"the date in location to\" for the document with name \"Robin CV\"?" }
### QUESTION What is the alpha 2 code for the area also known as NZL? ### CONTEXT CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR) ### ANSWER SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = "NZL"</s>
{ "answer": "SELECT alpha_2_code FROM table_222771_1 WHERE alpha_3_code = \"NZL\"", "context": "CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, alpha_3_code VARCHAR)", "question": "What is the alpha 2 code for the area also known as NZL?" }
### QUESTION What is the ISO for South Sudan? ### CONTEXT CREATE TABLE table_222771_1 (iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR) ### ANSWER SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "South Sudan"</s>
{ "answer": "SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = \"South Sudan\"", "context": "CREATE TABLE table_222771_1 (iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR)", "question": "What is the ISO for South Sudan?" }
### QUESTION Show the location name and code with the least documents. ### CONTEXT CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR) ### ANSWER SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR)", "question": "Show the location name and code with the least documents." }
### QUESTION What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? ### CONTEXT CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR) ### ANSWER SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id</s>
{ "answer": "SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id", "context": "CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR)", "question": "What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?" }
### QUESTION Show the id of each employee and the number of document destruction authorised by that employee. ### CONTEXT CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) ### ANSWER SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID</s>
{ "answer": "SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID", "context": "CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR)", "question": "Show the id of each employee and the number of document destruction authorised by that employee." }
### QUESTION Show the ids of the employees who don't authorize destruction for any document. ### CONTEXT CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) ### ANSWER SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed</s>
{ "answer": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "context": "CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR)", "question": "Show the ids of the employees who don't authorize destruction for any document." }
### QUESTION When is every date that control site condition or owner is machine shop on Martin Dr.? ### CONTEXT CREATE TABLE table_22282917_26 (dates VARCHAR, control_site_condition_owner VARCHAR) ### ANSWER SELECT dates FROM table_22282917_26 WHERE control_site_condition_owner = "machine shop on Martin Dr."</s>
{ "answer": "SELECT dates FROM table_22282917_26 WHERE control_site_condition_owner = \"machine shop on Martin Dr.\"", "context": "CREATE TABLE table_22282917_26 (dates VARCHAR, control_site_condition_owner VARCHAR)", "question": "When is every date that control site condition or owner is machine shop on Martin Dr.?" }
### QUESTION What is every missile type with a code and location of M-20 Harbor Drive? ### CONTEXT CREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR) ### ANSWER SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = "M-20 Harbor Drive"</s>
{ "answer": "SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = \"M-20 Harbor Drive\"", "context": "CREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR)", "question": "What is every missile type with a code and location of M-20 Harbor Drive?" }
### QUESTION Show the ids of all employees who have either destroyed a document or made an authorization to do this. ### CONTEXT CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) ### ANSWER SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed</s>
{ "answer": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "context": "CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR)", "question": "Show the ids of all employees who have either destroyed a document or made an authorization to do this." }
### QUESTION What date was the Izmir Cup in which İlhan played against Somdev Devvarman? ### CONTEXT CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR) ### ANSWER SELECT date FROM table_name_35 WHERE tournament = "izmir cup" AND opponent = "somdev devvarman"</s>
{ "answer": "SELECT date FROM table_name_35 WHERE tournament = \"izmir cup\" AND opponent = \"somdev devvarman\"", "context": "CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR)", "question": "What date was the Izmir Cup in which İlhan played against Somdev Devvarman?" }
### QUESTION What is every code and location where the launch site condition and owner is obliterated? ### CONTEXT CREATE TABLE table_22282917_26 (code_ VARCHAR, _location VARCHAR, launch_site_condition_owner VARCHAR) ### ANSWER SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = "Obliterated"</s>
{ "answer": "SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = \"Obliterated\"", "context": "CREATE TABLE table_22282917_26 (code_ VARCHAR, _location VARCHAR, launch_site_condition_owner VARCHAR)", "question": "What is every code and location where the launch site condition and owner is obliterated?" }
### QUESTION What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings? ### CONTEXT CREATE TABLE table_22282917_26 (control_site_condition_owner VARCHAR, launch_site_condition_owner VARCHAR) ### ANSWER SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = "lakefront office buildings"</s>
{ "answer": "SELECT control_site_condition_owner FROM table_22282917_26 WHERE launch_site_condition_owner = \"lakefront office buildings\"", "context": "CREATE TABLE table_22282917_26 (control_site_condition_owner VARCHAR, launch_site_condition_owner VARCHAR)", "question": "What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?" }
### QUESTION Find the last names of the members of the club "Bootup Baltimore". ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore"</s>
{ "answer": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "Find the last names of the members of the club \"Bootup Baltimore\"." }
### QUESTION How many years had a 100 m hurdles event at the world championships in Osaka, Japan? ### CONTEXT CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR) ### ANSWER SELECT SUM(year) FROM table_name_96 WHERE event = "100 m hurdles" AND competition = "world championships" AND venue = "osaka, japan"</s>
{ "answer": "SELECT SUM(year) FROM table_name_96 WHERE event = \"100 m hurdles\" AND competition = \"world championships\" AND venue = \"osaka, japan\"", "context": "CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR)", "question": "How many years had a 100 m hurdles event at the world championships in Osaka, Japan?" }
### QUESTION How many members does the club "Tennis Club" has? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Tennis Club"</s>
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)", "question": "How many members does the club \"Tennis Club\" has?" }
### QUESTION Find the number of members of club "Pen and Paper Gaming". ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming"</s>
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Pen and Paper Gaming\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)", "question": "Find the number of members of club \"Pen and Paper Gaming\"." }
### QUESTION How many clubs does "Linda Smith" belong to? ### CONTEXT CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Linda" AND t3.lname = "Smith"</s>
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"", "context": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)", "question": "How many clubs does \"Linda Smith\" belong to?" }
### QUESTION Find the number of clubs where "Tracy Kim" is a member. ### CONTEXT CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Tracy" AND t3.lname = "Kim"</s>
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Tracy\" AND t3.lname = \"Kim\"", "context": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)", "question": "Find the number of clubs where \"Tracy Kim\" is a member." }
### QUESTION Who are the members of the club named "Hopkins Student Enterprises"? Show the last name. ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"</s>
{ "answer": "SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "Who are the members of the club named \"Hopkins Student Enterprises\"? Show the last name." }
### QUESTION Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name. ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t3.sex = "M"</s>
{ "answer": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t3.sex = \"M\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "Find all the male members of club \"Hopkins Student Enterprises\". Show the first name and last name." }
### QUESTION Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name. ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, major VARCHAR) ### ANSWER SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.major = "600"</s>
{ "answer": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.major = \"600\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, major VARCHAR)", "question": "Find all members of \"Bootup Baltimore\" whose major is \"600\". Show the first name and last name." }
### QUESTION Which club has the most members majoring in "600"? ### CONTEXT CREATE TABLE student (stuid VARCHAR, major VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### ANSWER SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = "600" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.major = \"600\" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE student (stuid VARCHAR, major VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "question": "Which club has the most members majoring in \"600\"?" }
### QUESTION Find the name of the club that has the most female students. ### CONTEXT CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### ANSWER SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = "F" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = \"F\" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "question": "Find the name of the club that has the most female students." }
### QUESTION Find all the female members of club "Bootup Baltimore". Show the first name and last name. ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.sex = "F"</s>
{ "answer": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.sex = \"F\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "Find all the female members of club \"Bootup Baltimore\". Show the first name and last name." }
### QUESTION What is the outcome on March 20, 1994? ### CONTEXT CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR) ### ANSWER SELECT outcome FROM table_name_89 WHERE date = "march 20, 1994"</s>
{ "answer": "SELECT outcome FROM table_name_89 WHERE date = \"march 20, 1994\"", "context": "CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR)", "question": "What is the outcome on March 20, 1994?" }
### QUESTION What are the first and last name of the president of the club "Bootup Baltimore"? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR) ### ANSWER SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t2.position = "President"</s>
{ "answer": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR)", "question": "What are the first and last name of the president of the club \"Bootup Baltimore\"?" }
### QUESTION Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name. ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR) ### ANSWER SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" AND t2.position = "CTO"</s>
{ "answer": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\" AND t2.position = \"CTO\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR)", "question": "Who is the \"CTO\" of club \"Hopkins Student Enterprises\"? Show the first name and last name." }
### QUESTION How many different roles are there in the club "Bootup Baltimore"? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR) ### ANSWER SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = "Bootup Baltimore"</s>
{ "answer": "SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR)", "question": "How many different roles are there in the club \"Bootup Baltimore\"?" }
### QUESTION What date was a friendly match played that ended in a 3-0 score? ### CONTEXT CREATE TABLE table_name_74 (date VARCHAR, result VARCHAR, competition VARCHAR) ### ANSWER SELECT date FROM table_name_74 WHERE result = "3-0" AND competition = "friendly match"</s>
{ "answer": "SELECT date FROM table_name_74 WHERE result = \"3-0\" AND competition = \"friendly match\"", "context": "CREATE TABLE table_name_74 (date VARCHAR, result VARCHAR, competition VARCHAR)", "question": "What date was a friendly match played that ended in a 3-0 score?" }
### QUESTION How many members of club "Bootup Baltimore" are younger than 18? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age < 18</s>
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age < 18", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "How many members of club \"Bootup Baltimore\" are younger than 18?" }
### QUESTION How many members of "Bootup Baltimore" are older than 18? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age > 18</s>
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t3.age > 18", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "How many members of \"Bootup Baltimore\" are older than 18?" }
### QUESTION Find the names of the clubs that have at least a member from the city with city code "HOU". ### CONTEXT CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) ### ANSWER SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "HOU"</s>
{ "answer": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"HOU\"", "context": "CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)", "question": "Find the names of the clubs that have at least a member from the city with city code \"HOU\"." }
### QUESTION Find the names of all the clubs that have at least a member from the city with city code "BAL". ### CONTEXT CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) ### ANSWER SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "BAL"</s>
{ "answer": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"BAL\"", "context": "CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)", "question": "Find the names of all the clubs that have at least a member from the city with city code \"BAL\"." }
### QUESTION List the clubs having "Davis Steven" as a member. ### CONTEXT CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### ANSWER SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Davis" AND t3.lname = "Steven"</s>
{ "answer": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Davis\" AND t3.lname = \"Steven\"", "context": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "question": "List the clubs having \"Davis Steven\" as a member." }
### QUESTION List the clubs that have at least a member with advisor "1121". ### CONTEXT CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, advisor VARCHAR) ### ANSWER SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121</s>
{ "answer": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121", "context": "CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, advisor VARCHAR)", "question": "List the clubs that have at least a member with advisor \"1121\"." }
### QUESTION What is the average age of the members of the club "Bootup Baltimore"? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore"</s>
{ "answer": "SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "What is the average age of the members of the club \"Bootup Baltimore\"?" }
### QUESTION Find the average age of members of the club "Hopkins Student Enterprises". ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### ANSWER SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"</s>
{ "answer": "SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Hopkins Student Enterprises\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "question": "Find the average age of members of the club \"Hopkins Student Enterprises\"." }
### QUESTION Name the number of number in season for 26 ### CONTEXT CREATE TABLE table_22347090_5 (no_in_season VARCHAR, no_in_series VARCHAR) ### ANSWER SELECT COUNT(no_in_season) FROM table_22347090_5 WHERE no_in_series = 26</s>
{ "answer": "SELECT COUNT(no_in_season) FROM table_22347090_5 WHERE no_in_series = 26", "context": "CREATE TABLE table_22347090_5 (no_in_season VARCHAR, no_in_series VARCHAR)", "question": "Name the number of number in season for 26" }
### QUESTION What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'? ### CONTEXT CREATE TABLE grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER) ### ANSWER SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16'</s>
{ "answer": "SELECT T1.grant_amount FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id WHERE T2.sent_date < '1986-08-26 20:49:27' INTERSECT SELECT grant_amount FROM grants WHERE grant_end_date > '1989-03-16 18:27:16'", "context": "CREATE TABLE grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, sent_date INTEGER)", "question": "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?" }
### QUESTION List the project details of the project both producing patent and paper as outcomes. ### CONTEXT CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### ANSWER SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'</s>
{ "answer": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'", "context": "CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "question": "List the project details of the project both producing patent and paper as outcomes." }
### QUESTION What is the total grant amount of the organisations described as research? ### CONTEXT CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR) ### ANSWER SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'</s>
{ "answer": "SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'", "context": "CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR)", "question": "What is the total grant amount of the organisations described as research?" }
### QUESTION List from which date and to which date these staff work: project staff of the project which hires the most staffs ### CONTEXT CREATE TABLE Project_Staff (date_from VARCHAR, date_to VARCHAR, project_id VARCHAR, role_code VARCHAR) ### ANSWER SELECT date_from, date_to FROM Project_Staff WHERE project_id IN (SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY COUNT(*) DESC LIMIT 1) UNION SELECT date_from, date_to FROM Project_Staff WHERE role_code = 'leader'</s>
{ "answer": "SELECT date_from, date_to FROM Project_Staff WHERE project_id IN (SELECT project_id FROM Project_Staff GROUP BY project_id ORDER BY COUNT(*) DESC LIMIT 1) UNION SELECT date_from, date_to FROM Project_Staff WHERE role_code = 'leader'", "context": "CREATE TABLE Project_Staff (date_from VARCHAR, date_to VARCHAR, project_id VARCHAR, role_code VARCHAR)", "question": "List from which date and to which date these staff work: project staff of the project which hires the most staffs" }
### QUESTION Find the organisation ids and details of the organisations which are involved in ### CONTEXT CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR) ### ANSWER SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000</s>
{ "answer": "SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000", "context": "CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)", "question": "Find the organisation ids and details of the organisations which are involved in" }
### QUESTION What is the organisation type and id of the organisation which has the most number of research staff? ### CONTEXT CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) ### ANSWER SELECT T1.organisation_type, T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.organisation_type, T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR)", "question": "What is the organisation type and id of the organisation which has the most number of research staff?" }
### QUESTION Which organisation type hires most research staff? ### CONTEXT CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) ### ANSWER SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR)", "question": "Which organisation type hires most research staff?" }
### QUESTION Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described ### CONTEXT CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, organisation_id VARCHAR, grant_amount VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR); CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR) ### ANSWER SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'</s>
{ "answer": "SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'", "context": "CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, organisation_id VARCHAR, grant_amount VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR); CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR)", "question": "Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described" }
### QUESTION What are the response received dates for the documents described as 'Regular' or granted with more than 100? ### CONTEXT CREATE TABLE Documents (response_received_date VARCHAR, document_type_code VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, grant_amount VARCHAR) ### ANSWER SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100</s>
{ "answer": "SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100", "context": "CREATE TABLE Documents (response_received_date VARCHAR, document_type_code VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, grant_amount VARCHAR)", "question": "What are the response received dates for the documents described as 'Regular' or granted with more than 100?" }
### QUESTION List the project details of the projects which did not hire any staff for a researcher role. ### CONTEXT CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR); CREATE TABLE Project_Staff (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR) ### ANSWER SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_Staff WHERE role_code = 'researcher')</s>
{ "answer": "SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_Staff WHERE role_code = 'researcher')", "context": "CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR); CREATE TABLE Project_Staff (project_details VARCHAR, project_id VARCHAR, role_code VARCHAR)", "question": "List the project details of the projects which did not hire any staff for a researcher role." }
### QUESTION What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes? ### CONTEXT CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Tasks (task_details VARCHAR, task_id VARCHAR, project_id VARCHAR) ### ANSWER SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING COUNT(*) > 2</s>
{ "answer": "SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'omnis' UNION SELECT T1.task_details, T1.task_id, T2.project_id FROM Tasks AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.project_id HAVING COUNT(*) > 2", "context": "CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Tasks (task_details VARCHAR, task_id VARCHAR, project_id VARCHAR)", "question": "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?" }
### QUESTION List the project details of the projects with the research outcome described with the substring 'Published'. ### CONTEXT CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR); CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### ANSWER SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'</s>
{ "answer": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id JOIN Research_outcomes AS T3 ON T2.outcome_code = T3.outcome_code WHERE T3.outcome_description LIKE '%Published%'", "context": "CREATE TABLE Research_outcomes (outcome_code VARCHAR, outcome_description VARCHAR); CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "question": "List the project details of the projects with the research outcome described with the substring 'Published'." }
### QUESTION Which project made the most number of outcomes? List the project details and the project id. ### CONTEXT CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### ANSWER SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.project_details, T1.project_id FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "question": "Which project made the most number of outcomes? List the project details and the project id." }
### QUESTION Which projects have no outcome? List the project details. ### CONTEXT CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### ANSWER SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes)</s>
{ "answer": "SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes)", "context": "CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "question": "Which projects have no outcome? List the project details." }
### QUESTION Which organisation hired the most number of research staff? List the organisation id, type and detail. ### CONTEXT CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR) ### ANSWER SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.organisation_id, T1.organisation_type, T1.organisation_details FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE Research_Staff (employer_organisation_id VARCHAR)", "question": "Which organisation hired the most number of research staff? List the organisation id, type and detail." }
### QUESTION Show the role description and the id of the project staff involved in most number of project outcomes? ### CONTEXT CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR) ### ANSWER SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR)", "question": "Show the role description and the id of the project staff involved in most number of project outcomes?" }
### QUESTION What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech? ### CONTEXT CREATE TABLE table_name_44 (byzantine_commander VARCHAR, result VARCHAR, battle VARCHAR) ### ANSWER SELECT byzantine_commander FROM table_name_44 WHERE result = "bulgarian victory" AND battle = "siege of lovech"</s>
{ "answer": "SELECT byzantine_commander FROM table_name_44 WHERE result = \"bulgarian victory\" AND battle = \"siege of lovech\"", "context": "CREATE TABLE table_name_44 (byzantine_commander VARCHAR, result VARCHAR, battle VARCHAR)", "question": "What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?" }
### QUESTION For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date. ### CONTEXT CREATE TABLE Grants (grant_start_date VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, document_type_code VARCHAR) ### ANSWER SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application'</s>
{ "answer": "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application'", "context": "CREATE TABLE Grants (grant_start_date VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, document_type_code VARCHAR)", "question": "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date." }
### QUESTION Which document type is described with the prefix 'Initial'? ### CONTEXT CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR) ### ANSWER SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'</s>
{ "answer": "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'", "context": "CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR)", "question": "Which document type is described with the prefix 'Initial'?" }
### QUESTION Find the organisation type description of the organisation detailed as 'quo'. ### CONTEXT CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE organisation_Types (organisation_type_description VARCHAR, organisation_type VARCHAR) ### ANSWER SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'</s>
{ "answer": "SELECT T1.organisation_type_description FROM organisation_Types AS T1 JOIN Organisations AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_details = 'quo'", "context": "CREATE TABLE Organisations (organisation_type VARCHAR, organisation_details VARCHAR); CREATE TABLE organisation_Types (organisation_type_description VARCHAR, organisation_type VARCHAR)", "question": "Find the organisation type description of the organisation detailed as 'quo'." }
### QUESTION What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order. ### CONTEXT CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR) ### ANSWER SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details</s>
{ "answer": "SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details", "context": "CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR)", "question": "What are all the details of the organisations described as 'Sponsor'? Sort the result in an ascending order." }
### QUESTION What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica? ### CONTEXT CREATE TABLE table_name_41 (bulgarian_commander VARCHAR, battle VARCHAR, date VARCHAR) ### ANSWER SELECT bulgarian_commander FROM table_name_41 WHERE battle = "battle of thessalonica" AND date = "autumn 1040"</s>
{ "answer": "SELECT bulgarian_commander FROM table_name_41 WHERE battle = \"battle of thessalonica\" AND date = \"autumn 1040\"", "context": "CREATE TABLE table_name_41 (bulgarian_commander VARCHAR, battle VARCHAR, date VARCHAR)", "question": "What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?" }
### QUESTION What are the result description of the project whose detail is 'sint'? ### CONTEXT CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR); CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR) ### ANSWER SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'</s>
{ "answer": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'", "context": "CREATE TABLE Project_outcomes (outcome_code VARCHAR, project_id VARCHAR); CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR)", "question": "What are the result description of the project whose detail is 'sint'?" }
### QUESTION List the organisation id with the maximum outcome count, and the count. ### CONTEXT CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR) ### ANSWER SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR)", "question": "List the organisation id with the maximum outcome count, and the count." }
### QUESTION List the project details of the projects launched by the organisation ### CONTEXT CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR) ### ANSWER SELECT project_details FROM Projects WHERE organisation_id IN (SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY COUNT(*) DESC LIMIT 1)</s>
{ "answer": "SELECT project_details FROM Projects WHERE organisation_id IN (SELECT organisation_id FROM Projects GROUP BY organisation_id ORDER BY COUNT(*) DESC LIMIT 1)", "context": "CREATE TABLE Projects (project_details VARCHAR, organisation_id VARCHAR)", "question": "List the project details of the projects launched by the organisation" }
### QUESTION Who was the writer for the episode with 2.15 million u.s.viewers? ### CONTEXT CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) ### ANSWER SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"</s>
{ "answer": "SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = \"2.15\"", "context": "CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)", "question": "Who was the writer for the episode with 2.15 million u.s.viewers?" }
### QUESTION What are the descriptions of all the project outcomes? ### CONTEXT CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR) ### ANSWER SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code</s>
{ "answer": "SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code", "context": "CREATE TABLE Research_outcomes (outcome_description VARCHAR, outcome_code VARCHAR); CREATE TABLE Project_outcomes (outcome_code VARCHAR)", "question": "What are the descriptions of all the project outcomes?" }
### QUESTION Who is the player with the pick# 80? ### CONTEXT CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR) ### ANSWER SELECT player FROM table_22402438_7 WHERE pick__number = 80</s>
{ "answer": "SELECT player FROM table_22402438_7 WHERE pick__number = 80", "context": "CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR)", "question": "Who is the player with the pick# 80?" }
### QUESTION How many friends does Dan have? ### CONTEXT CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) ### ANSWER SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'</s>
{ "answer": "SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'", "context": "CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR)", "question": "How many friends does Dan have?" }
### QUESTION How many production stage managers worked with secretary Rachel Hartmann? ### CONTEXT CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, secretary VARCHAR) ### ANSWER SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = "Rachel Hartmann"</s>
{ "answer": "SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = \"Rachel Hartmann\"", "context": "CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, secretary VARCHAR)", "question": "How many production stage managers worked with secretary Rachel Hartmann?" }
### QUESTION How many type of jobs do they have? ### CONTEXT CREATE TABLE Person (job VARCHAR) ### ANSWER SELECT COUNT(DISTINCT job) FROM Person</s>
{ "answer": "SELECT COUNT(DISTINCT job) FROM Person", "context": "CREATE TABLE Person (job VARCHAR)", "question": "How many type of jobs do they have?" }