text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the lowest MPG-US combined for a green rating of E, mpg in the UK- combined of under 42.2, manufacturer of Volkswagen, and an M6 transmission?
### INPUT
CREATE TABLE table_name_90 (mpg_us_combined INTEGER, transmission VARCHAR, manufacturer VARCHAR, green_rating VARCHAR, mpg_uk_combined VARCHAR)
### OUTPUT
SELECT MIN(mpg_us_combined) FROM table_name_90 WHERE green_rating = "e" AND mpg_uk_combined < 42.2 AND manufacturer = "volkswagen" AND transmission = "m6" | {
"input": "CREATE TABLE table_name_90 (mpg_us_combined INTEGER, transmission VARCHAR, manufacturer VARCHAR, green_rating VARCHAR, mpg_uk_combined VARCHAR)",
"instruction": "What is the lowest MPG-US combined for a green rating of E, mpg in the UK- combined of under 42.2, manufacturer of Volkswagen, and an M6 transmission?",
"output": "SELECT MIN(mpg_us_combined) FROM table_name_90 WHERE green_rating = \"e\" AND mpg_uk_combined < 42.2 AND manufacturer = \"volkswagen\" AND transmission = \"m6\""
} |
### INSTRUCTION
Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?
### INPUT
CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR)
### OUTPUT
SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 2" | {
"input": "CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR)",
"instruction": "Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?",
"output": "SELECT \"inventor\" FROM table_name_2 WHERE habit = \"spur\" AND pattern = \"stripe\" AND mutated_from = \"redsport type 2\""
} |
### INSTRUCTION
What is the overall of the running back player?
### INPUT
CREATE TABLE table_name_91 (overall VARCHAR, position VARCHAR)
### OUTPUT
SELECT overall FROM table_name_91 WHERE position = "running back" | {
"input": "CREATE TABLE table_name_91 (overall VARCHAR, position VARCHAR)",
"instruction": "What is the overall of the running back player?",
"output": "SELECT overall FROM table_name_91 WHERE position = \"running back\""
} |
### INSTRUCTION
What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?
### INPUT
CREATE TABLE Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR)
### OUTPUT
SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz' | {
"input": "CREATE TABLE Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR)",
"instruction": "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?",
"output": "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz'"
} |
### INSTRUCTION
What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca?
### INPUT
CREATE TABLE table_name_36 (general_classification VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT general_classification FROM table_name_36 WHERE mountains_classification = "stefano garzelli" AND points_classification = "danilo di luca" AND winner = "ignatas konovalovas" | {
"input": "CREATE TABLE table_name_36 (general_classification VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)",
"instruction": "What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca?",
"output": "SELECT general_classification FROM table_name_36 WHERE mountains_classification = \"stefano garzelli\" AND points_classification = \"danilo di luca\" AND winner = \"ignatas konovalovas\""
} |
### INSTRUCTION
what is the money for trevor immelman?
### INPUT
CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR)
### OUTPUT
SELECT money___$__ FROM table_name_77 WHERE player = "trevor immelman" | {
"input": "CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR)",
"instruction": "what is the money for trevor immelman?",
"output": "SELECT money___$__ FROM table_name_77 WHERE player = \"trevor immelman\""
} |
### INSTRUCTION
Which position has 30 points and Reiner Stuyvenberg as a passenger?
### INPUT
CREATE TABLE table_name_95 (position VARCHAR, points VARCHAR, passenger VARCHAR)
### OUTPUT
SELECT position FROM table_name_95 WHERE points = 30 AND passenger = "reiner stuyvenberg" | {
"input": "CREATE TABLE table_name_95 (position VARCHAR, points VARCHAR, passenger VARCHAR)",
"instruction": "Which position has 30 points and Reiner Stuyvenberg as a passenger?",
"output": "SELECT position FROM table_name_95 WHERE points = 30 AND passenger = \"reiner stuyvenberg\""
} |
### INSTRUCTION
Which Number of electorates (2009) has a Reserved for (SC / ST /None) of total:?
### INPUT
CREATE TABLE table_name_21 (number_of_electorates__2009_ VARCHAR, reserved_for___sc___st__none_ VARCHAR)
### OUTPUT
SELECT number_of_electorates__2009_ FROM table_name_21 WHERE reserved_for___sc___st__none_ = "total:" | {
"input": "CREATE TABLE table_name_21 (number_of_electorates__2009_ VARCHAR, reserved_for___sc___st__none_ VARCHAR)",
"instruction": "Which Number of electorates (2009) has a Reserved for (SC / ST /None) of total:?",
"output": "SELECT number_of_electorates__2009_ FROM table_name_21 WHERE reserved_for___sc___st__none_ = \"total:\""
} |
### INSTRUCTION
What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?
### INPUT
CREATE TABLE table_name_79 (lost INTEGER, team VARCHAR, goals_against VARCHAR)
### OUTPUT
SELECT AVG(lost) FROM table_name_79 WHERE team = "matlock town" AND goals_against > 66 | {
"input": "CREATE TABLE table_name_79 (lost INTEGER, team VARCHAR, goals_against VARCHAR)",
"instruction": "What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?",
"output": "SELECT AVG(lost) FROM table_name_79 WHERE team = \"matlock town\" AND goals_against > 66"
} |
### INSTRUCTION
What is the date of the game at Olympic Stadium?
### INPUT
CREATE TABLE table_24989925_2 (date VARCHAR, game_site VARCHAR)
### OUTPUT
SELECT date FROM table_24989925_2 WHERE game_site = "Olympic Stadium" | {
"input": "CREATE TABLE table_24989925_2 (date VARCHAR, game_site VARCHAR)",
"instruction": "What is the date of the game at Olympic Stadium?",
"output": "SELECT date FROM table_24989925_2 WHERE game_site = \"Olympic Stadium\""
} |
### INSTRUCTION
What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms?
### INPUT
CREATE TABLE table_18461045_1 (kentucky VARCHAR, michigan VARCHAR)
### OUTPUT
SELECT kentucky FROM table_18461045_1 WHERE michigan = "Grosse Pointe Farms-City LL Grosse Pointe Farms" | {
"input": "CREATE TABLE table_18461045_1 (kentucky VARCHAR, michigan VARCHAR)",
"instruction": "What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms? ",
"output": "SELECT kentucky FROM table_18461045_1 WHERE michigan = \"Grosse Pointe Farms-City LL Grosse Pointe Farms\""
} |
### INSTRUCTION
how many voice actor (englbeingh 1998 / pioneer) with voice actor (japanese) being shinobu satouchi
### INPUT
CREATE TABLE table_1410384_1 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__japanese_ VARCHAR)
### OUTPUT
SELECT COUNT(voice_actor__english_1998___pioneer_) FROM table_1410384_1 WHERE voice_actor__japanese_ = "Shinobu Satouchi" | {
"input": "CREATE TABLE table_1410384_1 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__japanese_ VARCHAR)",
"instruction": " how many voice actor (englbeingh 1998 / pioneer) with voice actor (japanese) being shinobu satouchi",
"output": "SELECT COUNT(voice_actor__english_1998___pioneer_) FROM table_1410384_1 WHERE voice_actor__japanese_ = \"Shinobu Satouchi\""
} |
### INSTRUCTION
how many times is the fuel propulsion is cng?
### INPUT
CREATE TABLE table_10007452_3 (fleet_series__quantity_ VARCHAR, fuel_propulsion VARCHAR)
### OUTPUT
SELECT COUNT(fleet_series__quantity_) FROM table_10007452_3 WHERE fuel_propulsion = "CNG" | {
"input": "CREATE TABLE table_10007452_3 (fleet_series__quantity_ VARCHAR, fuel_propulsion VARCHAR)",
"instruction": "how many times is the fuel propulsion is cng?",
"output": "SELECT COUNT(fleet_series__quantity_) FROM table_10007452_3 WHERE fuel_propulsion = \"CNG\""
} |
### INSTRUCTION
Which Numbers (Quantity Ordered) have a Fuel Propulsion of cng, and a Year smaller than 2008, and a Make/ Model of nabi 40-lfw?
### INPUT
CREATE TABLE table_name_96 (numbers__quantity_ordered_ VARCHAR, make__model VARCHAR, fuel_propulsion VARCHAR, year VARCHAR)
### OUTPUT
SELECT numbers__quantity_ordered_ FROM table_name_96 WHERE fuel_propulsion = "cng" AND year < 2008 AND make__model = "nabi 40-lfw" | {
"input": "CREATE TABLE table_name_96 (numbers__quantity_ordered_ VARCHAR, make__model VARCHAR, fuel_propulsion VARCHAR, year VARCHAR)",
"instruction": "Which Numbers (Quantity Ordered) have a Fuel Propulsion of cng, and a Year smaller than 2008, and a Make/ Model of nabi 40-lfw?",
"output": "SELECT numbers__quantity_ordered_ FROM table_name_96 WHERE fuel_propulsion = \"cng\" AND year < 2008 AND make__model = \"nabi 40-lfw\""
} |
### INSTRUCTION
WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?
### INPUT
CREATE TABLE table_name_1 (bookmarking VARCHAR, _tagging VARCHAR, _rating_and_comments VARCHAR, name VARCHAR, web_publishing VARCHAR, list_management VARCHAR, charting VARCHAR)
### OUTPUT
SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = "no" AND charting = "no" AND web_publishing = "no" AND name = "microsoft exchange server" | {
"input": "CREATE TABLE table_name_1 (bookmarking VARCHAR, _tagging VARCHAR, _rating_and_comments VARCHAR, name VARCHAR, web_publishing VARCHAR, list_management VARCHAR, charting VARCHAR)",
"instruction": "WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?",
"output": "SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = \"no\" AND charting = \"no\" AND web_publishing = \"no\" AND name = \"microsoft exchange server\""
} |
### INSTRUCTION
I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56
### INPUT
CREATE TABLE table_name_80 (ligue_1_titles INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR)
### OUTPUT
SELECT MIN(ligue_1_titles) FROM table_name_80 WHERE position_in_2012_13 = "010 12th" AND number_of_seasons_in_ligue_1 > 56 | {
"input": "CREATE TABLE table_name_80 (ligue_1_titles INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR)",
"instruction": "I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56",
"output": "SELECT MIN(ligue_1_titles) FROM table_name_80 WHERE position_in_2012_13 = \"010 12th\" AND number_of_seasons_in_ligue_1 > 56"
} |
### INSTRUCTION
Tell me the date for jody scheckter being the fastest lap at the french grand prix
### INPUT
CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR)
### OUTPUT
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix" | {
"input": "CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR)",
"instruction": "Tell me the date for jody scheckter being the fastest lap at the french grand prix",
"output": "SELECT date FROM table_name_14 WHERE fastest_lap = \"jody scheckter\" AND race = \"french grand prix\""
} |
### INSTRUCTION
Find the names of all instructors in the Art department who have taught some course and the course_id.
### INPUT
CREATE TABLE instructor (ID VARCHAR, dept_name VARCHAR); CREATE TABLE teaches (ID VARCHAR)
### OUTPUT
SELECT name, course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art' | {
"input": "CREATE TABLE instructor (ID VARCHAR, dept_name VARCHAR); CREATE TABLE teaches (ID VARCHAR)",
"instruction": "Find the names of all instructors in the Art department who have taught some course and the course_id.",
"output": "SELECT name, course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'"
} |
### INSTRUCTION
What is the average black value (Hispanic/Non-Hispanic) having a white (Hispanic/Non-Hispanic) under 61.9, Multiracial (Hispanic/Non-Hispanic) under 12.5 and Hispanic under 99.4?
### INPUT
CREATE TABLE table_name_99 (black__both_hispanic_and_non_hispanic_ INTEGER, hispanic__of_any_race_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, multiracial__both_hispanic_and_non_hispanic_ VARCHAR)
### OUTPUT
SELECT AVG(black__both_hispanic_and_non_hispanic_) FROM table_name_99 WHERE white__both_hispanic_and_non_hispanic_ < 61.9 AND multiracial__both_hispanic_and_non_hispanic_ < 12.5 AND hispanic__of_any_race_ < 99.4 | {
"input": "CREATE TABLE table_name_99 (black__both_hispanic_and_non_hispanic_ INTEGER, hispanic__of_any_race_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR, multiracial__both_hispanic_and_non_hispanic_ VARCHAR)",
"instruction": "What is the average black value (Hispanic/Non-Hispanic) having a white (Hispanic/Non-Hispanic) under 61.9, Multiracial (Hispanic/Non-Hispanic) under 12.5 and Hispanic under 99.4?",
"output": "SELECT AVG(black__both_hispanic_and_non_hispanic_) FROM table_name_99 WHERE white__both_hispanic_and_non_hispanic_ < 61.9 AND multiracial__both_hispanic_and_non_hispanic_ < 12.5 AND hispanic__of_any_race_ < 99.4"
} |
### INSTRUCTION
Find the first names and offices of all instructors who have taught some course and the course description and the department name.
### INPUT
CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)
### OUTPUT
SELECT T2.emp_fname, T4.prof_office, T3.crs_description, T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code | {
"input": "CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)",
"instruction": "Find the first names and offices of all instructors who have taught some course and the course description and the department name.",
"output": "SELECT T2.emp_fname, T4.prof_office, T3.crs_description, T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code"
} |
### INSTRUCTION
Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?
### INPUT
CREATE TABLE table_name_52 (song VARCHAR, weeks_at_number_one VARCHAR, issue_date_s_ VARCHAR)
### OUTPUT
SELECT song FROM table_name_52 WHERE weeks_at_number_one > 2 AND issue_date_s_ = "17 april - 8 may" | {
"input": "CREATE TABLE table_name_52 (song VARCHAR, weeks_at_number_one VARCHAR, issue_date_s_ VARCHAR)",
"instruction": "Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?",
"output": "SELECT song FROM table_name_52 WHERE weeks_at_number_one > 2 AND issue_date_s_ = \"17 april - 8 may\""
} |
### INSTRUCTION
When the driver peter gethin has a grid less than 25, what is the average number of laps?
### INPUT
CREATE TABLE table_name_4 (laps INTEGER, driver VARCHAR, grid VARCHAR)
### OUTPUT
SELECT AVG(laps) FROM table_name_4 WHERE driver = "peter gethin" AND grid < 25 | {
"input": "CREATE TABLE table_name_4 (laps INTEGER, driver VARCHAR, grid VARCHAR)",
"instruction": "When the driver peter gethin has a grid less than 25, what is the average number of laps?",
"output": "SELECT AVG(laps) FROM table_name_4 WHERE driver = \"peter gethin\" AND grid < 25"
} |
### INSTRUCTION
How many drivers drove 300 laps at average speed of 103.594?
### INPUT
CREATE TABLE table_2175858_1 (driver VARCHAR, laps VARCHAR, average_speed__mph_ VARCHAR)
### OUTPUT
SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = "300" AND average_speed__mph_ = "103.594" | {
"input": "CREATE TABLE table_2175858_1 (driver VARCHAR, laps VARCHAR, average_speed__mph_ VARCHAR)",
"instruction": "How many drivers drove 300 laps at average speed of 103.594?",
"output": "SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = \"300\" AND average_speed__mph_ = \"103.594\""
} |
### INSTRUCTION
What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
### INPUT
CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
### OUTPUT
SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011 | {
"input": "CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)",
"instruction": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?",
"output": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011"
} |
### INSTRUCTION
What is the highest roll number of the school in Te puna with a decile larger than 2?
### INPUT
CREATE TABLE table_name_85 (roll INTEGER, decile VARCHAR, area VARCHAR)
### OUTPUT
SELECT MAX(roll) FROM table_name_85 WHERE decile > 2 AND area = "te puna" | {
"input": "CREATE TABLE table_name_85 (roll INTEGER, decile VARCHAR, area VARCHAR)",
"instruction": "What is the highest roll number of the school in Te puna with a decile larger than 2?",
"output": "SELECT MAX(roll) FROM table_name_85 WHERE decile > 2 AND area = \"te puna\""
} |
### INSTRUCTION
What themed area opened in 2010 as an animal show?
### INPUT
CREATE TABLE table_name_35 (themed_area VARCHAR, type VARCHAR, opened VARCHAR)
### OUTPUT
SELECT themed_area FROM table_name_35 WHERE type = "animal show" AND opened = "2010" | {
"input": "CREATE TABLE table_name_35 (themed_area VARCHAR, type VARCHAR, opened VARCHAR)",
"instruction": "What themed area opened in 2010 as an animal show?",
"output": "SELECT themed_area FROM table_name_35 WHERE type = \"animal show\" AND opened = \"2010\""
} |
### INSTRUCTION
Released on April 12, 1968 in LP format, what was the catalog?
### INPUT
CREATE TABLE table_name_20 (catalog VARCHAR, format VARCHAR, date VARCHAR)
### OUTPUT
SELECT catalog FROM table_name_20 WHERE format = "lp" AND date = "april 12, 1968" | {
"input": "CREATE TABLE table_name_20 (catalog VARCHAR, format VARCHAR, date VARCHAR)",
"instruction": "Released on April 12, 1968 in LP format, what was the catalog?",
"output": "SELECT catalog FROM table_name_20 WHERE format = \"lp\" AND date = \"april 12, 1968\""
} |
### INSTRUCTION
How many films are titled "Dans la Ville Blanche"?
### INPUT
CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
### OUTPUT
SELECT COUNT(film_title_used_in_nomination) FROM table_22034853_1 WHERE original_title = "Dans la ville blanche" | {
"input": "CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)",
"instruction": "How many films are titled \"Dans la Ville Blanche\"?",
"output": "SELECT COUNT(film_title_used_in_nomination) FROM table_22034853_1 WHERE original_title = \"Dans la ville blanche\""
} |
### INSTRUCTION
What is the team 1 with cementarnica as team 2?
### INPUT
CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR)
### OUTPUT
SELECT team_1 FROM table_name_20 WHERE team_2 = "cementarnica" | {
"input": "CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR)",
"instruction": "What is the team 1 with cementarnica as team 2?",
"output": "SELECT team_1 FROM table_name_20 WHERE team_2 = \"cementarnica\""
} |
### INSTRUCTION
Find the number of rooms for different block code?
### INPUT
CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)
### OUTPUT
SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode | {
"input": "CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)",
"instruction": "Find the number of rooms for different block code?",
"output": "SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode"
} |
### INSTRUCTION
How many places are named manolo fortich?
### INPUT
CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR)
### OUTPUT
SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich" | {
"input": "CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR)",
"instruction": "How many places are named manolo fortich?",
"output": "SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = \"Manolo Fortich\""
} |
### INSTRUCTION
How many times was Scott Oelslager a representative?
### INPUT
CREATE TABLE table_26131768_4 (residence VARCHAR, representative VARCHAR)
### OUTPUT
SELECT COUNT(residence) FROM table_26131768_4 WHERE representative = "Scott Oelslager" | {
"input": "CREATE TABLE table_26131768_4 (residence VARCHAR, representative VARCHAR)",
"instruction": "How many times was Scott Oelslager a representative?",
"output": "SELECT COUNT(residence) FROM table_26131768_4 WHERE representative = \"Scott Oelslager\""
} |
### INSTRUCTION
List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?
### INPUT
CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER)
### OUTPUT
SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000 | {
"input": "CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER)",
"instruction": "List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?",
"output": "SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000"
} |
### INSTRUCTION
Name the division for detroit diesel series 50egr allison wb-400r
### INPUT
CREATE TABLE table_24193494_3 (division VARCHAR, powertrain__engine_transmission_ VARCHAR)
### OUTPUT
SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = "Detroit Diesel Series 50EGR Allison WB-400R" | {
"input": "CREATE TABLE table_24193494_3 (division VARCHAR, powertrain__engine_transmission_ VARCHAR)",
"instruction": "Name the division for detroit diesel series 50egr allison wb-400r",
"output": "SELECT division FROM table_24193494_3 WHERE powertrain__engine_transmission_ = \"Detroit Diesel Series 50EGR Allison WB-400R\""
} |
### INSTRUCTION
What Championship has a Date of 26 may 1986?
### INPUT
CREATE TABLE table_name_66 (championship VARCHAR, date VARCHAR)
### OUTPUT
SELECT championship FROM table_name_66 WHERE date = "26 may 1986" | {
"input": "CREATE TABLE table_name_66 (championship VARCHAR, date VARCHAR)",
"instruction": "What Championship has a Date of 26 may 1986?",
"output": "SELECT championship FROM table_name_66 WHERE date = \"26 may 1986\""
} |
### INSTRUCTION
List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'
### INPUT
CREATE TABLE mountain (id VARCHAR, range VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE camera_lens (brand VARCHAR, id VARCHAR)
### OUTPUT
SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif' | {
"input": "CREATE TABLE mountain (id VARCHAR, range VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE camera_lens (brand VARCHAR, id VARCHAR)",
"instruction": "List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'",
"output": "SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Lasta Massif'"
} |
### INSTRUCTION
What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?
### INPUT
CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR, nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
### OUTPUT
SELECT nationality FROM table_name_12 WHERE nhl_team = "vancouver canucks" AND college_junior_club_team__league_ = "swift current broncos (whl)" AND round = 8 | {
"input": "CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR, nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)",
"instruction": "What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?",
"output": "SELECT nationality FROM table_name_12 WHERE nhl_team = \"vancouver canucks\" AND college_junior_club_team__league_ = \"swift current broncos (whl)\" AND round = 8"
} |
### INSTRUCTION
List the document type code for the document with the id 2.
### INPUT
CREATE TABLE Documents (document_type_code VARCHAR, document_id VARCHAR)
### OUTPUT
SELECT document_type_code FROM Documents WHERE document_id = 2 | {
"input": "CREATE TABLE Documents (document_type_code VARCHAR, document_id VARCHAR)",
"instruction": "List the document type code for the document with the id 2.",
"output": "SELECT document_type_code FROM Documents WHERE document_id = 2"
} |
### INSTRUCTION
What is the Cargo Ship located at Birkenhead?
### INPUT
CREATE TABLE table_name_66 (ship VARCHAR, class___type VARCHAR, location VARCHAR)
### OUTPUT
SELECT ship FROM table_name_66 WHERE class___type = "cargo ship" AND location = "birkenhead" | {
"input": "CREATE TABLE table_name_66 (ship VARCHAR, class___type VARCHAR, location VARCHAR)",
"instruction": "What is the Cargo Ship located at Birkenhead?",
"output": "SELECT ship FROM table_name_66 WHERE class___type = \"cargo ship\" AND location = \"birkenhead\""
} |
### INSTRUCTION
What Venue had Carlton has the Away team?
### INPUT
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
### OUTPUT
SELECT venue FROM table_name_29 WHERE away_team = "carlton" | {
"input": "CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)",
"instruction": "What Venue had Carlton has the Away team?",
"output": "SELECT venue FROM table_name_29 WHERE away_team = \"carlton\""
} |
### INSTRUCTION
What was the score of the game in which Danny Granger (30) did the high points?
### INPUT
CREATE TABLE table_27756164_2 (score VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT score FROM table_27756164_2 WHERE high_points = "Danny Granger (30)" | {
"input": "CREATE TABLE table_27756164_2 (score VARCHAR, high_points VARCHAR)",
"instruction": "What was the score of the game in which Danny Granger (30) did the high points?",
"output": "SELECT score FROM table_27756164_2 WHERE high_points = \"Danny Granger (30)\""
} |
### INSTRUCTION
What is the ERP for the Rockhampton region?
### INPUT
CREATE TABLE table_name_27 (erp__analog__digital_ VARCHAR, region_served VARCHAR)
### OUTPUT
SELECT erp__analog__digital_ FROM table_name_27 WHERE region_served = "rockhampton" | {
"input": "CREATE TABLE table_name_27 (erp__analog__digital_ VARCHAR, region_served VARCHAR)",
"instruction": "What is the ERP for the Rockhampton region?",
"output": "SELECT erp__analog__digital_ FROM table_name_27 WHERE region_served = \"rockhampton\""
} |
### INSTRUCTION
Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?
### INPUT
CREATE TABLE table_name_89 (championship VARCHAR, opponent_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
### OUTPUT
SELECT championship FROM table_name_89 WHERE outcome = "runner-up" AND surface = "clay" AND opponent_in_the_final = "ivan lendl" | {
"input": "CREATE TABLE table_name_89 (championship VARCHAR, opponent_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)",
"instruction": "Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?",
"output": "SELECT championship FROM table_name_89 WHERE outcome = \"runner-up\" AND surface = \"clay\" AND opponent_in_the_final = \"ivan lendl\""
} |
### INSTRUCTION
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
### INPUT
CREATE TABLE table_name_20 (tujia_population INTEGER, prefecture VARCHAR, county VARCHAR)
### OUTPUT
SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = "zhangjiajie" AND county = "sangzhi" | {
"input": "CREATE TABLE table_name_20 (tujia_population INTEGER, prefecture VARCHAR, county VARCHAR)",
"instruction": "What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?",
"output": "SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = \"zhangjiajie\" AND county = \"sangzhi\""
} |
### INSTRUCTION
What is the type of measure that voted on the Power Development Debt Limit Amendment?
### INPUT
CREATE TABLE table_256286_45 (type VARCHAR, description VARCHAR)
### OUTPUT
SELECT type FROM table_256286_45 WHERE description = "Power Development Debt Limit Amendment" | {
"input": "CREATE TABLE table_256286_45 (type VARCHAR, description VARCHAR)",
"instruction": "What is the type of measure that voted on the Power Development Debt Limit Amendment?",
"output": "SELECT type FROM table_256286_45 WHERE description = \"Power Development Debt Limit Amendment\""
} |
### INSTRUCTION
When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?
### INPUT
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, serbo_croatian VARCHAR)
### OUTPUT
SELECT COUNT(proto_slavic) FROM table_26757_4 WHERE serbo_croatian = "гн(иј)ездо / gn(ij)ezdo" | {
"input": "CREATE TABLE table_26757_4 (proto_slavic VARCHAR, serbo_croatian VARCHAR)",
"instruction": "When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?",
"output": "SELECT COUNT(proto_slavic) FROM table_26757_4 WHERE serbo_croatian = \"гн(иј)ездо / gn(ij)ezdo\""
} |
### INSTRUCTION
How many judges were there for the eliminated couple?
### INPUT
CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR)
### OUTPUT
SELECT judges FROM table_26375386_23 WHERE result = "Eliminated" | {
"input": "CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR)",
"instruction": "How many judges were there for the eliminated couple? ",
"output": "SELECT judges FROM table_26375386_23 WHERE result = \"Eliminated\""
} |
### INSTRUCTION
How many years was lynn muscarella the high school principal and charlie wiltse the superintendent?
### INPUT
CREATE TABLE table_25037577_1 (year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR)
### OUTPUT
SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = "Lynn Muscarella" AND superintendent = "Charlie Wiltse" | {
"input": "CREATE TABLE table_25037577_1 (year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR)",
"instruction": "How many years was lynn muscarella the high school principal and charlie wiltse the superintendent?",
"output": "SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = \"Lynn Muscarella\" AND superintendent = \"Charlie Wiltse\""
} |
### INSTRUCTION
what is the date of vacancy when the team is firpo and replaced by is oscar benitez?
### INPUT
CREATE TABLE table_name_2 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_name_2 WHERE team = "firpo" AND replaced_by = "oscar benitez" | {
"input": "CREATE TABLE table_name_2 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR)",
"instruction": "what is the date of vacancy when the team is firpo and replaced by is oscar benitez?",
"output": "SELECT date_of_vacancy FROM table_name_2 WHERE team = \"firpo\" AND replaced_by = \"oscar benitez\""
} |
### INSTRUCTION
Name the points for 212 respect toward opponents
### INPUT
CREATE TABLE table_226619_12 (points VARCHAR, respect_toward_opponents VARCHAR)
### OUTPUT
SELECT points FROM table_226619_12 WHERE respect_toward_opponents = 212 | {
"input": "CREATE TABLE table_226619_12 (points VARCHAR, respect_toward_opponents VARCHAR)",
"instruction": "Name the points for 212 respect toward opponents",
"output": "SELECT points FROM table_226619_12 WHERE respect_toward_opponents = 212"
} |
### INSTRUCTION
What is he archive for the episode with a run time of 24:05?
### INPUT
CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)
### OUTPUT
SELECT archive FROM table_2102714_1 WHERE run_time = "24:05" | {
"input": "CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)",
"instruction": "What is he archive for the episode with a run time of 24:05?",
"output": "SELECT archive FROM table_2102714_1 WHERE run_time = \"24:05\""
} |
### INSTRUCTION
What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?
### INPUT
CREATE TABLE table_name_68 (top_speed VARCHAR)
### OUTPUT
SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = "208km/h (129mph)" | {
"input": "CREATE TABLE table_name_68 (top_speed VARCHAR)",
"instruction": "What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?",
"output": "SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = \"208km/h (129mph)\""
} |
### INSTRUCTION
What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?
### INPUT
CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
### OUTPUT
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28" | {
"input": "CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)",
"instruction": "What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?",
"output": "SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = \"+28\""
} |
### INSTRUCTION
What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?
### INPUT
CREATE TABLE table_14752049_2 (change__2010_to_2011_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR)
### OUTPUT
SELECT change__2010_to_2011_ FROM table_14752049_2 WHERE international_tourist_arrivals__2011_ = "1.7 million" | {
"input": "CREATE TABLE table_14752049_2 (change__2010_to_2011_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR)",
"instruction": "What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million?",
"output": "SELECT change__2010_to_2011_ FROM table_14752049_2 WHERE international_tourist_arrivals__2011_ = \"1.7 million\""
} |
### INSTRUCTION
How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?
### INPUT
CREATE TABLE table_name_42 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)
### OUTPUT
SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = "conservatives" AND new_council < 27 | {
"input": "CREATE TABLE table_name_42 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)",
"instruction": "How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?",
"output": "SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = \"conservatives\" AND new_council < 27"
} |
### INSTRUCTION
In what Year did Chernova come in 1st in Götzis, Austria?
### INPUT
CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_37 WHERE venue = "götzis, austria" AND position = "1st" | {
"input": "CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR)",
"instruction": "In what Year did Chernova come in 1st in Götzis, Austria?",
"output": "SELECT SUM(year) FROM table_name_37 WHERE venue = \"götzis, austria\" AND position = \"1st\""
} |
### INSTRUCTION
What's the position when the player was Justin Mapp Category:articles with hcards with a United States nationality?
### INPUT
CREATE TABLE table_name_36 (position VARCHAR, nationality VARCHAR, player VARCHAR)
### OUTPUT
SELECT position FROM table_name_36 WHERE nationality = "united states" AND player = "justin mapp category:articles with hcards" | {
"input": "CREATE TABLE table_name_36 (position VARCHAR, nationality VARCHAR, player VARCHAR)",
"instruction": "What's the position when the player was Justin Mapp Category:articles with hcards with a United States nationality?",
"output": "SELECT position FROM table_name_36 WHERE nationality = \"united states\" AND player = \"justin mapp category:articles with hcards\""
} |
### INSTRUCTION
What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of Saint Lucia, and has a Total that is larger than 50?
### INPUT
CREATE TABLE table_name_89 (gold INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
### OUTPUT
SELECT SUM(gold) FROM table_name_89 WHERE bronze > 15 AND silver < 197 AND nation = "saint lucia" AND total > 50 | {
"input": "CREATE TABLE table_name_89 (gold INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)",
"instruction": "What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of Saint Lucia, and has a Total that is larger than 50?",
"output": "SELECT SUM(gold) FROM table_name_89 WHERE bronze > 15 AND silver < 197 AND nation = \"saint lucia\" AND total > 50"
} |
### INSTRUCTION
Which location had previous champions of Mike Webb and Nick Fahrenheit?
### INPUT
CREATE TABLE table_name_93 (location VARCHAR, previous_champion_s_ VARCHAR)
### OUTPUT
SELECT location FROM table_name_93 WHERE previous_champion_s_ = "mike webb and nick fahrenheit" | {
"input": "CREATE TABLE table_name_93 (location VARCHAR, previous_champion_s_ VARCHAR)",
"instruction": "Which location had previous champions of Mike Webb and Nick Fahrenheit?",
"output": "SELECT location FROM table_name_93 WHERE previous_champion_s_ = \"mike webb and nick fahrenheit\""
} |
### INSTRUCTION
How many Annual Meeting events happened in the United Kingdom region?
### INPUT
CREATE TABLE party_events (party_id VARCHAR, Event_Name VARCHAR); CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE party (region_id VARCHAR, party_id VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = "United Kingdom" AND t3.Event_Name = "Annaual Meeting" | {
"input": "CREATE TABLE party_events (party_id VARCHAR, Event_Name VARCHAR); CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE party (region_id VARCHAR, party_id VARCHAR)",
"instruction": "How many Annual Meeting events happened in the United Kingdom region?",
"output": "SELECT COUNT(*) FROM region AS t1 JOIN party AS t2 ON t1.region_id = t2.region_id JOIN party_events AS t3 ON t2.party_id = t3.party_id WHERE t1.region_name = \"United Kingdom\" AND t3.Event_Name = \"Annaual Meeting\""
} |
### INSTRUCTION
What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?
### INPUT
CREATE TABLE table_name_5 (lower_index_kcal__nm_3 INTEGER, lower_index_mj__nm_3 VARCHAR, upper_index_kcal__nm_3 VARCHAR)
### OUTPUT
SELECT AVG(lower_index_kcal__nm_3) FROM table_name_5 WHERE lower_index_mj__nm_3 = 74.54 AND upper_index_kcal__nm_3 < 19 OFFSET 376 | {
"input": "CREATE TABLE table_name_5 (lower_index_kcal__nm_3 INTEGER, lower_index_mj__nm_3 VARCHAR, upper_index_kcal__nm_3 VARCHAR)",
"instruction": "What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?",
"output": "SELECT AVG(lower_index_kcal__nm_3) FROM table_name_5 WHERE lower_index_mj__nm_3 = 74.54 AND upper_index_kcal__nm_3 < 19 OFFSET 376"
} |
### INSTRUCTION
What is Position, when Series is Queensland Formula Ford Championship, when Season is after 2001, and when Points is 234?
### INPUT
CREATE TABLE table_name_48 (position VARCHAR, points VARCHAR, series VARCHAR, season VARCHAR)
### OUTPUT
SELECT position FROM table_name_48 WHERE series = "queensland formula ford championship" AND season > 2001 AND points = "234" | {
"input": "CREATE TABLE table_name_48 (position VARCHAR, points VARCHAR, series VARCHAR, season VARCHAR)",
"instruction": "What is Position, when Series is Queensland Formula Ford Championship, when Season is after 2001, and when Points is 234?",
"output": "SELECT position FROM table_name_48 WHERE series = \"queensland formula ford championship\" AND season > 2001 AND points = \"234\""
} |
### INSTRUCTION
What is the elista with 1 played and 153⅓ baku?
### INPUT
CREATE TABLE table_name_14 (elista VARCHAR, played VARCHAR, baku VARCHAR)
### OUTPUT
SELECT elista FROM table_name_14 WHERE played = 1 AND baku = "153⅓" | {
"input": "CREATE TABLE table_name_14 (elista VARCHAR, played VARCHAR, baku VARCHAR)",
"instruction": "What is the elista with 1 played and 153⅓ baku?",
"output": "SELECT elista FROM table_name_14 WHERE played = 1 AND baku = \"153⅓\""
} |
### INSTRUCTION
What is the customer id, first and last name with most number of accounts.
### INPUT
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)",
"instruction": "What is the customer id, first and last name with most number of accounts.",
"output": "SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the poor law union on Marshalstown?
### INPUT
CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR)
### OUTPUT
SELECT poor_law_union FROM table_28802165_1 WHERE townland = "Marshalstown" | {
"input": "CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR)",
"instruction": "What is the poor law union on Marshalstown?",
"output": "SELECT poor_law_union FROM table_28802165_1 WHERE townland = \"Marshalstown\""
} |
### INSTRUCTION
How many officers o/s were there on the day when the number of USAAF was 2373882?
### INPUT
CREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR)
### OUTPUT
SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882 | {
"input": "CREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR)",
"instruction": "How many officers o/s were there on the day when the number of USAAF was 2373882?",
"output": "SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882"
} |
### INSTRUCTION
List the cost of each treatment and the corresponding treatment type description.
### INPUT
CREATE TABLE Treatments (cost_of_treatment VARCHAR, treatment_type_code VARCHAR); CREATE TABLE treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR)
### OUTPUT
SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code | {
"input": "CREATE TABLE Treatments (cost_of_treatment VARCHAR, treatment_type_code VARCHAR); CREATE TABLE treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR)",
"instruction": "List the cost of each treatment and the corresponding treatment type description.",
"output": "SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code"
} |
### INSTRUCTION
For each customer who has at least two orders, find the customer name and number of orders made.
### INPUT
CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT T2.customer_name, COUNT(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)",
"instruction": "For each customer who has at least two orders, find the customer name and number of orders made.",
"output": "SELECT T2.customer_name, COUNT(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
Which competition occurred after 1980 with a score of 0:5 in Jerusalem?
### INPUT
CREATE TABLE table_name_51 (competition VARCHAR, location VARCHAR, year VARCHAR, score VARCHAR)
### OUTPUT
SELECT competition FROM table_name_51 WHERE year > 1980 AND score = "0:5" AND location = "jerusalem" | {
"input": "CREATE TABLE table_name_51 (competition VARCHAR, location VARCHAR, year VARCHAR, score VARCHAR)",
"instruction": "Which competition occurred after 1980 with a score of 0:5 in Jerusalem?",
"output": "SELECT competition FROM table_name_51 WHERE year > 1980 AND score = \"0:5\" AND location = \"jerusalem\""
} |
### INSTRUCTION
What is the desired rate when the rate limit (p) is 50.33?
### INPUT
CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR)
### OUTPUT
SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.33" | {
"input": "CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR)",
"instruction": "What is the desired rate when the rate limit (p) is 50.33?",
"output": "SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = \"50.33\""
} |
### INSTRUCTION
What was the score on november 21?
### INPUT
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_2 WHERE date = "november 21" | {
"input": "CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)",
"instruction": "What was the score on november 21?",
"output": "SELECT score FROM table_name_2 WHERE date = \"november 21\""
} |
### INSTRUCTION
Which match did FCR 2001 Duisburg participate as the opponent?
### INPUT
CREATE TABLE table_name_39 (match INTEGER, opponent VARCHAR)
### OUTPUT
SELECT SUM(match) FROM table_name_39 WHERE opponent = "fcr 2001 duisburg" | {
"input": "CREATE TABLE table_name_39 (match INTEGER, opponent VARCHAR)",
"instruction": "Which match did FCR 2001 Duisburg participate as the opponent?",
"output": "SELECT SUM(match) FROM table_name_39 WHERE opponent = \"fcr 2001 duisburg\""
} |
### INSTRUCTION
Which Population has a Median family income of $53,946?
### INPUT
CREATE TABLE table_name_41 (population INTEGER, median_family_income VARCHAR)
### OUTPUT
SELECT MAX(population) FROM table_name_41 WHERE median_family_income = "$53,946" | {
"input": "CREATE TABLE table_name_41 (population INTEGER, median_family_income VARCHAR)",
"instruction": "Which Population has a Median family income of $53,946?",
"output": "SELECT MAX(population) FROM table_name_41 WHERE median_family_income = \"$53,946\""
} |
### INSTRUCTION
What is the date of the game between Melbourne and Footscray?
### INPUT
CREATE TABLE table_name_78 (date VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT date FROM table_name_78 WHERE home_team = "melbourne" | {
"input": "CREATE TABLE table_name_78 (date VARCHAR, home_team VARCHAR)",
"instruction": "What is the date of the game between Melbourne and Footscray?",
"output": "SELECT date FROM table_name_78 WHERE home_team = \"melbourne\""
} |
### INSTRUCTION
What is the score when Biron got the decision and Philadelphia was the visitor on March 1?
### INPUT
CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT score FROM table_name_38 WHERE decision = "biron" AND visitor = "philadelphia" AND date = "march 1" | {
"input": "CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR)",
"instruction": "What is the score when Biron got the decision and Philadelphia was the visitor on March 1?",
"output": "SELECT score FROM table_name_38 WHERE decision = \"biron\" AND visitor = \"philadelphia\" AND date = \"march 1\""
} |
### INSTRUCTION
For the week of August 6, who is the finalist?
### INPUT
CREATE TABLE table_name_26 (finalist VARCHAR, week VARCHAR)
### OUTPUT
SELECT finalist FROM table_name_26 WHERE week = "august 6" | {
"input": "CREATE TABLE table_name_26 (finalist VARCHAR, week VARCHAR)",
"instruction": "For the week of August 6, who is the finalist?",
"output": "SELECT finalist FROM table_name_26 WHERE week = \"august 6\""
} |
### INSTRUCTION
What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?
### INPUT
CREATE TABLE table_name_17 (genre VARCHAR, game_modes VARCHAR, chinese_title VARCHAR)
### OUTPUT
SELECT genre FROM table_name_17 WHERE game_modes = "single-player" AND chinese_title = "摸摸瓦力欧制造" | {
"input": "CREATE TABLE table_name_17 (genre VARCHAR, game_modes VARCHAR, chinese_title VARCHAR)",
"instruction": "What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?",
"output": "SELECT genre FROM table_name_17 WHERE game_modes = \"single-player\" AND chinese_title = \"摸摸瓦力欧制造\""
} |
### INSTRUCTION
What is the final score for the game played on January 10, 2011 with partner Mashona Washington?
### INPUT
CREATE TABLE table_name_22 (score VARCHAR, partner VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_22 WHERE partner = "mashona washington" AND date = "january 10, 2011" | {
"input": "CREATE TABLE table_name_22 (score VARCHAR, partner VARCHAR, date VARCHAR)",
"instruction": "What is the final score for the game played on January 10, 2011 with partner Mashona Washington?",
"output": "SELECT score FROM table_name_22 WHERE partner = \"mashona washington\" AND date = \"january 10, 2011\""
} |
### INSTRUCTION
What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?
### INPUT
CREATE TABLE table_name_48 (lap_by_lap VARCHAR, ratings VARCHAR, year VARCHAR, pre_race_host VARCHAR)
### OUTPUT
SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = "chris myers" AND ratings = "9.9/22" | {
"input": "CREATE TABLE table_name_48 (lap_by_lap VARCHAR, ratings VARCHAR, year VARCHAR, pre_race_host VARCHAR)",
"instruction": "What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?",
"output": "SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = \"chris myers\" AND ratings = \"9.9/22\""
} |
### INSTRUCTION
What Division III has Bishop Brady in Division V and Hanover in Division IV?
### INPUT
CREATE TABLE table_name_97 (division_iII VARCHAR, division_v VARCHAR, division_iV VARCHAR, hanover VARCHAR)
### OUTPUT
SELECT division_iII FROM table_name_97 WHERE division_v = "bishop brady" AND division_iV = hanover | {
"input": "CREATE TABLE table_name_97 (division_iII VARCHAR, division_v VARCHAR, division_iV VARCHAR, hanover VARCHAR)",
"instruction": "What Division III has Bishop Brady in Division V and Hanover in Division IV?",
"output": "SELECT division_iII FROM table_name_97 WHERE division_v = \"bishop brady\" AND division_iV = hanover"
} |
### INSTRUCTION
How many points for the navy team that lost over 11?
### INPUT
CREATE TABLE table_name_4 (points INTEGER, team VARCHAR, lost VARCHAR)
### OUTPUT
SELECT SUM(points) FROM table_name_4 WHERE team = "navy" AND lost > 11 | {
"input": "CREATE TABLE table_name_4 (points INTEGER, team VARCHAR, lost VARCHAR)",
"instruction": "How many points for the navy team that lost over 11?",
"output": "SELECT SUM(points) FROM table_name_4 WHERE team = \"navy\" AND lost > 11"
} |
### INSTRUCTION
Name the college for andrej podkonicky
### INPUT
CREATE TABLE table_2840500_8 (college_junior_club_team VARCHAR, player VARCHAR)
### OUTPUT
SELECT college_junior_club_team FROM table_2840500_8 WHERE player = "Andrej Podkonicky" | {
"input": "CREATE TABLE table_2840500_8 (college_junior_club_team VARCHAR, player VARCHAR)",
"instruction": "Name the college for andrej podkonicky",
"output": "SELECT college_junior_club_team FROM table_2840500_8 WHERE player = \"Andrej Podkonicky\""
} |
### INSTRUCTION
What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?
### INPUT
CREATE TABLE table_name_49 (poll_wins INTEGER, ties VARCHAR, poll_losses VARCHAR, advocate VARCHAR)
### OUTPUT
SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = "andy kindler" AND ties < 0 | {
"input": "CREATE TABLE table_name_49 (poll_wins INTEGER, ties VARCHAR, poll_losses VARCHAR, advocate VARCHAR)",
"instruction": "What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?",
"output": "SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = \"andy kindler\" AND ties < 0"
} |
### INSTRUCTION
What event type had BODY CMAS in 1980 and underwater hockey?
### INPUT
CREATE TABLE table_name_57 (event_type VARCHAR, sport VARCHAR, body VARCHAR, year VARCHAR)
### OUTPUT
SELECT event_type FROM table_name_57 WHERE body = "cmas" AND year = "1980" AND sport = "underwater hockey" | {
"input": "CREATE TABLE table_name_57 (event_type VARCHAR, sport VARCHAR, body VARCHAR, year VARCHAR)",
"instruction": "What event type had BODY CMAS in 1980 and underwater hockey?",
"output": "SELECT event_type FROM table_name_57 WHERE body = \"cmas\" AND year = \"1980\" AND sport = \"underwater hockey\""
} |
### INSTRUCTION
Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?
### INPUT
CREATE TABLE table_name_51 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR)
### OUTPUT
SELECT MIN(crude_death_rate__per_1000_) FROM table_name_51 WHERE deaths = "768" AND crude_birth_rate__per_1000_ < 29.7 | {
"input": "CREATE TABLE table_name_51 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR)",
"instruction": "Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?",
"output": "SELECT MIN(crude_death_rate__per_1000_) FROM table_name_51 WHERE deaths = \"768\" AND crude_birth_rate__per_1000_ < 29.7"
} |
### INSTRUCTION
What is the country where there are 8 children per donor and no data for donor payments?
### INPUT
CREATE TABLE table_16175217_1 (country VARCHAR, children_per_donor VARCHAR, donor_payment VARCHAR)
### OUTPUT
SELECT country FROM table_16175217_1 WHERE children_per_donor = "8 children" AND donor_payment = "no data" | {
"input": "CREATE TABLE table_16175217_1 (country VARCHAR, children_per_donor VARCHAR, donor_payment VARCHAR)",
"instruction": "What is the country where there are 8 children per donor and no data for donor payments?",
"output": "SELECT country FROM table_16175217_1 WHERE children_per_donor = \"8 children\" AND donor_payment = \"no data\""
} |
### INSTRUCTION
Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?
### INPUT
CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR)
### OUTPUT
SELECT monarch FROM table_name_67 WHERE heir = "robert curthose" AND reason = "father became king" | {
"input": "CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR)",
"instruction": "Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?",
"output": "SELECT monarch FROM table_name_67 WHERE heir = \"robert curthose\" AND reason = \"father became king\""
} |
### INSTRUCTION
I want the tuner for hybrid video recorder and Digital of dvb-t (zl10353), and a Model of hvr-900
### INPUT
CREATE TABLE table_name_32 (tuner VARCHAR, model VARCHAR, type VARCHAR, digital VARCHAR)
### OUTPUT
SELECT tuner FROM table_name_32 WHERE type = "hybrid video recorder" AND digital = "dvb-t (zl10353)" AND model = "hvr-900" | {
"input": "CREATE TABLE table_name_32 (tuner VARCHAR, model VARCHAR, type VARCHAR, digital VARCHAR)",
"instruction": "I want the tuner for hybrid video recorder and Digital of dvb-t (zl10353), and a Model of hvr-900",
"output": "SELECT tuner FROM table_name_32 WHERE type = \"hybrid video recorder\" AND digital = \"dvb-t (zl10353)\" AND model = \"hvr-900\""
} |
### INSTRUCTION
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?
### INPUT
CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
### OUTPUT
SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552 | {
"input": "CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)",
"instruction": "For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?",
"output": "SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = \"83.4-84.4\" AND debt_held_by_public__$billions_ < 7 OFFSET 552"
} |
### INSTRUCTION
What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?
### INPUT
CREATE TABLE table_name_14 (result VARCHAR, competition VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_14 WHERE competition = "1994 fifa world cup qualification" AND date = "may 15, 1993" | {
"input": "CREATE TABLE table_name_14 (result VARCHAR, competition VARCHAR, date VARCHAR)",
"instruction": "What's the Result for the Competition of 1994 FIFA World Cup Qualification, with the Date of May 15, 1993?",
"output": "SELECT result FROM table_name_14 WHERE competition = \"1994 fifa world cup qualification\" AND date = \"may 15, 1993\""
} |
### INSTRUCTION
What is the name of the team with round less than 2, and the nationality is the United States?
### INPUT
CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)
### OUTPUT
SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = "united states" | {
"input": "CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)",
"instruction": "What is the name of the team with round less than 2, and the nationality is the United States?",
"output": "SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = \"united states\""
} |
### INSTRUCTION
What is the result for director Said Elmarouk before 2008?
### INPUT
CREATE TABLE table_name_2 (result VARCHAR, director VARCHAR, year VARCHAR)
### OUTPUT
SELECT result FROM table_name_2 WHERE director = "said elmarouk" AND year < 2008 | {
"input": "CREATE TABLE table_name_2 (result VARCHAR, director VARCHAR, year VARCHAR)",
"instruction": "What is the result for director Said Elmarouk before 2008?",
"output": "SELECT result FROM table_name_2 WHERE director = \"said elmarouk\" AND year < 2008"
} |
### INSTRUCTION
Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?
### INPUT
CREATE TABLE table_name_65 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
### OUTPUT
SELECT chassis FROM table_name_65 WHERE points = 0 AND entrant = "automobiles gonfaronnaises sportives" | {
"input": "CREATE TABLE table_name_65 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)",
"instruction": "Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?",
"output": "SELECT chassis FROM table_name_65 WHERE points = 0 AND entrant = \"automobiles gonfaronnaises sportives\""
} |
### INSTRUCTION
Find the name of route that has the highest number of deliveries.
### INPUT
CREATE TABLE Delivery_Routes (route_name VARCHAR, route_id VARCHAR); CREATE TABLE Delivery_Route_Locations (route_id VARCHAR)
### OUTPUT
SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Delivery_Routes (route_name VARCHAR, route_id VARCHAR); CREATE TABLE Delivery_Route_Locations (route_id VARCHAR)",
"instruction": "Find the name of route that has the highest number of deliveries.",
"output": "SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
what is the competition for the event team all-round in the year before 1913?
### INPUT
CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR)
### OUTPUT
SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913 | {
"input": "CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR)",
"instruction": "what is the competition for the event team all-round in the year before 1913?",
"output": "SELECT competition FROM table_name_38 WHERE event = \"team all-round\" AND year < 1913"
} |
### INSTRUCTION
Name the total number of fin pos for 12 points of accident
### INPUT
CREATE TABLE table_17304308_1 (fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = "12" AND time_retired = "Accident" | {
"input": "CREATE TABLE table_17304308_1 (fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR)",
"instruction": "Name the total number of fin pos for 12 points of accident",
"output": "SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = \"12\" AND time_retired = \"Accident\""
} |
### INSTRUCTION
Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?
### INPUT
CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR)
### OUTPUT
SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = "semi hepa" AND class = "h12" | {
"input": "CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR)",
"instruction": "Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?",
"output": "SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = \"semi hepa\" AND class = \"h12\""
} |
### INSTRUCTION
Which Score has a Game larger than 7, and Points smaller than 14?
### INPUT
CREATE TABLE table_name_17 (score VARCHAR, game VARCHAR, points VARCHAR)
### OUTPUT
SELECT score FROM table_name_17 WHERE game > 7 AND points < 14 | {
"input": "CREATE TABLE table_name_17 (score VARCHAR, game VARCHAR, points VARCHAR)",
"instruction": "Which Score has a Game larger than 7, and Points smaller than 14?",
"output": "SELECT score FROM table_name_17 WHERE game > 7 AND points < 14"
} |
### INSTRUCTION
Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?
### INPUT
CREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR)
### OUTPUT
SELECT set_3 FROM table_name_86 WHERE score = "3–2" AND set_2 = "25–23" AND time = "19:00" | {
"input": "CREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR)",
"instruction": "Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?",
"output": "SELECT set_3 FROM table_name_86 WHERE score = \"3–2\" AND set_2 = \"25–23\" AND time = \"19:00\""
} |
### INSTRUCTION
What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?
### INPUT
CREATE TABLE table_name_12 (size_of_rest_bit_field VARCHAR, leading_bits VARCHAR, start_address VARCHAR)
### OUTPUT
SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading_bits > 110 AND start_address = "224.0.0.0" | {
"input": "CREATE TABLE table_name_12 (size_of_rest_bit_field VARCHAR, leading_bits VARCHAR, start_address VARCHAR)",
"instruction": "What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?",
"output": "SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading_bits > 110 AND start_address = \"224.0.0.0\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.