text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the date when the high points is michael beasley , martell webster (16)? ### INPUT CREATE TABLE table_27756314_10 (date VARCHAR, high_points VARCHAR) ### OUTPUT SELECT date FROM table_27756314_10 WHERE high_points = "Michael Beasley , Martell Webster (16)"
{ "input": "CREATE TABLE table_27756314_10 (date VARCHAR, high_points VARCHAR)", "instruction": "What is the date when the high points is michael beasley , martell webster (16)?", "output": "SELECT date FROM table_27756314_10 WHERE high_points = \"Michael Beasley , Martell Webster (16)\"" }
### INSTRUCTION How much is the money ($) when the country is united states, to par is e and the score is 72-75-70-71=288? ### INPUT CREATE TABLE table_name_59 (money___ INTEGER, country VARCHAR, to_par VARCHAR, score VARCHAR) ### OUTPUT SELECT SUM(money___) AS $__ FROM table_name_59 WHERE country = "united states" AND to_par = "e" AND score = 72 - 75 - 70 - 71 = 288
{ "input": "CREATE TABLE table_name_59 (money___ INTEGER, country VARCHAR, to_par VARCHAR, score VARCHAR)", "instruction": "How much is the money ($) when the country is united states, to par is e and the score is 72-75-70-71=288?", "output": "SELECT SUM(money___) AS $__ FROM table_name_59 WHERE country = \"united states\" AND to_par = \"e\" AND score = 72 - 75 - 70 - 71 = 288" }
### INSTRUCTION Which paper is published in an institution in "USA" and have "Turon" as its second author? ### INPUT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR) ### OUTPUT SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "USA" AND t2.authorder = 2 AND t1.lname = "Turon"
{ "input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR); CREATE TABLE authors (authid VARCHAR, lname VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE inst (instid VARCHAR, country VARCHAR)", "instruction": "Which paper is published in an institution in \"USA\" and have \"Turon\" as its second author?", "output": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = \"USA\" AND t2.authorder = 2 AND t1.lname = \"Turon\"" }
### INSTRUCTION What was the television that was dated December 28, 2009? ### INPUT CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR) ### OUTPUT SELECT television FROM table_23718905_6 WHERE date = "December 28, 2009"
{ "input": "CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR)", "instruction": "What was the television that was dated December 28, 2009?", "output": "SELECT television FROM table_23718905_6 WHERE date = \"December 28, 2009\"" }
### INSTRUCTION What is the name of the player with an Overall larger than 227? ### INPUT CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER) ### OUTPUT SELECT player FROM table_name_14 WHERE overall > 227
{ "input": "CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER)", "instruction": "What is the name of the player with an Overall larger than 227?", "output": "SELECT player FROM table_name_14 WHERE overall > 227" }
### INSTRUCTION What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'? ### INPUT CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR, brand VARCHAR) ### OUTPUT SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus'
{ "input": "CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR, brand VARCHAR)", "instruction": "What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?", "output": "SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus'" }
### INSTRUCTION Which tourist attractions does the visitor with detail 'Vincent' visit? ### INPUT CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### OUTPUT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent"
{ "input": "CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)", "instruction": "Which tourist attractions does the visitor with detail 'Vincent' visit?", "output": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = \"Vincent\"" }
### INSTRUCTION What is the name of the Home team that played Fitzroy as the Away team? ### INPUT CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR) ### OUTPUT SELECT home_team FROM table_name_53 WHERE away_team = "fitzroy"
{ "input": "CREATE TABLE table_name_53 (home_team VARCHAR, away_team VARCHAR)", "instruction": "What is the name of the Home team that played Fitzroy as the Away team?", "output": "SELECT home_team FROM table_name_53 WHERE away_team = \"fitzroy\"" }
### INSTRUCTION How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737? ### INPUT CREATE TABLE table_name_59 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR) ### OUTPUT SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737
{ "input": "CREATE TABLE table_name_59 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR)", "instruction": "How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?", "output": "SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737" }
### INSTRUCTION Name the fourth district for beverly bodem ### INPUT CREATE TABLE table_15442974_1 (fourth_district VARCHAR, first_district VARCHAR) ### OUTPUT SELECT fourth_district FROM table_15442974_1 WHERE first_district = "Beverly Bodem"
{ "input": "CREATE TABLE table_15442974_1 (fourth_district VARCHAR, first_district VARCHAR)", "instruction": "Name the fourth district for beverly bodem", "output": "SELECT fourth_district FROM table_15442974_1 WHERE first_district = \"Beverly Bodem\"" }
### INSTRUCTION What province has the Chinese translation 重庆? ### INPUT CREATE TABLE table_16489766_2 (province VARCHAR, chinese VARCHAR) ### OUTPUT SELECT COUNT(province) FROM table_16489766_2 WHERE chinese = "重庆"
{ "input": "CREATE TABLE table_16489766_2 (province VARCHAR, chinese VARCHAR)", "instruction": "What province has the Chinese translation 重庆?", "output": "SELECT COUNT(province) FROM table_16489766_2 WHERE chinese = \"重庆\"" }
### INSTRUCTION What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645? ### INPUT CREATE TABLE table_name_15 (kilometer INTEGER, average_climb___percentage_ VARCHAR, name VARCHAR, pavement VARCHAR, length__m_ VARCHAR) ### OUTPUT SELECT AVG(kilometer) FROM table_name_15 WHERE pavement = "asphalt" AND length__m_ > 645 AND name = "berendries" AND average_climb___percentage_ < 7
{ "input": "CREATE TABLE table_name_15 (kilometer INTEGER, average_climb___percentage_ VARCHAR, name VARCHAR, pavement VARCHAR, length__m_ VARCHAR)", "instruction": "What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?", "output": "SELECT AVG(kilometer) FROM table_name_15 WHERE pavement = \"asphalt\" AND length__m_ > 645 AND name = \"berendries\" AND average_climb___percentage_ < 7" }
### INSTRUCTION What is the general classification for a mountains value of Christophe Moreau and a Team winner of Team CSC? ### INPUT CREATE TABLE table_name_94 (general_classification VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR) ### OUTPUT SELECT general_classification FROM table_name_94 WHERE mountains_classification = "christophe moreau" AND team_classification = "team csc"
{ "input": "CREATE TABLE table_name_94 (general_classification VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR)", "instruction": "What is the general classification for a mountains value of Christophe Moreau and a Team winner of Team CSC?", "output": "SELECT general_classification FROM table_name_94 WHERE mountains_classification = \"christophe moreau\" AND team_classification = \"team csc\"" }
### INSTRUCTION What was the number of teams in the competition that wynnum manly seagulls won? ### INPUT CREATE TABLE table_25735_1 (teams INTEGER, winner VARCHAR) ### OUTPUT SELECT MIN(teams) FROM table_25735_1 WHERE winner = "Wynnum Manly Seagulls"
{ "input": "CREATE TABLE table_25735_1 (teams INTEGER, winner VARCHAR)", "instruction": "What was the number of teams in the competition that wynnum manly seagulls won?", "output": "SELECT MIN(teams) FROM table_25735_1 WHERE winner = \"Wynnum Manly Seagulls\"" }
### INSTRUCTION Which Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7? ### INPUT CREATE TABLE table_name_19 (population INTEGER, altitude__mslm_ VARCHAR, area__km_2__ VARCHAR) ### OUTPUT SELECT MAX(population) FROM table_name_19 WHERE altitude__mslm_ < 229 AND area__km_2__ > 32.7
{ "input": "CREATE TABLE table_name_19 (population INTEGER, altitude__mslm_ VARCHAR, area__km_2__ VARCHAR)", "instruction": "Which Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7?", "output": "SELECT MAX(population) FROM table_name_19 WHERE altitude__mslm_ < 229 AND area__km_2__ > 32.7" }
### INSTRUCTION What is the Statue, when Venue is "Stadio Flaminio , Rome"? ### INPUT CREATE TABLE table_name_63 (status VARCHAR, venue VARCHAR) ### OUTPUT SELECT status FROM table_name_63 WHERE venue = "stadio flaminio , rome"
{ "input": "CREATE TABLE table_name_63 (status VARCHAR, venue VARCHAR)", "instruction": "What is the Statue, when Venue is \"Stadio Flaminio , Rome\"?", "output": "SELECT status FROM table_name_63 WHERE venue = \"stadio flaminio , rome\"" }
### INSTRUCTION Find the name of account that has the lowest total checking and saving balance. ### INPUT CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### OUTPUT SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
{ "input": "CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "instruction": "Find the name of account that has the lowest total checking and saving balance.", "output": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1" }
### INSTRUCTION WHAT IS THE TO PAR FOR ERNIE ELS? ### INPUT CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_3 WHERE player = "ernie els"
{ "input": "CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR)", "instruction": "WHAT IS THE TO PAR FOR ERNIE ELS?", "output": "SELECT to_par FROM table_name_3 WHERE player = \"ernie els\"" }
### INSTRUCTION WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG? ### INPUT CREATE TABLE table_name_3 (date_of_appointment VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR) ### OUTPUT SELECT date_of_appointment FROM table_name_3 WHERE position_in_table = "pre-season" AND replaced_by = "thomas thomasberg"
{ "input": "CREATE TABLE table_name_3 (date_of_appointment VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR)", "instruction": "WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG?", "output": "SELECT date_of_appointment FROM table_name_3 WHERE position_in_table = \"pre-season\" AND replaced_by = \"thomas thomasberg\"" }
### INSTRUCTION Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian? ### INPUT CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, comedian VARCHAR) ### OUTPUT SELECT COUNT(uk_co_presenter) FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND comedian = "Russell Kane"
{ "input": "CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, comedian VARCHAR)", "instruction": "Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?", "output": "SELECT COUNT(uk_co_presenter) FROM table_14345690_15 WHERE co_presenter = \"Joe Swash\" AND comedian = \"Russell Kane\"" }
### INSTRUCTION Which date has the tom gullikson butch walts final, and who was the runner-up? ### INPUT CREATE TABLE table_name_74 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR) ### OUTPUT SELECT date FROM table_name_74 WHERE outcome = "runner-up" AND opponents_in_the_final = "tom gullikson butch walts"
{ "input": "CREATE TABLE table_name_74 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)", "instruction": "Which date has the tom gullikson butch walts final, and who was the runner-up?", "output": "SELECT date FROM table_name_74 WHERE outcome = \"runner-up\" AND opponents_in_the_final = \"tom gullikson butch walts\"" }
### INSTRUCTION What is the format of the album Pacific Ocean Blue in 1991? ### INPUT CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR) ### OUTPUT SELECT format FROM table_name_57 WHERE album = "pacific ocean blue" AND year = 1991
{ "input": "CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR)", "instruction": "What is the format of the album Pacific Ocean Blue in 1991?", "output": "SELECT format FROM table_name_57 WHERE album = \"pacific ocean blue\" AND year = 1991" }
### INSTRUCTION The original artist The Temptations has what week #? ### INPUT CREATE TABLE table_26250253_1 (week__number VARCHAR, original_artist VARCHAR) ### OUTPUT SELECT week__number FROM table_26250253_1 WHERE original_artist = "The Temptations"
{ "input": "CREATE TABLE table_26250253_1 (week__number VARCHAR, original_artist VARCHAR)", "instruction": "The original artist The Temptations has what week #?", "output": "SELECT week__number FROM table_26250253_1 WHERE original_artist = \"The Temptations\"" }
### INSTRUCTION Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13? ### INPUT CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR) ### OUTPUT SELECT AVG(react) FROM table_name_16 WHERE rank < 4 AND nationality = "trinidad and tobago" AND time > 45.13
{ "input": "CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR)", "instruction": "Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13?", "output": "SELECT AVG(react) FROM table_name_16 WHERE rank < 4 AND nationality = \"trinidad and tobago\" AND time > 45.13" }
### INSTRUCTION What are the id and first name of the student whose addresses have the highest average monthly rental? ### INPUT CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR) ### OUTPUT SELECT T1.student_id, T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
{ "input": "CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR)", "instruction": "What are the id and first name of the student whose addresses have the highest average monthly rental?", "output": "SELECT T1.student_id, T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1" }
### INSTRUCTION What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068? ### INPUT CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR) ### OUTPUT SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = "dorado" AND declination___j2000__ = "°12′43″"
{ "input": "CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR)", "instruction": "What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?", "output": "SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = \"dorado\" AND declination___j2000__ = \"°12′43″\"" }
### INSTRUCTION What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889? ### INPUT CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR) ### OUTPUT SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889"
{ "input": "CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR)", "instruction": "What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?", "output": "SELECT end_date FROM table_name_8 WHERE governor = \"richard j. oglesby\" AND term = \"1885–1889\"" }
### INSTRUCTION How many seasons did Charles C. Farrell coach? ### INPUT CREATE TABLE table_name_56 (seasons VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(seasons) FROM table_name_56 WHERE name = "charles c. farrell"
{ "input": "CREATE TABLE table_name_56 (seasons VARCHAR, name VARCHAR)", "instruction": "How many seasons did Charles C. Farrell coach?", "output": "SELECT COUNT(seasons) FROM table_name_56 WHERE name = \"charles c. farrell\"" }
### INSTRUCTION Tell me the average 1st prize for tennessee ### INPUT ### OUTPUT SELECT AVG(_1st_prize) FROM table_name_55 WHERE location = "tennessee"
{ "input": "", "instruction": "Tell me the average 1st prize for tennessee", "output": "SELECT AVG(_1st_prize) FROM table_name_55 WHERE location = \"tennessee\"" }
### INSTRUCTION What country has a series premier of unknown and mbc action as their TV network? ### INPUT CREATE TABLE table_name_27 (country VARCHAR, series_premiere VARCHAR, tv_network_s_ VARCHAR) ### OUTPUT SELECT country FROM table_name_27 WHERE series_premiere = "unknown" AND tv_network_s_ = "mbc action"
{ "input": "CREATE TABLE table_name_27 (country VARCHAR, series_premiere VARCHAR, tv_network_s_ VARCHAR)", "instruction": "What country has a series premier of unknown and mbc action as their TV network?", "output": "SELECT country FROM table_name_27 WHERE series_premiere = \"unknown\" AND tv_network_s_ = \"mbc action\"" }
### INSTRUCTION During the Mid-American Conference who is listed as the tournament winner? ### INPUT CREATE TABLE table_28365816_2 (tournament_winner VARCHAR, conference VARCHAR) ### OUTPUT SELECT tournament_winner FROM table_28365816_2 WHERE conference = "Mid-American conference"
{ "input": "CREATE TABLE table_28365816_2 (tournament_winner VARCHAR, conference VARCHAR)", "instruction": "During the Mid-American Conference who is listed as the tournament winner?", "output": "SELECT tournament_winner FROM table_28365816_2 WHERE conference = \"Mid-American conference\"" }
### INSTRUCTION Name the golden ticket for invesco field ### INPUT CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, audition_venue VARCHAR) ### OUTPUT SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = "Invesco Field"
{ "input": "CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, audition_venue VARCHAR)", "instruction": "Name the golden ticket for invesco field", "output": "SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = \"Invesco Field\"" }
### INSTRUCTION Who had the lowest field goals but had 10 points and more than 2 touchdowns? ### INPUT CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR) ### OUTPUT SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2
{ "input": "CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR)", "instruction": "Who had the lowest field goals but had 10 points and more than 2 touchdowns?", "output": "SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2" }
### INSTRUCTION What was the largest crowd when South Melbourne was the away team? ### INPUT CREATE TABLE table_name_89 (crowd INTEGER, away_team VARCHAR) ### OUTPUT SELECT MAX(crowd) FROM table_name_89 WHERE away_team = "south melbourne"
{ "input": "CREATE TABLE table_name_89 (crowd INTEGER, away_team VARCHAR)", "instruction": "What was the largest crowd when South Melbourne was the away team?", "output": "SELECT MAX(crowd) FROM table_name_89 WHERE away_team = \"south melbourne\"" }
### INSTRUCTION Name the least clock rate mhz when designation is rimm 4200 ### INPUT CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER, designation VARCHAR) ### OUTPUT SELECT MIN(clock_rate__mhz_) FROM table_142573_1 WHERE designation = "RIMM 4200"
{ "input": "CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER, designation VARCHAR)", "instruction": "Name the least clock rate mhz when designation is rimm 4200", "output": "SELECT MIN(clock_rate__mhz_) FROM table_142573_1 WHERE designation = \"RIMM 4200\"" }
### INSTRUCTION What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis? ### INPUT CREATE TABLE table_name_36 (points INTEGER, engine VARCHAR, chassis VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_name_36 WHERE engine = "mugen v8" AND chassis = "reynard 91d"
{ "input": "CREATE TABLE table_name_36 (points INTEGER, engine VARCHAR, chassis VARCHAR)", "instruction": "What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?", "output": "SELECT MIN(points) FROM table_name_36 WHERE engine = \"mugen v8\" AND chassis = \"reynard 91d\"" }
### INSTRUCTION What is the lowest amount of money a player from South Africa with a to par less than 8 has? ### INPUT CREATE TABLE table_name_13 (money___ INTEGER, country VARCHAR, to_par VARCHAR) ### OUTPUT SELECT MIN(money___) AS $__ FROM table_name_13 WHERE country = "south africa" AND to_par < 8
{ "input": "CREATE TABLE table_name_13 (money___ INTEGER, country VARCHAR, to_par VARCHAR)", "instruction": "What is the lowest amount of money a player from South Africa with a to par less than 8 has?", "output": "SELECT MIN(money___) AS $__ FROM table_name_13 WHERE country = \"south africa\" AND to_par < 8" }
### INSTRUCTION Which Played has a Lost larger than 2, and a Team of américa? ### INPUT CREATE TABLE table_name_4 (played VARCHAR, lost VARCHAR, team VARCHAR) ### OUTPUT SELECT played FROM table_name_4 WHERE lost > 2 AND team = "américa"
{ "input": "CREATE TABLE table_name_4 (played VARCHAR, lost VARCHAR, team VARCHAR)", "instruction": "Which Played has a Lost larger than 2, and a Team of américa?", "output": "SELECT played FROM table_name_4 WHERE lost > 2 AND team = \"américa\"" }
### INSTRUCTION Which Events have a Player of tom kite, and Earnings ($) smaller than 760,405? ### INPUT CREATE TABLE table_name_60 (events INTEGER, player VARCHAR, earnings___$__ VARCHAR) ### OUTPUT SELECT AVG(events) FROM table_name_60 WHERE player = "tom kite" AND earnings___$__ < 760 OFFSET 405
{ "input": "CREATE TABLE table_name_60 (events INTEGER, player VARCHAR, earnings___$__ VARCHAR)", "instruction": "Which Events have a Player of tom kite, and Earnings ($) smaller than 760,405?", "output": "SELECT AVG(events) FROM table_name_60 WHERE player = \"tom kite\" AND earnings___$__ < 760 OFFSET 405" }
### INSTRUCTION Who handled production for the race when the championship went to david wall and challenge was jordan ormsby? ### INPUT CREATE TABLE table_26686908_2 (production VARCHAR, championship VARCHAR, challenge VARCHAR) ### OUTPUT SELECT production FROM table_26686908_2 WHERE championship = "David Wall" AND challenge = "Jordan Ormsby"
{ "input": "CREATE TABLE table_26686908_2 (production VARCHAR, championship VARCHAR, challenge VARCHAR)", "instruction": "Who handled production for the race when the championship went to david wall and challenge was jordan ormsby?", "output": "SELECT production FROM table_26686908_2 WHERE championship = \"David Wall\" AND challenge = \"Jordan Ormsby\"" }
### INSTRUCTION What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"? ### INPUT CREATE TABLE Students (date_of_latest_logon VARCHAR, family_name VARCHAR) ### OUTPUT SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh"
{ "input": "CREATE TABLE Students (date_of_latest_logon VARCHAR, family_name VARCHAR)", "instruction": "What are the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?", "output": "SELECT date_of_latest_logon FROM Students WHERE family_name = \"Jaskolski\" OR family_name = \"Langosh\"" }
### INSTRUCTION What is the poor law union of the Kilmaloda townland? ### INPUT CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR) ### OUTPUT SELECT poor_law_union FROM table_30121046_1 WHERE townland = "Kilmaloda"
{ "input": "CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)", "instruction": "What is the poor law union of the Kilmaloda townland?", "output": "SELECT poor_law_union FROM table_30121046_1 WHERE townland = \"Kilmaloda\"" }
### INSTRUCTION What are the names of nations where both English and French are official languages? ### INPUT CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR) ### OUTPUT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French" AND T2.IsOfficial = "T"
{ "input": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)", "instruction": "What are the names of nations where both English and French are official languages?", "output": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"" }
### INSTRUCTION What are the movie titles and average rating of the movies with the lowest average rating? ### INPUT CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### OUTPUT SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1
{ "input": "CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "instruction": "What are the movie titles and average rating of the movies with the lowest average rating?", "output": "SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1" }
### INSTRUCTION Who is the color commentator for ESPN from 1990 to 1992? ### INPUT CREATE TABLE table_name_70 (color_commentator_s_ VARCHAR, network VARCHAR) ### OUTPUT SELECT color_commentator_s_ FROM table_name_70 WHERE network = "espn"
{ "input": "CREATE TABLE table_name_70 (color_commentator_s_ VARCHAR, network VARCHAR)", "instruction": "Who is the color commentator for ESPN from 1990 to 1992?", "output": "SELECT color_commentator_s_ FROM table_name_70 WHERE network = \"espn\"" }
### INSTRUCTION Name the dominant religion of srpska crnja ### INPUT CREATE TABLE table_2562572_37 (dominant_religion__2002_ VARCHAR, settlement VARCHAR) ### OUTPUT SELECT dominant_religion__2002_ FROM table_2562572_37 WHERE settlement = "Srpska Crnja"
{ "input": "CREATE TABLE table_2562572_37 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)", "instruction": "Name the dominant religion of srpska crnja", "output": "SELECT dominant_religion__2002_ FROM table_2562572_37 WHERE settlement = \"Srpska Crnja\"" }
### INSTRUCTION How many regions have a capital of matanzas and a 2005 population under 670427? ### INPUT CREATE TABLE table_name_85 (area__km²_ VARCHAR, capital VARCHAR, population__2005_ VARCHAR) ### OUTPUT SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = "matanzas" AND population__2005_ < 670427
{ "input": "CREATE TABLE table_name_85 (area__km²_ VARCHAR, capital VARCHAR, population__2005_ VARCHAR)", "instruction": "How many regions have a capital of matanzas and a 2005 population under 670427?", "output": "SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = \"matanzas\" AND population__2005_ < 670427" }
### INSTRUCTION Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989? ### INPUT CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR) ### OUTPUT SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989"
{ "input": "CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)", "instruction": "Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?", "output": "SELECT surname FROM table_name_64 WHERE throws = \"r\" AND position = \"p\" AND dob = \"26 april 1989\"" }
### INSTRUCTION Find the top 3 wineries with the greatest number of wines made of white color grapes. ### INPUT CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR) ### OUTPUT SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3
{ "input": "CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)", "instruction": "Find the top 3 wineries with the greatest number of wines made of white color grapes.", "output": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3" }
### INSTRUCTION What is the local name given to the city of Canberra? ### INPUT CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR) ### OUTPUT SELECT capital___endonym__ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
{ "input": "CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR)", "instruction": "What is the local name given to the city of Canberra?", "output": "SELECT capital___endonym__ FROM table_1008653_1 WHERE capital___exonym__ = \"Canberra\"" }
### INSTRUCTION What are the name, phone number and email address of the customer who made the largest number of orders? ### INPUT CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR) ### OUTPUT SELECT T1.customer_name, T1.customer_phone, T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)", "instruction": "What are the name, phone number and email address of the customer who made the largest number of orders?", "output": "SELECT T1.customer_name, T1.customer_phone, T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the sum of attendance when the result was l 16-13? ### INPUT CREATE TABLE table_name_54 (attendance INTEGER, result VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_54 WHERE result = "l 16-13"
{ "input": "CREATE TABLE table_name_54 (attendance INTEGER, result VARCHAR)", "instruction": "What is the sum of attendance when the result was l 16-13?", "output": "SELECT SUM(attendance) FROM table_name_54 WHERE result = \"l 16-13\"" }
### INSTRUCTION When дероње is the cyrillic name other names what is the largest ethnic group of 2002? ### INPUT CREATE TABLE table_2562572_25 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR) ### OUTPUT SELECT largest_ethnic_group__2002_ FROM table_2562572_25 WHERE cyrillic_name_other_names = "Дероње"
{ "input": "CREATE TABLE table_2562572_25 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)", "instruction": "When дероње is the cyrillic name other names what is the largest ethnic group of 2002?", "output": "SELECT largest_ethnic_group__2002_ FROM table_2562572_25 WHERE cyrillic_name_other_names = \"Дероње\"" }
### INSTRUCTION List the top 10 customers by total gross sales. List customers' first and last name and total gross sales. ### INPUT CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10
{ "input": "CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR)", "instruction": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.", "output": "SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10" }
### INSTRUCTION What is the document status description of the document with id 1? ### INPUT CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Document_Status (Id VARCHAR) ### OUTPUT SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1
{ "input": "CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Document_Status (Id VARCHAR)", "instruction": "What is the document status description of the document with id 1?", "output": "SELECT Ref_Document_Status.document_status_description FROM Ref_Document_Status JOIN Documents ON Documents.document_status_code = Ref_Document_Status.document_status_code WHERE Documents.document_id = 1" }
### INSTRUCTION If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number? ### INPUT CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford"
{ "input": "CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR)", "instruction": "If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number?", "output": "SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = \"Ontario Motor Speedway\" AND pole_position = \"Johnny Rutherford\"" }
### INSTRUCTION What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1? ### INPUT CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) ### OUTPUT SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = "germany (ger)" AND gold < 1
{ "input": "CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)", "instruction": "What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?", "output": "SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = \"germany (ger)\" AND gold < 1" }
### INSTRUCTION On which date was the high assists Delonte West Earl Watson (6)? ### INPUT CREATE TABLE table_name_78 (date VARCHAR, high_assists VARCHAR) ### OUTPUT SELECT date FROM table_name_78 WHERE high_assists = "delonte west earl watson (6)"
{ "input": "CREATE TABLE table_name_78 (date VARCHAR, high_assists VARCHAR)", "instruction": "On which date was the high assists Delonte West Earl Watson (6)?", "output": "SELECT date FROM table_name_78 WHERE high_assists = \"delonte west earl watson (6)\"" }
### INSTRUCTION How much money does the player with a 68-67-69-71=275 score have? ### INPUT CREATE TABLE table_name_62 (money___£__ VARCHAR, score VARCHAR) ### OUTPUT SELECT money___£__ FROM table_name_62 WHERE score = 68 - 67 - 69 - 71 = 275
{ "input": "CREATE TABLE table_name_62 (money___£__ VARCHAR, score VARCHAR)", "instruction": "How much money does the player with a 68-67-69-71=275 score have?", "output": "SELECT money___£__ FROM table_name_62 WHERE score = 68 - 67 - 69 - 71 = 275" }
### INSTRUCTION Name the total number of main contestants for safe position for tina parekh ### INPUT CREATE TABLE table_18278508_4 (main_contestant VARCHAR, position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### OUTPUT SELECT COUNT(main_contestant) FROM table_18278508_4 WHERE position = "Safe" AND co_contestant__yaar_vs_pyaar_ = "Tina Parekh"
{ "input": "CREATE TABLE table_18278508_4 (main_contestant VARCHAR, position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)", "instruction": "Name the total number of main contestants for safe position for tina parekh", "output": "SELECT COUNT(main_contestant) FROM table_18278508_4 WHERE position = \"Safe\" AND co_contestant__yaar_vs_pyaar_ = \"Tina Parekh\"" }
### INSTRUCTION which Completion % has a Yards of 2,175? ### INPUT CREATE TABLE table_name_57 (completion__percentage VARCHAR, yards VARCHAR) ### OUTPUT SELECT completion__percentage FROM table_name_57 WHERE yards = "2,175"
{ "input": "CREATE TABLE table_name_57 (completion__percentage VARCHAR, yards VARCHAR)", "instruction": "which Completion % has a Yards of 2,175?", "output": "SELECT completion__percentage FROM table_name_57 WHERE yards = \"2,175\"" }
### INSTRUCTION What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%? ### INPUT CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR) ### OUTPUT SELECT district FROM table_1341884_40 WHERE candidates = "James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%"
{ "input": "CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR)", "instruction": "What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?", "output": "SELECT district FROM table_1341884_40 WHERE candidates = \"James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%\"" }
### INSTRUCTION What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20? ### INPUT CREATE TABLE table_name_64 (year_commissioned INTEGER, average_annual_output__million_kwh_ VARCHAR, installed_capacity__megawatts_ VARCHAR) ### OUTPUT SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20
{ "input": "CREATE TABLE table_name_64 (year_commissioned INTEGER, average_annual_output__million_kwh_ VARCHAR, installed_capacity__megawatts_ VARCHAR)", "instruction": "What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20?", "output": "SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20" }
### INSTRUCTION Name the least pick number for colin campbell ### INPUT CREATE TABLE table_1965650_2 (pick__number INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(pick__number) FROM table_1965650_2 WHERE player = "Colin Campbell"
{ "input": "CREATE TABLE table_1965650_2 (pick__number INTEGER, player VARCHAR)", "instruction": "Name the least pick number for colin campbell", "output": "SELECT MIN(pick__number) FROM table_1965650_2 WHERE player = \"Colin Campbell\"" }
### INSTRUCTION Which Season has a Final Place of 8th and 8 Podiums? ### INPUT CREATE TABLE table_name_79 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR) ### OUTPUT SELECT season FROM table_name_79 WHERE final_placing = "8th" AND podiums = "8"
{ "input": "CREATE TABLE table_name_79 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR)", "instruction": "Which Season has a Final Place of 8th and 8 Podiums?", "output": "SELECT season FROM table_name_79 WHERE final_placing = \"8th\" AND podiums = \"8\"" }
### INSTRUCTION When Matt Ware won the mens singles, who won the mixed restricted? ### INPUT CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mens_singles VARCHAR) ### OUTPUT SELECT mixed_restricted FROM table_28211674_3 WHERE mens_singles = "Matt Ware"
{ "input": "CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mens_singles VARCHAR)", "instruction": "When Matt Ware won the mens singles, who won the mixed restricted?", "output": "SELECT mixed_restricted FROM table_28211674_3 WHERE mens_singles = \"Matt Ware\"" }
### INSTRUCTION What is the name of the artist who produced the shortest song? ### INPUT CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR) ### OUTPUT SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1
{ "input": "CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR)", "instruction": "What is the name of the artist who produced the shortest song?", "output": "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1" }
### INSTRUCTION Name the total number of platforms that waddon railway station has ### INPUT CREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR) ### OUTPUT SELECT COUNT(platforms) FROM table_name_41 WHERE stations = "waddon railway station"
{ "input": "CREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR)", "instruction": "Name the total number of platforms that waddon railway station has", "output": "SELECT COUNT(platforms) FROM table_name_41 WHERE stations = \"waddon railway station\"" }
### INSTRUCTION What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"? ### INPUT CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE MATCH (venue VARCHAR, match_id VARCHAR, competition VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, match_id VARCHAR) ### OUTPUT SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"
{ "input": "CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE MATCH (venue VARCHAR, match_id VARCHAR, competition VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, match_id VARCHAR)", "instruction": "What is the venue of the competition \"1994 FIFA World Cup qualification\" hosted by \"Nanjing ( Jiangsu )\"?", "output": "SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = \"Nanjing ( Jiangsu )\" AND T3.competition = \"1994 FIFA World Cup qualification\"" }
### INSTRUCTION How many polls show different percentages for Tom Emmer and 38% for Matt Entenza? ### INPUT CREATE TABLE table_20032301_3 (tom_emmer__r_ VARCHAR, matt_entenza__dfl_ VARCHAR) ### OUTPUT SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%"
{ "input": "CREATE TABLE table_20032301_3 (tom_emmer__r_ VARCHAR, matt_entenza__dfl_ VARCHAR)", "instruction": "How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?", "output": "SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = \"38%\"" }
### INSTRUCTION Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel? ### INPUT CREATE TABLE table_21312845_1 (directed_by VARCHAR, production_code VARCHAR, written_by VARCHAR) ### OUTPUT SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = "Curtis Kheel"
{ "input": "CREATE TABLE table_21312845_1 (directed_by VARCHAR, production_code VARCHAR, written_by VARCHAR)", "instruction": "Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel?", "output": "SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = \"Curtis Kheel\"" }
### INSTRUCTION What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants? ### INPUT CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR) ### OUTPUT SELECT MIN(pick) FROM table_name_13 WHERE position = "of" AND team = "san francisco giants" AND player = "arturo mcdowell"
{ "input": "CREATE TABLE table_name_13 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)", "instruction": "What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?", "output": "SELECT MIN(pick) FROM table_name_13 WHERE position = \"of\" AND team = \"san francisco giants\" AND player = \"arturo mcdowell\"" }
### INSTRUCTION Which 2008 club has the name Francesca Piccinini Category:Articles with hCards? ### INPUT CREATE TABLE table_name_71 (name VARCHAR) ### OUTPUT SELECT 2008 AS _club FROM table_name_71 WHERE name = "francesca piccinini category:articles with hcards"
{ "input": "CREATE TABLE table_name_71 (name VARCHAR)", "instruction": "Which 2008 club has the name Francesca Piccinini Category:Articles with hCards?", "output": "SELECT 2008 AS _club FROM table_name_71 WHERE name = \"francesca piccinini category:articles with hcards\"" }
### INSTRUCTION Which Wins have a Class of 500cc, and a Year smaller than 1975? ### INPUT CREATE TABLE table_name_46 (wins VARCHAR, class VARCHAR, year VARCHAR) ### OUTPUT SELECT wins FROM table_name_46 WHERE class = "500cc" AND year < 1975
{ "input": "CREATE TABLE table_name_46 (wins VARCHAR, class VARCHAR, year VARCHAR)", "instruction": "Which Wins have a Class of 500cc, and a Year smaller than 1975?", "output": "SELECT wins FROM table_name_46 WHERE class = \"500cc\" AND year < 1975" }
### INSTRUCTION How many drivers where there when the time/retired +3 laps and points were 24? ### INPUT CREATE TABLE table_17319931_1 (driver VARCHAR, time_retired VARCHAR, points VARCHAR) ### OUTPUT SELECT COUNT(driver) FROM table_17319931_1 WHERE time_retired = "+3 laps" AND points = "24"
{ "input": "CREATE TABLE table_17319931_1 (driver VARCHAR, time_retired VARCHAR, points VARCHAR)", "instruction": "How many drivers where there when the time/retired +3 laps and points were 24?", "output": "SELECT COUNT(driver) FROM table_17319931_1 WHERE time_retired = \"+3 laps\" AND points = \"24\"" }
### INSTRUCTION Find the number of students who are older than 18 and do not have allergy to either food or animal. ### INPUT CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Student (age VARCHAR, StuID VARCHAR) ### OUTPUT SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal")
{ "input": "CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Student (age VARCHAR, StuID VARCHAR)", "instruction": "Find the number of students who are older than 18 and do not have allergy to either food or animal.", "output": "SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")" }
### INSTRUCTION What is the lowest number of uncommitted superdelegates for a state with more than 16 total and 2 for Hillary Clinton? ### INPUT CREATE TABLE table_name_16 (uncommitted INTEGER, total VARCHAR, hillary_clinton VARCHAR) ### OUTPUT SELECT MIN(uncommitted) FROM table_name_16 WHERE total > 16 AND hillary_clinton = 2
{ "input": "CREATE TABLE table_name_16 (uncommitted INTEGER, total VARCHAR, hillary_clinton VARCHAR)", "instruction": "What is the lowest number of uncommitted superdelegates for a state with more than 16 total and 2 for Hillary Clinton?", "output": "SELECT MIN(uncommitted) FROM table_name_16 WHERE total > 16 AND hillary_clinton = 2" }
### INSTRUCTION How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers? ### INPUT CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_analysts VARCHAR) ### OUTPUT SELECT COUNT(play_by_play) FROM table_17628022_2 WHERE pregame_analysts = "Darren Flutie, Eric Tillman and Greg Frers"
{ "input": "CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_analysts VARCHAR)", "instruction": "How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?", "output": "SELECT COUNT(play_by_play) FROM table_17628022_2 WHERE pregame_analysts = \"Darren Flutie, Eric Tillman and Greg Frers\"" }
### INSTRUCTION Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states? ### INPUT CREATE TABLE table_name_33 (format VARCHAR, country VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR) ### OUTPUT SELECT format FROM table_name_33 WHERE label = "eagle eye media" AND catalogue_number_s_ = "—" AND country = "united states"
{ "input": "CREATE TABLE table_name_33 (format VARCHAR, country VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)", "instruction": "Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?", "output": "SELECT format FROM table_name_33 WHERE label = \"eagle eye media\" AND catalogue_number_s_ = \"—\" AND country = \"united states\"" }
### INSTRUCTION How many race 3 winners were there when Mitch Evans won race 2? ### INPUT CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR) ### OUTPUT SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = "Mitch Evans"
{ "input": "CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR)", "instruction": "How many race 3 winners were there when Mitch Evans won race 2?", "output": "SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = \"Mitch Evans\"" }
### INSTRUCTION What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2? ### INPUT CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR) ### OUTPUT SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2
{ "input": "CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)", "instruction": "What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?", "output": "SELECT AVG(pass_def) FROM table_name_63 WHERE team = \"green bay packers\" AND solo = 62 AND sacks < 2" }
### INSTRUCTION What was the option from Italy with general television content, and the Cielo television service? ### INPUT CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR) ### OUTPUT SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo"
{ "input": "CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR)", "instruction": "What was the option from Italy with general television content, and the Cielo television service?", "output": "SELECT package_option FROM table_name_84 WHERE country = \"italy\" AND content = \"general television\" AND television_service = \"cielo\"" }
### INSTRUCTION What year did Ivanovic win with Ivanovic greater than 4 and round of R16? ### INPUT CREATE TABLE table_name_95 (year INTEGER, round VARCHAR, winner VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_95 WHERE winner = "ivanovic" AND "ivanovic" > 4 AND round = "r16"
{ "input": "CREATE TABLE table_name_95 (year INTEGER, round VARCHAR, winner VARCHAR)", "instruction": "What year did Ivanovic win with Ivanovic greater than 4 and round of R16?", "output": "SELECT SUM(year) FROM table_name_95 WHERE winner = \"ivanovic\" AND \"ivanovic\" > 4 AND round = \"r16\"" }
### INSTRUCTION What is the highest Grid with a time of +1:19.905, and less than 20 laps? ### INPUT CREATE TABLE table_name_22 (grid INTEGER, time VARCHAR, laps VARCHAR) ### OUTPUT SELECT MAX(grid) FROM table_name_22 WHERE time = "+1:19.905" AND laps < 20
{ "input": "CREATE TABLE table_name_22 (grid INTEGER, time VARCHAR, laps VARCHAR)", "instruction": "What is the highest Grid with a time of +1:19.905, and less than 20 laps?", "output": "SELECT MAX(grid) FROM table_name_22 WHERE time = \"+1:19.905\" AND laps < 20" }
### INSTRUCTION What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4? ### INPUT CREATE TABLE table_name_71 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR) ### OUTPUT SELECT AVG(laps) FROM table_name_71 WHERE manufacturer = "yamaha" AND rider = "garry mccoy" AND grid < 4
{ "input": "CREATE TABLE table_name_71 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR)", "instruction": "What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4?", "output": "SELECT AVG(laps) FROM table_name_71 WHERE manufacturer = \"yamaha\" AND rider = \"garry mccoy\" AND grid < 4" }
### INSTRUCTION What is the date of Super G in the 2010 season? ### INPUT CREATE TABLE table_name_50 (date VARCHAR, discipline VARCHAR, season VARCHAR) ### OUTPUT SELECT date FROM table_name_50 WHERE discipline = "super g" AND season = 2010
{ "input": "CREATE TABLE table_name_50 (date VARCHAR, discipline VARCHAR, season VARCHAR)", "instruction": "What is the date of Super G in the 2010 season?", "output": "SELECT date FROM table_name_50 WHERE discipline = \"super g\" AND season = 2010" }
### INSTRUCTION What was the lowest attendance for the game that had a time of 3:31 and was before game 7? ### INPUT CREATE TABLE table_name_58 (attendance INTEGER, time VARCHAR, game VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_58 WHERE time = "3:31" AND game < 7
{ "input": "CREATE TABLE table_name_58 (attendance INTEGER, time VARCHAR, game VARCHAR)", "instruction": "What was the lowest attendance for the game that had a time of 3:31 and was before game 7?", "output": "SELECT MIN(attendance) FROM table_name_58 WHERE time = \"3:31\" AND game < 7" }
### INSTRUCTION What year was the expansion in the city of San Juan? ### INPUT CREATE TABLE table_name_31 (year VARCHAR, city VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_31 WHERE city = "san juan"
{ "input": "CREATE TABLE table_name_31 (year VARCHAR, city VARCHAR)", "instruction": "What year was the expansion in the city of San Juan?", "output": "SELECT COUNT(year) FROM table_name_31 WHERE city = \"san juan\"" }
### INSTRUCTION How many ranks are for Switzerland with more than 2 total medals? ### INPUT CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR) ### OUTPUT SELECT COUNT(rank) FROM table_name_39 WHERE nation = "switzerland" AND total > 2
{ "input": "CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR)", "instruction": "How many ranks are for Switzerland with more than 2 total medals?", "output": "SELECT COUNT(rank) FROM table_name_39 WHERE nation = \"switzerland\" AND total > 2" }
### INSTRUCTION What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126? ### INPUT CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR) ### OUTPUT SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis"
{ "input": "CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR)", "instruction": "What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126?", "output": "SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = \"gary sturgis\"" }
### INSTRUCTION In how many weeks was the game played on November 3 played? ### INPUT CREATE TABLE table_17869717_1 (week VARCHAR, date VARCHAR) ### OUTPUT SELECT COUNT(week) FROM table_17869717_1 WHERE date = "November 3"
{ "input": "CREATE TABLE table_17869717_1 (week VARCHAR, date VARCHAR)", "instruction": "In how many weeks was the game played on November 3 played?", "output": "SELECT COUNT(week) FROM table_17869717_1 WHERE date = \"November 3\"" }
### INSTRUCTION What are the the University of Richmond's school colors? ### INPUT CREATE TABLE table_1221089_1 (colors VARCHAR, institution VARCHAR) ### OUTPUT SELECT colors FROM table_1221089_1 WHERE institution = "University of Richmond"
{ "input": "CREATE TABLE table_1221089_1 (colors VARCHAR, institution VARCHAR)", "instruction": "What are the the University of Richmond's school colors?", "output": "SELECT colors FROM table_1221089_1 WHERE institution = \"University of Richmond\"" }
### INSTRUCTION What was the score of the match where paris sg (d1) was team 1? ### INPUT CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR) ### OUTPUT SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)"
{ "input": "CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR)", "instruction": "What was the score of the match where paris sg (d1) was team 1?", "output": "SELECT score FROM table_name_63 WHERE team_1 = \"paris sg (d1)\"" }
### INSTRUCTION When did Northeastern University join? ### INPUT CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR) ### OUTPUT SELECT SUM(joined) FROM table_name_59 WHERE institution = "northeastern university"
{ "input": "CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR)", "instruction": "When did Northeastern University join?", "output": "SELECT SUM(joined) FROM table_name_59 WHERE institution = \"northeastern university\"" }
### INSTRUCTION What is the wards/branches of the fort smith Arkansas stake? ### INPUT CREATE TABLE table_name_89 (wards__branches_in_arkansas VARCHAR, stake VARCHAR) ### OUTPUT SELECT wards__branches_in_arkansas FROM table_name_89 WHERE stake = "fort smith arkansas"
{ "input": "CREATE TABLE table_name_89 (wards__branches_in_arkansas VARCHAR, stake VARCHAR)", "instruction": "What is the wards/branches of the fort smith Arkansas stake?", "output": "SELECT wards__branches_in_arkansas FROM table_name_89 WHERE stake = \"fort smith arkansas\"" }
### INSTRUCTION What television service is in italy and is in english? ### INPUT CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, language VARCHAR) ### OUTPUT SELECT television_service FROM table_15887683_15 WHERE country = "Italy" AND language = "English"
{ "input": "CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, language VARCHAR)", "instruction": "What television service is in italy and is in english?", "output": "SELECT television_service FROM table_15887683_15 WHERE country = \"Italy\" AND language = \"English\"" }
### INSTRUCTION Which country is ranked 56 overall and has a heat rank smaller than 8? ### INPUT CREATE TABLE table_name_72 (country VARCHAR, heat_rank VARCHAR, overall_rank VARCHAR) ### OUTPUT SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56"
{ "input": "CREATE TABLE table_name_72 (country VARCHAR, heat_rank VARCHAR, overall_rank VARCHAR)", "instruction": "Which country is ranked 56 overall and has a heat rank smaller than 8?", "output": "SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = \"56\"" }
### INSTRUCTION What is the train number for the train name island express with a destination of kanniyakumari? ### INPUT CREATE TABLE table_29770377_1 (train_number VARCHAR, train_name VARCHAR, destination VARCHAR) ### OUTPUT SELECT train_number FROM table_29770377_1 WHERE train_name = "Island Express" AND destination = "Kanniyakumari"
{ "input": "CREATE TABLE table_29770377_1 (train_number VARCHAR, train_name VARCHAR, destination VARCHAR)", "instruction": "What is the train number for the train name island express with a destination of kanniyakumari?", "output": "SELECT train_number FROM table_29770377_1 WHERE train_name = \"Island Express\" AND destination = \"Kanniyakumari\"" }
### INSTRUCTION Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24? ### INPUT CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24"
{ "input": "CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR)", "instruction": "Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24?", "output": "SELECT MIN(year) FROM table_name_76 WHERE athlete = \"markus thalmann\" AND time = \"23:28:24\"" }
### INSTRUCTION Which Date has an Attendance of 9,535? ### INPUT CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR) ### OUTPUT SELECT date FROM table_name_73 WHERE attendance = "9,535"
{ "input": "CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)", "instruction": "Which Date has an Attendance of 9,535?", "output": "SELECT date FROM table_name_73 WHERE attendance = \"9,535\"" }