text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004? ### INPUT CREATE TABLE table_name_31 (tournament VARCHAR) ### OUTPUT SELECT tournament FROM table_name_31 WHERE 2008 = "a" AND 2005 = "q1" AND 2004 = "1r"
{ "input": "CREATE TABLE table_name_31 (tournament VARCHAR)", "instruction": "What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?", "output": "SELECT tournament FROM table_name_31 WHERE 2008 = \"a\" AND 2005 = \"q1\" AND 2004 = \"1r\"" }
### INSTRUCTION How many events have each participants attended? List the participant id, type and the number. ### INPUT CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR) ### OUTPUT 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
{ "input": "CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR)", "instruction": "How many events have each participants attended? List the participant id, type and the number.", "output": "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" }
### INSTRUCTION who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato? ### INPUT CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, free_practice_driver_s_ VARCHAR, chassis VARCHAR) ### OUTPUT SELECT constructor FROM table_name_42 WHERE free_practice_driver_s_ = "n/a" AND chassis = "005" AND driver = "takuma sato"
{ "input": "CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, free_practice_driver_s_ VARCHAR, chassis VARCHAR)", "instruction": "who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato?", "output": "SELECT constructor FROM table_name_42 WHERE free_practice_driver_s_ = \"n/a\" AND chassis = \"005\" AND driver = \"takuma sato\"" }
### INSTRUCTION Which building does the instructor who teaches the most number of courses live in? ### INPUT CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Building VARCHAR, FacID VARCHAR) ### OUTPUT SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Building VARCHAR, FacID VARCHAR)", "instruction": "Which building does the instructor who teaches the most number of courses live in?", "output": "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described ### INPUT 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) ### OUTPUT 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'
{ "input": "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)", "instruction": "Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described", "output": "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'" }
### INSTRUCTION Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines? ### INPUT CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR) ### OUTPUT SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = "Gionna Cabrera"
{ "input": "CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)", "instruction": "Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?", "output": "SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = \"Gionna Cabrera\"" }
### INSTRUCTION How many outputs are there for solid state, battery operated for portable use listed in notes? ### INPUT CREATE TABLE table_25276250_3 (outputs VARCHAR, notes VARCHAR) ### OUTPUT SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = "Solid state, battery operated for portable use"
{ "input": "CREATE TABLE table_25276250_3 (outputs VARCHAR, notes VARCHAR)", "instruction": "How many outputs are there for solid state, battery operated for portable use listed in notes?", "output": "SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = \"Solid state, battery operated for portable use\"" }
### INSTRUCTION How many total number of attendance were there when the game was held in Anaheim Stadium? ### INPUT CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = "Anaheim Stadium"
{ "input": "CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR)", "instruction": "How many total number of attendance were there when the game was held in Anaheim Stadium?", "output": "SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = \"Anaheim Stadium\"" }
### INSTRUCTION What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A? ### INPUT CREATE TABLE table_name_91 (total VARCHAR, name VARCHAR, serie_a VARCHAR, coppa_italia VARCHAR, champions_league VARCHAR) ### OUTPUT SELECT total FROM table_name_91 WHERE coppa_italia = 0 AND champions_league = 1 AND serie_a < 2 AND name = "mauro camoranesi"
{ "input": "CREATE TABLE table_name_91 (total VARCHAR, name VARCHAR, serie_a VARCHAR, coppa_italia VARCHAR, champions_league VARCHAR)", "instruction": "What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A?", "output": "SELECT total FROM table_name_91 WHERE coppa_italia = 0 AND champions_league = 1 AND serie_a < 2 AND name = \"mauro camoranesi\"" }
### INSTRUCTION How many districts does gary condit represent? ### INPUT CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT COUNT(district) FROM table_1341453_7 WHERE incumbent = "Gary Condit"
{ "input": "CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR)", "instruction": "How many districts does gary condit represent?", "output": "SELECT COUNT(district) FROM table_1341453_7 WHERE incumbent = \"Gary Condit\"" }
### INSTRUCTION How much in total does customer with first name as Carole and last name as Bernhard paid? ### INPUT CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Customer_Payments (amount_payment INTEGER, customer_id VARCHAR) ### OUTPUT SELECT SUM(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"
{ "input": "CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Customer_Payments (amount_payment INTEGER, customer_id VARCHAR)", "instruction": "How much in total does customer with first name as Carole and last name as Bernhard paid?", "output": "SELECT SUM(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"" }
### INSTRUCTION How much was the prize money for rwe-sporthalle, mülheim ? ### INPUT CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR) ### OUTPUT SELECT prize_fund FROM table_18828487_1 WHERE venue = "RWE-Sporthalle, Mülheim"
{ "input": "CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR)", "instruction": "How much was the prize money for rwe-sporthalle, mülheim ?", "output": "SELECT prize_fund FROM table_18828487_1 WHERE venue = \"RWE-Sporthalle, Mülheim\"" }
### INSTRUCTION If the national trophy/rookie is Gerrard Barrabeig, what is the name of the second? ### INPUT CREATE TABLE table_25563779_4 (second VARCHAR, national_trophy_rookie VARCHAR) ### OUTPUT SELECT second FROM table_25563779_4 WHERE national_trophy_rookie = "Gerrard Barrabeig"
{ "input": "CREATE TABLE table_25563779_4 (second VARCHAR, national_trophy_rookie VARCHAR)", "instruction": "If the national trophy/rookie is Gerrard Barrabeig, what is the name of the second?", "output": "SELECT second FROM table_25563779_4 WHERE national_trophy_rookie = \"Gerrard Barrabeig\"" }
### INSTRUCTION What is the name of the institution that "Matthias Blume" belongs to? ### INPUT CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR) ### OUTPUT SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume"
{ "input": "CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE inst (name VARCHAR, instid VARCHAR)", "instruction": "What is the name of the institution that \"Matthias Blume\" belongs to?", "output": "SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = \"Matthias\" AND t1.lname = \"Blume\"" }
### INSTRUCTION I want the director for heroes of the wild ### INPUT CREATE TABLE table_name_29 (director VARCHAR, serial_title VARCHAR) ### OUTPUT SELECT director FROM table_name_29 WHERE serial_title = "heroes of the wild"
{ "input": "CREATE TABLE table_name_29 (director VARCHAR, serial_title VARCHAR)", "instruction": "I want the director for heroes of the wild", "output": "SELECT director FROM table_name_29 WHERE serial_title = \"heroes of the wild\"" }
### INSTRUCTION Find the names of patients who are not using the medication of Procrastin-X. ### INPUT CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR); CREATE TABLE patient (name VARCHAR) ### OUTPUT SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'
{ "input": "CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR); CREATE TABLE patient (name VARCHAR)", "instruction": "Find the names of patients who are not using the medication of Procrastin-X.", "output": "SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'" }
### INSTRUCTION Show all paragraph ids and texts for the document with name 'Welcome to NY'. ### INPUT CREATE TABLE Documents (document_id VARCHAR, Document_Name VARCHAR); CREATE TABLE Paragraphs (paragraph_id VARCHAR, paragraph_text VARCHAR, document_id VARCHAR) ### OUTPUT SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'
{ "input": "CREATE TABLE Documents (document_id VARCHAR, Document_Name VARCHAR); CREATE TABLE Paragraphs (paragraph_id VARCHAR, paragraph_text VARCHAR, document_id VARCHAR)", "instruction": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "output": "SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'" }
### INSTRUCTION Show the type of school and the number of buses for each type. ### INPUT CREATE TABLE school (type VARCHAR, school_id VARCHAR); CREATE TABLE school_bus (school_id VARCHAR) ### OUTPUT SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type
{ "input": "CREATE TABLE school (type VARCHAR, school_id VARCHAR); CREATE TABLE school_bus (school_id VARCHAR)", "instruction": "Show the type of school and the number of buses for each type.", "output": "SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type" }
### INSTRUCTION What the rank of the Virgin Islands athlete with react under 0.168? ### INPUT CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR) ### OUTPUT SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = "virgin islands"
{ "input": "CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR)", "instruction": "What the rank of the Virgin Islands athlete with react under 0.168?", "output": "SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = \"virgin islands\"" }
### INSTRUCTION Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn? ### INPUT CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR) ### OUTPUT SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6
{ "input": "CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR)", "instruction": "Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?", "output": "SELECT MIN(drawn) FROM table_name_5 WHERE nationality = \"england\" AND matches < 510 AND lost = 4 AND win__percentage < 28.6" }
### INSTRUCTION What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996? ### INPUT CREATE TABLE table_name_10 (recopa_sudamericana_1996 VARCHAR, copa_conmebol_1996 VARCHAR, team VARCHAR) ### OUTPUT SELECT recopa_sudamericana_1996 FROM table_name_10 WHERE copa_conmebol_1996 = "did not qualify" AND team = "flamengo"
{ "input": "CREATE TABLE table_name_10 (recopa_sudamericana_1996 VARCHAR, copa_conmebol_1996 VARCHAR, team VARCHAR)", "instruction": "What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996?", "output": "SELECT recopa_sudamericana_1996 FROM table_name_10 WHERE copa_conmebol_1996 = \"did not qualify\" AND team = \"flamengo\"" }
### INSTRUCTION What is the highest round of a player from Sweden who plays right wing? ### INPUT CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR) ### OUTPUT SELECT MAX(round) FROM table_name_59 WHERE nationality = "sweden" AND position = "right wing"
{ "input": "CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR)", "instruction": "What is the highest round of a player from Sweden who plays right wing?", "output": "SELECT MAX(round) FROM table_name_59 WHERE nationality = \"sweden\" AND position = \"right wing\"" }
### INSTRUCTION Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2? ### INPUT CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR) ### OUTPUT SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–2"
{ "input": "CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)", "instruction": "Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?", "output": "SELECT tournament FROM table_name_95 WHERE outcome = \"runner-up\" AND surface = \"hard\" AND score = \"6–4, 6–2\"" }
### INSTRUCTION Show the names of people and the number of times they have been on the affirmative side of debates. ### INPUT CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate_people (Affirmative VARCHAR) ### OUTPUT SELECT T2.Name, COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name
{ "input": "CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate_people (Affirmative VARCHAR)", "instruction": "Show the names of people and the number of times they have been on the affirmative side of debates.", "output": "SELECT T2.Name, COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name" }
### INSTRUCTION What is the lowest Draft, when Nationality is "Canada", when Player is "Shane Doan Category:Articles with hCards", and when Round is less than 1? ### INPUT CREATE TABLE table_name_7 (draft INTEGER, round VARCHAR, nationality VARCHAR, player VARCHAR) ### OUTPUT SELECT MIN(draft) FROM table_name_7 WHERE nationality = "canada" AND player = "shane doan category:articles with hcards" AND round < 1
{ "input": "CREATE TABLE table_name_7 (draft INTEGER, round VARCHAR, nationality VARCHAR, player VARCHAR)", "instruction": "What is the lowest Draft, when Nationality is \"Canada\", when Player is \"Shane Doan Category:Articles with hCards\", and when Round is less than 1?", "output": "SELECT MIN(draft) FROM table_name_7 WHERE nationality = \"canada\" AND player = \"shane doan category:articles with hcards\" AND round < 1" }
### INSTRUCTION Who was the away team at Arden Street Oval? ### INPUT CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team FROM table_name_20 WHERE venue = "arden street oval"
{ "input": "CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR)", "instruction": "Who was the away team at Arden Street Oval?", "output": "SELECT away_team FROM table_name_20 WHERE venue = \"arden street oval\"" }
### INSTRUCTION When was Mushfiqur Rahim's test career? ### INPUT CREATE TABLE table_name_98 (test_career VARCHAR, player VARCHAR) ### OUTPUT SELECT test_career FROM table_name_98 WHERE player = "mushfiqur rahim"
{ "input": "CREATE TABLE table_name_98 (test_career VARCHAR, player VARCHAR)", "instruction": "When was Mushfiqur Rahim's test career?", "output": "SELECT test_career FROM table_name_98 WHERE player = \"mushfiqur rahim\"" }
### INSTRUCTION What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38? ### INPUT CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR) ### OUTPUT SELECT 1985 FROM table_30133_3 WHERE gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ = "369.38"
{ "input": "CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)", "instruction": "What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?", "output": "SELECT 1985 FROM table_30133_3 WHERE gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ = \"369.38\"" }
### INSTRUCTION What are the name and id of the team with the most victories in 2008 postseason? ### INPUT CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) ### OUTPUT SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)", "instruction": "What are the name and id of the team with the most victories in 2008 postseason?", "output": "SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30? ### INPUT CREATE TABLE table_name_64 (season INTEGER, venue VARCHAR, drivers VARCHAR) ### OUTPUT SELECT AVG(season) FROM table_name_64 WHERE venue = "circuit de nevers magny-cours" AND drivers > 30
{ "input": "CREATE TABLE table_name_64 (season INTEGER, venue VARCHAR, drivers VARCHAR)", "instruction": "What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?", "output": "SELECT AVG(season) FROM table_name_64 WHERE venue = \"circuit de nevers magny-cours\" AND drivers > 30" }
### INSTRUCTION What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995? ### INPUT CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) ### OUTPUT SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995
{ "input": "CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)", "instruction": "What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?", "output": "SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995" }
### INSTRUCTION What is the High rebounds with a Series with 4–2? ### INPUT CREATE TABLE table_name_13 (high_rebounds VARCHAR, series VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_name_13 WHERE series = "4–2"
{ "input": "CREATE TABLE table_name_13 (high_rebounds VARCHAR, series VARCHAR)", "instruction": "What is the High rebounds with a Series with 4–2?", "output": "SELECT high_rebounds FROM table_name_13 WHERE series = \"4–2\"" }
### INSTRUCTION What is the starting weight if weight lost is 54.6? ### INPUT CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR) ### OUTPUT SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = "54.6"
{ "input": "CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)", "instruction": "What is the starting weight if weight lost is 54.6?", "output": "SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = \"54.6\"" }
### INSTRUCTION Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137? ### INPUT CREATE TABLE table_name_65 (week INTEGER, opponent VARCHAR, attendance VARCHAR) ### OUTPUT SELECT AVG(week) FROM table_name_65 WHERE opponent = "baltimore colts" AND attendance < 55 OFFSET 137
{ "input": "CREATE TABLE table_name_65 (week INTEGER, opponent VARCHAR, attendance VARCHAR)", "instruction": "Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?", "output": "SELECT AVG(week) FROM table_name_65 WHERE opponent = \"baltimore colts\" AND attendance < 55 OFFSET 137" }
### INSTRUCTION In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000? ### INPUT CREATE TABLE table_name_60 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) ### OUTPUT SELECT city_of_license FROM table_name_60 WHERE frequency_mhz = 102.3 AND erp_w < 1 OFFSET 000
{ "input": "CREATE TABLE table_name_60 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)", "instruction": "In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000?", "output": "SELECT city_of_license FROM table_name_60 WHERE frequency_mhz = 102.3 AND erp_w < 1 OFFSET 000" }
### INSTRUCTION What is varricchio's status? ### INPUT CREATE TABLE table_name_75 (status VARCHAR, authors VARCHAR) ### OUTPUT SELECT status FROM table_name_75 WHERE authors = "varricchio"
{ "input": "CREATE TABLE table_name_75 (status VARCHAR, authors VARCHAR)", "instruction": "What is varricchio's status?", "output": "SELECT status FROM table_name_75 WHERE authors = \"varricchio\"" }
### INSTRUCTION List the first and last name of the students who do not have any food type allergy. ### INPUT CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR) ### OUTPUT SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
{ "input": "CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)", "instruction": "List the first and last name of the students who do not have any food type allergy.", "output": "SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")" }
### INSTRUCTION What is the name of the person whose country is West Indies. ### INPUT CREATE TABLE table_name_53 (name VARCHAR, country VARCHAR) ### OUTPUT SELECT name FROM table_name_53 WHERE country = "west indies"
{ "input": "CREATE TABLE table_name_53 (name VARCHAR, country VARCHAR)", "instruction": "What is the name of the person whose country is West Indies.", "output": "SELECT name FROM table_name_53 WHERE country = \"west indies\"" }
### INSTRUCTION How many previous years did Maebashi Ikuei high school have a total number of 1 participation? ### INPUT CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, total_number_of_participation VARCHAR, high_school_name VARCHAR) ### OUTPUT SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = "Maebashi Ikuei"
{ "input": "CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, total_number_of_participation VARCHAR, high_school_name VARCHAR)", "instruction": "How many previous years did Maebashi Ikuei high school have a total number of 1 participation?", "output": "SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = \"Maebashi Ikuei\"" }
### INSTRUCTION When north melbourne played as the home team, what was the away team score? ### INPUT CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_7 WHERE home_team = "north melbourne"
{ "input": "CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)", "instruction": "When north melbourne played as the home team, what was the away team score?", "output": "SELECT away_team AS score FROM table_name_7 WHERE home_team = \"north melbourne\"" }
### INSTRUCTION What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category? ### INPUT CREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR) ### OUTPUT SELECT year FROM table_name_80 WHERE film = "bullets over broadway" AND category = "best supporting actress" AND actor = "jennifer tilly"
{ "input": "CREATE TABLE table_name_80 (year VARCHAR, actor VARCHAR, film VARCHAR, category VARCHAR)", "instruction": "What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?", "output": "SELECT year FROM table_name_80 WHERE film = \"bullets over broadway\" AND category = \"best supporting actress\" AND actor = \"jennifer tilly\"" }
### INSTRUCTION What is the positions of Damon Jones? ### INPUT CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR) ### OUTPUT SELECT position FROM table_name_87 WHERE player = "damon jones"
{ "input": "CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR)", "instruction": "What is the positions of Damon Jones?", "output": "SELECT position FROM table_name_87 WHERE player = \"damon jones\"" }
### INSTRUCTION What was the score at Spartan Stadium when San Jose was the Home team? ### INPUT CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT score FROM table_name_18 WHERE home_team = "san jose" AND venue = "spartan stadium"
{ "input": "CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR, venue VARCHAR)", "instruction": "What was the score at Spartan Stadium when San Jose was the Home team?", "output": "SELECT score FROM table_name_18 WHERE home_team = \"san jose\" AND venue = \"spartan stadium\"" }
### INSTRUCTION What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY? ### INPUT CREATE TABLE table_name_63 (state VARCHAR, talent VARCHAR, hometown VARCHAR) ### OUTPUT SELECT state FROM table_name_63 WHERE talent = "classical piano" AND hometown = "lancaster, ny"
{ "input": "CREATE TABLE table_name_63 (state VARCHAR, talent VARCHAR, hometown VARCHAR)", "instruction": "What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?", "output": "SELECT state FROM table_name_63 WHERE talent = \"classical piano\" AND hometown = \"lancaster, ny\"" }
### INSTRUCTION What is the Winning Team with Rick Mears' and Kraco Twin 125 (R1)? ### INPUT CREATE TABLE table_name_80 (winning_team VARCHAR, winning_driver VARCHAR, name VARCHAR) ### OUTPUT SELECT winning_team FROM table_name_80 WHERE winning_driver = "rick mears" AND name = "kraco twin 125 (r1)"
{ "input": "CREATE TABLE table_name_80 (winning_team VARCHAR, winning_driver VARCHAR, name VARCHAR)", "instruction": "What is the Winning Team with Rick Mears' and Kraco Twin 125 (R1)?", "output": "SELECT winning_team FROM table_name_80 WHERE winning_driver = \"rick mears\" AND name = \"kraco twin 125 (r1)\"" }
### INSTRUCTION Which International tourism expenditure (2012) has an International tourism expenditure (2011) of $33.3 billion? ### INPUT CREATE TABLE table_name_65 (international_tourism_expenditure__2012_ VARCHAR, international_tourism_expenditure__2011_ VARCHAR) ### OUTPUT SELECT international_tourism_expenditure__2012_ FROM table_name_65 WHERE international_tourism_expenditure__2011_ = "$33.3 billion"
{ "input": "CREATE TABLE table_name_65 (international_tourism_expenditure__2012_ VARCHAR, international_tourism_expenditure__2011_ VARCHAR)", "instruction": "Which International tourism expenditure (2012) has an International tourism expenditure (2011) of $33.3 billion?", "output": "SELECT international_tourism_expenditure__2012_ FROM table_name_65 WHERE international_tourism_expenditure__2011_ = \"$33.3 billion\"" }
### INSTRUCTION What are the full name (first and last name) and salary for all employees who does not have any value for commission? ### INPUT CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR) ### OUTPUT SELECT first_name, last_name, salary FROM employees WHERE commission_pct = "null"
{ "input": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR)", "instruction": "What are the full name (first and last name) and salary for all employees who does not have any value for commission?", "output": "SELECT first_name, last_name, salary FROM employees WHERE commission_pct = \"null\"" }
### INSTRUCTION How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema? ### INPUT CREATE TABLE table_name_94 (year VARCHAR, title VARCHAR, producer VARCHAR, director VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_94 WHERE producer = "star cinema" AND director = "rory quintos" AND title = "kay tagal kang hinintay"
{ "input": "CREATE TABLE table_name_94 (year VARCHAR, title VARCHAR, producer VARCHAR, director VARCHAR)", "instruction": "How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema?", "output": "SELECT COUNT(year) FROM table_name_94 WHERE producer = \"star cinema\" AND director = \"rory quintos\" AND title = \"kay tagal kang hinintay\"" }
### INSTRUCTION Name the gdp per capita for world rank being 131 ### INPUT CREATE TABLE table_2249029_1 (gdp_per_capita VARCHAR, gdp_world_rank VARCHAR) ### OUTPUT SELECT gdp_per_capita FROM table_2249029_1 WHERE gdp_world_rank = "131"
{ "input": "CREATE TABLE table_2249029_1 (gdp_per_capita VARCHAR, gdp_world_rank VARCHAR)", "instruction": "Name the gdp per capita for world rank being 131", "output": "SELECT gdp_per_capita FROM table_2249029_1 WHERE gdp_world_rank = \"131\"" }
### INSTRUCTION Who's the player with 2:05.63 (1296 pts) swimming score? ### INPUT CREATE TABLE table_12407546_1 (athlete__noc_ VARCHAR, swimming VARCHAR) ### OUTPUT SELECT athlete__noc_ FROM table_12407546_1 WHERE swimming = "2:05.63 (1296 pts)"
{ "input": "CREATE TABLE table_12407546_1 (athlete__noc_ VARCHAR, swimming VARCHAR)", "instruction": "Who's the player with 2:05.63 (1296 pts) swimming score?", "output": "SELECT athlete__noc_ FROM table_12407546_1 WHERE swimming = \"2:05.63 (1296 pts)\"" }
### INSTRUCTION What is the score of the Boston Bruins game from April 11? ### INPUT CREATE TABLE table_name_39 (score VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_39 WHERE home = "boston bruins" AND date = "april 11"
{ "input": "CREATE TABLE table_name_39 (score VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "What is the score of the Boston Bruins game from April 11?", "output": "SELECT score FROM table_name_39 WHERE home = \"boston bruins\" AND date = \"april 11\"" }
### INSTRUCTION Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984? ### INPUT CREATE TABLE table_name_8 (new_returning_same_network VARCHAR, retitled_as_same VARCHAR, last_aired VARCHAR) ### OUTPUT SELECT new_returning_same_network FROM table_name_8 WHERE retitled_as_same = "same" AND last_aired > 1984
{ "input": "CREATE TABLE table_name_8 (new_returning_same_network VARCHAR, retitled_as_same VARCHAR, last_aired VARCHAR)", "instruction": "Which New/Returning/Same Network has a Retitled as/Same of same, and a Last Aired larger than 1984?", "output": "SELECT new_returning_same_network FROM table_name_8 WHERE retitled_as_same = \"same\" AND last_aired > 1984" }
### INSTRUCTION who is the candidate where district is louisiana 3? ### INPUT CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) ### OUTPUT SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 3"
{ "input": "CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR)", "instruction": "who is the candidate where district is louisiana 3?", "output": "SELECT candidates FROM table_1342198_18 WHERE district = \"Louisiana 3\"" }
### INSTRUCTION Say the frequency of 1290 khz ### INPUT CREATE TABLE table_name_31 (format VARCHAR, frequency VARCHAR) ### OUTPUT SELECT format FROM table_name_31 WHERE frequency = "1290 khz"
{ "input": "CREATE TABLE table_name_31 (format VARCHAR, frequency VARCHAR)", "instruction": "Say the frequency of 1290 khz", "output": "SELECT format FROM table_name_31 WHERE frequency = \"1290 khz\"" }
### INSTRUCTION What was the final episode credited of 187? ### INPUT CREATE TABLE table_name_72 (final_episode VARCHAR, episodes_credited VARCHAR) ### OUTPUT SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187
{ "input": "CREATE TABLE table_name_72 (final_episode VARCHAR, episodes_credited VARCHAR)", "instruction": "What was the final episode credited of 187?", "output": "SELECT final_episode FROM table_name_72 WHERE episodes_credited = 187" }
### INSTRUCTION Which Crowd has a Away team of sydney? ### INPUT CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR) ### OUTPUT SELECT MAX(crowd) FROM table_name_85 WHERE away_team = "sydney"
{ "input": "CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR)", "instruction": "Which Crowd has a Away team of sydney?", "output": "SELECT MAX(crowd) FROM table_name_85 WHERE away_team = \"sydney\"" }
### INSTRUCTION When was the finale played when the show premiered on September 24, 2002? ### INPUT CREATE TABLE table_name_62 (finale VARCHAR, premiere VARCHAR) ### OUTPUT SELECT finale FROM table_name_62 WHERE premiere = "september 24, 2002"
{ "input": "CREATE TABLE table_name_62 (finale VARCHAR, premiere VARCHAR)", "instruction": "When was the finale played when the show premiered on September 24, 2002?", "output": "SELECT finale FROM table_name_62 WHERE premiere = \"september 24, 2002\"" }
### INSTRUCTION what is the largest city where the province is eastern cape? ### INPUT CREATE TABLE table_17416221_1 (largest_city VARCHAR, province VARCHAR) ### OUTPUT SELECT largest_city FROM table_17416221_1 WHERE province = "Eastern Cape"
{ "input": "CREATE TABLE table_17416221_1 (largest_city VARCHAR, province VARCHAR)", "instruction": "what is the largest city where the province is eastern cape?", "output": "SELECT largest_city FROM table_17416221_1 WHERE province = \"Eastern Cape\"" }
### INSTRUCTION What is the total number of national titles for the team with doane tigers as the mascot? ### INPUT CREATE TABLE table_name_2 (national_titles VARCHAR, mascot VARCHAR) ### OUTPUT SELECT COUNT(national_titles) FROM table_name_2 WHERE mascot = "doane tigers"
{ "input": "CREATE TABLE table_name_2 (national_titles VARCHAR, mascot VARCHAR)", "instruction": "What is the total number of national titles for the team with doane tigers as the mascot?", "output": "SELECT COUNT(national_titles) FROM table_name_2 WHERE mascot = \"doane tigers\"" }
### INSTRUCTION How many faculty members have 20 years of experience? ### INPUT CREATE TABLE table_17384764_1 (designation VARCHAR, experience VARCHAR) ### OUTPUT SELECT COUNT(designation) FROM table_17384764_1 WHERE experience = "20 years"
{ "input": "CREATE TABLE table_17384764_1 (designation VARCHAR, experience VARCHAR)", "instruction": "How many faculty members have 20 years of experience? ", "output": "SELECT COUNT(designation) FROM table_17384764_1 WHERE experience = \"20 years\"" }
### INSTRUCTION How many division titles does the team with 23 playoff appearances and more than 1 conference titles have? ### INPUT CREATE TABLE table_name_87 (division_titles INTEGER, playoff_appearances VARCHAR, conference_titles VARCHAR) ### OUTPUT SELECT SUM(division_titles) FROM table_name_87 WHERE playoff_appearances = 23 AND conference_titles > 1
{ "input": "CREATE TABLE table_name_87 (division_titles INTEGER, playoff_appearances VARCHAR, conference_titles VARCHAR)", "instruction": "How many division titles does the team with 23 playoff appearances and more than 1 conference titles have?", "output": "SELECT SUM(division_titles) FROM table_name_87 WHERE playoff_appearances = 23 AND conference_titles > 1" }
### INSTRUCTION What is the number in the season that Marlene Meyer wrote and 20.49 million people watched? ### INPUT CREATE TABLE table_10718984_2 (no_in_season INTEGER, written_by VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT MAX(no_in_season) FROM table_10718984_2 WHERE written_by = "Marlene Meyer" AND us_viewers__millions_ = "20.49"
{ "input": "CREATE TABLE table_10718984_2 (no_in_season INTEGER, written_by VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?", "output": "SELECT MAX(no_in_season) FROM table_10718984_2 WHERE written_by = \"Marlene Meyer\" AND us_viewers__millions_ = \"20.49\"" }
### INSTRUCTION What are the names of perpetrators in country "China" or "Japan"? ### INPUT CREATE TABLE perpetrator (People_ID VARCHAR, Country VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### OUTPUT 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"
{ "input": "CREATE TABLE perpetrator (People_ID VARCHAR, Country VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "instruction": "What are the names of perpetrators in country \"China\" or \"Japan\"?", "output": "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\"" }
### INSTRUCTION What Golden point(s) scorer has the Away Sydney Roosters and Home Cronulla Sharks? ### INPUT CREATE TABLE table_name_53 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR) ### OUTPUT SELECT golden_point_s__scorer FROM table_name_53 WHERE away = "sydney roosters" AND home = "cronulla sharks"
{ "input": "CREATE TABLE table_name_53 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)", "instruction": "What Golden point(s) scorer has the Away Sydney Roosters and Home Cronulla Sharks?", "output": "SELECT golden_point_s__scorer FROM table_name_53 WHERE away = \"sydney roosters\" AND home = \"cronulla sharks\"" }
### INSTRUCTION Who is the opponent for the winner outcome on a hard surface on August 27, 2011? ### INPUT CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) ### OUTPUT SELECT opponent FROM table_name_6 WHERE outcome = "winner" AND surface = "hard" AND date = "august 27, 2011"
{ "input": "CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)", "instruction": "Who is the opponent for the winner outcome on a hard surface on August 27, 2011?", "output": "SELECT opponent FROM table_name_6 WHERE outcome = \"winner\" AND surface = \"hard\" AND date = \"august 27, 2011\"" }
### INSTRUCTION What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000? ### INPUT CREATE TABLE table_name_66 (total_orphans__total_ INTEGER, total_orphans__aids_related_ VARCHAR, maternal__total_ VARCHAR) ### OUTPUT SELECT MIN(total_orphans__total_) FROM table_name_66 WHERE total_orphans__aids_related_ = "< 100" AND maternal__total_ < 31 OFFSET 000
{ "input": "CREATE TABLE table_name_66 (total_orphans__total_ INTEGER, total_orphans__aids_related_ VARCHAR, maternal__total_ VARCHAR)", "instruction": "What is the Total Orphans number when the number of Total Orphans (AIDS Related) is < 100, and the Maternal (Total) is smaller than 31,000?", "output": "SELECT MIN(total_orphans__total_) FROM table_name_66 WHERE total_orphans__aids_related_ = \"< 100\" AND maternal__total_ < 31 OFFSET 000" }
### INSTRUCTION Name the date for loss of ruffin (3-5) ### INPUT CREATE TABLE table_name_44 (date VARCHAR, loss VARCHAR) ### OUTPUT SELECT date FROM table_name_44 WHERE loss = "ruffin (3-5)"
{ "input": "CREATE TABLE table_name_44 (date VARCHAR, loss VARCHAR)", "instruction": "Name the date for loss of ruffin (3-5)", "output": "SELECT date FROM table_name_44 WHERE loss = \"ruffin (3-5)\"" }
### INSTRUCTION What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters? ### INPUT CREATE TABLE table_name_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR) ### OUTPUT SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = "baltimore county" AND district = "06.0 6" AND committee = "economic matters"
{ "input": "CREATE TABLE table_name_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)", "instruction": "What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?", "output": "SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = \"baltimore county\" AND district = \"06.0 6\" AND committee = \"economic matters\"" }
### INSTRUCTION What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games? ### INPUT CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games"
{ "input": "CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR)", "instruction": "What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?", "output": "SELECT SUM(year) FROM table_name_68 WHERE position = \"6th\" AND competition = \"commonwealth games\"" }
### INSTRUCTION Dakota Mission of t, and a Deloria & Boas of tʽ, and a Ullrich of tȟ had what white hat? ### INPUT CREATE TABLE table_name_98 (white_hat VARCHAR, ullrich VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR) ### OUTPUT SELECT white_hat FROM table_name_98 WHERE dakota_mission = "t" AND deloria_ & _boas = "tʽ" AND ullrich = "tȟ"
{ "input": "CREATE TABLE table_name_98 (white_hat VARCHAR, ullrich VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR)", "instruction": "Dakota Mission of t, and a Deloria & Boas of tʽ, and a Ullrich of tȟ had what white hat?", "output": "SELECT white_hat FROM table_name_98 WHERE dakota_mission = \"t\" AND deloria_ & _boas = \"tʽ\" AND ullrich = \"tȟ\"" }
### INSTRUCTION How many documents were shipped by USPS? ### INPUT CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
{ "input": "CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR)", "instruction": "How many documents were shipped by USPS?", "output": "SELECT COUNT(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\"" }
### INSTRUCTION Where was the California bowl played with 30,000 attending? ### INPUT CREATE TABLE table_name_19 (location VARCHAR, bowl VARCHAR, attendance VARCHAR) ### OUTPUT SELECT location FROM table_name_19 WHERE bowl = "california bowl" AND attendance = "30,000"
{ "input": "CREATE TABLE table_name_19 (location VARCHAR, bowl VARCHAR, attendance VARCHAR)", "instruction": "Where was the California bowl played with 30,000 attending?", "output": "SELECT location FROM table_name_19 WHERE bowl = \"california bowl\" AND attendance = \"30,000\"" }
### INSTRUCTION Who was the previous champion of the title won on July 7, 2010? ### INPUT CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR) ### OUTPUT SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
{ "input": "CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)", "instruction": "Who was the previous champion of the title won on July 7, 2010?", "output": "SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = \"july 7, 2010\"" }
### INSTRUCTION Show all branch names with the number of members in each branch registered after 2015. ### INPUT CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year INTEGER) ### OUTPUT SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id
{ "input": "CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year INTEGER)", "instruction": "Show all branch names with the number of members in each branch registered after 2015.", "output": "SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id" }
### INSTRUCTION Which character was in the sexiest female category of the British Soap Awards? ### INPUT CREATE TABLE table_name_59 (character VARCHAR, category VARCHAR, award VARCHAR) ### OUTPUT SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards"
{ "input": "CREATE TABLE table_name_59 (character VARCHAR, category VARCHAR, award VARCHAR)", "instruction": "Which character was in the sexiest female category of the British Soap Awards?", "output": "SELECT character FROM table_name_59 WHERE category = \"sexiest female\" AND award = \"british soap awards\"" }
### INSTRUCTION What is the tournament with a clay surface and sofia shapatava as the opponent? ### INPUT CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR) ### OUTPUT SELECT tournament FROM table_name_54 WHERE surface = "clay" AND opponent = "sofia shapatava"
{ "input": "CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)", "instruction": "What is the tournament with a clay surface and sofia shapatava as the opponent?", "output": "SELECT tournament FROM table_name_54 WHERE surface = \"clay\" AND opponent = \"sofia shapatava\"" }
### INSTRUCTION Which current venues location is Mason, Ohio? ### INPUT CREATE TABLE table_14903081_1 (current_venue VARCHAR, location VARCHAR) ### OUTPUT SELECT current_venue FROM table_14903081_1 WHERE location = "Mason, Ohio"
{ "input": "CREATE TABLE table_14903081_1 (current_venue VARCHAR, location VARCHAR)", "instruction": "Which current venues location is Mason, Ohio?", "output": "SELECT current_venue FROM table_14903081_1 WHERE location = \"Mason, Ohio\"" }
### INSTRUCTION Tell me the 2nd leg for alemannia aachen ### INPUT CREATE TABLE table_name_61 (team__number1 VARCHAR) ### OUTPUT SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = "alemannia aachen"
{ "input": "CREATE TABLE table_name_61 (team__number1 VARCHAR)", "instruction": "Tell me the 2nd leg for alemannia aachen", "output": "SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = \"alemannia aachen\"" }
### INSTRUCTION Record of 8–1, and a Week larger than 9 had what highest attendance? ### INPUT CREATE TABLE table_name_18 (attendance INTEGER, record VARCHAR, week VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_18 WHERE record = "8–1" AND week > 9
{ "input": "CREATE TABLE table_name_18 (attendance INTEGER, record VARCHAR, week VARCHAR)", "instruction": "Record of 8–1, and a Week larger than 9 had what highest attendance?", "output": "SELECT MAX(attendance) FROM table_name_18 WHERE record = \"8–1\" AND week > 9" }
### INSTRUCTION Name the most legs for steinlager 2 ### INPUT CREATE TABLE table_256862_1 (legs INTEGER, winning_yacht VARCHAR) ### OUTPUT SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = "Steinlager 2"
{ "input": "CREATE TABLE table_256862_1 (legs INTEGER, winning_yacht VARCHAR)", "instruction": "Name the most legs for steinlager 2", "output": "SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = \"Steinlager 2\"" }
### INSTRUCTION Who is the partner in the final with a score of 2–6, 7–6, 7–6? ### INPUT CREATE TABLE table_name_10 (partner VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT partner FROM table_name_10 WHERE score_in_the_final = "2–6, 7–6, 7–6"
{ "input": "CREATE TABLE table_name_10 (partner VARCHAR, score_in_the_final VARCHAR)", "instruction": "Who is the partner in the final with a score of 2–6, 7–6, 7–6?", "output": "SELECT partner FROM table_name_10 WHERE score_in_the_final = \"2–6, 7–6, 7–6\"" }
### INSTRUCTION What was the lowest lab for Gilera with a grid less than 12? ### INPUT CREATE TABLE table_name_81 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR) ### OUTPUT SELECT MIN(laps) FROM table_name_81 WHERE manufacturer = "gilera" AND grid < 12
{ "input": "CREATE TABLE table_name_81 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)", "instruction": "What was the lowest lab for Gilera with a grid less than 12?", "output": "SELECT MIN(laps) FROM table_name_81 WHERE manufacturer = \"gilera\" AND grid < 12" }
### INSTRUCTION What is the average Year when the Competition was friendly, and a Club of everton? ### INPUT CREATE TABLE table_name_28 (year INTEGER, competition VARCHAR, club VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_28 WHERE competition = "friendly" AND club = "everton"
{ "input": "CREATE TABLE table_name_28 (year INTEGER, competition VARCHAR, club VARCHAR)", "instruction": "What is the average Year when the Competition was friendly, and a Club of everton?", "output": "SELECT AVG(year) FROM table_name_28 WHERE competition = \"friendly\" AND club = \"everton\"" }
### INSTRUCTION Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)? ### INPUT CREATE TABLE table_name_63 (opponents_in_the_final VARCHAR, partner VARCHAR, championship VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_name_63 WHERE partner = "katarina srebotnik" AND championship = "wimbledon (4)"
{ "input": "CREATE TABLE table_name_63 (opponents_in_the_final VARCHAR, partner VARCHAR, championship VARCHAR)", "instruction": "Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?", "output": "SELECT opponents_in_the_final FROM table_name_63 WHERE partner = \"katarina srebotnik\" AND championship = \"wimbledon (4)\"" }
### INSTRUCTION What is the least rank for athletes with a time of 6:36.65? ### INPUT CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_80 WHERE time = "6:36.65"
{ "input": "CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR)", "instruction": "What is the least rank for athletes with a time of 6:36.65?", "output": "SELECT MIN(rank) FROM table_name_80 WHERE time = \"6:36.65\"" }
### INSTRUCTION Show the names of conductors that have conducted more than one orchestras. ### INPUT CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR) ### OUTPUT SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
{ "input": "CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)", "instruction": "Show the names of conductors that have conducted more than one orchestras.", "output": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1" }
### INSTRUCTION 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. ### INPUT CREATE TABLE Circulation_History (document_id VARCHAR, employee_id VARCHAR) ### OUTPUT SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id
{ "input": "CREATE TABLE Circulation_History (document_id VARCHAR, employee_id VARCHAR)", "instruction": "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.", "output": "SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id" }
### INSTRUCTION Show names and seatings, ordered by seating for all tracks opened after 2000. ### INPUT CREATE TABLE track (name VARCHAR, seating VARCHAR, year_opened INTEGER) ### OUTPUT SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating
{ "input": "CREATE TABLE track (name VARCHAR, seating VARCHAR, year_opened INTEGER)", "instruction": "Show names and seatings, ordered by seating for all tracks opened after 2000.", "output": "SELECT name, seating FROM track WHERE year_opened > 2000 ORDER BY seating" }
### INSTRUCTION Name the height for demetrius jemison ### INPUT CREATE TABLE table_25360865_1 (height VARCHAR, name VARCHAR) ### OUTPUT SELECT height FROM table_25360865_1 WHERE name = "Demetrius Jemison"
{ "input": "CREATE TABLE table_25360865_1 (height VARCHAR, name VARCHAR)", "instruction": "Name the height for demetrius jemison", "output": "SELECT height FROM table_25360865_1 WHERE name = \"Demetrius Jemison\"" }
### INSTRUCTION What was the sail number of Two True? ### INPUT CREATE TABLE table_25561560_3 (sail_number VARCHAR, yacht VARCHAR) ### OUTPUT SELECT sail_number FROM table_25561560_3 WHERE yacht = "Two True"
{ "input": "CREATE TABLE table_25561560_3 (sail_number VARCHAR, yacht VARCHAR)", "instruction": "What was the sail number of Two True?", "output": "SELECT sail_number FROM table_25561560_3 WHERE yacht = \"Two True\"" }
### INSTRUCTION What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290? ### INPUT CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR) ### OUTPUT SELECT place FROM table_name_43 WHERE country = "united states" AND to_par = "+2" AND score = 73 - 74 - 71 - 72 = 290
{ "input": "CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)", "instruction": "What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?", "output": "SELECT place FROM table_name_43 WHERE country = \"united states\" AND to_par = \"+2\" AND score = 73 - 74 - 71 - 72 = 290" }
### INSTRUCTION Who is the director of the best foreign film? ### INPUT CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR) ### OUTPUT SELECT director FROM table_name_14 WHERE original_title = "best foreign film"
{ "input": "CREATE TABLE table_name_14 (director VARCHAR, original_title VARCHAR)", "instruction": "Who is the director of the best foreign film?", "output": "SELECT director FROM table_name_14 WHERE original_title = \"best foreign film\"" }
### INSTRUCTION Which Away team has Carlton for it's Home team? ### INPUT CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team FROM table_name_96 WHERE home_team = "carlton"
{ "input": "CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)", "instruction": "Which Away team has Carlton for it's Home team?", "output": "SELECT away_team FROM table_name_96 WHERE home_team = \"carlton\"" }
### INSTRUCTION For the cars with 4 cylinders, which model has the largest horsepower? ### INPUT CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, Cylinders VARCHAR, horsepower VARCHAR) ### OUTPUT SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1
{ "input": "CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, Cylinders VARCHAR, horsepower VARCHAR)", "instruction": "For the cars with 4 cylinders, which model has the largest horsepower?", "output": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1" }
### INSTRUCTION When the United States had a total score of 274 what was the average year? ### INPUT CREATE TABLE table_name_67 (year INTEGER, total_score VARCHAR, country VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_67 WHERE total_score = "274" AND country = "united states"
{ "input": "CREATE TABLE table_name_67 (year INTEGER, total_score VARCHAR, country VARCHAR)", "instruction": "When the United States had a total score of 274 what was the average year?", "output": "SELECT AVG(year) FROM table_name_67 WHERE total_score = \"274\" AND country = \"united states\"" }
### INSTRUCTION What is the average pick for Florida State? ### INPUT CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR) ### OUTPUT SELECT AVG(pick) FROM table_name_70 WHERE school_club_team = "florida state"
{ "input": "CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR)", "instruction": "What is the average pick for Florida State?", "output": "SELECT AVG(pick) FROM table_name_70 WHERE school_club_team = \"florida state\"" }
### INSTRUCTION where pageant is elite model look and year is bigger than 1993.0, who is the delegate? ### INPUT CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR) ### OUTPUT SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
{ "input": "CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)", "instruction": "where pageant is elite model look and year is bigger than 1993.0, who is the delegate?", "output": "SELECT delegate FROM table_1825751_14 WHERE pageant = \"Elite Model Look\" AND year > 1993.0" }
### INSTRUCTION Which Original Broadway production has a First US National Tour of roger bart? ### INPUT CREATE TABLE table_name_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR) ### OUTPUT SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = "roger bart"
{ "input": "CREATE TABLE table_name_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR)", "instruction": "Which Original Broadway production has a First US National Tour of roger bart?", "output": "SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = \"roger bart\"" }
### INSTRUCTION What is the word count that is named omega dot? ### INPUT CREATE TABLE table_name_37 (word__number VARCHAR, name VARCHAR) ### OUTPUT SELECT word__number FROM table_name_37 WHERE name = "omega dot"
{ "input": "CREATE TABLE table_name_37 (word__number VARCHAR, name VARCHAR)", "instruction": "What is the word count that is named omega dot?", "output": "SELECT word__number FROM table_name_37 WHERE name = \"omega dot\"" }
### INSTRUCTION Which Population (2004) has a Moroccan population larger than 234506? ### INPUT CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER) ### OUTPUT SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506
{ "input": "CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER)", "instruction": "Which Population (2004) has a Moroccan population larger than 234506?", "output": "SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506" }