text
stringlengths
147
1.06k
source
dict
### INSTRUCTION How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2? ### INPUT CREATE TABLE table_name_43 (losses VARCHAR, byes VARCHAR, wins VARCHAR, golden_rivers VARCHAR) ### OUTPUT SELECT COUNT(losses) FROM table_name_43 WHERE wins < 12 AND golden_rivers = "ultima" AND byes > 2
{ "input": "CREATE TABLE table_name_43 (losses VARCHAR, byes VARCHAR, wins VARCHAR, golden_rivers VARCHAR)", "instruction": "How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?", "output": "SELECT COUNT(losses) FROM table_name_43 WHERE wins < 12 AND golden_rivers = \"ultima\" AND byes > 2" }
### INSTRUCTION What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7? ### INPUT CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR) ### OUTPUT SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = "diesel" AND mpg_us_combined < 50
{ "input": "CREATE TABLE table_name_52 (l_100km_extra_urban VARCHAR, mpg_us_combined VARCHAR, fuel_type VARCHAR, mpg_uk_combined VARCHAR, l_100km_combined VARCHAR)", "instruction": "What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?", "output": "SELECT COUNT(l_100km_extra_urban) FROM table_name_52 WHERE mpg_uk_combined > 19.2 AND l_100km_combined < 5.7 AND fuel_type = \"diesel\" AND mpg_us_combined < 50" }
### INSTRUCTION What is the modern german standard wording for the german based writing system 2 phrase "wie mir die vergewwe wu uns schuldich sinn."? ### INPUT CREATE TABLE table_181240_1 (modern_german__standard_wording_ VARCHAR, writing_system_2__german_based_ VARCHAR) ### OUTPUT SELECT modern_german__standard_wording_ FROM table_181240_1 WHERE writing_system_2__german_based_ = "wie mir die vergewwe wu uns schuldich sinn."
{ "input": "CREATE TABLE table_181240_1 (modern_german__standard_wording_ VARCHAR, writing_system_2__german_based_ VARCHAR)", "instruction": "What is the modern german standard wording for the german based writing system 2 phrase \"wie mir die vergewwe wu uns schuldich sinn.\"?", "output": "SELECT modern_german__standard_wording_ FROM table_181240_1 WHERE writing_system_2__german_based_ = \"wie mir die vergewwe wu uns schuldich sinn.\"" }
### INSTRUCTION What is the maximum number that a certain service is provided? List the service id, details and number. ### INPUT CREATE TABLE Services (service_id VARCHAR, service_details VARCHAR); CREATE TABLE Residents_Services (service_id VARCHAR) ### OUTPUT SELECT T1.service_id, T1.service_details, COUNT(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Services (service_id VARCHAR, service_details VARCHAR); CREATE TABLE Residents_Services (service_id VARCHAR)", "instruction": "What is the maximum number that a certain service is provided? List the service id, details and number.", "output": "SELECT T1.service_id, T1.service_details, COUNT(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Find the id of routes whose source and destination airports are in the United States. ### INPUT CREATE TABLE routes (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE airports (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR) ### OUTPUT SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
{ "input": "CREATE TABLE routes (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE airports (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)", "instruction": "Find the id of routes whose source and destination airports are in the United States.", "output": "SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')" }
### INSTRUCTION What are the total scores of the body builders whose birthday contains the string "January" ? ### INPUT CREATE TABLE people (people_id VARCHAR, Birth_Date VARCHAR); CREATE TABLE body_builder (total VARCHAR, people_id VARCHAR) ### OUTPUT SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE "%January%"
{ "input": "CREATE TABLE people (people_id VARCHAR, Birth_Date VARCHAR); CREATE TABLE body_builder (total VARCHAR, people_id VARCHAR)", "instruction": "What are the total scores of the body builders whose birthday contains the string \"January\" ?", "output": "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE \"%January%\"" }
### INSTRUCTION What is the model number with a release price of $303, and a sSpec number of sr14q(c0)? ### INPUT CREATE TABLE table_name_2 (model_number VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR) ### OUTPUT SELECT model_number FROM table_name_2 WHERE release_price___usd__ = "$303" AND sspec_number = "sr14q(c0)"
{ "input": "CREATE TABLE table_name_2 (model_number VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)", "instruction": "What is the model number with a release price of $303, and a sSpec number of sr14q(c0)?", "output": "SELECT model_number FROM table_name_2 WHERE release_price___usd__ = \"$303\" AND sspec_number = \"sr14q(c0)\"" }
### INSTRUCTION What is the retail space of the Stony Point Fashion Park Mall? ### INPUT CREATE TABLE table_name_70 (retail_space_sq_feet__m²_ VARCHAR, mall_name VARCHAR) ### OUTPUT SELECT retail_space_sq_feet__m²_ FROM table_name_70 WHERE mall_name = "stony point fashion park"
{ "input": "CREATE TABLE table_name_70 (retail_space_sq_feet__m²_ VARCHAR, mall_name VARCHAR)", "instruction": "What is the retail space of the Stony Point Fashion Park Mall?", "output": "SELECT retail_space_sq_feet__m²_ FROM table_name_70 WHERE mall_name = \"stony point fashion park\"" }
### INSTRUCTION What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system? ### INPUT CREATE TABLE table_name_38 (date__to_ VARCHAR, traction_type VARCHAR, name_of_system VARCHAR) ### OUTPUT SELECT date__to_ FROM table_name_38 WHERE traction_type = "electric" AND name_of_system = "yarmouth light and power company"
{ "input": "CREATE TABLE table_name_38 (date__to_ VARCHAR, traction_type VARCHAR, name_of_system VARCHAR)", "instruction": "What is the date (to) associated wiht a traction type of electric and the Yarmouth Light and Power Company system?", "output": "SELECT date__to_ FROM table_name_38 WHERE traction_type = \"electric\" AND name_of_system = \"yarmouth light and power company\"" }
### INSTRUCTION For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity? ### INPUT CREATE TABLE table_name_60 (quantity INTEGER, name VARCHAR, nicotine VARCHAR) ### OUTPUT SELECT MIN(quantity) FROM table_name_60 WHERE name = "raison blue" AND nicotine > 0.30000000000000004
{ "input": "CREATE TABLE table_name_60 (quantity INTEGER, name VARCHAR, nicotine VARCHAR)", "instruction": "For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?", "output": "SELECT MIN(quantity) FROM table_name_60 WHERE name = \"raison blue\" AND nicotine > 0.30000000000000004" }
### INSTRUCTION What is the average total score of body builders with height bigger than 200? ### INPUT CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE body_builder (Total INTEGER, People_ID VARCHAR) ### OUTPUT SELECT AVG(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200
{ "input": "CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE body_builder (Total INTEGER, People_ID VARCHAR)", "instruction": "What is the average total score of body builders with height bigger than 200?", "output": "SELECT AVG(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200" }
### INSTRUCTION How man fans showed up to watch the game versus the raleigh-durham skyhawks? ### INPUT CREATE TABLE table_24481478_1 (attendance INTEGER, opponent VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_24481478_1 WHERE opponent = "Raleigh-Durham Skyhawks"
{ "input": "CREATE TABLE table_24481478_1 (attendance INTEGER, opponent VARCHAR)", "instruction": "How man fans showed up to watch the game versus the raleigh-durham skyhawks?", "output": "SELECT MAX(attendance) FROM table_24481478_1 WHERE opponent = \"Raleigh-Durham Skyhawks\"" }
### INSTRUCTION How many laps did Jos Verstappen do on Grid 2? ### INPUT CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR) ### OUTPUT SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen"
{ "input": "CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR)", "instruction": "How many laps did Jos Verstappen do on Grid 2?", "output": "SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = \"jos verstappen\"" }
### INSTRUCTION Name the number of record for united center 18,838 ### INPUT CREATE TABLE table_22669044_8 (record VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT COUNT(record) FROM table_22669044_8 WHERE location_attendance = "United Center 18,838"
{ "input": "CREATE TABLE table_22669044_8 (record VARCHAR, location_attendance VARCHAR)", "instruction": "Name the number of record for united center 18,838", "output": "SELECT COUNT(record) FROM table_22669044_8 WHERE location_attendance = \"United Center 18,838\"" }
### INSTRUCTION How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere? ### INPUT CREATE TABLE table_19982699_1 (_number INTEGER, producer VARCHAR, television_premiere VARCHAR) ### OUTPUT SELECT MIN(_number) FROM table_19982699_1 WHERE producer = "Charles Salmon" AND television_premiere = "January 27, 2007"
{ "input": "CREATE TABLE table_19982699_1 (_number INTEGER, producer VARCHAR, television_premiere VARCHAR)", "instruction": "How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?", "output": "SELECT MIN(_number) FROM table_19982699_1 WHERE producer = \"Charles Salmon\" AND television_premiere = \"January 27, 2007\"" }
### INSTRUCTION Where was the Ivy League conference tournament? ### INPUT CREATE TABLE table_21091982_3 (tournament_venue__city_ VARCHAR, conference VARCHAR) ### OUTPUT SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = "Ivy League"
{ "input": "CREATE TABLE table_21091982_3 (tournament_venue__city_ VARCHAR, conference VARCHAR)", "instruction": "Where was the Ivy League conference tournament?", "output": "SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = \"Ivy League\"" }
### INSTRUCTION Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region? ### INPUT CREATE TABLE table_name_8 (region VARCHAR, most_populous_city_town VARCHAR, irish_name VARCHAR) ### OUTPUT SELECT region FROM table_name_8 WHERE most_populous_city_town = "clonmel" AND irish_name = "tiobraid árann (contae thiobraid árann)"
{ "input": "CREATE TABLE table_name_8 (region VARCHAR, most_populous_city_town VARCHAR, irish_name VARCHAR)", "instruction": "Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?", "output": "SELECT region FROM table_name_8 WHERE most_populous_city_town = \"clonmel\" AND irish_name = \"tiobraid árann (contae thiobraid árann)\"" }
### INSTRUCTION How many episodes are written by Lew Schneider? ### INPUT CREATE TABLE table_25356350_2 (series__number VARCHAR, written_by VARCHAR) ### OUTPUT SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = "Lew Schneider"
{ "input": "CREATE TABLE table_25356350_2 (series__number VARCHAR, written_by VARCHAR)", "instruction": "How many episodes are written by Lew Schneider?", "output": "SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = \"Lew Schneider\"" }
### INSTRUCTION Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name. ### INPUT CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR) ### OUTPUT SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
{ "input": "CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)", "instruction": "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name.", "output": "SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\" AND T1.StagePosition = \"back\"" }
### INSTRUCTION What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts? ### INPUT CREATE TABLE table_name_95 (tourist_arrivals__2011___millions_ INTEGER, tourism_receipts__2011___us$_per_arrival_ VARCHAR, tourism_receipts__2011___millions_of_us$_ VARCHAR) ### OUTPUT SELECT MIN(tourist_arrivals__2011___millions_) FROM table_name_95 WHERE tourism_receipts__2011___us$_per_arrival_ = 507 AND tourism_receipts__2011___millions_of_us$_ < 11 OFFSET 869
{ "input": "CREATE TABLE table_name_95 (tourist_arrivals__2011___millions_ INTEGER, tourism_receipts__2011___us$_per_arrival_ VARCHAR, tourism_receipts__2011___millions_of_us$_ VARCHAR)", "instruction": "What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts?", "output": "SELECT MIN(tourist_arrivals__2011___millions_) FROM table_name_95 WHERE tourism_receipts__2011___us$_per_arrival_ = 507 AND tourism_receipts__2011___millions_of_us$_ < 11 OFFSET 869" }
### INSTRUCTION What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)? ### INPUT CREATE TABLE table_25479607_3 (fixed_charge___rs__kwh_ VARCHAR, unit__kwh__time_range VARCHAR) ### OUTPUT SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE unit__kwh__time_range = "I-2: Peak (18:30-22:30)"
{ "input": "CREATE TABLE table_25479607_3 (fixed_charge___rs__kwh_ VARCHAR, unit__kwh__time_range VARCHAR)", "instruction": "What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?", "output": "SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE unit__kwh__time_range = \"I-2: Peak (18:30-22:30)\"" }
### INSTRUCTION What bike has an accident time, less than 9 laps, and a 5 grid? ### INPUT CREATE TABLE table_name_36 (bike VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR) ### OUTPUT SELECT bike FROM table_name_36 WHERE time = "accident" AND laps < 9 AND grid = 5
{ "input": "CREATE TABLE table_name_36 (bike VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR)", "instruction": "What bike has an accident time, less than 9 laps, and a 5 grid?", "output": "SELECT bike FROM table_name_36 WHERE time = \"accident\" AND laps < 9 AND grid = 5" }
### INSTRUCTION Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h? ### INPUT CREATE TABLE table_name_43 (rider VARCHAR, speed VARCHAR, rank VARCHAR, year VARCHAR) ### OUTPUT SELECT rider FROM table_name_43 WHERE rank < 8 AND year = 2000 AND speed = "18.32 km/h"
{ "input": "CREATE TABLE table_name_43 (rider VARCHAR, speed VARCHAR, rank VARCHAR, year VARCHAR)", "instruction": "Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?", "output": "SELECT rider FROM table_name_43 WHERE rank < 8 AND year = 2000 AND speed = \"18.32 km/h\"" }
### INSTRUCTION What was the score of the January 8 game? ### INPUT CREATE TABLE table_27712702_9 (score VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_27712702_9 WHERE date = "January 8"
{ "input": "CREATE TABLE table_27712702_9 (score VARCHAR, date VARCHAR)", "instruction": "What was the score of the January 8 game?", "output": "SELECT score FROM table_27712702_9 WHERE date = \"January 8\"" }
### INSTRUCTION What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999? ### INPUT CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR) ### OUTPUT SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin"
{ "input": "CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR)", "instruction": "What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?", "output": "SELECT result FROM table_name_9 WHERE location = \"murcia (esp)\" AND year < 1999 AND competition = \"europe/africa group i, round robin\"" }
### INSTRUCTION Who is the player that plays position f from Fort Wayne Pistons? ### INPUT CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR) ### OUTPUT SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f"
{ "input": "CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR)", "instruction": "Who is the player that plays position f from Fort Wayne Pistons?", "output": "SELECT player FROM table_name_89 WHERE team = \"fort wayne pistons\" AND position = \"f\"" }
### INSTRUCTION Who was the colour commentator when the play-by-play announcer was Bob Cole? ### INPUT CREATE TABLE table_name_58 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR) ### OUTPUT SELECT colour_commentator_s_ FROM table_name_58 WHERE play_by_play = "bob cole"
{ "input": "CREATE TABLE table_name_58 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR)", "instruction": "Who was the colour commentator when the play-by-play announcer was Bob Cole?", "output": "SELECT colour_commentator_s_ FROM table_name_58 WHERE play_by_play = \"bob cole\"" }
### INSTRUCTION What title was used in the nomination for the title Biola Tak Berdawai? ### INPUT CREATE TABLE table_13719788_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### OUTPUT SELECT film_title_used_in_nomination FROM table_13719788_1 WHERE original_title = "Biola tak berdawai"
{ "input": "CREATE TABLE table_13719788_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)", "instruction": "What title was used in the nomination for the title Biola Tak Berdawai?", "output": "SELECT film_title_used_in_nomination FROM table_13719788_1 WHERE original_title = \"Biola tak berdawai\"" }
### INSTRUCTION What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy? ### INPUT CREATE TABLE table_name_55 (date_of_delivery VARCHAR, baby_gender VARCHAR, congresswoman VARCHAR) ### OUTPUT SELECT date_of_delivery FROM table_name_55 WHERE baby_gender = "boy" AND congresswoman = "kirsten gillibrand"
{ "input": "CREATE TABLE table_name_55 (date_of_delivery VARCHAR, baby_gender VARCHAR, congresswoman VARCHAR)", "instruction": "What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?", "output": "SELECT date_of_delivery FROM table_name_55 WHERE baby_gender = \"boy\" AND congresswoman = \"kirsten gillibrand\"" }
### INSTRUCTION Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3? ### INPUT CREATE TABLE table_name_11 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR) ### OUTPUT SELECT position FROM table_name_11 WHERE college_junior_club_team__league_ = "estevan bruins (wchl)" AND round = 3
{ "input": "CREATE TABLE table_name_11 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR)", "instruction": "Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?", "output": "SELECT position FROM table_name_11 WHERE college_junior_club_team__league_ = \"estevan bruins (wchl)\" AND round = 3" }
### INSTRUCTION What position does the player from Oklahoma who was drafted in round 7 play? ### INPUT CREATE TABLE table_name_95 (position VARCHAR, round VARCHAR, college VARCHAR) ### OUTPUT SELECT position FROM table_name_95 WHERE round = 7 AND college = "oklahoma"
{ "input": "CREATE TABLE table_name_95 (position VARCHAR, round VARCHAR, college VARCHAR)", "instruction": "What position does the player from Oklahoma who was drafted in round 7 play?", "output": "SELECT position FROM table_name_95 WHERE round = 7 AND college = \"oklahoma\"" }
### INSTRUCTION How many pixels would be found in a hardware colour of 8? ### INPUT CREATE TABLE table_1701371_2 (pixels VARCHAR, hardware_colours VARCHAR) ### OUTPUT SELECT pixels FROM table_1701371_2 WHERE hardware_colours = 8
{ "input": "CREATE TABLE table_1701371_2 (pixels VARCHAR, hardware_colours VARCHAR)", "instruction": "How many pixels would be found in a hardware colour of 8?", "output": "SELECT pixels FROM table_1701371_2 WHERE hardware_colours = 8" }
### INSTRUCTION Tell me the final position for fa community shield ### INPUT CREATE TABLE table_name_22 (final_position___round VARCHAR, competition VARCHAR) ### OUTPUT SELECT final_position___round FROM table_name_22 WHERE competition = "fa community shield"
{ "input": "CREATE TABLE table_name_22 (final_position___round VARCHAR, competition VARCHAR)", "instruction": "Tell me the final position for fa community shield", "output": "SELECT final_position___round FROM table_name_22 WHERE competition = \"fa community shield\"" }
### INSTRUCTION What's the website for the Listen Live webcast on the 99.3 frequency? ### INPUT CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR) ### OUTPUT SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3
{ "input": "CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)", "instruction": "What's the website for the Listen Live webcast on the 99.3 frequency?", "output": "SELECT website FROM table_name_81 WHERE webcast = \"listen live\" AND frequency = 99.3" }
### INSTRUCTION With the given points of 51, what was the total number of the try bonus? ### INPUT CREATE TABLE table_17675675_2 (try_bonus VARCHAR, points VARCHAR) ### OUTPUT SELECT COUNT(try_bonus) FROM table_17675675_2 WHERE points = "51"
{ "input": "CREATE TABLE table_17675675_2 (try_bonus VARCHAR, points VARCHAR)", "instruction": "With the given points of 51, what was the total number of the try bonus?", "output": "SELECT COUNT(try_bonus) FROM table_17675675_2 WHERE points = \"51\"" }
### INSTRUCTION What season was Norwich Union League promoted? ### INPUT CREATE TABLE table_name_22 (season VARCHAR, promoted VARCHAR) ### OUTPUT SELECT season FROM table_name_22 WHERE promoted = "norwich union league"
{ "input": "CREATE TABLE table_name_22 (season VARCHAR, promoted VARCHAR)", "instruction": "What season was Norwich Union League promoted?", "output": "SELECT season FROM table_name_22 WHERE promoted = \"norwich union league\"" }
### INSTRUCTION Which Natural change has a Crude death rate (per 1000) larger than 9, and Deaths of 40 399? ### INPUT CREATE TABLE table_name_88 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, deaths VARCHAR) ### OUTPUT SELECT natural_change FROM table_name_88 WHERE crude_death_rate__per_1000_ > 9 AND deaths = "40 399"
{ "input": "CREATE TABLE table_name_88 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, deaths VARCHAR)", "instruction": "Which Natural change has a Crude death rate (per 1000) larger than 9, and Deaths of 40 399?", "output": "SELECT natural_change FROM table_name_88 WHERE crude_death_rate__per_1000_ > 9 AND deaths = \"40 399\"" }
### INSTRUCTION Who's the Republican ticket with a Democratic ticket of flora d. johnson? ### INPUT CREATE TABLE table_name_62 (republican_ticket VARCHAR, democratic_ticket VARCHAR) ### OUTPUT SELECT republican_ticket FROM table_name_62 WHERE democratic_ticket = "flora d. johnson"
{ "input": "CREATE TABLE table_name_62 (republican_ticket VARCHAR, democratic_ticket VARCHAR)", "instruction": "Who's the Republican ticket with a Democratic ticket of flora d. johnson?", "output": "SELECT republican_ticket FROM table_name_62 WHERE democratic_ticket = \"flora d. johnson\"" }
### INSTRUCTION Name the game coast for chicago and north western ### INPUT CREATE TABLE table_243664_1 (game_cost VARCHAR, railroad VARCHAR) ### OUTPUT SELECT game_cost FROM table_243664_1 WHERE railroad = "Chicago and North Western"
{ "input": "CREATE TABLE table_243664_1 (game_cost VARCHAR, railroad VARCHAR)", "instruction": "Name the game coast for chicago and north western", "output": "SELECT game_cost FROM table_243664_1 WHERE railroad = \"Chicago and North Western\"" }
### INSTRUCTION Name the nationality for francesco guglielmi ### INPUT CREATE TABLE table_22705586_1 (nationality VARCHAR, name VARCHAR) ### OUTPUT SELECT nationality FROM table_22705586_1 WHERE name = "Francesco Guglielmi"
{ "input": "CREATE TABLE table_22705586_1 (nationality VARCHAR, name VARCHAR)", "instruction": "Name the nationality for francesco guglielmi", "output": "SELECT nationality FROM table_22705586_1 WHERE name = \"Francesco Guglielmi\"" }
### INSTRUCTION Name the dar for telenord ### INPUT CREATE TABLE table_15887683_17 (dar VARCHAR, television_service VARCHAR) ### OUTPUT SELECT dar FROM table_15887683_17 WHERE television_service = "Telenord"
{ "input": "CREATE TABLE table_15887683_17 (dar VARCHAR, television_service VARCHAR)", "instruction": "Name the dar for telenord", "output": "SELECT dar FROM table_15887683_17 WHERE television_service = \"Telenord\"" }
### INSTRUCTION Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008? ### INPUT CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR) ### OUTPUT SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008
{ "input": "CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)", "instruction": "Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?", "output": "SELECT manufacturer FROM table_name_31 WHERE style = \"steel sit down\" AND opened > 2008" }
### INSTRUCTION What label is in download format in the United States? ### INPUT CREATE TABLE table_name_88 (label VARCHAR, region VARCHAR, format VARCHAR) ### OUTPUT SELECT label FROM table_name_88 WHERE region = "united states" AND format = "download"
{ "input": "CREATE TABLE table_name_88 (label VARCHAR, region VARCHAR, format VARCHAR)", "instruction": "What label is in download format in the United States?", "output": "SELECT label FROM table_name_88 WHERE region = \"united states\" AND format = \"download\"" }
### INSTRUCTION Which storm has a clash of 3 and a dance of 4? ### INPUT CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR) ### OUTPUT SELECT storm FROM table_name_58 WHERE dance = "4" AND clash = "3"
{ "input": "CREATE TABLE table_name_58 (storm VARCHAR, dance VARCHAR, clash VARCHAR)", "instruction": "Which storm has a clash of 3 and a dance of 4?", "output": "SELECT storm FROM table_name_58 WHERE dance = \"4\" AND clash = \"3\"" }
### INSTRUCTION What is the 1st leg with Team 2 Lyon? ### INPUT CREATE TABLE table_name_98 (team_2 VARCHAR) ### OUTPUT SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon"
{ "input": "CREATE TABLE table_name_98 (team_2 VARCHAR)", "instruction": "What is the 1st leg with Team 2 Lyon?", "output": "SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = \"lyon\"" }
### INSTRUCTION What is the Pole Position for Winning Team Penske Racing, and the Name of II Copa Mexico 150? ### INPUT CREATE TABLE table_name_41 (pole_position VARCHAR, winning_team VARCHAR, name VARCHAR) ### OUTPUT SELECT pole_position FROM table_name_41 WHERE winning_team = "penske racing" AND name = "ii copa mexico 150"
{ "input": "CREATE TABLE table_name_41 (pole_position VARCHAR, winning_team VARCHAR, name VARCHAR)", "instruction": "What is the Pole Position for Winning Team Penske Racing, and the Name of II Copa Mexico 150?", "output": "SELECT pole_position FROM table_name_41 WHERE winning_team = \"penske racing\" AND name = \"ii copa mexico 150\"" }
### INSTRUCTION What is the Score of T2 Place Player Dow Finsterwald? ### INPUT CREATE TABLE table_name_12 (score VARCHAR, place VARCHAR, player VARCHAR) ### OUTPUT SELECT score FROM table_name_12 WHERE place = "t2" AND player = "dow finsterwald"
{ "input": "CREATE TABLE table_name_12 (score VARCHAR, place VARCHAR, player VARCHAR)", "instruction": "What is the Score of T2 Place Player Dow Finsterwald?", "output": "SELECT score FROM table_name_12 WHERE place = \"t2\" AND player = \"dow finsterwald\"" }
### INSTRUCTION What is Segment A where Segment C is Sushi (part 1)? ### INPUT CREATE TABLE table_15187735_15 (segment_a VARCHAR, segment_c VARCHAR) ### OUTPUT SELECT segment_a FROM table_15187735_15 WHERE segment_c = "Sushi (Part 1)"
{ "input": "CREATE TABLE table_15187735_15 (segment_a VARCHAR, segment_c VARCHAR)", "instruction": "What is Segment A where Segment C is Sushi (part 1)? ", "output": "SELECT segment_a FROM table_15187735_15 WHERE segment_c = \"Sushi (Part 1)\"" }
### INSTRUCTION Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game? ### INPUT CREATE TABLE table_name_33 (game VARCHAR, home_team VARCHAR, result VARCHAR) ### OUTPUT SELECT game FROM table_name_33 WHERE home_team = "chicago bulls" AND result = "81-83 (3-2)"
{ "input": "CREATE TABLE table_name_33 (game VARCHAR, home_team VARCHAR, result VARCHAR)", "instruction": "Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game?", "output": "SELECT game FROM table_name_33 WHERE home_team = \"chicago bulls\" AND result = \"81-83 (3-2)\"" }
### INSTRUCTION When did the Argentine Grand Prix race? ### INPUT CREATE TABLE table_name_84 (date VARCHAR, race VARCHAR) ### OUTPUT SELECT date FROM table_name_84 WHERE race = "argentine grand prix"
{ "input": "CREATE TABLE table_name_84 (date VARCHAR, race VARCHAR)", "instruction": "When did the Argentine Grand Prix race?", "output": "SELECT date FROM table_name_84 WHERE race = \"argentine grand prix\"" }
### INSTRUCTION Name the tourism receipts 2003 for tourism competitiveness 3.26 ### INPUT CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ VARCHAR, tourism_competitiveness__2011___ttci_ VARCHAR) ### OUTPUT SELECT COUNT(tourism_receipts__2003___as__percentage_of_exports_) FROM table_18524_6 WHERE tourism_competitiveness__2011___ttci_ = "3.26"
{ "input": "CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ VARCHAR, tourism_competitiveness__2011___ttci_ VARCHAR)", "instruction": "Name the tourism receipts 2003 for tourism competitiveness 3.26", "output": "SELECT COUNT(tourism_receipts__2003___as__percentage_of_exports_) FROM table_18524_6 WHERE tourism_competitiveness__2011___ttci_ = \"3.26\"" }
### INSTRUCTION what is the capacity when the home city is zagreb and the manager is zlatko kranjčar? ### INPUT CREATE TABLE table_name_88 (capacity INTEGER, home_city VARCHAR, manager VARCHAR) ### OUTPUT SELECT AVG(capacity) FROM table_name_88 WHERE home_city = "zagreb" AND manager = "zlatko kranjčar"
{ "input": "CREATE TABLE table_name_88 (capacity INTEGER, home_city VARCHAR, manager VARCHAR)", "instruction": "what is the capacity when the home city is zagreb and the manager is zlatko kranjčar?", "output": "SELECT AVG(capacity) FROM table_name_88 WHERE home_city = \"zagreb\" AND manager = \"zlatko kranjčar\"" }
### INSTRUCTION What is the Losses at the western conference and the 2004–05 season? ### INPUT CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR) ### OUTPUT SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05"
{ "input": "CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR)", "instruction": "What is the Losses at the western conference and the 2004–05 season?", "output": "SELECT losses FROM table_name_51 WHERE conference = \"western\" AND season = \"2004–05\"" }
### INSTRUCTION Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx? ### INPUT CREATE TABLE table_name_33 (player VARCHAR, pick VARCHAR, new_wnba_team VARCHAR) ### OUTPUT SELECT player FROM table_name_33 WHERE pick < 6 AND new_wnba_team = "minnesota lynx"
{ "input": "CREATE TABLE table_name_33 (player VARCHAR, pick VARCHAR, new_wnba_team VARCHAR)", "instruction": "Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?", "output": "SELECT player FROM table_name_33 WHERE pick < 6 AND new_wnba_team = \"minnesota lynx\"" }
### INSTRUCTION Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff. ### INPUT CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR) ### OUTPUT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Sales Person" EXCEPT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Clerical Staff"
{ "input": "CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR)", "instruction": "Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.", "output": "SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Sales Person\" EXCEPT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Clerical Staff\"" }
### INSTRUCTION What is the total number of runners-up for a club with winning years of 2010? ### INPUT CREATE TABLE table_name_92 (runners_up VARCHAR, winning_years VARCHAR) ### OUTPUT SELECT COUNT(runners_up) FROM table_name_92 WHERE winning_years = "2010"
{ "input": "CREATE TABLE table_name_92 (runners_up VARCHAR, winning_years VARCHAR)", "instruction": "What is the total number of runners-up for a club with winning years of 2010?", "output": "SELECT COUNT(runners_up) FROM table_name_92 WHERE winning_years = \"2010\"" }
### INSTRUCTION In the game that has a score of 71-71-70-73=285 what is the to par? ### INPUT CREATE TABLE table_name_79 (to_par VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_79 WHERE score = 71 - 71 - 70 - 73 = 285
{ "input": "CREATE TABLE table_name_79 (to_par VARCHAR, score VARCHAR)", "instruction": "In the game that has a score of 71-71-70-73=285 what is the to par?", "output": "SELECT to_par FROM table_name_79 WHERE score = 71 - 71 - 70 - 73 = 285" }
### INSTRUCTION Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car? ### INPUT CREATE TABLE table_name_83 (pro_stock VARCHAR, top_fuel VARCHAR, funny_car VARCHAR) ### OUTPUT SELECT pro_stock FROM table_name_83 WHERE top_fuel = "tony schumacher" AND funny_car = "tony pedregon"
{ "input": "CREATE TABLE table_name_83 (pro_stock VARCHAR, top_fuel VARCHAR, funny_car VARCHAR)", "instruction": "Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?", "output": "SELECT pro_stock FROM table_name_83 WHERE top_fuel = \"tony schumacher\" AND funny_car = \"tony pedregon\"" }
### INSTRUCTION What was the score on the first leg when gimnasia de mendoza played at home for the second leg? ### INPUT CREATE TABLE table_name_57 (home__2nd_leg_ VARCHAR) ### OUTPUT SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = "gimnasia de mendoza"
{ "input": "CREATE TABLE table_name_57 (home__2nd_leg_ VARCHAR)", "instruction": "What was the score on the first leg when gimnasia de mendoza played at home for the second leg?", "output": "SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = \"gimnasia de mendoza\"" }
### INSTRUCTION What is the average operation beginning with a length of ampang and over 27 stations? ### INPUT CREATE TABLE table_name_12 (began_operation INTEGER, length__km_ VARCHAR, stations VARCHAR) ### OUTPUT SELECT AVG(began_operation) FROM table_name_12 WHERE length__km_ = "ampang" AND stations > 27
{ "input": "CREATE TABLE table_name_12 (began_operation INTEGER, length__km_ VARCHAR, stations VARCHAR)", "instruction": "What is the average operation beginning with a length of ampang and over 27 stations?", "output": "SELECT AVG(began_operation) FROM table_name_12 WHERE length__km_ = \"ampang\" AND stations > 27" }
### INSTRUCTION What is the date of vacancy when the manner of departure is sacked and the team is nejapa? ### INPUT CREATE TABLE table_name_45 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, team VARCHAR) ### OUTPUT SELECT date_of_vacancy FROM table_name_45 WHERE manner_of_departure = "sacked" AND team = "nejapa"
{ "input": "CREATE TABLE table_name_45 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, team VARCHAR)", "instruction": "What is the date of vacancy when the manner of departure is sacked and the team is nejapa?", "output": "SELECT date_of_vacancy FROM table_name_45 WHERE manner_of_departure = \"sacked\" AND team = \"nejapa\"" }
### INSTRUCTION Who was the bachelorette of the season where ian mckee was the winner? ### INPUT CREATE TABLE table_name_20 (bachelorette VARCHAR, winner VARCHAR) ### OUTPUT SELECT bachelorette FROM table_name_20 WHERE winner = "ian mckee"
{ "input": "CREATE TABLE table_name_20 (bachelorette VARCHAR, winner VARCHAR)", "instruction": "Who was the bachelorette of the season where ian mckee was the winner?", "output": "SELECT bachelorette FROM table_name_20 WHERE winner = \"ian mckee\"" }
### INSTRUCTION Which Administrative Panel has a Nominated by the Taoiseach smaller than 0? ### INPUT CREATE TABLE table_name_52 (administrative_panel INTEGER, nominated_by_the_taoiseach INTEGER) ### OUTPUT SELECT MIN(administrative_panel) FROM table_name_52 WHERE nominated_by_the_taoiseach < 0
{ "input": "CREATE TABLE table_name_52 (administrative_panel INTEGER, nominated_by_the_taoiseach INTEGER)", "instruction": "Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?", "output": "SELECT MIN(administrative_panel) FROM table_name_52 WHERE nominated_by_the_taoiseach < 0" }
### INSTRUCTION Who is the winner who attended college at Connecticut and is from North Syracuse, NY? ### INPUT CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR) ### OUTPUT SELECT winner FROM table_name_63 WHERE college = "connecticut" AND hometown = "north syracuse, ny"
{ "input": "CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR)", "instruction": "Who is the winner who attended college at Connecticut and is from North Syracuse, NY?", "output": "SELECT winner FROM table_name_63 WHERE college = \"connecticut\" AND hometown = \"north syracuse, ny\"" }
### INSTRUCTION What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character? ### INPUT CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR) ### OUTPUT SELECT director FROM table_name_93 WHERE release_date = "2004-03-31" AND characters = "daffy (as duck dodgers)"
{ "input": "CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR)", "instruction": "What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?", "output": "SELECT director FROM table_name_93 WHERE release_date = \"2004-03-31\" AND characters = \"daffy (as duck dodgers)\"" }
### INSTRUCTION Which Game has a Series of bruins lead 3–1? ### INPUT CREATE TABLE table_name_30 (game INTEGER, series VARCHAR) ### OUTPUT SELECT SUM(game) FROM table_name_30 WHERE series = "bruins lead 3–1"
{ "input": "CREATE TABLE table_name_30 (game INTEGER, series VARCHAR)", "instruction": "Which Game has a Series of bruins lead 3–1?", "output": "SELECT SUM(game) FROM table_name_30 WHERE series = \"bruins lead 3–1\"" }
### INSTRUCTION Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov ### INPUT CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR, mens_singles VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = "Diana Koleva Emilia Dimitrova" AND mens_singles = "Jeliazko Valkov"
{ "input": "CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR, mens_singles VARCHAR)", "instruction": "Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov", "output": "SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = \"Diana Koleva Emilia Dimitrova\" AND mens_singles = \"Jeliazko Valkov\"" }
### INSTRUCTION Which Date has a Winning score of –14 (66-64-68-68=266)? ### INPUT CREATE TABLE table_name_93 (date VARCHAR, winning_score VARCHAR) ### OUTPUT SELECT date FROM table_name_93 WHERE winning_score = –14(66 - 64 - 68 - 68 = 266)
{ "input": "CREATE TABLE table_name_93 (date VARCHAR, winning_score VARCHAR)", "instruction": "Which Date has a Winning score of –14 (66-64-68-68=266)?", "output": "SELECT date FROM table_name_93 WHERE winning_score = –14(66 - 64 - 68 - 68 = 266)" }
### INSTRUCTION Which owner owns the most dogs? List the owner id, first name and last name. ### INPUT CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR) ### OUTPUT SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR)", "instruction": "Which owner owns the most dogs? List the owner id, first name and last name.", "output": "SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Which Attendance has an Opponent of green bay packers, and a Week larger than 10? ### INPUT CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_95 WHERE opponent = "green bay packers" AND week > 10
{ "input": "CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR, week VARCHAR)", "instruction": "Which Attendance has an Opponent of green bay packers, and a Week larger than 10?", "output": "SELECT MIN(attendance) FROM table_name_95 WHERE opponent = \"green bay packers\" AND week > 10" }
### INSTRUCTION What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500? ### INPUT CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR) ### OUTPUT SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = "app" AND construction_start = "2008 january" AND population_served > 3500
{ "input": "CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR)", "instruction": "What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?", "output": "SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = \"app\" AND construction_start = \"2008 january\" AND population_served > 3500" }
### INSTRUCTION What is the maximum number of minutes associated with exactly 70 field goals? ### INPUT CREATE TABLE table_24908692_5 (minutes INTEGER, field_goals VARCHAR) ### OUTPUT SELECT MAX(minutes) FROM table_24908692_5 WHERE field_goals = 70
{ "input": "CREATE TABLE table_24908692_5 (minutes INTEGER, field_goals VARCHAR)", "instruction": "What is the maximum number of minutes associated with exactly 70 field goals?", "output": "SELECT MAX(minutes) FROM table_24908692_5 WHERE field_goals = 70" }
### INSTRUCTION What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008? ### INPUT CREATE TABLE table_name_98 (title VARCHAR, episode__number VARCHAR, part_6 VARCHAR) ### OUTPUT SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = "january 6, 2008"
{ "input": "CREATE TABLE table_name_98 (title VARCHAR, episode__number VARCHAR, part_6 VARCHAR)", "instruction": "What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?", "output": "SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = \"january 6, 2008\"" }
### INSTRUCTION Who is the representative with a presentation of credentials date on February 23, 1854? ### INPUT CREATE TABLE table_name_32 (representative VARCHAR, presentation_of_credentials VARCHAR) ### OUTPUT SELECT representative FROM table_name_32 WHERE presentation_of_credentials = "february 23, 1854"
{ "input": "CREATE TABLE table_name_32 (representative VARCHAR, presentation_of_credentials VARCHAR)", "instruction": "Who is the representative with a presentation of credentials date on February 23, 1854?", "output": "SELECT representative FROM table_name_32 WHERE presentation_of_credentials = \"february 23, 1854\"" }
### INSTRUCTION List the name for storms and the number of affected regions for each storm. ### INPUT CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) ### OUTPUT SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id
{ "input": "CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "instruction": "List the name for storms and the number of affected regions for each storm.", "output": "SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id" }
### INSTRUCTION What was the year opened for North Carolina with a smaller than 21,500 capacity? ### INPUT CREATE TABLE table_name_50 (year_opened VARCHAR, state VARCHAR, capacity VARCHAR) ### OUTPUT SELECT year_opened FROM table_name_50 WHERE state = "north carolina" AND capacity < 21 OFFSET 500
{ "input": "CREATE TABLE table_name_50 (year_opened VARCHAR, state VARCHAR, capacity VARCHAR)", "instruction": "What was the year opened for North Carolina with a smaller than 21,500 capacity?", "output": "SELECT year_opened FROM table_name_50 WHERE state = \"north carolina\" AND capacity < 21 OFFSET 500" }
### INSTRUCTION What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997? ### INPUT CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR) ### OUTPUT SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997
{ "input": "CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR)", "instruction": "What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997?", "output": "SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997" }
### INSTRUCTION In the match against Marcus Aurélio with a method of decision (unanimous), what was the results? ### INPUT CREATE TABLE table_name_6 (res VARCHAR, method VARCHAR, opponent VARCHAR) ### OUTPUT SELECT res FROM table_name_6 WHERE method = "decision (unanimous)" AND opponent = "marcus aurélio"
{ "input": "CREATE TABLE table_name_6 (res VARCHAR, method VARCHAR, opponent VARCHAR)", "instruction": "In the match against Marcus Aurélio with a method of decision (unanimous), what was the results?", "output": "SELECT res FROM table_name_6 WHERE method = \"decision (unanimous)\" AND opponent = \"marcus aurélio\"" }
### INSTRUCTION What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10? ### INPUT CREATE TABLE table_name_27 (minimum_tax_incl_sales_taxes__cad INTEGER, min_tax__cad¢_us_gal_ VARCHAR, federal_excise_tax___cad¢___l__ VARCHAR) ### OUTPUT SELECT MIN(minimum_tax_incl_sales_taxes__cad) AS ¢_l_ FROM table_name_27 WHERE min_tax__cad¢_us_gal_ = 105.7 AND federal_excise_tax___cad¢___l__ > 10
{ "input": "CREATE TABLE table_name_27 (minimum_tax_incl_sales_taxes__cad INTEGER, min_tax__cad¢_us_gal_ VARCHAR, federal_excise_tax___cad¢___l__ VARCHAR)", "instruction": "What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10?", "output": "SELECT MIN(minimum_tax_incl_sales_taxes__cad) AS ¢_l_ FROM table_name_27 WHERE min_tax__cad¢_us_gal_ = 105.7 AND federal_excise_tax___cad¢___l__ > 10" }
### INSTRUCTION Name the number of assists for 321 minutes ### INPUT CREATE TABLE table_23184448_4 (assists VARCHAR, minutes VARCHAR) ### OUTPUT SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321
{ "input": "CREATE TABLE table_23184448_4 (assists VARCHAR, minutes VARCHAR)", "instruction": "Name the number of assists for 321 minutes ", "output": "SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321" }
### INSTRUCTION What language is the Tematico content with a sky tv package, and Fox Crime television service? ### INPUT CREATE TABLE table_name_55 (language VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR) ### OUTPUT SELECT language FROM table_name_55 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "fox crime"
{ "input": "CREATE TABLE table_name_55 (language VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR)", "instruction": "What language is the Tematico content with a sky tv package, and Fox Crime television service?", "output": "SELECT language FROM table_name_55 WHERE content = \"tematico\" AND package_option = \"sky tv\" AND television_service = \"fox crime\"" }
### INSTRUCTION What is the maximum capacity of the San Agustin Gym? ### INPUT CREATE TABLE table_name_91 (maximum_seating_capacity VARCHAR, arena_venue VARCHAR) ### OUTPUT SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = "san agustin gym"
{ "input": "CREATE TABLE table_name_91 (maximum_seating_capacity VARCHAR, arena_venue VARCHAR)", "instruction": "What is the maximum capacity of the San Agustin Gym?", "output": "SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = \"san agustin gym\"" }
### INSTRUCTION What is the wheel arrangement of the locomotive with number 6 or 4? ### INPUT CREATE TABLE table_name_95 (wheel_arrangement VARCHAR, number VARCHAR) ### OUTPUT SELECT wheel_arrangement FROM table_name_95 WHERE number = "6 or 4"
{ "input": "CREATE TABLE table_name_95 (wheel_arrangement VARCHAR, number VARCHAR)", "instruction": "What is the wheel arrangement of the locomotive with number 6 or 4?", "output": "SELECT wheel_arrangement FROM table_name_95 WHERE number = \"6 or 4\"" }
### INSTRUCTION Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix? ### INPUT CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR) ### OUTPUT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Chinese Grand Prix"
{ "input": "CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR)", "instruction": "Find the id and forenames of drivers who participated both the races with name Australian Grand Prix and the races with name Chinese Grand Prix?", "output": "SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" INTERSECT SELECT T2.driverid, T3.forename FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"" }
### INSTRUCTION Find the last name and age of the student who has allergy to both milk and cat. ### INPUT CREATE TABLE Has_allergy (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR) ### OUTPUT SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
{ "input": "CREATE TABLE Has_allergy (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR)", "instruction": "Find the last name and age of the student who has allergy to both milk and cat.", "output": "SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")" }
### INSTRUCTION What's the most amount of point finishes for v8supercar? ### INPUT CREATE TABLE table_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR) ### OUTPUT SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = "V8Supercar"
{ "input": "CREATE TABLE table_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR)", "instruction": "What's the most amount of point finishes for v8supercar?", "output": "SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = \"V8Supercar\"" }
### INSTRUCTION How may times did a player that attended Iowa state appear on the all time roster? ### INPUT CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, school_club_team_country VARCHAR) ### OUTPUT SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = "Iowa State"
{ "input": "CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, school_club_team_country VARCHAR)", "instruction": "How may times did a player that attended Iowa state appear on the all time roster?", "output": "SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE school_club_team_country = \"Iowa State\"" }
### INSTRUCTION Running back Aaron Green went to Nebraska and what high school? ### INPUT CREATE TABLE table_11677691_3 (school VARCHAR, position VARCHAR, college VARCHAR) ### OUTPUT SELECT school FROM table_11677691_3 WHERE position = "Running back" AND college = "Nebraska"
{ "input": "CREATE TABLE table_11677691_3 (school VARCHAR, position VARCHAR, college VARCHAR)", "instruction": "Running back Aaron Green went to Nebraska and what high school? ", "output": "SELECT school FROM table_11677691_3 WHERE position = \"Running back\" AND college = \"Nebraska\"" }
### INSTRUCTION Name the most runs for wickets of 66 and matches less than 13 ### INPUT CREATE TABLE table_name_68 (runs INTEGER, wickets VARCHAR, matches VARCHAR) ### OUTPUT SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13
{ "input": "CREATE TABLE table_name_68 (runs INTEGER, wickets VARCHAR, matches VARCHAR)", "instruction": "Name the most runs for wickets of 66 and matches less than 13", "output": "SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13" }
### INSTRUCTION What is the capacity for the institution of university of alberta? ### INPUT CREATE TABLE table_27599216_6 (capacity VARCHAR, institution VARCHAR) ### OUTPUT SELECT capacity FROM table_27599216_6 WHERE institution = "University of Alberta"
{ "input": "CREATE TABLE table_27599216_6 (capacity VARCHAR, institution VARCHAR)", "instruction": "What is the capacity for the institution of university of alberta?", "output": "SELECT capacity FROM table_27599216_6 WHERE institution = \"University of Alberta\"" }
### INSTRUCTION What is the lowest game number when the team is Houston? ### INPUT CREATE TABLE table_17326036_7 (game INTEGER, team VARCHAR) ### OUTPUT SELECT MIN(game) FROM table_17326036_7 WHERE team = "Houston"
{ "input": "CREATE TABLE table_17326036_7 (game INTEGER, team VARCHAR)", "instruction": "What is the lowest game number when the team is Houston? ", "output": "SELECT MIN(game) FROM table_17326036_7 WHERE team = \"Houston\"" }
### INSTRUCTION Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)? ### INPUT CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR) ### OUTPUT SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)"
{ "input": "CREATE TABLE table_name_85 (player VARCHAR, date_of_birth__age_when_delisted_ VARCHAR)", "instruction": "Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)?", "output": "SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = \"13 february 1987 (aged 24)\"" }
### INSTRUCTION Where was the attendance more than 57,347? ### INPUT CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER) ### OUTPUT SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347
{ "input": "CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER)", "instruction": "Where was the attendance more than 57,347?", "output": "SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347" }
### INSTRUCTION What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186? ### INPUT CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR) ### OUTPUT SELECT name FROM table_name_91 WHERE area = "balclutha" AND decile < 7 AND roll > 186
{ "input": "CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR)", "instruction": "What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186?", "output": "SELECT name FROM table_name_91 WHERE area = \"balclutha\" AND decile < 7 AND roll > 186" }
### INSTRUCTION What is the place of plyaer Tim Herron from the United States with a to par of +1? ### INPUT CREATE TABLE table_name_15 (place VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) ### OUTPUT SELECT place FROM table_name_15 WHERE country = "united states" AND to_par = "+1" AND player = "tim herron"
{ "input": "CREATE TABLE table_name_15 (place VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)", "instruction": "What is the place of plyaer Tim Herron from the United States with a to par of +1?", "output": "SELECT place FROM table_name_15 WHERE country = \"united states\" AND to_par = \"+1\" AND player = \"tim herron\"" }
### INSTRUCTION What category was Kasautii Zindagii Kay nominated for after 2005? ### INPUT CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, for_the_show VARCHAR) ### OUTPUT SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = "kasautii zindagii kay"
{ "input": "CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, for_the_show VARCHAR)", "instruction": "What category was Kasautii Zindagii Kay nominated for after 2005?", "output": "SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = \"kasautii zindagii kay\"" }
### INSTRUCTION What is the grid number for troy corser with under 22 laps? ### INPUT CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR) ### OUTPUT SELECT SUM(grid) FROM table_name_48 WHERE rider = "troy corser" AND laps < 22
{ "input": "CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR)", "instruction": "What is the grid number for troy corser with under 22 laps?", "output": "SELECT SUM(grid) FROM table_name_48 WHERE rider = \"troy corser\" AND laps < 22" }
### INSTRUCTION What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'? ### INPUT CREATE TABLE airport (id VARCHAR, country VARCHAR, name VARCHAR); CREATE TABLE flight (pilot VARCHAR, airport_id VARCHAR) ### OUTPUT SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport'
{ "input": "CREATE TABLE airport (id VARCHAR, country VARCHAR, name VARCHAR); CREATE TABLE flight (pilot VARCHAR, airport_id VARCHAR)", "instruction": "What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?", "output": "SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport'" }
### INSTRUCTION What is the average rank of a player with fewer than 3 matches? ### INPUT CREATE TABLE table_name_38 (rank INTEGER, matches INTEGER) ### OUTPUT SELECT AVG(rank) FROM table_name_38 WHERE matches < 3
{ "input": "CREATE TABLE table_name_38 (rank INTEGER, matches INTEGER)", "instruction": "What is the average rank of a player with fewer than 3 matches?", "output": "SELECT AVG(rank) FROM table_name_38 WHERE matches < 3" }
### INSTRUCTION What dates does Alex Munter have 25% and the polling firm of Decima? ### INPUT CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR) ### OUTPUT SELECT polling_dates FROM table_name_41 WHERE alex_munter = "25%" AND polling_firm = "decima"
{ "input": "CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR)", "instruction": "What dates does Alex Munter have 25% and the polling firm of Decima?", "output": "SELECT polling_dates FROM table_name_41 WHERE alex_munter = \"25%\" AND polling_firm = \"decima\"" }