text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the method of the match in the Road fc 12 at 5:00 with less than 3 rounds, and a loss result? ### INPUT CREATE TABLE table_name_72 (method VARCHAR, event VARCHAR, res VARCHAR, time VARCHAR, round VARCHAR) ### OUTPUT SELECT method FROM table_name_72 WHERE time = "5:00" AND round < 3 AND res = "loss" AND event = "road fc 12"
{ "input": "CREATE TABLE table_name_72 (method VARCHAR, event VARCHAR, res VARCHAR, time VARCHAR, round VARCHAR)", "instruction": "What is the method of the match in the Road fc 12 at 5:00 with less than 3 rounds, and a loss result?", "output": "SELECT method FROM table_name_72 WHERE time = \"5:00\" AND round < 3 AND res = \"loss\" AND event = \"road fc 12\"" }
### INSTRUCTION What was the highest average point rating for a modern suspense show with 21 episodes? ### INPUT CREATE TABLE table_name_29 (highest_average_point_ratings INTEGER, genre VARCHAR, number_of_episodes VARCHAR) ### OUTPUT SELECT SUM(highest_average_point_ratings) FROM table_name_29 WHERE genre = "modern suspense" AND number_of_episodes = 21
{ "input": "CREATE TABLE table_name_29 (highest_average_point_ratings INTEGER, genre VARCHAR, number_of_episodes VARCHAR)", "instruction": "What was the highest average point rating for a modern suspense show with 21 episodes?", "output": "SELECT SUM(highest_average_point_ratings) FROM table_name_29 WHERE genre = \"modern suspense\" AND number_of_episodes = 21" }
### INSTRUCTION What is the lowest pick # of John Ayres? ### INPUT CREATE TABLE table_name_15 (pick__number INTEGER, name VARCHAR) ### OUTPUT SELECT MIN(pick__number) FROM table_name_15 WHERE name = "john ayres"
{ "input": "CREATE TABLE table_name_15 (pick__number INTEGER, name VARCHAR)", "instruction": "What is the lowest pick # of John Ayres?", "output": "SELECT MIN(pick__number) FROM table_name_15 WHERE name = \"john ayres\"" }
### INSTRUCTION What is the Winners when the United States is the runner-up at st. germain golf club? ### INPUT CREATE TABLE table_name_90 (winners VARCHAR, runners_up VARCHAR, venue VARCHAR) ### OUTPUT SELECT winners FROM table_name_90 WHERE runners_up = "united states" AND venue = "st. germain golf club"
{ "input": "CREATE TABLE table_name_90 (winners VARCHAR, runners_up VARCHAR, venue VARCHAR)", "instruction": "What is the Winners when the United States is the runner-up at st. germain golf club?", "output": "SELECT winners FROM table_name_90 WHERE runners_up = \"united states\" AND venue = \"st. germain golf club\"" }
### INSTRUCTION What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue? ### INPUT CREATE TABLE table_name_6 (floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR) ### OUTPUT SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue"
{ "input": "CREATE TABLE table_name_6 (floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR)", "instruction": "What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue?", "output": "SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = \"100 van ness avenue\"" }
### INSTRUCTION What is the area of the parish with a population larger than 1,172 and a census ranking of 1,871 of 5,008? ### INPUT CREATE TABLE table_name_16 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR) ### OUTPUT SELECT COUNT(area_km_2) FROM table_name_16 WHERE census_ranking = "1,871 of 5,008" AND population > 1 OFFSET 172
{ "input": "CREATE TABLE table_name_16 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)", "instruction": "What is the area of the parish with a population larger than 1,172 and a census ranking of 1,871 of 5,008?", "output": "SELECT COUNT(area_km_2) FROM table_name_16 WHERE census_ranking = \"1,871 of 5,008\" AND population > 1 OFFSET 172" }
### INSTRUCTION Who was the opponent when Richmond played as the home team? ### INPUT CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team FROM table_name_56 WHERE home_team = "richmond"
{ "input": "CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)", "instruction": "Who was the opponent when Richmond played as the home team?", "output": "SELECT away_team FROM table_name_56 WHERE home_team = \"richmond\"" }
### INSTRUCTION What is the population of Danderyd municipality in Stockholm County with a code lower than 162? ### INPUT CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR) ### OUTPUT SELECT COUNT(population) FROM table_name_62 WHERE county = "stockholm county" AND municipality = "danderyd municipality" AND code < 162
{ "input": "CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)", "instruction": "What is the population of Danderyd municipality in Stockholm County with a code lower than 162?", "output": "SELECT COUNT(population) FROM table_name_62 WHERE county = \"stockholm county\" AND municipality = \"danderyd municipality\" AND code < 162" }
### INSTRUCTION Show the id, name of each editor and the number of journal committees they are on. ### INPUT CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR) ### OUTPUT SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id
{ "input": "CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)", "instruction": "Show the id, name of each editor and the number of journal committees they are on.", "output": "SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id" }
### INSTRUCTION What Field was played at in an away game against the bayhawks? ### INPUT CREATE TABLE table_name_99 (field VARCHAR, home_away VARCHAR, opponent VARCHAR) ### OUTPUT SELECT field FROM table_name_99 WHERE home_away = "away" AND opponent = "bayhawks"
{ "input": "CREATE TABLE table_name_99 (field VARCHAR, home_away VARCHAR, opponent VARCHAR)", "instruction": "What Field was played at in an away game against the bayhawks?", "output": "SELECT field FROM table_name_99 WHERE home_away = \"away\" AND opponent = \"bayhawks\"" }
### INSTRUCTION How many films are there in each category? List the genre name, genre id and the count. ### INPUT CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR) ### OUTPUT SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id
{ "input": "CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)", "instruction": "How many films are there in each category? List the genre name, genre id and the count.", "output": "SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id" }
### INSTRUCTION What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians? ### INPUT CREATE TABLE table_name_79 (hometown_school VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR) ### OUTPUT SELECT hometown_school FROM table_name_79 WHERE pick > 30 AND position = "of" AND team = "cleveland indians"
{ "input": "CREATE TABLE table_name_79 (hometown_school VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR)", "instruction": "What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians?", "output": "SELECT hometown_school FROM table_name_79 WHERE pick > 30 AND position = \"of\" AND team = \"cleveland indians\"" }
### INSTRUCTION List the names of countries whose language is not "German". ### INPUT CREATE TABLE country (Name VARCHAR, Languages VARCHAR) ### OUTPUT SELECT Name FROM country WHERE Languages <> "German"
{ "input": "CREATE TABLE country (Name VARCHAR, Languages VARCHAR)", "instruction": "List the names of countries whose language is not \"German\".", "output": "SELECT Name FROM country WHERE Languages <> \"German\"" }
### INSTRUCTION what is the attendance when the location is veterans stadium, the game is more than 3 and the time is 2:21? ### INPUT CREATE TABLE table_name_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_39 WHERE location = "veterans stadium" AND game > 3 AND time = "2:21"
{ "input": "CREATE TABLE table_name_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR)", "instruction": "what is the attendance when the location is veterans stadium, the game is more than 3 and the time is 2:21?", "output": "SELECT AVG(attendance) FROM table_name_39 WHERE location = \"veterans stadium\" AND game > 3 AND time = \"2:21\"" }
### INSTRUCTION From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6? ### INPUT CREATE TABLE table_name_69 (league_from VARCHAR, nhl_team VARCHAR) ### OUTPUT SELECT league_from FROM table_name_69 WHERE nhl_team = "atlanta thrashers (from dallas) 6"
{ "input": "CREATE TABLE table_name_69 (league_from VARCHAR, nhl_team VARCHAR)", "instruction": "From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?", "output": "SELECT league_from FROM table_name_69 WHERE nhl_team = \"atlanta thrashers (from dallas) 6\"" }
### INSTRUCTION What A-League has 6 (1) for the finals, and leigh broxham as the name? ### INPUT CREATE TABLE table_name_54 (a_league VARCHAR, finals VARCHAR, name VARCHAR) ### OUTPUT SELECT a_league FROM table_name_54 WHERE finals = "6 (1)" AND name = "leigh broxham"
{ "input": "CREATE TABLE table_name_54 (a_league VARCHAR, finals VARCHAR, name VARCHAR)", "instruction": "What A-League has 6 (1) for the finals, and leigh broxham as the name?", "output": "SELECT a_league FROM table_name_54 WHERE finals = \"6 (1)\" AND name = \"leigh broxham\"" }
### INSTRUCTION What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play? ### INPUT CREATE TABLE table_name_58 (position VARCHAR, appearances VARCHAR, leeds_career VARCHAR) ### OUTPUT SELECT position FROM table_name_58 WHERE appearances = 244 AND leeds_career = "1981–1989"
{ "input": "CREATE TABLE table_name_58 (position VARCHAR, appearances VARCHAR, leeds_career VARCHAR)", "instruction": "What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play?", "output": "SELECT position FROM table_name_58 WHERE appearances = 244 AND leeds_career = \"1981–1989\"" }
### INSTRUCTION List the name of the phone model launched in year 2002 and with the highest RAM size. ### INPUT CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, chip_model VARCHAR) ### OUTPUT SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1
{ "input": "CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, chip_model VARCHAR)", "instruction": "List the name of the phone model launched in year 2002 and with the highest RAM size.", "output": "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1" }
### INSTRUCTION Find the number of patients who are not using the medication of Procrastin-X. ### INPUT CREATE TABLE Prescribes (patient VARCHAR, Medication VARCHAR); CREATE TABLE patient (SSN VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM patient WHERE NOT SSN IN (SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X')
{ "input": "CREATE TABLE Prescribes (patient VARCHAR, Medication VARCHAR); CREATE TABLE patient (SSN VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR)", "instruction": "Find the number of patients who are not using the medication of Procrastin-X.", "output": "SELECT COUNT(*) FROM patient WHERE NOT SSN IN (SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X')" }
### INSTRUCTION If the height order is 1 and the soundfield type is mixed-order, what are all the channels? ### INPUT CREATE TABLE table_233830_1 (channels VARCHAR, soundfield_type VARCHAR, height_order VARCHAR) ### OUTPUT SELECT channels FROM table_233830_1 WHERE soundfield_type = "mixed-order" AND height_order = 1
{ "input": "CREATE TABLE table_233830_1 (channels VARCHAR, soundfield_type VARCHAR, height_order VARCHAR)", "instruction": "If the height order is 1 and the soundfield type is mixed-order, what are all the channels?", "output": "SELECT channels FROM table_233830_1 WHERE soundfield_type = \"mixed-order\" AND height_order = 1" }
### INSTRUCTION When did the no. 23 show originally air? ### INPUT CREATE TABLE table_10718984_2 (original_air_date VARCHAR, no_in_season VARCHAR) ### OUTPUT SELECT original_air_date FROM table_10718984_2 WHERE no_in_season = 23
{ "input": "CREATE TABLE table_10718984_2 (original_air_date VARCHAR, no_in_season VARCHAR)", "instruction": "When did the no. 23 show originally air?", "output": "SELECT original_air_date FROM table_10718984_2 WHERE no_in_season = 23" }
### INSTRUCTION what is the lowest rank when the peak position is 2, certification is platinum and the album is my december? ### INPUT CREATE TABLE table_name_82 (rank INTEGER, album VARCHAR, peak_position VARCHAR, certification VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_82 WHERE peak_position = "2" AND certification = "platinum" AND album = "my december"
{ "input": "CREATE TABLE table_name_82 (rank INTEGER, album VARCHAR, peak_position VARCHAR, certification VARCHAR)", "instruction": "what is the lowest rank when the peak position is 2, certification is platinum and the album is my december?", "output": "SELECT MIN(rank) FROM table_name_82 WHERE peak_position = \"2\" AND certification = \"platinum\" AND album = \"my december\"" }
### INSTRUCTION What number pick did the CFL team bc lions (via hamilton via winnipeg ) have? ### INPUT CREATE TABLE table_20170644_1 (pick__number INTEGER, cfl_team VARCHAR) ### OUTPUT SELECT MAX(pick__number) FROM table_20170644_1 WHERE cfl_team = "BC Lions (via Hamilton via Winnipeg )"
{ "input": "CREATE TABLE table_20170644_1 (pick__number INTEGER, cfl_team VARCHAR)", "instruction": "What number pick did the CFL team bc lions (via hamilton via winnipeg ) have?", "output": "SELECT MAX(pick__number) FROM table_20170644_1 WHERE cfl_team = \"BC Lions (via Hamilton via Winnipeg )\"" }
### INSTRUCTION Show names of teachers that teach at least two courses. ### INPUT CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR) ### OUTPUT SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)", "instruction": "Show names of teachers that teach at least two courses.", "output": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2" }
### INSTRUCTION How many maac are there that have 14th as the ncaa and the overall is 20-10? ### INPUT CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR) ### OUTPUT SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10"
{ "input": "CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR)", "instruction": "How many maac are there that have 14th as the ncaa and the overall is 20-10?", "output": "SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = \"14th\" AND overall = \"20-10\"" }
### INSTRUCTION What was Week 14 when Week 13 was Nebraska (8-2)? ### INPUT CREATE TABLE table_name_37 (week_14_nov_27 VARCHAR, week_13_nov_20 VARCHAR) ### OUTPUT SELECT week_14_nov_27 FROM table_name_37 WHERE week_13_nov_20 = "nebraska (8-2)"
{ "input": "CREATE TABLE table_name_37 (week_14_nov_27 VARCHAR, week_13_nov_20 VARCHAR)", "instruction": "What was Week 14 when Week 13 was Nebraska (8-2)?", "output": "SELECT week_14_nov_27 FROM table_name_37 WHERE week_13_nov_20 = \"nebraska (8-2)\"" }
### INSTRUCTION Who was Al Michaels' color commentator in 2003? ### INPUT CREATE TABLE table_name_69 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR) ### OUTPUT SELECT color_commentator_s_ FROM table_name_69 WHERE play_by_play = "al michaels" AND year > 2003
{ "input": "CREATE TABLE table_name_69 (color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR)", "instruction": "Who was Al Michaels' color commentator in 2003?", "output": "SELECT color_commentator_s_ FROM table_name_69 WHERE play_by_play = \"al michaels\" AND year > 2003" }
### INSTRUCTION What position does the player who is 6-10 play? ### INPUT CREATE TABLE table_name_16 (position VARCHAR, height_in_ft VARCHAR) ### OUTPUT SELECT position FROM table_name_16 WHERE height_in_ft = "6-10"
{ "input": "CREATE TABLE table_name_16 (position VARCHAR, height_in_ft VARCHAR)", "instruction": "What position does the player who is 6-10 play?", "output": "SELECT position FROM table_name_16 WHERE height_in_ft = \"6-10\"" }
### INSTRUCTION Which report has a Winning driver of peter collins, and a Circuit of syracuse? ### INPUT CREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR) ### OUTPUT SELECT report FROM table_name_33 WHERE winning_driver = "peter collins" AND circuit = "syracuse"
{ "input": "CREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR)", "instruction": "Which report has a Winning driver of peter collins, and a Circuit of syracuse?", "output": "SELECT report FROM table_name_33 WHERE winning_driver = \"peter collins\" AND circuit = \"syracuse\"" }
### INSTRUCTION how many remittances in 2010 where the remittances is 19.73? ### INPUT CREATE TABLE table_2941963_1 (remittances_2010 VARCHAR, remittances_2009 VARCHAR) ### OUTPUT SELECT COUNT(remittances_2010) FROM table_2941963_1 WHERE remittances_2009 = "19.73"
{ "input": "CREATE TABLE table_2941963_1 (remittances_2010 VARCHAR, remittances_2009 VARCHAR)", "instruction": "how many remittances in 2010 where the remittances is 19.73?", "output": "SELECT COUNT(remittances_2010) FROM table_2941963_1 WHERE remittances_2009 = \"19.73\"" }
### INSTRUCTION Which Wins has a Country of new zealand and a Last title larger than 1968? ### INPUT CREATE TABLE table_name_25 (wins INTEGER, country VARCHAR, last_title VARCHAR) ### OUTPUT SELECT MIN(wins) FROM table_name_25 WHERE country = "new zealand" AND last_title > 1968
{ "input": "CREATE TABLE table_name_25 (wins INTEGER, country VARCHAR, last_title VARCHAR)", "instruction": "Which Wins has a Country of new zealand and a Last title larger than 1968?", "output": "SELECT MIN(wins) FROM table_name_25 WHERE country = \"new zealand\" AND last_title > 1968" }
### INSTRUCTION Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High? ### INPUT CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR) ### OUTPUT SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high"
{ "input": "CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR)", "instruction": "Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?", "output": "SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = \"sports authority field at mile high\"" }
### INSTRUCTION what was the lowest elevation in april 2006? ### INPUT CREATE TABLE table_27435931_1 (elevation_ft INTEGER, year VARCHAR) ### OUTPUT SELECT MIN(elevation_ft) FROM table_27435931_1 WHERE year = "April 2006"
{ "input": "CREATE TABLE table_27435931_1 (elevation_ft INTEGER, year VARCHAR)", "instruction": "what was the lowest elevation in april 2006?", "output": "SELECT MIN(elevation_ft) FROM table_27435931_1 WHERE year = \"April 2006\"" }
### INSTRUCTION What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0? ### INPUT CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) ### OUTPUT SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 0
{ "input": "CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)", "instruction": "What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?", "output": "SELECT MIN(gold) FROM table_name_24 WHERE bronze = 0 AND total < 2 AND silver < 0" }
### INSTRUCTION who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1% ### INPUT CREATE TABLE table_1341586_39 (incumbent VARCHAR, candidates VARCHAR) ### OUTPUT SELECT incumbent FROM table_1341586_39 WHERE candidates = "Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%"
{ "input": "CREATE TABLE table_1341586_39 (incumbent VARCHAR, candidates VARCHAR)", "instruction": "who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1%", "output": "SELECT incumbent FROM table_1341586_39 WHERE candidates = \"Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%\"" }
### INSTRUCTION how many subdivisions have an English Name of jiyang? ### INPUT CREATE TABLE table_name_24 (population VARCHAR, english_name VARCHAR) ### OUTPUT SELECT COUNT(population) FROM table_name_24 WHERE english_name = "jiyang"
{ "input": "CREATE TABLE table_name_24 (population VARCHAR, english_name VARCHAR)", "instruction": "how many subdivisions have an English Name of jiyang?", "output": "SELECT COUNT(population) FROM table_name_24 WHERE english_name = \"jiyang\"" }
### INSTRUCTION What tournament had an opponent of Els Callens Nancy Feber? ### INPUT CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR) ### OUTPUT SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = "els callens nancy feber"
{ "input": "CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR)", "instruction": "What tournament had an opponent of Els Callens Nancy Feber?", "output": "SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = \"els callens nancy feber\"" }
### INSTRUCTION What location did the team win before 1998 in the europe/africa zone, group i, round robin? ### INPUT CREATE TABLE table_name_96 (location VARCHAR, year VARCHAR, competition VARCHAR, result VARCHAR) ### OUTPUT SELECT location FROM table_name_96 WHERE competition = "europe/africa zone, group i, round robin" AND result = "win" AND year < 1998
{ "input": "CREATE TABLE table_name_96 (location VARCHAR, year VARCHAR, competition VARCHAR, result VARCHAR)", "instruction": "What location did the team win before 1998 in the europe/africa zone, group i, round robin?", "output": "SELECT location FROM table_name_96 WHERE competition = \"europe/africa zone, group i, round robin\" AND result = \"win\" AND year < 1998" }
### INSTRUCTION What's the quantity made when the manufacturer was 4-6-2 — oooooo — pacific? ### INPUT CREATE TABLE table_name_7 (quantity_made VARCHAR, manufacturer VARCHAR) ### OUTPUT SELECT quantity_made FROM table_name_7 WHERE manufacturer = "4-6-2 — oooooo — pacific"
{ "input": "CREATE TABLE table_name_7 (quantity_made VARCHAR, manufacturer VARCHAR)", "instruction": "What's the quantity made when the manufacturer was 4-6-2 — oooooo — pacific?", "output": "SELECT quantity_made FROM table_name_7 WHERE manufacturer = \"4-6-2 — oooooo — pacific\"" }
### INSTRUCTION What is the name of the manager that was replaced by Michael Oenning? ### INPUT CREATE TABLE table_name_62 (outgoing_manager VARCHAR, replaced_by VARCHAR) ### OUTPUT SELECT outgoing_manager FROM table_name_62 WHERE replaced_by = "michael oenning"
{ "input": "CREATE TABLE table_name_62 (outgoing_manager VARCHAR, replaced_by VARCHAR)", "instruction": "What is the name of the manager that was replaced by Michael Oenning?", "output": "SELECT outgoing_manager FROM table_name_62 WHERE replaced_by = \"michael oenning\"" }
### INSTRUCTION What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking? ### INPUT CREATE TABLE table_19948664_1 (index__year_ VARCHAR, author___editor___source VARCHAR, ranking_la__2_ VARCHAR) ### OUTPUT SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = "United Nations (UNDP)" AND ranking_la__2_ = "2nd"
{ "input": "CREATE TABLE table_19948664_1 (index__year_ VARCHAR, author___editor___source VARCHAR, ranking_la__2_ VARCHAR)", "instruction": "What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?", "output": "SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = \"United Nations (UNDP)\" AND ranking_la__2_ = \"2nd\"" }
### INSTRUCTION Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin? ### INPUT CREATE TABLE table_name_91 (actor_in_moscow VARCHAR, _2007 VARCHAR, voyage VARCHAR) ### OUTPUT SELECT actor_in_moscow, _2007 FROM table_name_91 WHERE voyage = "varenka bakunin"
{ "input": "CREATE TABLE table_name_91 (actor_in_moscow VARCHAR, _2007 VARCHAR, voyage VARCHAR)", "instruction": "Who was the 2007 actor from Moscow for the voyage of Varenka Bakunin?", "output": "SELECT actor_in_moscow, _2007 FROM table_name_91 WHERE voyage = \"varenka bakunin\"" }
### INSTRUCTION Where is the frequency 102.3mhz and 5kw power? ### INPUT CREATE TABLE table_19215259_1 (location VARCHAR, power__kw_ VARCHAR, frequency VARCHAR) ### OUTPUT SELECT location FROM table_19215259_1 WHERE power__kw_ = "5kW" AND frequency = "102.3MHz"
{ "input": "CREATE TABLE table_19215259_1 (location VARCHAR, power__kw_ VARCHAR, frequency VARCHAR)", "instruction": "Where is the frequency 102.3mhz and 5kw power?", "output": "SELECT location FROM table_19215259_1 WHERE power__kw_ = \"5kW\" AND frequency = \"102.3MHz\"" }
### INSTRUCTION What engine did Casey Mears use on the Reynard 01i Chassis? ### INPUT CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR) ### OUTPUT SELECT engine FROM table_name_24 WHERE chassis = "reynard 01i" AND drivers = "casey mears"
{ "input": "CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR)", "instruction": "What engine did Casey Mears use on the Reynard 01i Chassis?", "output": "SELECT engine FROM table_name_24 WHERE chassis = \"reynard 01i\" AND drivers = \"casey mears\"" }
### INSTRUCTION What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club? ### INPUT CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR) ### OUTPUT SELECT 1 AS st_leg FROM table_name_52 WHERE competition = "uefa champions league" AND club = "skonto riga"
{ "input": "CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR)", "instruction": "What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club?", "output": "SELECT 1 AS st_leg FROM table_name_52 WHERE competition = \"uefa champions league\" AND club = \"skonto riga\"" }
### INSTRUCTION What is the original air date for episode graeme clifford directed and lindsay sturman wrote? ### INPUT CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### OUTPUT SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
{ "input": "CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)", "instruction": "What is the original air date for episode graeme clifford directed and lindsay sturman wrote?", "output": "SELECT original_air_date FROM table_28859177_3 WHERE directed_by = \"Graeme Clifford\" AND written_by = \"Lindsay Sturman\"" }
### INSTRUCTION What is Martina Wood's Position? ### INPUT CREATE TABLE table_name_46 (position VARCHAR, name VARCHAR) ### OUTPUT SELECT position FROM table_name_46 WHERE name = "martina wood"
{ "input": "CREATE TABLE table_name_46 (position VARCHAR, name VARCHAR)", "instruction": "What is Martina Wood's Position?", "output": "SELECT position FROM table_name_46 WHERE name = \"martina wood\"" }
### INSTRUCTION What is the content for la sorgente sat 3? ### INPUT CREATE TABLE table_name_20 (content VARCHAR, television_service VARCHAR) ### OUTPUT SELECT content FROM table_name_20 WHERE television_service = "la sorgente sat 3"
{ "input": "CREATE TABLE table_name_20 (content VARCHAR, television_service VARCHAR)", "instruction": "What is the content for la sorgente sat 3?", "output": "SELECT content FROM table_name_20 WHERE television_service = \"la sorgente sat 3\"" }
### INSTRUCTION What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded? ### INPUT CREATE TABLE table_name_22 (military_deaths INTEGER, civilian_deaths__including_foreigners_ VARCHAR, military_and_or_civilian_wounded VARCHAR) ### OUTPUT SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = "33"
{ "input": "CREATE TABLE table_name_22 (military_deaths INTEGER, civilian_deaths__including_foreigners_ VARCHAR, military_and_or_civilian_wounded VARCHAR)", "instruction": "What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?", "output": "SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = \"33\"" }
### INSTRUCTION What South Dakota has Bush of Oklahoma? ### INPUT CREATE TABLE table_name_17 (south_dakota VARCHAR, oklahoma VARCHAR) ### OUTPUT SELECT south_dakota FROM table_name_17 WHERE oklahoma = "bush"
{ "input": "CREATE TABLE table_name_17 (south_dakota VARCHAR, oklahoma VARCHAR)", "instruction": "What South Dakota has Bush of Oklahoma?", "output": "SELECT south_dakota FROM table_name_17 WHERE oklahoma = \"bush\"" }
### INSTRUCTION What is the away team score for South Melbourne? ### INPUT CREATE TABLE table_name_86 (away_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne"
{ "input": "CREATE TABLE table_name_86 (away_team VARCHAR)", "instruction": "What is the away team score for South Melbourne?", "output": "SELECT away_team AS score FROM table_name_86 WHERE away_team = \"south melbourne\"" }
### INSTRUCTION Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711? ### INPUT CREATE TABLE table_name_61 (label VARCHAR, catalogue_number_s_ VARCHAR, country VARCHAR, date VARCHAR) ### OUTPUT SELECT label FROM table_name_61 WHERE country = "united kingdom" AND date = "22 september 2008" AND catalogue_number_s_ = "eredv711"
{ "input": "CREATE TABLE table_name_61 (label VARCHAR, catalogue_number_s_ VARCHAR, country VARCHAR, date VARCHAR)", "instruction": "Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?", "output": "SELECT label FROM table_name_61 WHERE country = \"united kingdom\" AND date = \"22 september 2008\" AND catalogue_number_s_ = \"eredv711\"" }
### INSTRUCTION What is the Original air date for the episode directed by Tricia Brock? ### INPUT CREATE TABLE table_13183076_3 (original_air_date VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT original_air_date FROM table_13183076_3 WHERE directed_by = "Tricia Brock"
{ "input": "CREATE TABLE table_13183076_3 (original_air_date VARCHAR, directed_by VARCHAR)", "instruction": "What is the Original air date for the episode directed by Tricia Brock?", "output": "SELECT original_air_date FROM table_13183076_3 WHERE directed_by = \"Tricia Brock\"" }
### INSTRUCTION what's the pole position with location being hockenheimring ### INPUT CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR) ### OUTPUT SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring"
{ "input": "CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR)", "instruction": "what's the pole position with location being hockenheimring", "output": "SELECT pole_position FROM table_1140074_2 WHERE location = \"Hockenheimring\"" }
### INSTRUCTION Find the student ID and middle name for all the students with at most two enrollments. ### INPUT CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR) ### OUTPUT SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2
{ "input": "CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)", "instruction": "Find the student ID and middle name for all the students with at most two enrollments.", "output": "SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2" }
### INSTRUCTION How many times is the shot volume (cm3) less than 172.76? ### INPUT CREATE TABLE table_name_37 (shot_diameter__cm_ VARCHAR, shot_volume__cm_3__ INTEGER) ### OUTPUT SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76
{ "input": "CREATE TABLE table_name_37 (shot_diameter__cm_ VARCHAR, shot_volume__cm_3__ INTEGER)", "instruction": "How many times is the shot volume (cm3) less than 172.76?", "output": "SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76" }
### INSTRUCTION Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby? ### INPUT CREATE TABLE table_name_85 (team__league_ VARCHAR, player VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT team__league_ FROM table_name_85 WHERE reg_gp = 0 AND pick__number < 136 AND player = "regan darby"
{ "input": "CREATE TABLE table_name_85 (team__league_ VARCHAR, player VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)", "instruction": "Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby?", "output": "SELECT team__league_ FROM table_name_85 WHERE reg_gp = 0 AND pick__number < 136 AND player = \"regan darby\"" }
### INSTRUCTION How many wins did Glenelg FL of bahgallah have when there were more than 3 byes? ### INPUT CREATE TABLE table_name_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR) ### OUTPUT SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = "bahgallah" AND byes > 3
{ "input": "CREATE TABLE table_name_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR)", "instruction": "How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?", "output": "SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = \"bahgallah\" AND byes > 3" }
### INSTRUCTION Which cornerback has the highest round? ### INPUT CREATE TABLE table_name_97 (round INTEGER, position VARCHAR) ### OUTPUT SELECT MAX(round) FROM table_name_97 WHERE position = "cornerback"
{ "input": "CREATE TABLE table_name_97 (round INTEGER, position VARCHAR)", "instruction": "Which cornerback has the highest round?", "output": "SELECT MAX(round) FROM table_name_97 WHERE position = \"cornerback\"" }
### INSTRUCTION Show cinema name, film title, date, and price for each record in schedule. ### INPUT CREATE TABLE schedule (date VARCHAR, price VARCHAR, film_id VARCHAR, cinema_id VARCHAR); CREATE TABLE cinema (name VARCHAR, cinema_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR) ### OUTPUT SELECT T3.name, T2.title, T1.date, T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id
{ "input": "CREATE TABLE schedule (date VARCHAR, price VARCHAR, film_id VARCHAR, cinema_id VARCHAR); CREATE TABLE cinema (name VARCHAR, cinema_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)", "instruction": "Show cinema name, film title, date, and price for each record in schedule.", "output": "SELECT T3.name, T2.title, T1.date, T1.price FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id JOIN cinema AS T3 ON T1.cinema_id = T3.cinema_id" }
### INSTRUCTION How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths? ### INPUT CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR) ### OUTPUT SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown"
{ "input": "CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)", "instruction": "How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?", "output": "SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = \"unknown\" AND total_deaths__not_including_foreigners_ = \"unknown\"" }
### INSTRUCTION What are the names for tracks without a race in class 'GT'. ### INPUT CREATE TABLE race (track_id VARCHAR, class VARCHAR); CREATE TABLE track (name VARCHAR); CREATE TABLE track (name VARCHAR, track_id VARCHAR) ### OUTPUT SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'
{ "input": "CREATE TABLE race (track_id VARCHAR, class VARCHAR); CREATE TABLE track (name VARCHAR); CREATE TABLE track (name VARCHAR, track_id VARCHAR)", "instruction": "What are the names for tracks without a race in class 'GT'.", "output": "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'" }
### INSTRUCTION What is the timeslot for the episode that aired April 28, 2009? ### INPUT CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR) ### OUTPUT SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009"
{ "input": "CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR)", "instruction": "What is the timeslot for the episode that aired April 28, 2009?", "output": "SELECT timeslot FROM table_name_26 WHERE air_date = \"april 28, 2009\"" }
### INSTRUCTION What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6? ### INPUT CREATE TABLE table_17289604_38 (quarterfinals VARCHAR, round_of_32 VARCHAR) ### OUTPUT SELECT quarterfinals FROM table_17289604_38 WHERE round_of_32 = "S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6"
{ "input": "CREATE TABLE table_17289604_38 (quarterfinals VARCHAR, round_of_32 VARCHAR)", "instruction": "What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6?", "output": "SELECT quarterfinals FROM table_17289604_38 WHERE round_of_32 = \"S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6\"" }
### INSTRUCTION Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a termination of mission of march 16, 1905? ### INPUT CREATE TABLE table_name_15 (appointed_by VARCHAR, title VARCHAR, termination_of_mission VARCHAR) ### OUTPUT SELECT appointed_by FROM table_name_15 WHERE title = "envoy extraordinary and minister plenipotentiary" AND termination_of_mission = "march 16, 1905"
{ "input": "CREATE TABLE table_name_15 (appointed_by VARCHAR, title VARCHAR, termination_of_mission VARCHAR)", "instruction": "Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a termination of mission of march 16, 1905?", "output": "SELECT appointed_by FROM table_name_15 WHERE title = \"envoy extraordinary and minister plenipotentiary\" AND termination_of_mission = \"march 16, 1905\"" }
### INSTRUCTION What are the ids and names of the battles that led to more than 10 people killed in total. ### INPUT CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10
{ "input": "CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)", "instruction": "What are the ids and names of the battles that led to more than 10 people killed in total.", "output": "SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10" }
### INSTRUCTION Which company has an author of Aristophanes and play of Plutus? ### INPUT CREATE TABLE table_name_74 (company VARCHAR, author VARCHAR, play VARCHAR) ### OUTPUT SELECT company FROM table_name_74 WHERE author = "aristophanes" AND play = "plutus"
{ "input": "CREATE TABLE table_name_74 (company VARCHAR, author VARCHAR, play VARCHAR)", "instruction": "Which company has an author of Aristophanes and play of Plutus?", "output": "SELECT company FROM table_name_74 WHERE author = \"aristophanes\" AND play = \"plutus\"" }
### INSTRUCTION How many years is ur sulcus listed with a diameter less than 1,145.0? ### INPUT CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR) ### OUTPUT SELECT COUNT(year_named) FROM table_name_68 WHERE name = "ur sulcus" AND diameter < 1 OFFSET 145.0
{ "input": "CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)", "instruction": "How many years is ur sulcus listed with a diameter less than 1,145.0?", "output": "SELECT COUNT(year_named) FROM table_name_68 WHERE name = \"ur sulcus\" AND diameter < 1 OFFSET 145.0" }
### INSTRUCTION What is the average Pick with a Position of pg, and a Round less than 1? ### INPUT CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR) ### OUTPUT SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1
{ "input": "CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)", "instruction": "What is the average Pick with a Position of pg, and a Round less than 1?", "output": "SELECT AVG(pick) FROM table_name_14 WHERE position = \"pg\" AND round < 1" }
### INSTRUCTION What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels? ### INPUT CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR) ### OUTPUT SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels"
{ "input": "CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)", "instruction": "What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?", "output": "SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = \"shawn michaels\"" }
### INSTRUCTION What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)? ### INPUT CREATE TABLE table_name_12 (sfc_in_g__kn INTEGER, engine_type VARCHAR, sfc_in_lb__lbf·h_ VARCHAR) ### OUTPUT SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = "rolls-royce/snecma olympus 593" AND sfc_in_lb__lbf·h_ < 1.195
{ "input": "CREATE TABLE table_name_12 (sfc_in_g__kn INTEGER, engine_type VARCHAR, sfc_in_lb__lbf·h_ VARCHAR)", "instruction": "What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?", "output": "SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = \"rolls-royce/snecma olympus 593\" AND sfc_in_lb__lbf·h_ < 1.195" }
### INSTRUCTION Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live? ### INPUT CREATE TABLE table_name_97 (callsign VARCHAR, brand VARCHAR, webcast VARCHAR, frequency VARCHAR) ### OUTPUT SELECT callsign FROM table_name_97 WHERE webcast = "listen live" AND frequency < 1210 AND brand = "newsradio 740 ktrh"
{ "input": "CREATE TABLE table_name_97 (callsign VARCHAR, brand VARCHAR, webcast VARCHAR, frequency VARCHAR)", "instruction": "Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live?", "output": "SELECT callsign FROM table_name_97 WHERE webcast = \"listen live\" AND frequency < 1210 AND brand = \"newsradio 740 ktrh\"" }
### INSTRUCTION Name the highest Parallel Bars of the united states with a Vault smaller than 63.85? ### INPUT CREATE TABLE table_name_61 (parallel_bars INTEGER, country VARCHAR, vault VARCHAR) ### OUTPUT SELECT MAX(parallel_bars) FROM table_name_61 WHERE country = "united states" AND vault < 63.85
{ "input": "CREATE TABLE table_name_61 (parallel_bars INTEGER, country VARCHAR, vault VARCHAR)", "instruction": "Name the highest Parallel Bars of the united states with a Vault smaller than 63.85?", "output": "SELECT MAX(parallel_bars) FROM table_name_61 WHERE country = \"united states\" AND vault < 63.85" }
### INSTRUCTION What is the largest Founded with an Institution of cloud county community college? ### INPUT CREATE TABLE table_name_67 (founded INTEGER, institution VARCHAR) ### OUTPUT SELECT MAX(founded) FROM table_name_67 WHERE institution = "cloud county community college"
{ "input": "CREATE TABLE table_name_67 (founded INTEGER, institution VARCHAR)", "instruction": "What is the largest Founded with an Institution of cloud county community college?", "output": "SELECT MAX(founded) FROM table_name_67 WHERE institution = \"cloud county community college\"" }
### INSTRUCTION When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there? ### INPUT CREATE TABLE table_187239_1 (minor_sponsors VARCHAR, kit_manufacturer VARCHAR, period VARCHAR) ### OUTPUT SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = "Olympikus" AND period = "2011"
{ "input": "CREATE TABLE table_187239_1 (minor_sponsors VARCHAR, kit_manufacturer VARCHAR, period VARCHAR)", "instruction": "When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there?", "output": "SELECT COUNT(minor_sponsors) FROM table_187239_1 WHERE kit_manufacturer = \"Olympikus\" AND period = \"2011\"" }
### INSTRUCTION List the hardware model name and company name for the phone whose screen mode type is "Graphics." ### INPUT CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR) ### OUTPUT SELECT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics"
{ "input": "CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)", "instruction": "List the hardware model name and company name for the phone whose screen mode type is \"Graphics.\"", "output": "SELECT T2.Hardware_Model_name, T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = \"Graphics\"" }
### INSTRUCTION Which conventional plan has a POS plan of 21%? ### INPUT CREATE TABLE table_name_14 (conventional_plans VARCHAR, pos_plans VARCHAR) ### OUTPUT SELECT conventional_plans FROM table_name_14 WHERE pos_plans = "21%"
{ "input": "CREATE TABLE table_name_14 (conventional_plans VARCHAR, pos_plans VARCHAR)", "instruction": "Which conventional plan has a POS plan of 21%?", "output": "SELECT conventional_plans FROM table_name_14 WHERE pos_plans = \"21%\"" }
### INSTRUCTION What is the mintage (bu) with the artist Royal Canadian Mint Staff and has an issue price (proof) of $54.95? ### INPUT CREATE TABLE table_11916083_1 (mintage__bu_ VARCHAR, _clarification_needed_ VARCHAR, artist VARCHAR, issue_price__proof_ VARCHAR) ### OUTPUT SELECT mintage__bu_[_clarification_needed_] FROM table_11916083_1 WHERE artist = "Royal Canadian Mint Staff" AND issue_price__proof_ = "$54.95"
{ "input": "CREATE TABLE table_11916083_1 (mintage__bu_ VARCHAR, _clarification_needed_ VARCHAR, artist VARCHAR, issue_price__proof_ VARCHAR)", "instruction": "What is the mintage (bu) with the artist Royal Canadian Mint Staff and has an issue price (proof) of $54.95?", "output": "SELECT mintage__bu_[_clarification_needed_] FROM table_11916083_1 WHERE artist = \"Royal Canadian Mint Staff\" AND issue_price__proof_ = \"$54.95\"" }
### INSTRUCTION How many friends does Dan have? ### INPUT CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR) ### OUTPUT SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'
{ "input": "CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR)", "instruction": "How many friends does Dan have?", "output": "SELECT COUNT(T2.friend) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T1.name = 'Dan'" }
### INSTRUCTION Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2 ### INPUT CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR) ### OUTPUT SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million"
{ "input": "CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR)", "instruction": "Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2", "output": "SELECT SUM(rank) FROM table_name_20 WHERE network = \"bbc one\" AND number_of_viewers = \"30.15million\"" }
### INSTRUCTION What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3? ### INPUT CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR) ### OUTPUT SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 AND rank = "3"
{ "input": "CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR)", "instruction": "What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?", "output": "SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 AND rank = \"3\"" }
### INSTRUCTION What is the largest money for a t4 place, for Tiger Woods? ### INPUT CREATE TABLE table_name_64 (money___ INTEGER, place VARCHAR, player VARCHAR) ### OUTPUT SELECT MAX(money___) AS $__ FROM table_name_64 WHERE place = "t4" AND player = "tiger woods"
{ "input": "CREATE TABLE table_name_64 (money___ INTEGER, place VARCHAR, player VARCHAR)", "instruction": "What is the largest money for a t4 place, for Tiger Woods?", "output": "SELECT MAX(money___) AS $__ FROM table_name_64 WHERE place = \"t4\" AND player = \"tiger woods\"" }
### INSTRUCTION What is Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze? ### INPUT CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR, province___club VARCHAR, date_of_birth__age_ VARCHAR) ### OUTPUT SELECT position FROM table_name_52 WHERE province___club = "example" AND date_of_birth__age_ = "example" AND player = "michael elumeze"
{ "input": "CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR, province___club VARCHAR, date_of_birth__age_ VARCHAR)", "instruction": "What is Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze?", "output": "SELECT position FROM table_name_52 WHERE province___club = \"example\" AND date_of_birth__age_ = \"example\" AND player = \"michael elumeze\"" }
### INSTRUCTION Find the codes of countries that have more than 50 players. ### INPUT CREATE TABLE players (country_code VARCHAR) ### OUTPUT SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50
{ "input": "CREATE TABLE players (country_code VARCHAR)", "instruction": "Find the codes of countries that have more than 50 players.", "output": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50" }
### INSTRUCTION what player matched up with 9 ### INPUT CREATE TABLE table_name_78 (player VARCHAR, matches VARCHAR) ### OUTPUT SELECT player FROM table_name_78 WHERE matches = "9"
{ "input": "CREATE TABLE table_name_78 (player VARCHAR, matches VARCHAR)", "instruction": "what player matched up with 9", "output": "SELECT player FROM table_name_78 WHERE matches = \"9\"" }
### INSTRUCTION Who coached for al farwaniyah? ### INPUT CREATE TABLE table_name_67 (coach VARCHAR, city VARCHAR) ### OUTPUT SELECT coach FROM table_name_67 WHERE city = "al farwaniyah"
{ "input": "CREATE TABLE table_name_67 (coach VARCHAR, city VARCHAR)", "instruction": "Who coached for al farwaniyah?", "output": "SELECT coach FROM table_name_67 WHERE city = \"al farwaniyah\"" }
### INSTRUCTION What is the average area with valparaíso as the capital? ### INPUT CREATE TABLE table_name_34 (area INTEGER, capital VARCHAR) ### OUTPUT SELECT AVG(area) FROM table_name_34 WHERE capital = "valparaíso"
{ "input": "CREATE TABLE table_name_34 (area INTEGER, capital VARCHAR)", "instruction": "What is the average area with valparaíso as the capital?", "output": "SELECT AVG(area) FROM table_name_34 WHERE capital = \"valparaíso\"" }
### INSTRUCTION Name the averag scored for 2011 long teng cup and 2 october 2011 ### INPUT CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR) ### OUTPUT SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011"
{ "input": "CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR)", "instruction": "Name the averag scored for 2011 long teng cup and 2 october 2011", "output": "SELECT AVG(scored) FROM table_name_64 WHERE competition = \"2011 long teng cup\" AND date = \"2 october 2011\"" }
### INSTRUCTION When was the Clubhouse built with a Sign-in/Bicker of bicker, and Named cannon club? ### INPUT CREATE TABLE table_name_3 (year_clubhouse_constructed VARCHAR, sign_in_bicker VARCHAR, name VARCHAR) ### OUTPUT SELECT year_clubhouse_constructed FROM table_name_3 WHERE sign_in_bicker = "bicker" AND name = "cannon club"
{ "input": "CREATE TABLE table_name_3 (year_clubhouse_constructed VARCHAR, sign_in_bicker VARCHAR, name VARCHAR)", "instruction": "When was the Clubhouse built with a Sign-in/Bicker of bicker, and Named cannon club?", "output": "SELECT year_clubhouse_constructed FROM table_name_3 WHERE sign_in_bicker = \"bicker\" AND name = \"cannon club\"" }
### INSTRUCTION What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps? ### INPUT CREATE TABLE table_name_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR) ### OUTPUT SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118"
{ "input": "CREATE TABLE table_name_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR)", "instruction": "What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?", "output": "SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = \"10\" AND nationality = \"england\" AND position = \"df\" AND club_apps = \"118\"" }
### INSTRUCTION What's the sum of ERP W with a Frequency MHz that larger than 97.7? ### INPUT CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER) ### OUTPUT SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7
{ "input": "CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER)", "instruction": "What's the sum of ERP W with a Frequency MHz that larger than 97.7?", "output": "SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7" }
### INSTRUCTION What is the document type code for document type "Paper"? ### INPUT CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR) ### OUTPUT SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"
{ "input": "CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)", "instruction": "What is the document type code for document type \"Paper\"?", "output": "SELECT document_type_code FROM Ref_document_types WHERE document_type_name = \"Paper\"" }
### INSTRUCTION What is the broadcast date of the episode on 16mm t/r that ran 23:25? ### INPUT CREATE TABLE table_2101431_1 (broadcast_date VARCHAR, archive VARCHAR, run_time VARCHAR) ### OUTPUT SELECT broadcast_date FROM table_2101431_1 WHERE archive = "16mm t/r" AND run_time = "23:25"
{ "input": "CREATE TABLE table_2101431_1 (broadcast_date VARCHAR, archive VARCHAR, run_time VARCHAR)", "instruction": "What is the broadcast date of the episode on 16mm t/r that ran 23:25?", "output": "SELECT broadcast_date FROM table_2101431_1 WHERE archive = \"16mm t/r\" AND run_time = \"23:25\"" }
### INSTRUCTION What is the maximum specific impulse with a 4423 m/s effective exhaust velocity? ### INPUT CREATE TABLE table_15944_5 (specific_impulse__s_ INTEGER, effective_exhaust_velocity__m_s_ VARCHAR) ### OUTPUT SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423
{ "input": "CREATE TABLE table_15944_5 (specific_impulse__s_ INTEGER, effective_exhaust_velocity__m_s_ VARCHAR)", "instruction": "What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?", "output": "SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423" }
### INSTRUCTION How many entries are there for high rebounds when high points is inge – 19? ### INPUT CREATE TABLE table_30054758_3 (high_rebounds VARCHAR, high_points VARCHAR) ### OUTPUT SELECT COUNT(high_rebounds) FROM table_30054758_3 WHERE high_points = "Inge – 19"
{ "input": "CREATE TABLE table_30054758_3 (high_rebounds VARCHAR, high_points VARCHAR)", "instruction": "How many entries are there for high rebounds when high points is inge – 19?", "output": "SELECT COUNT(high_rebounds) FROM table_30054758_3 WHERE high_points = \"Inge – 19\"" }
### INSTRUCTION What is the number of people on board at Iberia Airline, with the aircraft type of lockheed l-1049g? ### INPUT CREATE TABLE table_name_48 (people_on_board INTEGER, airline VARCHAR, aircraft_type VARCHAR) ### OUTPUT SELECT AVG(people_on_board) FROM table_name_48 WHERE airline = "iberia" AND aircraft_type = "lockheed l-1049g"
{ "input": "CREATE TABLE table_name_48 (people_on_board INTEGER, airline VARCHAR, aircraft_type VARCHAR)", "instruction": "What is the number of people on board at Iberia Airline, with the aircraft type of lockheed l-1049g?", "output": "SELECT AVG(people_on_board) FROM table_name_48 WHERE airline = \"iberia\" AND aircraft_type = \"lockheed l-1049g\"" }
### INSTRUCTION What Entrant has a 1952 maserati straight-6 engine? ### INPUT CREATE TABLE table_name_29 (entrant VARCHAR, engine VARCHAR, year VARCHAR) ### OUTPUT SELECT entrant FROM table_name_29 WHERE engine = "maserati straight-6" AND year = 1952
{ "input": "CREATE TABLE table_name_29 (entrant VARCHAR, engine VARCHAR, year VARCHAR)", "instruction": "What Entrant has a 1952 maserati straight-6 engine?", "output": "SELECT entrant FROM table_name_29 WHERE engine = \"maserati straight-6\" AND year = 1952" }
### INSTRUCTION What date was the men's 100m breaststroke in heat 6? ### INPUT CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR) ### OUTPUT SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6"
{ "input": "CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR)", "instruction": "What date was the men's 100m breaststroke in heat 6?", "output": "SELECT date FROM table_name_74 WHERE event = \"men's 100m breaststroke\" AND heat_semifinal_final = \"heat 6\"" }
### INSTRUCTION How many laps had a grid of greater than 17 and retired due to collision? ### INPUT CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision"
{ "input": "CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)", "instruction": "How many laps had a grid of greater than 17 and retired due to collision?", "output": "SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = \"collision\"" }
### INSTRUCTION Which operating system has 1GB (mobile ddr) memory (RAM)? ### INPUT CREATE TABLE table_name_27 (operating_system_version VARCHAR, memory___ram__ VARCHAR) ### OUTPUT SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = "1gb (mobile ddr)"
{ "input": "CREATE TABLE table_name_27 (operating_system_version VARCHAR, memory___ram__ VARCHAR)", "instruction": "Which operating system has 1GB (mobile ddr) memory (RAM)?", "output": "SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = \"1gb (mobile ddr)\"" }