text
stringlengths
146
1.06k
source
dict
### QUESTION List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. ### CONTEXT CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) ### ANSWER SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
{ "answer": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\"", "context": "CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)", "question": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS." }
### QUESTION List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS. ### CONTEXT CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) ### ANSWER SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
{ "answer": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\"", "context": "CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)", "question": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS." }
### QUESTION Which document has the most draft copies? List its document id and number of draft copies. ### CONTEXT CREATE TABLE Draft_Copies (document_id VARCHAR, copy_number VARCHAR) ### ANSWER SELECT document_id, COUNT(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY COUNT(copy_number) DESC LIMIT 1
{ "answer": "SELECT document_id, COUNT(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY COUNT(copy_number) DESC LIMIT 1", "context": "CREATE TABLE Draft_Copies (document_id VARCHAR, copy_number VARCHAR)", "question": "Which document has the most draft copies? List its document id and number of draft copies." }
### QUESTION List all employees in the circulation history of the document with id 1. List the employee's name. ### CONTEXT CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR) ### ANSWER SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1
{ "answer": "SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1", "context": "CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)", "question": "List all employees in the circulation history of the document with id 1. List the employee's name." }
### QUESTION List the employees who have not showed up in any circulation history of documents. List the employee's name. ### CONTEXT CREATE TABLE Circulation_History (employee_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR) ### ANSWER SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id
{ "answer": "SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id", "context": "CREATE TABLE Circulation_History (employee_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR)", "question": "List the employees who have not showed up in any circulation history of documents. List the employee's name." }
### QUESTION Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies. ### CONTEXT CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR) ### ANSWER SELECT Employees.employee_name, COUNT(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id, Circulation_History.draft_number, Circulation_History.copy_number ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT Employees.employee_name, COUNT(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id, Circulation_History.draft_number, Circulation_History.copy_number ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)", "question": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies." }
### QUESTION For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees. ### CONTEXT CREATE TABLE Circulation_History (document_id VARCHAR, employee_id VARCHAR) ### ANSWER SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id
{ "answer": "SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id", "context": "CREATE TABLE Circulation_History (document_id VARCHAR, employee_id VARCHAR)", "question": "For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees." }
### QUESTION Find the names of departments that are located in Houston. ### CONTEXT CREATE TABLE dept_locations (dnumber VARCHAR, dlocation VARCHAR); CREATE TABLE department (dname VARCHAR, dnumber VARCHAR) ### ANSWER SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston'
{ "answer": "SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston'", "context": "CREATE TABLE dept_locations (dnumber VARCHAR, dlocation VARCHAR); CREATE TABLE department (dname VARCHAR, dnumber VARCHAR)", "question": "Find the names of departments that are located in Houston." }
### QUESTION What is Japanese Release Date, when Australia Release Date is "2006-03-23"? ### CONTEXT CREATE TABLE table_name_34 (japanese_release_date VARCHAR, australia_release_date VARCHAR) ### ANSWER SELECT japanese_release_date FROM table_name_34 WHERE australia_release_date = "2006-03-23"
{ "answer": "SELECT japanese_release_date FROM table_name_34 WHERE australia_release_date = \"2006-03-23\"", "context": "CREATE TABLE table_name_34 (japanese_release_date VARCHAR, australia_release_date VARCHAR)", "question": "What is Japanese Release Date, when Australia Release Date is \"2006-03-23\"?" }
### QUESTION What county had 915 third party voters? ### CONTEXT CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR) ### ANSWER SELECT county FROM table_20278716_2 WHERE others__number = 915
{ "answer": "SELECT county FROM table_20278716_2 WHERE others__number = 915", "context": "CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR)", "question": "What county had 915 third party voters?" }
### QUESTION What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws? ### CONTEXT CREATE TABLE table_name_3 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR) ### ANSWER SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12
{ "answer": "SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12", "context": "CREATE TABLE table_name_3 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR)", "question": "What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?" }
### QUESTION what are the event details of the services that have the type code 'Marriage'? ### CONTEXT CREATE TABLE EVENTS (event_details VARCHAR, Service_ID VARCHAR); CREATE TABLE Services (Service_ID VARCHAR, Service_Type_Code VARCHAR) ### ANSWER SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'
{ "answer": "SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'", "context": "CREATE TABLE EVENTS (event_details VARCHAR, Service_ID VARCHAR); CREATE TABLE Services (Service_ID VARCHAR, Service_Type_Code VARCHAR)", "question": "what are the event details of the services that have the type code 'Marriage'?" }
### QUESTION How many events have each participants attended? List the participant id, type and the number. ### CONTEXT CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR) ### ANSWER SELECT T1.Participant_ID, T1.Participant_Type_Code, COUNT(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_ID
{ "answer": "SELECT T1.Participant_ID, T1.Participant_Type_Code, COUNT(*) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_ID", "context": "CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR)", "question": "How many events have each participants attended? List the participant id, type and the number." }
### QUESTION What's the lowest goal difference when the position is higher than 16? ### CONTEXT CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER) ### ANSWER SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16
{ "answer": "SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16", "context": "CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER)", "question": "What's the lowest goal difference when the position is higher than 16?" }
### QUESTION What are the ids and details of events that have more than one participants? ### CONTEXT CREATE TABLE EVENTS (event_id VARCHAR, event_details VARCHAR, Event_ID VARCHAR); CREATE TABLE Participants_in_Events (Event_ID VARCHAR) ### ANSWER SELECT T1.event_id, T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING COUNT(*) > 1
{ "answer": "SELECT T1.event_id, T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING COUNT(*) > 1", "context": "CREATE TABLE EVENTS (event_id VARCHAR, event_details VARCHAR, Event_ID VARCHAR); CREATE TABLE Participants_in_Events (Event_ID VARCHAR)", "question": "What are the ids and details of events that have more than one participants?" }
### QUESTION Name the standard yarn weight system for 9 wpi ### CONTEXT CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR) ### ANSWER SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "9 wpi"
{ "answer": "SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = \"9 wpi\"", "context": "CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR)", "question": "Name the standard yarn weight system for 9 wpi" }
### QUESTION What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley? ### CONTEXT CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR) ### ANSWER SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = "0" AND position = "mf" AND league_cup_apps = "0" AND name = "ben thornley"
{ "answer": "SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = \"0\" AND position = \"mf\" AND league_cup_apps = \"0\" AND name = \"ben thornley\"", "context": "CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR)", "question": "What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?" }
### QUESTION How many events had participants whose details had the substring 'Dr.' ### CONTEXT CREATE TABLE participants (Participant_ID VARCHAR, participant_details VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR) ### ANSWER SELECT COUNT(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'
{ "answer": "SELECT COUNT(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'", "context": "CREATE TABLE participants (Participant_ID VARCHAR, participant_details VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR)", "question": "How many events had participants whose details had the substring 'Dr.'" }
### QUESTION what is the 3-dart average of raymond van barneveld ### CONTEXT CREATE TABLE table_20301877_2 (player VARCHAR) ### ANSWER SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = "Raymond van Barneveld"
{ "answer": "SELECT 3 AS _dart_average FROM table_20301877_2 WHERE player = \"Raymond van Barneveld\"", "context": "CREATE TABLE table_20301877_2 (player VARCHAR)", "question": "what is the 3-dart average of raymond van barneveld" }
### QUESTION Which service id and type has the least number of participants? ### CONTEXT CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR) ### ANSWER SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1
{ "answer": "SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR)", "question": "Which service id and type has the least number of participants?" }
### QUESTION What is the most common participant type? ### CONTEXT CREATE TABLE participants (participant_type_code VARCHAR) ### ANSWER SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT participant_type_code FROM participants GROUP BY participant_type_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE participants (participant_type_code VARCHAR)", "question": "What is the most common participant type?" }
### QUESTION Which events id does not have any participant with detail 'Kenyatta Kuhn'? ### CONTEXT CREATE TABLE Participants (Participant_ID VARCHAR); CREATE TABLE EVENTS (event_id VARCHAR, Participant_Details VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR, Participant_ID VARCHAR) ### ANSWER SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'
{ "answer": "SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'", "context": "CREATE TABLE Participants (Participant_ID VARCHAR); CREATE TABLE EVENTS (event_id VARCHAR, Participant_Details VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR, Participant_ID VARCHAR)", "question": "Which events id does not have any participant with detail 'Kenyatta Kuhn'?" }
### QUESTION Which services type had both successful and failure event details? ### CONTEXT CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR); CREATE TABLE services (service_type_code VARCHAR, service_id VARCHAR) ### ANSWER SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'
{ "answer": "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'", "context": "CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR); CREATE TABLE services (service_type_code VARCHAR, service_id VARCHAR)", "question": "Which services type had both successful and failure event details?" }
### QUESTION How many events did not have any participants? ### CONTEXT CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)
{ "answer": "SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)", "context": "CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR)", "question": "How many events did not have any participants?" }
### QUESTION What's Trina Gulliver's high checkout? ### CONTEXT CREATE TABLE table_20351295_2 (high_checkout VARCHAR, player VARCHAR) ### ANSWER SELECT high_checkout FROM table_20351295_2 WHERE player = "Trina Gulliver"
{ "answer": "SELECT high_checkout FROM table_20351295_2 WHERE player = \"Trina Gulliver\"", "context": "CREATE TABLE table_20351295_2 (high_checkout VARCHAR, player VARCHAR)", "question": "What's Trina Gulliver's high checkout?" }
### QUESTION List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds? ### CONTEXT CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER) ### ANSWER SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000
{ "answer": "SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000", "context": "CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER)", "question": "List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?" }
### QUESTION Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds? ### CONTEXT CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER); CREATE TABLE drivers (driverid VARCHAR, nationality VARCHAR) ### ANSWER SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000
{ "answer": "SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000", "context": "CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER); CREATE TABLE drivers (driverid VARCHAR, nationality VARCHAR)", "question": "Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?" }
### QUESTION Name the sanskrit word and meaning for aquarius ### CONTEXT CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR) ### ANSWER SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"
{ "answer": "SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = \"Aquarius\"", "context": "CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)", "question": "Name the sanskrit word and meaning for aquarius" }
### QUESTION What is the id and family name of the driver who has the longest laptime? ### CONTEXT CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR) ### ANSWER SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1
{ "answer": "SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1", "context": "CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR)", "question": "What is the id and family name of the driver who has the longest laptime?" }
### QUESTION What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice? ### CONTEXT CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR) ### ANSWER SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2
{ "answer": "SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2", "context": "CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR)", "question": "What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?" }
### QUESTION Give me a list of names and years of races that had any driver whose forename is Lewis? ### CONTEXT CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (name VARCHAR, year VARCHAR, raceid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR) ### ANSWER SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis"
{ "answer": "SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = \"Lewis\"", "context": "CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (name VARCHAR, year VARCHAR, raceid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)", "question": "Give me a list of names and years of races that had any driver whose forename is Lewis?" }
### QUESTION Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix? ### CONTEXT CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR) ### ANSWER SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Chinese Grand Prix"
{ "answer": "SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "context": "CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR)", "question": "Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?" }
### QUESTION What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix? ### CONTEXT CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR) ### ANSWER SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Chinese Grand Prix"
{ "answer": "SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "context": "CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)", "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?" }
### QUESTION Find all the forenames of distinct drivers who was in position 1 as standing and won? ### CONTEXT CREATE TABLE driverstandings (driverid VARCHAR, position VARCHAR, wins VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR) ### ANSWER SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1
{ "answer": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1", "context": "CREATE TABLE driverstandings (driverid VARCHAR, position VARCHAR, wins VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR)", "question": "Find all the forenames of distinct drivers who was in position 1 as standing and won?" }
### QUESTION Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points? ### CONTEXT CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR); CREATE TABLE driverstandings (driverid VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) ### ANSWER SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20
{ "answer": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20", "context": "CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR); CREATE TABLE driverstandings (driverid VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)", "question": "Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?" }
### QUESTION What are the names of races that were held after 2017 and the circuits were in the country of Spain? ### CONTEXT CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR) ### ANSWER SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2017
{ "answer": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017", "context": "CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)", "question": "What are the names of races that were held after 2017 and the circuits were in the country of Spain?" }
### QUESTION Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected? ### CONTEXT CREATE TABLE table_name_45 (incumbent VARCHAR, district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR) ### ANSWER SELECT incumbent FROM table_name_45 WHERE party = "democratic" AND results = "re-elected" AND first_elected > 1992 AND district = "new york 1"
{ "answer": "SELECT incumbent FROM table_name_45 WHERE party = \"democratic\" AND results = \"re-elected\" AND first_elected > 1992 AND district = \"new york 1\"", "context": "CREATE TABLE table_name_45 (incumbent VARCHAR, district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR)", "question": "Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected?" }
### QUESTION Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841. ### CONTEXT CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR) ### ANSWER SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)
{ "answer": "SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)", "context": "CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)", "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841." }
### QUESTION What percent of the parliamentary election did the pensioners party receive ### CONTEXT CREATE TABLE table_203802_2 (english_party_name VARCHAR) ### ANSWER SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = "Pensioners Party"
{ "answer": "SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = \"Pensioners Party\"", "context": "CREATE TABLE table_203802_2 (english_party_name VARCHAR)", "question": "What percent of the parliamentary election did the pensioners party receive" }
### QUESTION Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841? ### CONTEXT CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR) ### ANSWER SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)
{ "answer": "SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)", "context": "CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)", "question": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?" }
### QUESTION How many parties are named the Center Alliance ### CONTEXT CREATE TABLE table_203802_2 (english_party_name VARCHAR) ### ANSWER SELECT COUNT(*) FROM table_203802_2 WHERE english_party_name = "Center Alliance"
{ "answer": "SELECT COUNT(*) FROM table_203802_2 WHERE english_party_name = \"Center Alliance\"", "context": "CREATE TABLE table_203802_2 (english_party_name VARCHAR)", "question": "How many parties are named the Center Alliance" }
### QUESTION What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results? ### CONTEXT CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR) ### ANSWER SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 8 UNION SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
{ "answer": "SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 8 UNION SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5", "context": "CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)", "question": "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?" }
### QUESTION What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results? ### CONTEXT CREATE TABLE drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR) ### ANSWER SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
{ "answer": "SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5", "context": "CREATE TABLE drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)", "question": "What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?" }
### QUESTION What is the id and last name of the driver who participated in the most races after 2010? ### CONTEXT CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR) ### ANSWER SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid WHERE T3.year > 2010 GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR, year INTEGER); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)", "question": "What is the id and last name of the driver who participated in the most races after 2010?" }
### QUESTION Which event has Toa Naketoatama as an opponent? ### CONTEXT CREATE TABLE table_name_92 (event VARCHAR, opponent VARCHAR) ### ANSWER SELECT event FROM table_name_92 WHERE opponent = "toa naketoatama"
{ "answer": "SELECT event FROM table_name_92 WHERE opponent = \"toa naketoatama\"", "context": "CREATE TABLE table_name_92 (event VARCHAR, opponent VARCHAR)", "question": "Which event has Toa Naketoatama as an opponent?" }
### QUESTION What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"? ### CONTEXT CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR) ### ANSWER SELECT date FROM table_name_22 WHERE opposing_teams = "south africa" AND venue = "vodacom park , bloemfontein"
{ "answer": "SELECT date FROM table_name_22 WHERE opposing_teams = \"south africa\" AND venue = \"vodacom park , bloemfontein\"", "context": "CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)", "question": "What is Date, when Opposing Teams is \"South Africa\", and when Venus is \"Vodacom Park , Bloemfontein\"?" }
### QUESTION Find the names of Japanese constructors that have once earned more than 5 points? ### CONTEXT CREATE TABLE constructorstandings (constructorid VARCHAR, points VARCHAR); CREATE TABLE constructors (name VARCHAR, constructorid VARCHAR, nationality VARCHAR) ### ANSWER SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 5
{ "answer": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5", "context": "CREATE TABLE constructorstandings (constructorid VARCHAR, points VARCHAR); CREATE TABLE constructors (name VARCHAR, constructorid VARCHAR, nationality VARCHAR)", "question": "Find the names of Japanese constructors that have once earned more than 5 points?" }
### QUESTION What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ? ### CONTEXT CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR) ### ANSWER SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
{ "answer": "SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "context": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR)", "question": "What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?" }
### QUESTION What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ? ### CONTEXT CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR) ### ANSWER SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
{ "answer": "SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"", "context": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR)", "question": "What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?" }
### QUESTION What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year? ### CONTEXT CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR) ### ANSWER SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
{ "answer": "SELECT MAX(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "context": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR)", "question": "What are the maximum fastest lap speed in races held after 2004 grouped by race name and ordered by year?" }
### QUESTION What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year? ### CONTEXT CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR) ### ANSWER SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
{ "answer": "SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year", "context": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR)", "question": "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?" }
### QUESTION Find the id, forename and number of races of all drivers who have at least participated in two races? ### CONTEXT CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR) ### ANSWER SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2
{ "answer": "SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2", "context": "CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)", "question": "Find the id, forename and number of races of all drivers who have at least participated in two races?" }
### QUESTION Which method was used when Rafael Cavalcante was the opponent? ### CONTEXT CREATE TABLE table_name_2 (method VARCHAR, opponent VARCHAR) ### ANSWER SELECT method FROM table_name_2 WHERE opponent = "rafael cavalcante"
{ "answer": "SELECT method FROM table_name_2 WHERE opponent = \"rafael cavalcante\"", "context": "CREATE TABLE table_name_2 (method VARCHAR, opponent VARCHAR)", "question": "Which method was used when Rafael Cavalcante was the opponent?" }
### QUESTION Find the id and surname of the driver who participated the most number of races? ### CONTEXT CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR) ### ANSWER SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)", "question": "Find the id and surname of the driver who participated the most number of races?" }
### QUESTION Find the driver id and number of races of all drivers who have at most participated in 30 races? ### CONTEXT CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (driverid VARCHAR) ### ANSWER SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30
{ "answer": "SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30", "context": "CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (driverid VARCHAR)", "question": "Find the driver id and number of races of all drivers who have at most participated in 30 races?" }
### QUESTION What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)? ### CONTEXT CREATE TABLE table_name_24 (smoke_point VARCHAR, polyunsaturated_fat VARCHAR) ### ANSWER SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = "69g (4g in high oleic variety)"
{ "answer": "SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = \"69g (4g in high oleic variety)\"", "context": "CREATE TABLE table_name_24 (smoke_point VARCHAR, polyunsaturated_fat VARCHAR)", "question": "What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)?" }
### QUESTION How many crops were damaged when the public property damage was 1,03,049.60? ### CONTEXT CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR) ### ANSWER SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
{ "answer": "SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = \"1,03,049.60\"", "context": "CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)", "question": "How many crops were damaged when the public property damage was 1,03,049.60?" }
### QUESTION Please show the team that has the most number of technicians. ### CONTEXT CREATE TABLE technician (Team VARCHAR) ### ANSWER SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE technician (Team VARCHAR)", "question": "Please show the team that has the most number of technicians." }
### QUESTION Show names of technicians and series of machines they are assigned to repair. ### CONTEXT CREATE TABLE machine (Machine_series VARCHAR, machine_id VARCHAR); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR) ### ANSWER SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID
{ "answer": "SELECT T3.Name, T2.Machine_series FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID", "context": "CREATE TABLE machine (Machine_series VARCHAR, machine_id VARCHAR); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)", "question": "Show names of technicians and series of machines they are assigned to repair." }
### QUESTION Show names of technicians in ascending order of quality rank of the machine they are assigned. ### CONTEXT CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE machine (machine_id VARCHAR, quality_rank VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR) ### ANSWER SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank
{ "answer": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID ORDER BY T2.quality_rank", "context": "CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE machine (machine_id VARCHAR, quality_rank VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)", "question": "Show names of technicians in ascending order of quality rank of the machine they are assigned." }
### QUESTION Show names of technicians who are assigned to repair machines with value point more than 70. ### CONTEXT CREATE TABLE machine (machine_id VARCHAR, value_points INTEGER); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR) ### ANSWER SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70
{ "answer": "SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70", "context": "CREATE TABLE machine (machine_id VARCHAR, value_points INTEGER); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)", "question": "Show names of technicians who are assigned to repair machines with value point more than 70." }
### QUESTION Show names of technicians and the number of machines they are assigned to repair. ### CONTEXT CREATE TABLE repair_assignment (technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR) ### ANSWER SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name
{ "answer": "SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name", "context": "CREATE TABLE repair_assignment (technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)", "question": "Show names of technicians and the number of machines they are assigned to repair." }
### QUESTION What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"? ### CONTEXT CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR) ### ANSWER SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = "honda cbr1000rr" AND rider = "jason pridmore"
{ "answer": "SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = \"honda cbr1000rr\" AND rider = \"jason pridmore\"", "context": "CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)", "question": "What is the average Grid, when Laps is less than 24, when Bike is \"Honda CBR1000RR\", and when Rider is \"Jason Pridmore\"?" }
### QUESTION List the names of technicians who have not been assigned to repair machines. ### CONTEXT CREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR) ### ANSWER SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)
{ "answer": "SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)", "context": "CREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR)", "question": "List the names of technicians who have not been assigned to repair machines." }
### QUESTION What is Phil Taylor's 3-dart average? ### CONTEXT CREATE TABLE table_20463779_22 (player VARCHAR) ### ANSWER SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = "Phil Taylor"
{ "answer": "SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = \"Phil Taylor\"", "context": "CREATE TABLE table_20463779_22 (player VARCHAR)", "question": "What is Phil Taylor's 3-dart average?" }
### QUESTION Which Share has a weekly Rank of 8 and is dated 15 June? ### CONTEXT CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR) ### ANSWER SELECT share FROM table_name_12 WHERE weekly_rank = "8" AND date = "15 june"
{ "answer": "SELECT share FROM table_name_12 WHERE weekly_rank = \"8\" AND date = \"15 june\"", "context": "CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR)", "question": "Which Share has a weekly Rank of 8 and is dated 15 June?" }
### QUESTION What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland? ### CONTEXT CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR) ### ANSWER SELECT MIN(against) FROM table_name_16 WHERE venue = "twickenham, london" AND status = "five nations" AND opposing_teams = "ireland"
{ "answer": "SELECT MIN(against) FROM table_name_16 WHERE venue = \"twickenham, london\" AND status = \"five nations\" AND opposing_teams = \"ireland\"", "context": "CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)", "question": "What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?" }
### QUESTION Name the guest 2 for colin murray 6 april ### CONTEXT CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR) ### ANSWER SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April"
{ "answer": "SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = \"Colin Murray\" AND date = \"6 April\"", "context": "CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR)", "question": "Name the guest 2 for colin murray 6 april" }
### QUESTION List the names of entrepreneurs and their companies in descending order of money requested? ### CONTEXT CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### ANSWER SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
{ "answer": "SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested", "context": "CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "question": "List the names of entrepreneurs and their companies in descending order of money requested?" }
### QUESTION What is the total kills of the perpetrators with height more than 1.84. ### CONTEXT CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR) ### ANSWER SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84
{ "answer": "SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84", "context": "CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR)", "question": "What is the total kills of the perpetrators with height more than 1.84." }
### QUESTION What are the names of perpetrators in country "China" or "Japan"? ### CONTEXT CREATE TABLE perpetrator (People_ID VARCHAR, Country VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### ANSWER SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = "China" OR T2.Country = "Japan"
{ "answer": "SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country = \"China\" OR T2.Country = \"Japan\"", "context": "CREATE TABLE perpetrator (People_ID VARCHAR, Country VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "question": "What are the names of perpetrators in country \"China\" or \"Japan\"?" }
### QUESTION What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? ### CONTEXT CREATE TABLE table_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR) ### ANSWER SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = "Unaffected" AND partial_thromboplastin_time = "Unaffected"
{ "answer": "SELECT platelet_count FROM table_20592988_1 WHERE prothrombin_time = \"Unaffected\" AND partial_thromboplastin_time = \"Unaffected\"", "context": "CREATE TABLE table_20592988_1 (platelet_count VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR)", "question": "What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? " }
### QUESTION What is Videoconferencing, when Synchronous Conferencing is "No", when Web Conferencing is "No", and when Faxing is "Yes"? ### CONTEXT CREATE TABLE table_name_24 (videoconferencing VARCHAR, faxing VARCHAR, synchronous_conferencing VARCHAR, web_conferencing VARCHAR) ### ANSWER SELECT videoconferencing FROM table_name_24 WHERE synchronous_conferencing = "no" AND web_conferencing = "no" AND faxing = "yes"
{ "answer": "SELECT videoconferencing FROM table_name_24 WHERE synchronous_conferencing = \"no\" AND web_conferencing = \"no\" AND faxing = \"yes\"", "context": "CREATE TABLE table_name_24 (videoconferencing VARCHAR, faxing VARCHAR, synchronous_conferencing VARCHAR, web_conferencing VARCHAR)", "question": "What is Videoconferencing, when Synchronous Conferencing is \"No\", when Web Conferencing is \"No\", and when Faxing is \"Yes\"?" }
### QUESTION What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? ### CONTEXT CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR) ### ANSWER SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = "Prolonged" AND partial_thromboplastin_time = "Unaffected"
{ "answer": "SELECT platelet_count FROM table_20592988_1 WHERE bleeding_time = \"Prolonged\" AND partial_thromboplastin_time = \"Unaffected\"", "context": "CREATE TABLE table_20592988_1 (platelet_count VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR)", "question": "What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? " }
### QUESTION Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco. ### CONTEXT CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR) ### ANSWER SELECT campus FROM campuses WHERE LOCATION = "Northridge" AND county = "Los Angeles" UNION SELECT campus FROM campuses WHERE LOCATION = "San Francisco" AND county = "San Francisco"
{ "answer": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", "context": "CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR)", "question": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco." }
### QUESTION What is the campus fee of "San Jose State University" in year 1996? ### CONTEXT CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR) ### ANSWER SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Jose State University" AND T2.year = 1996
{ "answer": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996", "context": "CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR)", "question": "What is the campus fee of \"San Jose State University\" in year 1996?" }
### QUESTION What is the campus fee of "San Francisco State University" in year 1996? ### CONTEXT CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR) ### ANSWER SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND T2.year = 1996
{ "answer": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND T2.year = 1996", "context": "CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR)", "question": "What is the campus fee of \"San Francisco State University\" in year 1996?" }
### QUESTION Which year has the most degrees conferred? ### CONTEXT CREATE TABLE degrees (YEAR VARCHAR, degrees INTEGER) ### ANSWER SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY SUM(degrees) DESC LIMIT 1
{ "answer": "SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY SUM(degrees) DESC LIMIT 1", "context": "CREATE TABLE degrees (YEAR VARCHAR, degrees INTEGER)", "question": "Which year has the most degrees conferred?" }
### QUESTION Who was the jockey in group 1 at the 1400m distance at randwick? ### CONTEXT CREATE TABLE table_20626467_1 (jockey VARCHAR, distance VARCHAR, class VARCHAR, venue VARCHAR) ### ANSWER SELECT jockey FROM table_20626467_1 WHERE class = "Group 1" AND venue = "Randwick" AND distance = "1400m"
{ "answer": "SELECT jockey FROM table_20626467_1 WHERE class = \"Group 1\" AND venue = \"Randwick\" AND distance = \"1400m\"", "context": "CREATE TABLE table_20626467_1 (jockey VARCHAR, distance VARCHAR, class VARCHAR, venue VARCHAR)", "question": "Who was the jockey in group 1 at the 1400m distance at randwick?" }
### QUESTION report the total number of degrees granted between 1998 and 2002. ### CONTEXT CREATE TABLE campuses (campus VARCHAR, id VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR) ### ANSWER SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus
{ "answer": "SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus", "context": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR)", "question": "report the total number of degrees granted between 1998 and 2002." }
### QUESTION For each Orange county campus, report the number of degrees granted after 2000. ### CONTEXT CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR) ### ANSWER SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = "Orange" AND T2.year >= 2000 GROUP BY T1.campus
{ "answer": "SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus", "context": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR)", "question": "For each Orange county campus, report the number of degrees granted after 2000." }
### QUESTION Find the names of the campus which has more faculties in 2002 than every campus in Orange county. ### CONTEXT CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR) ### ANSWER SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
{ "answer": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "context": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)", "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county." }
### QUESTION What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956? ### CONTEXT CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR) ### ANSWER SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200
{ "answer": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200", "context": "CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR)", "question": "What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?" }
### QUESTION What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8? ### CONTEXT CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR) ### ANSWER SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = "danish kaneria" AND average > 13.8
{ "answer": "SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = \"danish kaneria\" AND average > 13.8", "context": "CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR)", "question": "What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?" }
### QUESTION How many degrees were conferred in "San Jose State University" in 2000? ### CONTEXT CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR) ### ANSWER SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = "San Jose State University" AND t2.year = 2000
{ "answer": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND t2.year = 2000", "context": "CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR)", "question": "How many degrees were conferred in \"San Jose State University\" in 2000?" }
### QUESTION What are the degrees conferred in "San Francisco State University" in 2001. ### CONTEXT CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR) ### ANSWER SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND t2.year = 2001
{ "answer": "SELECT degrees FROM campuses AS T1 JOIN degrees AS T2 ON t1.id = t2.campus WHERE t1.campus = \"San Francisco State University\" AND t2.year = 2001", "context": "CREATE TABLE degrees (Id VARCHAR); CREATE TABLE campuses (Id VARCHAR)", "question": "What are the degrees conferred in \"San Francisco State University\" in 2001." }
### QUESTION List the campus that have between 600 and 1000 faculty lines in year 2004. ### CONTEXT CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (campus VARCHAR, faculty VARCHAR) ### ANSWER SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004
{ "answer": "SELECT T1.campus FROM campuses AS t1 JOIN faculty AS t2 ON t1.id = t2.campus WHERE t2.faculty >= 600 AND t2.faculty <= 1000 AND T1.year = 2004", "context": "CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (campus VARCHAR, faculty VARCHAR)", "question": "List the campus that have between 600 and 1000 faculty lines in year 2004." }
### QUESTION Who was the winning team on July 13? ### CONTEXT CREATE TABLE table_name_11 (winning_team VARCHAR, date VARCHAR) ### ANSWER SELECT winning_team FROM table_name_11 WHERE date = "july 13"
{ "answer": "SELECT winning_team FROM table_name_11 WHERE date = \"july 13\"", "context": "CREATE TABLE table_name_11 (winning_team VARCHAR, date VARCHAR)", "question": "Who was the winning team on July 13?" }
### QUESTION How many faculty lines are there in the university that conferred the least number of degrees in year 2001? ### CONTEXT CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR) ### ANSWER SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1
{ "answer": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1", "context": "CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR)", "question": "How many faculty lines are there in the university that conferred the least number of degrees in year 2001?" }
### QUESTION How many faculty lines are there in the university that conferred the most number of degrees in year 2002? ### CONTEXT CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR) ### ANSWER SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1
{ "answer": "SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2002 ORDER BY t3.degrees DESC LIMIT 1", "context": "CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR)", "question": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?" }
### QUESTION How many undergraduates are there in "San Jose State University" in year 2004? ### CONTEXT CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR) ### ANSWER SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University"
{ "answer": "SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"", "context": "CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)", "question": "How many undergraduates are there in \"San Jose State University\" in year 2004?" }
### QUESTION What is the number of graduates in "San Francisco State University" in year 2004? ### CONTEXT CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR) ### ANSWER SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Francisco State University"
{ "answer": "SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Francisco State University\"", "context": "CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)", "question": "What is the number of graduates in \"San Francisco State University\" in year 2004?" }
### QUESTION Find the campus fee of "San Jose State University" in year 2000. ### CONTEXT CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR) ### ANSWER SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Jose State University" AND t1.year = 2000
{ "answer": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000", "context": "CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR)", "question": "Find the campus fee of \"San Jose State University\" in year 2000." }
### QUESTION How many rounds did satrio hermanto go with an opc-challenge engine? ### CONTEXT CREATE TABLE table_name_84 (rounds VARCHAR, engine VARCHAR, driver VARCHAR) ### ANSWER SELECT rounds FROM table_name_84 WHERE engine = "opc-challenge" AND driver = "satrio hermanto"
{ "answer": "SELECT rounds FROM table_name_84 WHERE engine = \"opc-challenge\" AND driver = \"satrio hermanto\"", "context": "CREATE TABLE table_name_84 (rounds VARCHAR, engine VARCHAR, driver VARCHAR)", "question": "How many rounds did satrio hermanto go with an opc-challenge engine?" }
### QUESTION Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary? ### CONTEXT CREATE TABLE table_name_80 (year INTEGER, competition VARCHAR, venue VARCHAR) ### ANSWER SELECT SUM(year) FROM table_name_80 WHERE competition = "european indoor championships" AND venue = "budapest , hungary"
{ "answer": "SELECT SUM(year) FROM table_name_80 WHERE competition = \"european indoor championships\" AND venue = \"budapest , hungary\"", "context": "CREATE TABLE table_name_80 (year INTEGER, competition VARCHAR, venue VARCHAR)", "question": "Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary?" }
### QUESTION How many different total results are there for the model with parchment/black interior/roof? ### CONTEXT CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR) ### ANSWER SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = "Parchment/black"
{ "answer": "SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = \"Parchment/black\"", "context": "CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR)", "question": "How many different total results are there for the model with parchment/black interior/roof?" }
### QUESTION What c class engine did philipp eng and team hs technik motorsport use? ### CONTEXT CREATE TABLE table_name_2 (engine VARCHAR, driver VARCHAR, class VARCHAR, team VARCHAR) ### ANSWER SELECT engine FROM table_name_2 WHERE class = "c" AND team = "hs technik motorsport" AND driver = "philipp eng"
{ "answer": "SELECT engine FROM table_name_2 WHERE class = \"c\" AND team = \"hs technik motorsport\" AND driver = \"philipp eng\"", "context": "CREATE TABLE table_name_2 (engine VARCHAR, driver VARCHAR, class VARCHAR, team VARCHAR)", "question": "What c class engine did philipp eng and team hs technik motorsport use?" }
### QUESTION What is the city location of the tournament currently known as the Medibank International Sydney? ### CONTEXT CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR) ### ANSWER SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = "Medibank International Sydney"
{ "answer": "SELECT city_s_ FROM table_20630462_1 WHERE also_currently_known_as = \"Medibank International Sydney\"", "context": "CREATE TABLE table_20630462_1 (city_s_ VARCHAR, also_currently_known_as VARCHAR)", "question": "What is the city location of the tournament currently known as the Medibank International Sydney?" }
### QUESTION Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate. ### CONTEXT CREATE TABLE candidate (Support_rate VARCHAR, Consider_rate VARCHAR, Oppose_rate VARCHAR, unsure_rate VARCHAR) ### ANSWER SELECT Support_rate, Consider_rate, Oppose_rate FROM candidate ORDER BY unsure_rate
{ "answer": "SELECT Support_rate, Consider_rate, Oppose_rate FROM candidate ORDER BY unsure_rate", "context": "CREATE TABLE candidate (Support_rate VARCHAR, Consider_rate VARCHAR, Oppose_rate VARCHAR, unsure_rate VARCHAR)", "question": "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate." }
### QUESTION What is the chassis of rahel frey's volkswagen engine? ### CONTEXT CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR) ### ANSWER SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey"
{ "answer": "SELECT chassis FROM table_name_74 WHERE engine = \"volkswagen\" AND driver = \"rahel frey\"", "context": "CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR)", "question": "What is the chassis of rahel frey's volkswagen engine?" }