text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Show all locations where a gas station for company with market value greater than 100 is located. ### INPUT CREATE TABLE gas_station (location VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, market_value INTEGER); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR) ### OUTPUT SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100
{ "input": "CREATE TABLE gas_station (location VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, market_value INTEGER); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR)", "instruction": "Show all locations where a gas station for company with market value greater than 100 is located.", "output": "SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100" }
### INSTRUCTION List all the locations where net capacity is 950? ### INPUT CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, net_capacity__mw_ VARCHAR) ### OUTPUT SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE net_capacity__mw_ = 950
{ "input": "CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, net_capacity__mw_ VARCHAR)", "instruction": "List all the locations where net capacity is 950?", "output": "SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE net_capacity__mw_ = 950" }
### INSTRUCTION How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102? ### INPUT CREATE TABLE table_name_73 (viewers__m_ VARCHAR, rank___number_ VARCHAR, share VARCHAR, rating VARCHAR) ### OUTPUT SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = "100/102"
{ "input": "CREATE TABLE table_name_73 (viewers__m_ VARCHAR, rank___number_ VARCHAR, share VARCHAR, rating VARCHAR)", "instruction": "How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102?", "output": "SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = \"100/102\"" }
### INSTRUCTION Name the Number of electorates (2009 which has a Reserved for ( SC / ST /None) of none, and a Name of jahanabad? ### INPUT CREATE TABLE table_name_40 (number_of_electorates__2009_ INTEGER, reserved_for___sc___st__none_ VARCHAR, name VARCHAR) ### OUTPUT SELECT MIN(number_of_electorates__2009_) FROM table_name_40 WHERE reserved_for___sc___st__none_ = "none" AND name = "jahanabad"
{ "input": "CREATE TABLE table_name_40 (number_of_electorates__2009_ INTEGER, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)", "instruction": "Name the Number of electorates (2009 which has a Reserved for ( SC / ST /None) of none, and a Name of jahanabad?", "output": "SELECT MIN(number_of_electorates__2009_) FROM table_name_40 WHERE reserved_for___sc___st__none_ = \"none\" AND name = \"jahanabad\"" }
### INSTRUCTION Find the names of catalog entries with level number 8. ### INPUT CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, catalog_level_number VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR) ### OUTPUT SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8"
{ "input": "CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, catalog_level_number VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR)", "instruction": "Find the names of catalog entries with level number 8.", "output": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = \"8\"" }
### INSTRUCTION Name the position for brazil 2008 with goals of 0 1 ### INPUT CREATE TABLE table_name_6 (position VARCHAR, goals VARCHAR, country VARCHAR, period VARCHAR) ### OUTPUT SELECT position FROM table_name_6 WHERE country = "brazil" AND period = "2008" AND goals = "0 1"
{ "input": "CREATE TABLE table_name_6 (position VARCHAR, goals VARCHAR, country VARCHAR, period VARCHAR)", "instruction": "Name the position for brazil 2008 with goals of 0 1", "output": "SELECT position FROM table_name_6 WHERE country = \"brazil\" AND period = \"2008\" AND goals = \"0 1\"" }
### INSTRUCTION What is the nationality of player Jani Hakanpaa? ### INPUT CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR) ### OUTPUT SELECT nationality FROM table_name_65 WHERE player = "jani hakanpaa"
{ "input": "CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR)", "instruction": "What is the nationality of player Jani Hakanpaa?", "output": "SELECT nationality FROM table_name_65 WHERE player = \"jani hakanpaa\"" }
### INSTRUCTION Which Intelli Trace has a No Extension and Windows Phone development of no? ### INPUT CREATE TABLE table_name_10 (intellitrace VARCHAR, extensions VARCHAR, windows_phone_development VARCHAR) ### OUTPUT SELECT intellitrace FROM table_name_10 WHERE extensions = "no" AND windows_phone_development = "no"
{ "input": "CREATE TABLE table_name_10 (intellitrace VARCHAR, extensions VARCHAR, windows_phone_development VARCHAR)", "instruction": "Which Intelli Trace has a No Extension and Windows Phone development of no?", "output": "SELECT intellitrace FROM table_name_10 WHERE extensions = \"no\" AND windows_phone_development = \"no\"" }
### INSTRUCTION Show storm name with at least two regions and 10 cities affected. ### INPUT CREATE TABLE affected_region (storm_id VARCHAR, number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) ### OUTPUT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10
{ "input": "CREATE TABLE affected_region (storm_id VARCHAR, number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "instruction": "Show storm name with at least two regions and 10 cities affected.", "output": "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10" }
### INSTRUCTION Name the capacity for the engine of 2.0 duratorq ### INPUT CREATE TABLE table_name_84 (capacity VARCHAR, model_engine VARCHAR) ### OUTPUT SELECT capacity FROM table_name_84 WHERE model_engine = "2.0 duratorq"
{ "input": "CREATE TABLE table_name_84 (capacity VARCHAR, model_engine VARCHAR)", "instruction": "Name the capacity for the engine of 2.0 duratorq", "output": "SELECT capacity FROM table_name_84 WHERE model_engine = \"2.0 duratorq\"" }
### INSTRUCTION Show the location name for document "Robin CV". ### INPUT CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR) ### OUTPUT SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV"
{ "input": "CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR)", "instruction": "Show the location name for document \"Robin CV\".", "output": "SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = \"Robin CV\"" }
### INSTRUCTION Name the sum of top-25 for pga championship and top-5 less than 1 ### INPUT CREATE TABLE table_name_21 (top_25 INTEGER, tournament VARCHAR, top_5 VARCHAR) ### OUTPUT SELECT SUM(top_25) FROM table_name_21 WHERE tournament = "pga championship" AND top_5 < 1
{ "input": "CREATE TABLE table_name_21 (top_25 INTEGER, tournament VARCHAR, top_5 VARCHAR)", "instruction": "Name the sum of top-25 for pga championship and top-5 less than 1", "output": "SELECT SUM(top_25) FROM table_name_21 WHERE tournament = \"pga championship\" AND top_5 < 1" }
### INSTRUCTION If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts? ### INPUT CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR) ### OUTPUT SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges"
{ "input": "CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR)", "instruction": "If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts?", "output": "SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = \"adam voges\"" }
### INSTRUCTION What's the lowest squad number with more than 6 goals, fewer than 8 league goals, and more than 0 playoff goals? ### INPUT CREATE TABLE table_name_28 (squad_no INTEGER, playoff_goals VARCHAR, total_goals VARCHAR, league_goals VARCHAR) ### OUTPUT SELECT MIN(squad_no) FROM table_name_28 WHERE total_goals > 6 AND league_goals < 8 AND playoff_goals > 0
{ "input": "CREATE TABLE table_name_28 (squad_no INTEGER, playoff_goals VARCHAR, total_goals VARCHAR, league_goals VARCHAR)", "instruction": "What's the lowest squad number with more than 6 goals, fewer than 8 league goals, and more than 0 playoff goals?", "output": "SELECT MIN(squad_no) FROM table_name_28 WHERE total_goals > 6 AND league_goals < 8 AND playoff_goals > 0" }
### INSTRUCTION Which athlete performed before 1984 in an 800 m event? ### INPUT CREATE TABLE table_name_40 (athlete VARCHAR, year VARCHAR, event VARCHAR) ### OUTPUT SELECT athlete FROM table_name_40 WHERE year < 1984 AND event = "800 m"
{ "input": "CREATE TABLE table_name_40 (athlete VARCHAR, year VARCHAR, event VARCHAR)", "instruction": "Which athlete performed before 1984 in an 800 m event?", "output": "SELECT athlete FROM table_name_40 WHERE year < 1984 AND event = \"800 m\"" }
### INSTRUCTION Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode? ### INPUT CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR) ### OUTPUT SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = "greg proops" AND performer_3 = "ryan stiles" AND date = "25 august 1995"
{ "input": "CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR)", "instruction": "Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?", "output": "SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = \"greg proops\" AND performer_3 = \"ryan stiles\" AND date = \"25 august 1995\"" }
### INSTRUCTION What is the location/attendance of the game with a 3-1 record? ### INPUT CREATE TABLE table_name_1 (location_attendance VARCHAR, record VARCHAR) ### OUTPUT SELECT location_attendance FROM table_name_1 WHERE record = "3-1"
{ "input": "CREATE TABLE table_name_1 (location_attendance VARCHAR, record VARCHAR)", "instruction": "What is the location/attendance of the game with a 3-1 record?", "output": "SELECT location_attendance FROM table_name_1 WHERE record = \"3-1\"" }
### INSTRUCTION What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released? ### INPUT CREATE TABLE table_name_37 (release_date VARCHAR, title VARCHAR, series VARCHAR, director VARCHAR, production_number VARCHAR) ### OUTPUT SELECT release_date FROM table_name_37 WHERE director = "friz freleng" AND production_number > 1496 AND series = "mm" AND title = "apes of wrath"
{ "input": "CREATE TABLE table_name_37 (release_date VARCHAR, title VARCHAR, series VARCHAR, director VARCHAR, production_number VARCHAR)", "instruction": "What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?", "output": "SELECT release_date FROM table_name_37 WHERE director = \"friz freleng\" AND production_number > 1496 AND series = \"mm\" AND title = \"apes of wrath\"" }
### INSTRUCTION For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross? ### INPUT CREATE TABLE table_name_43 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR) ### OUTPUT SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell"
{ "input": "CREATE TABLE table_name_43 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR)", "instruction": "For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?", "output": "SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = \"columbia pictures\" AND director_s_ = \"martin campbell\"" }
### INSTRUCTION What is the train name of the rail with a daily frequency and Jammutawi as the destination? ### INPUT CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR) ### OUTPUT SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = "daily" AND destination = "jammutawi"
{ "input": "CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)", "instruction": "What is the train name of the rail with a daily frequency and Jammutawi as the destination?", "output": "SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = \"daily\" AND destination = \"jammutawi\"" }
### INSTRUCTION What was the winning team on 11 July? ### INPUT CREATE TABLE table_name_58 (winning_team VARCHAR, date VARCHAR) ### OUTPUT SELECT winning_team FROM table_name_58 WHERE date = "11 july"
{ "input": "CREATE TABLE table_name_58 (winning_team VARCHAR, date VARCHAR)", "instruction": "What was the winning team on 11 July?", "output": "SELECT winning_team FROM table_name_58 WHERE date = \"11 july\"" }
### INSTRUCTION Shirt number of 18, and a Height larger than 195 has how much weight? ### INPUT CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR) ### OUTPUT SELECT COUNT(weight) FROM table_name_63 WHERE shirt_no = 18 AND height > 195
{ "input": "CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR)", "instruction": "Shirt number of 18, and a Height larger than 195 has how much weight?", "output": "SELECT COUNT(weight) FROM table_name_63 WHERE shirt_no = 18 AND height > 195" }
### INSTRUCTION What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain? ### INPUT CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT MAX(first_elected) FROM table_name_40 WHERE results = "lost re-election democratic gain" AND incumbent = "john hostettler"
{ "input": "CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)", "instruction": "What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?", "output": "SELECT MAX(first_elected) FROM table_name_40 WHERE results = \"lost re-election democratic gain\" AND incumbent = \"john hostettler\"" }
### INSTRUCTION What is the average gold medals Uzbekistan, which has less than 24 total medals, has? ### INPUT CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR, total VARCHAR) ### OUTPUT SELECT AVG(gold) FROM table_name_65 WHERE nation = "uzbekistan" AND total < 24
{ "input": "CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR, total VARCHAR)", "instruction": "What is the average gold medals Uzbekistan, which has less than 24 total medals, has?", "output": "SELECT AVG(gold) FROM table_name_65 WHERE nation = \"uzbekistan\" AND total < 24" }
### INSTRUCTION what is the total number of played when the goals for is more than 34 and goals against is more than 63? ### INPUT CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR) ### OUTPUT SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63
{ "input": "CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)", "instruction": "what is the total number of played when the goals for is more than 34 and goals against is more than 63?", "output": "SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63" }
### INSTRUCTION Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people? ### INPUT CREATE TABLE table_name_2 (municipality VARCHAR, population VARCHAR, county VARCHAR, area VARCHAR, area_km² VARCHAR) ### OUTPUT SELECT municipality FROM table_name_2 WHERE area = "outer circle south" AND area_km² < 368 AND county = "akershus" AND population > 14 OFFSET 398
{ "input": "CREATE TABLE table_name_2 (municipality VARCHAR, population VARCHAR, county VARCHAR, area VARCHAR, area_km² VARCHAR)", "instruction": "Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people?", "output": "SELECT municipality FROM table_name_2 WHERE area = \"outer circle south\" AND area_km² < 368 AND county = \"akershus\" AND population > 14 OFFSET 398" }
### INSTRUCTION Who was the recipient when the show was nominated for Most Popular Drama after 2004? ### INPUT CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR) ### OUTPUT SELECT recipient_s_ FROM table_name_5 WHERE result = "nominated" AND category = "most popular drama" AND year > 2004
{ "input": "CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)", "instruction": "Who was the recipient when the show was nominated for Most Popular Drama after 2004?", "output": "SELECT recipient_s_ FROM table_name_5 WHERE result = \"nominated\" AND category = \"most popular drama\" AND year > 2004" }
### INSTRUCTION Name the number of position for democratic republic of the congo ### INPUT CREATE TABLE table_24565004_13 (position VARCHAR, nationality² VARCHAR) ### OUTPUT SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = "Democratic Republic of the Congo"
{ "input": "CREATE TABLE table_24565004_13 (position VARCHAR, nationality² VARCHAR)", "instruction": "Name the number of position for democratic republic of the congo", "output": "SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = \"Democratic Republic of the Congo\"" }
### INSTRUCTION What was built in 1857? ### INPUT CREATE TABLE table_name_89 (name VARCHAR, year_built VARCHAR) ### OUTPUT SELECT name FROM table_name_89 WHERE year_built = 1857
{ "input": "CREATE TABLE table_name_89 (name VARCHAR, year_built VARCHAR)", "instruction": "What was built in 1857?", "output": "SELECT name FROM table_name_89 WHERE year_built = 1857" }
### INSTRUCTION How many seasons have motopark team? ### INPUT CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR) ### OUTPUT SELECT COUNT(season) FROM table_23338693_1 WHERE team = "Motopark"
{ "input": "CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR)", "instruction": "How many seasons have motopark team?", "output": "SELECT COUNT(season) FROM table_23338693_1 WHERE team = \"Motopark\"" }
### INSTRUCTION How many crops were damaged when the public property damage was 1,03,049.60? ### INPUT CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR) ### OUTPUT SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
{ "input": "CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)", "instruction": "How many crops were damaged when the public property damage was 1,03,049.60?", "output": "SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = \"1,03,049.60\"" }
### INSTRUCTION What is the Score of an Opponent\ in the final of jordi arrese àlex corretja? ### INPUT CREATE TABLE table_name_25 (score VARCHAR, opponents_in_the_final VARCHAR) ### OUTPUT SELECT score FROM table_name_25 WHERE opponents_in_the_final = "jordi arrese àlex corretja"
{ "input": "CREATE TABLE table_name_25 (score VARCHAR, opponents_in_the_final VARCHAR)", "instruction": "What is the Score of an Opponent\\ in the final of jordi arrese àlex corretja?", "output": "SELECT score FROM table_name_25 WHERE opponents_in_the_final = \"jordi arrese àlex corretja\"" }
### INSTRUCTION What college did the tight end draft pick for New England Patriots come from? ### INPUT CREATE TABLE table_2508633_9 (college VARCHAR, nfl_team VARCHAR, position VARCHAR) ### OUTPUT SELECT college FROM table_2508633_9 WHERE nfl_team = "New England Patriots" AND position = "Tight end"
{ "input": "CREATE TABLE table_2508633_9 (college VARCHAR, nfl_team VARCHAR, position VARCHAR)", "instruction": "What college did the tight end draft pick for New England Patriots come from?", "output": "SELECT college FROM table_2508633_9 WHERE nfl_team = \"New England Patriots\" AND position = \"Tight end\"" }
### INSTRUCTION Which location has a date of may 21? ### INPUT CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR) ### OUTPUT SELECT location FROM table_name_95 WHERE date = "may 21"
{ "input": "CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR)", "instruction": "Which location has a date of may 21?", "output": "SELECT location FROM table_name_95 WHERE date = \"may 21\"" }
### INSTRUCTION Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007? ### INPUT CREATE TABLE table_name_36 (championship VARCHAR, year VARCHAR, opponent VARCHAR, surface VARCHAR) ### OUTPUT SELECT championship FROM table_name_36 WHERE opponent = "roger federer" AND surface = "clay" AND year < 2007
{ "input": "CREATE TABLE table_name_36 (championship VARCHAR, year VARCHAR, opponent VARCHAR, surface VARCHAR)", "instruction": "Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007?", "output": "SELECT championship FROM table_name_36 WHERE opponent = \"roger federer\" AND surface = \"clay\" AND year < 2007" }
### INSTRUCTION What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4? ### INPUT CREATE TABLE table_name_95 (peak_lessons_taught INTEGER, evaluation_average__before_april_2009_ VARCHAR) ### OUTPUT SELECT MAX(peak_lessons_taught) FROM table_name_95 WHERE evaluation_average__before_april_2009_ = "4.4"
{ "input": "CREATE TABLE table_name_95 (peak_lessons_taught INTEGER, evaluation_average__before_april_2009_ VARCHAR)", "instruction": "What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4?", "output": "SELECT MAX(peak_lessons_taught) FROM table_name_95 WHERE evaluation_average__before_april_2009_ = \"4.4\"" }
### INSTRUCTION What country does Bobby Nichols play for? ### INPUT CREATE TABLE table_name_70 (country VARCHAR, player VARCHAR) ### OUTPUT SELECT country FROM table_name_70 WHERE player = "bobby nichols"
{ "input": "CREATE TABLE table_name_70 (country VARCHAR, player VARCHAR)", "instruction": "What country does Bobby Nichols play for?", "output": "SELECT country FROM table_name_70 WHERE player = \"bobby nichols\"" }
### INSTRUCTION In 1971 at MCG, what was the score of the VFL Reserves? ### INPUT CREATE TABLE table_name_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR) ### OUTPUT SELECT score FROM table_name_35 WHERE competition = "vfl reserves" AND venue = "mcg" AND year = "1971"
{ "input": "CREATE TABLE table_name_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR)", "instruction": "In 1971 at MCG, what was the score of the VFL Reserves?", "output": "SELECT score FROM table_name_35 WHERE competition = \"vfl reserves\" AND venue = \"mcg\" AND year = \"1971\"" }
### INSTRUCTION Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top. ### INPUT CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER) ### OUTPUT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2
{ "input": "CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE volume (Artist_ID VARCHAR, Weeks_on_Top INTEGER)", "instruction": "Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.", "output": "SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top > 2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T2.Weeks_on_Top < 2" }
### INSTRUCTION Name the number of seats to be won being % of popular vote at 6.88% ### INPUT CREATE TABLE table_19283982_4 (_number_of_seats_to_be_won VARCHAR, _percentage_of_popular_vote VARCHAR) ### OUTPUT SELECT _number_of_seats_to_be_won FROM table_19283982_4 WHERE _percentage_of_popular_vote = "6.88%"
{ "input": "CREATE TABLE table_19283982_4 (_number_of_seats_to_be_won VARCHAR, _percentage_of_popular_vote VARCHAR)", "instruction": "Name the number of seats to be won being % of popular vote at 6.88%", "output": "SELECT _number_of_seats_to_be_won FROM table_19283982_4 WHERE _percentage_of_popular_vote = \"6.88%\"" }
### INSTRUCTION Show the total number of rooms of the apartments in the building with short name "Columbus Square". ### INPUT CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_short_name VARCHAR); CREATE TABLE Apartments (room_count INTEGER, building_id VARCHAR) ### OUTPUT SELECT SUM(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = "Columbus Square"
{ "input": "CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_short_name VARCHAR); CREATE TABLE Apartments (room_count INTEGER, building_id VARCHAR)", "instruction": "Show the total number of rooms of the apartments in the building with short name \"Columbus Square\".", "output": "SELECT SUM(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = \"Columbus Square\"" }
### INSTRUCTION Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7? ### INPUT CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR) ### OUTPUT SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica"
{ "input": "CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR)", "instruction": "Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?", "output": "SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = \"dominica\"" }
### INSTRUCTION What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers? ### INPUT CREATE TABLE table_name_42 (share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR) ### OUTPUT SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07
{ "input": "CREATE TABLE table_name_42 (share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR)", "instruction": "What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.07 million viewers?", "output": "SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07" }
### INSTRUCTION What is the highest Round, when Draft is greater than 1980, and when Player is "Shane Doan Category:Articles with hCards"? ### INPUT CREATE TABLE table_name_46 (round INTEGER, draft VARCHAR, player VARCHAR) ### OUTPUT SELECT MAX(round) FROM table_name_46 WHERE draft > 1980 AND player = "shane doan category:articles with hcards"
{ "input": "CREATE TABLE table_name_46 (round INTEGER, draft VARCHAR, player VARCHAR)", "instruction": "What is the highest Round, when Draft is greater than 1980, and when Player is \"Shane Doan Category:Articles with hCards\"?", "output": "SELECT MAX(round) FROM table_name_46 WHERE draft > 1980 AND player = \"shane doan category:articles with hcards\"" }
### INSTRUCTION Where was the game with a higher score than 1 played? ### INPUT CREATE TABLE table_name_85 (venue VARCHAR, scored INTEGER) ### OUTPUT SELECT venue FROM table_name_85 WHERE scored > 1
{ "input": "CREATE TABLE table_name_85 (venue VARCHAR, scored INTEGER)", "instruction": "Where was the game with a higher score than 1 played?", "output": "SELECT venue FROM table_name_85 WHERE scored > 1" }
### INSTRUCTION Show the apartment type codes and apartment numbers in the buildings managed by "Kyle". ### INPUT CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_manager VARCHAR); CREATE TABLE Apartments (apt_type_code VARCHAR, apt_number VARCHAR, building_id VARCHAR) ### OUTPUT SELECT T2.apt_type_code, T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = "Kyle"
{ "input": "CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_manager VARCHAR); CREATE TABLE Apartments (apt_type_code VARCHAR, apt_number VARCHAR, building_id VARCHAR)", "instruction": "Show the apartment type codes and apartment numbers in the buildings managed by \"Kyle\".", "output": "SELECT T2.apt_type_code, T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = \"Kyle\"" }
### INSTRUCTION What was the record after the game with the Manchester Wolves on July 30, 2004? ### INPUT CREATE TABLE table_name_18 (record VARCHAR, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_18 WHERE opponent = "manchester wolves" AND date = "july 30, 2004"
{ "input": "CREATE TABLE table_name_18 (record VARCHAR, opponent VARCHAR, date VARCHAR)", "instruction": "What was the record after the game with the Manchester Wolves on July 30, 2004?", "output": "SELECT record FROM table_name_18 WHERE opponent = \"manchester wolves\" AND date = \"july 30, 2004\"" }
### INSTRUCTION On what date do others have 5% with an SZDSZ of 5%? ### INPUT CREATE TABLE table_name_14 (date VARCHAR, others VARCHAR, szdsz VARCHAR) ### OUTPUT SELECT date FROM table_name_14 WHERE others = "5%" AND szdsz = "5%"
{ "input": "CREATE TABLE table_name_14 (date VARCHAR, others VARCHAR, szdsz VARCHAR)", "instruction": "On what date do others have 5% with an SZDSZ of 5%?", "output": "SELECT date FROM table_name_14 WHERE others = \"5%\" AND szdsz = \"5%\"" }
### INSTRUCTION Show the stadium name and capacity with most number of concerts in year 2014 or after. ### INPUT CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, year VARCHAR) ### OUTPUT SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, year VARCHAR)", "instruction": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "output": "SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals? ### INPUT CREATE TABLE table_name_83 (gold INTEGER, silver VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 4
{ "input": "CREATE TABLE table_name_83 (gold INTEGER, silver VARCHAR, bronze VARCHAR)", "instruction": "What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?", "output": "SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 4" }
### INSTRUCTION What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930? ### INPUT CREATE TABLE table_name_21 (status VARCHAR, population VARCHAR, census_ranking VARCHAR) ### OUTPUT SELECT status FROM table_name_21 WHERE population > 930 AND census_ranking = "1,769 of 5,008"
{ "input": "CREATE TABLE table_name_21 (status VARCHAR, population VARCHAR, census_ranking VARCHAR)", "instruction": "What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930?", "output": "SELECT status FROM table_name_21 WHERE population > 930 AND census_ranking = \"1,769 of 5,008\"" }
### INSTRUCTION What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34? ### INPUT CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(other) FROM table_name_14 WHERE name = "simon gillett category:articles with hcards" AND total < 34
{ "input": "CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR)", "instruction": "What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?", "output": "SELECT SUM(other) FROM table_name_14 WHERE name = \"simon gillett category:articles with hcards\" AND total < 34" }
### INSTRUCTION Which player has a Club/province of direito, less than 21 caps, and a Position of lock? ### INPUT CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR) ### OUTPUT SELECT player FROM table_name_99 WHERE club_province = "direito" AND caps < 21 AND position = "lock"
{ "input": "CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR)", "instruction": "Which player has a Club/province of direito, less than 21 caps, and a Position of lock?", "output": "SELECT player FROM table_name_99 WHERE club_province = \"direito\" AND caps < 21 AND position = \"lock\"" }
### INSTRUCTION how many winnings does jeff gordon have? ### INPUT CREATE TABLE table_27781212_1 (winnings VARCHAR, driver VARCHAR) ### OUTPUT SELECT winnings FROM table_27781212_1 WHERE driver = "Jeff Gordon"
{ "input": "CREATE TABLE table_27781212_1 (winnings VARCHAR, driver VARCHAR)", "instruction": "how many winnings does jeff gordon have?", "output": "SELECT winnings FROM table_27781212_1 WHERE driver = \"Jeff Gordon\"" }
### INSTRUCTION Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled? ### INPUT CREATE TABLE table_name_11 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR, perth VARCHAR) ### OUTPUT SELECT melbourne FROM table_name_11 WHERE gold_coast = "yes" AND perth = "cancelled" AND adelaide = "cancelled"
{ "input": "CREATE TABLE table_name_11 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR, perth VARCHAR)", "instruction": "Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled?", "output": "SELECT melbourne FROM table_name_11 WHERE gold_coast = \"yes\" AND perth = \"cancelled\" AND adelaide = \"cancelled\"" }
### INSTRUCTION When was Jonny Leadbeater President? ### INPUT CREATE TABLE table_16446652_1 (season VARCHAR, president VARCHAR) ### OUTPUT SELECT season FROM table_16446652_1 WHERE president = "Jonny Leadbeater"
{ "input": "CREATE TABLE table_16446652_1 (season VARCHAR, president VARCHAR)", "instruction": "When was Jonny Leadbeater President?", "output": "SELECT season FROM table_16446652_1 WHERE president = \"Jonny Leadbeater\"" }
### INSTRUCTION For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies? ### INPUT CREATE TABLE table_16729930_18 (gpu_frequency VARCHAR, tdp VARCHAR, part_number_s_ VARCHAR) ### OUTPUT SELECT gpu_frequency FROM table_16729930_18 WHERE tdp = "3.6 W" AND part_number_s_ = "CY80632007221AB"
{ "input": "CREATE TABLE table_16729930_18 (gpu_frequency VARCHAR, tdp VARCHAR, part_number_s_ VARCHAR)", "instruction": "For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU frequencies?", "output": "SELECT gpu_frequency FROM table_16729930_18 WHERE tdp = \"3.6 W\" AND part_number_s_ = \"CY80632007221AB\"" }
### INSTRUCTION What are the id of problems reported by the staff named Dameon Frami or Jolie Weber? ### INPUT CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR) ### OUTPUT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
{ "input": "CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR)", "instruction": "What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?", "output": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\"" }
### INSTRUCTION What's the standard name with an ADSL2 version and a 01.5 1.5 mbit/s downstream rate? ### INPUT CREATE TABLE table_name_49 (standard_name VARCHAR, version VARCHAR, downstream_rate VARCHAR) ### OUTPUT SELECT standard_name FROM table_name_49 WHERE version = "adsl2" AND downstream_rate = "01.5 1.5 mbit/s"
{ "input": "CREATE TABLE table_name_49 (standard_name VARCHAR, version VARCHAR, downstream_rate VARCHAR)", "instruction": "What's the standard name with an ADSL2 version and a 01.5 1.5 mbit/s downstream rate?", "output": "SELECT standard_name FROM table_name_49 WHERE version = \"adsl2\" AND downstream_rate = \"01.5 1.5 mbit/s\"" }
### INSTRUCTION Who was the opposing team at the match played at the Arden Street Oval? ### INPUT CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team FROM table_name_64 WHERE venue = "arden street oval"
{ "input": "CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR)", "instruction": "Who was the opposing team at the match played at the Arden Street Oval?", "output": "SELECT away_team FROM table_name_64 WHERE venue = \"arden street oval\"" }
### INSTRUCTION What is the bore of the boat howitzers with a 12-pdr heavy designation? ### INPUT CREATE TABLE table_name_8 (bore VARCHAR, designation VARCHAR) ### OUTPUT SELECT bore FROM table_name_8 WHERE designation = "12-pdr heavy"
{ "input": "CREATE TABLE table_name_8 (bore VARCHAR, designation VARCHAR)", "instruction": "What is the bore of the boat howitzers with a 12-pdr heavy designation?", "output": "SELECT bore FROM table_name_8 WHERE designation = \"12-pdr heavy\"" }
### INSTRUCTION What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent? ### INPUT CREATE TABLE table_15647838_3 (_number INTEGER, location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT MIN(_number) FROM table_15647838_3 WHERE location = "Atlanta, GA" AND opponent = "Georgia Bulldogs"
{ "input": "CREATE TABLE table_15647838_3 (_number INTEGER, location VARCHAR, opponent VARCHAR)", "instruction": "What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?", "output": "SELECT MIN(_number) FROM table_15647838_3 WHERE location = \"Atlanta, GA\" AND opponent = \"Georgia Bulldogs\"" }
### INSTRUCTION What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model? ### INPUT CREATE TABLE Countries (countryId VARCHAR, CountryName VARCHAR, CountryId VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR) ### OUTPUT SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'
{ "input": "CREATE TABLE Countries (countryId VARCHAR, CountryName VARCHAR, CountryId VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR)", "instruction": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "output": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'" }
### INSTRUCTION What was the highest number of yards in years where there were fewer than 51 rushes and more than 12 games? ### INPUT CREATE TABLE table_name_48 (yards INTEGER, rushes VARCHAR, games VARCHAR) ### OUTPUT SELECT MAX(yards) FROM table_name_48 WHERE rushes < 51 AND games > 12
{ "input": "CREATE TABLE table_name_48 (yards INTEGER, rushes VARCHAR, games VARCHAR)", "instruction": "What was the highest number of yards in years where there were fewer than 51 rushes and more than 12 games?", "output": "SELECT MAX(yards) FROM table_name_48 WHERE rushes < 51 AND games > 12" }
### INSTRUCTION who were the winners in west virginia ### INPUT CREATE TABLE table_1133844_4 (candidates_winning_candidate_in_bold VARCHAR, state__linked_to_summaries_below_ VARCHAR) ### OUTPUT SELECT candidates_winning_candidate_in_bold FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "West Virginia"
{ "input": "CREATE TABLE table_1133844_4 (candidates_winning_candidate_in_bold VARCHAR, state__linked_to_summaries_below_ VARCHAR)", "instruction": "who were the winners in west virginia", "output": "SELECT candidates_winning_candidate_in_bold FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = \"West Virginia\"" }
### INSTRUCTION What number episode in the season was directed by Paul Adelstein? ### INPUT CREATE TABLE table_27374740_1 (no_in_season INTEGER, directed_by VARCHAR) ### OUTPUT SELECT MAX(no_in_season) FROM table_27374740_1 WHERE directed_by = "Paul Adelstein"
{ "input": "CREATE TABLE table_27374740_1 (no_in_season INTEGER, directed_by VARCHAR)", "instruction": "What number episode in the season was directed by Paul Adelstein? ", "output": "SELECT MAX(no_in_season) FROM table_27374740_1 WHERE directed_by = \"Paul Adelstein\"" }
### INSTRUCTION What name has 5 as the pick, a round less than 25, ot as the position, at boston college? ### INPUT CREATE TABLE table_name_59 (name VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR) ### OUTPUT SELECT name FROM table_name_59 WHERE pick = 5 AND round < 25 AND position = "ot" AND college = "boston college"
{ "input": "CREATE TABLE table_name_59 (name VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)", "instruction": "What name has 5 as the pick, a round less than 25, ot as the position, at boston college?", "output": "SELECT name FROM table_name_59 WHERE pick = 5 AND round < 25 AND position = \"ot\" AND college = \"boston college\"" }
### INSTRUCTION how many end of term with age at inauguration being 64-066 64years, 66days ### INPUT CREATE TABLE table_12134383_1 (end_of_term VARCHAR, age_at_inauguration VARCHAR) ### OUTPUT SELECT COUNT(end_of_term) FROM table_12134383_1 WHERE age_at_inauguration = "64-066 64years, 66days"
{ "input": "CREATE TABLE table_12134383_1 (end_of_term VARCHAR, age_at_inauguration VARCHAR)", "instruction": " how many end of term with age at inauguration being 64-066 64years, 66days", "output": "SELECT COUNT(end_of_term) FROM table_12134383_1 WHERE age_at_inauguration = \"64-066 64years, 66days\"" }
### INSTRUCTION Find the number of items that did not receive any review. ### INPUT CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
{ "input": "CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)", "instruction": "Find the number of items that did not receive any review.", "output": "SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)" }
### INSTRUCTION Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor? ### INPUT CREATE TABLE table_name_74 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) ### OUTPUT SELECT driver FROM table_name_74 WHERE grid < 24 AND laps < 61 AND constructor = "ferrari"
{ "input": "CREATE TABLE table_name_74 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)", "instruction": "Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?", "output": "SELECT driver FROM table_name_74 WHERE grid < 24 AND laps < 61 AND constructor = \"ferrari\"" }
### INSTRUCTION What is the code for Saint-Damien in Matawinie with a type p? ### INPUT CREATE TABLE table_name_35 (code INTEGER, name VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) ### OUTPUT SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien"
{ "input": "CREATE TABLE table_name_35 (code INTEGER, name VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)", "instruction": "What is the code for Saint-Damien in Matawinie with a type p?", "output": "SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = \"matawinie\" AND type = \"p\" AND name = \"saint-damien\"" }
### INSTRUCTION What is the smallest rank for an industry of banking, a company of bank of america, and profits (billion $) larger than 16.47? ### INPUT CREATE TABLE table_name_36 (rank INTEGER, profits__billion_$_ VARCHAR, industry VARCHAR, company VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_36 WHERE industry = "banking" AND company = "bank of america" AND profits__billion_$_ > 16.47
{ "input": "CREATE TABLE table_name_36 (rank INTEGER, profits__billion_$_ VARCHAR, industry VARCHAR, company VARCHAR)", "instruction": "What is the smallest rank for an industry of banking, a company of bank of america, and profits (billion $) larger than 16.47?", "output": "SELECT MIN(rank) FROM table_name_36 WHERE industry = \"banking\" AND company = \"bank of america\" AND profits__billion_$_ > 16.47" }
### INSTRUCTION What party does incumbent edwin reinecke represent? ### INPUT CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT party FROM table_1341738_6 WHERE incumbent = "Edwin Reinecke"
{ "input": "CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR)", "instruction": "What party does incumbent edwin reinecke represent?", "output": "SELECT party FROM table_1341738_6 WHERE incumbent = \"Edwin Reinecke\"" }
### INSTRUCTION How many points for the cooper car company after 1959? ### INPUT CREATE TABLE table_name_90 (points INTEGER, entrant VARCHAR, year VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_90 WHERE entrant = "cooper car company" AND year > 1959
{ "input": "CREATE TABLE table_name_90 (points INTEGER, entrant VARCHAR, year VARCHAR)", "instruction": "How many points for the cooper car company after 1959?", "output": "SELECT SUM(points) FROM table_name_90 WHERE entrant = \"cooper car company\" AND year > 1959" }
### INSTRUCTION Find the location and all games score of the school that has Clemson as its team name. ### INPUT CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR); CREATE TABLE university (location VARCHAR, school_id VARCHAR) ### OUTPUT SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'
{ "input": "CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR); CREATE TABLE university (location VARCHAR, school_id VARCHAR)", "instruction": "Find the location and all games score of the school that has Clemson as its team name.", "output": "SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'" }
### INSTRUCTION What's the least amount of points that Walter Wolf Racing had after 1974? ### INPUT CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_name_3 WHERE year > 1974 AND entrant = "walter wolf racing"
{ "input": "CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR)", "instruction": "What's the least amount of points that Walter Wolf Racing had after 1974?", "output": "SELECT MIN(points) FROM table_name_3 WHERE year > 1974 AND entrant = \"walter wolf racing\"" }
### INSTRUCTION Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)? ### INPUT CREATE TABLE table_name_25 (on_demand VARCHAR, free_or_pay VARCHAR, provider VARCHAR) ### OUTPUT SELECT on_demand FROM table_name_25 WHERE free_or_pay = "pay" AND provider = "virgin media (formerly ntl:telewest)"
{ "input": "CREATE TABLE table_name_25 (on_demand VARCHAR, free_or_pay VARCHAR, provider VARCHAR)", "instruction": "Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?", "output": "SELECT on_demand FROM table_name_25 WHERE free_or_pay = \"pay\" AND provider = \"virgin media (formerly ntl:telewest)\"" }
### INSTRUCTION Which services type had both successful and failure event details? ### INPUT CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR); CREATE TABLE services (service_type_code VARCHAR, service_id VARCHAR) ### OUTPUT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'
{ "input": "CREATE TABLE EVENTS (service_id VARCHAR, event_details VARCHAR); CREATE TABLE services (service_type_code VARCHAR, service_id VARCHAR)", "instruction": "Which services type had both successful and failure event details?", "output": "SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Success' INTERSECT SELECT T1.service_type_code FROM services AS T1 JOIN EVENTS AS T2 ON T1.service_id = T2.service_id WHERE T2.event_details = 'Fail'" }
### INSTRUCTION What is the match total for a score over 299 and under 412 innings? ### INPUT CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR) ### OUTPUT SELECT SUM(matches) FROM table_name_26 WHERE high_score = "299" AND innings < 412
{ "input": "CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR)", "instruction": "What is the match total for a score over 299 and under 412 innings?", "output": "SELECT SUM(matches) FROM table_name_26 WHERE high_score = \"299\" AND innings < 412" }
### INSTRUCTION What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june? ### INPUT CREATE TABLE table_name_96 (type VARCHAR, date VARCHAR, president VARCHAR, year VARCHAR, location VARCHAR) ### OUTPUT SELECT type FROM table_name_96 WHERE year > 2010 AND location = "justus lipsius building, brussels" AND president = "herman van rompuy (2nd term)" AND date = "28–29 june"
{ "input": "CREATE TABLE table_name_96 (type VARCHAR, date VARCHAR, president VARCHAR, year VARCHAR, location VARCHAR)", "instruction": "What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?", "output": "SELECT type FROM table_name_96 WHERE year > 2010 AND location = \"justus lipsius building, brussels\" AND president = \"herman van rompuy (2nd term)\" AND date = \"28–29 june\"" }
### INSTRUCTION Name the most # of total votes with % of popular vote of 32.41% and # of seats won more than 95 ### INPUT CREATE TABLE table_name_31 (_number_of_total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR) ### OUTPUT SELECT MAX(_number_of_total_votes) FROM table_name_31 WHERE _percentage_of_popular_vote = "32.41%" AND _number_of_seats_won > 95
{ "input": "CREATE TABLE table_name_31 (_number_of_total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)", "instruction": "Name the most # of total votes with % of popular vote of 32.41% and # of seats won more than 95", "output": "SELECT MAX(_number_of_total_votes) FROM table_name_31 WHERE _percentage_of_popular_vote = \"32.41%\" AND _number_of_seats_won > 95" }
### INSTRUCTION What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928? ### INPUT CREATE TABLE table_name_25 (opponent_number VARCHAR, site VARCHAR, date VARCHAR) ### OUTPUT SELECT opponent_number FROM table_name_25 WHERE site = "memorial stadium • minneapolis, mn" AND date = "10/20/1928"
{ "input": "CREATE TABLE table_name_25 (opponent_number VARCHAR, site VARCHAR, date VARCHAR)", "instruction": "What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928?", "output": "SELECT opponent_number FROM table_name_25 WHERE site = \"memorial stadium • minneapolis, mn\" AND date = \"10/20/1928\"" }
### INSTRUCTION Who was the home team that played in Victoria Park? ### INPUT CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team FROM table_name_32 WHERE venue = "victoria park"
{ "input": "CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)", "instruction": "Who was the home team that played in Victoria Park?", "output": "SELECT home_team FROM table_name_32 WHERE venue = \"victoria park\"" }
### INSTRUCTION Which city has the most customers living in? ### INPUT CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR) ### OUTPUT SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR)", "instruction": "Which city has the most customers living in?", "output": "SELECT t3.city FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id GROUP BY t3.city ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast? ### INPUT CREATE TABLE table_23575917_6 (first_broadcast VARCHAR, davids_team VARCHAR) ### OUTPUT SELECT first_broadcast FROM table_23575917_6 WHERE davids_team = "David O'Doherty and Katherine Parkinson"
{ "input": "CREATE TABLE table_23575917_6 (first_broadcast VARCHAR, davids_team VARCHAR)", "instruction": "When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast?", "output": "SELECT first_broadcast FROM table_23575917_6 WHERE davids_team = \"David O'Doherty and Katherine Parkinson\"" }
### INSTRUCTION Who is the actor in the original production when Troy Stephens is the GamePlan? ### INPUT CREATE TABLE table_name_69 (actor_in_original_production VARCHAR, gameplan VARCHAR) ### OUTPUT SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = "troy stephens"
{ "input": "CREATE TABLE table_name_69 (actor_in_original_production VARCHAR, gameplan VARCHAR)", "instruction": "Who is the actor in the original production when Troy Stephens is the GamePlan?", "output": "SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = \"troy stephens\"" }
### INSTRUCTION What race was a round smaller than 8, on 6 july? ### INPUT CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR) ### OUTPUT SELECT race FROM table_name_45 WHERE round < 8 AND date = "6 july"
{ "input": "CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR)", "instruction": "What race was a round smaller than 8, on 6 july?", "output": "SELECT race FROM table_name_45 WHERE round < 8 AND date = \"6 july\"" }
### INSTRUCTION What is the site of the game that had an attendance of 54,040? ### INPUT CREATE TABLE table_name_23 (game_site VARCHAR, attendance VARCHAR) ### OUTPUT SELECT game_site FROM table_name_23 WHERE attendance = "54,040"
{ "input": "CREATE TABLE table_name_23 (game_site VARCHAR, attendance VARCHAR)", "instruction": "What is the site of the game that had an attendance of 54,040?", "output": "SELECT game_site FROM table_name_23 WHERE attendance = \"54,040\"" }
### INSTRUCTION How many distinct colleges are associated with players from the team with name "Columbus Crew". ### INPUT CREATE TABLE match_season (College VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
{ "input": "CREATE TABLE match_season (College VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR)", "instruction": "How many distinct colleges are associated with players from the team with name \"Columbus Crew\".", "output": "SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"" }
### INSTRUCTION What is the title of the prerequisite class of International Finance course? ### INPUT CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR) ### OUTPUT SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')
{ "input": "CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)", "instruction": "What is the title of the prerequisite class of International Finance course?", "output": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')" }
### INSTRUCTION Which WYSIWYG Editor has a User-selectable themes of yes, and an Unread message tracking of session, and an Image attachment of plugin? ### INPUT CREATE TABLE table_name_79 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, user_selectable_themes VARCHAR, unread_message_tracking VARCHAR) ### OUTPUT SELECT wysiwyg_editor FROM table_name_79 WHERE user_selectable_themes = "yes" AND unread_message_tracking = "session" AND image_attachment = "plugin"
{ "input": "CREATE TABLE table_name_79 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, user_selectable_themes VARCHAR, unread_message_tracking VARCHAR)", "instruction": "Which WYSIWYG Editor has a User-selectable themes of yes, and an Unread message tracking of session, and an Image attachment of plugin?", "output": "SELECT wysiwyg_editor FROM table_name_79 WHERE user_selectable_themes = \"yes\" AND unread_message_tracking = \"session\" AND image_attachment = \"plugin\"" }
### INSTRUCTION What is GDP (PPP) Per Capita 2012 Euro, when Population In Millions is greater than 10.8, and when GDP (Nominal) Per Capita 2012 Euro is 25,600? ### INPUT CREATE TABLE table_name_49 (gdp__ppp__per_capita_2012_euro VARCHAR, population_in_millions VARCHAR, gdp__nominal__per_capita_2012_euro VARCHAR) ### OUTPUT SELECT gdp__ppp__per_capita_2012_euro FROM table_name_49 WHERE population_in_millions > 10.8 AND gdp__nominal__per_capita_2012_euro = "25,600"
{ "input": "CREATE TABLE table_name_49 (gdp__ppp__per_capita_2012_euro VARCHAR, population_in_millions VARCHAR, gdp__nominal__per_capita_2012_euro VARCHAR)", "instruction": "What is GDP (PPP) Per Capita 2012 Euro, when Population In Millions is greater than 10.8, and when GDP (Nominal) Per Capita 2012 Euro is 25,600?", "output": "SELECT gdp__ppp__per_capita_2012_euro FROM table_name_49 WHERE population_in_millions > 10.8 AND gdp__nominal__per_capita_2012_euro = \"25,600\"" }
### INSTRUCTION How many general elections that have won smaller than 23 with candidates larger than 108? ### INPUT CREATE TABLE table_name_95 (general_election VARCHAR, _number_of_seats_won VARCHAR, _number_of_candidates VARCHAR) ### OUTPUT SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108
{ "input": "CREATE TABLE table_name_95 (general_election VARCHAR, _number_of_seats_won VARCHAR, _number_of_candidates VARCHAR)", "instruction": "How many general elections that have won smaller than 23 with candidates larger than 108?", "output": "SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108" }
### INSTRUCTION Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984? ### INPUT CREATE TABLE table_name_16 (pre_conversion VARCHAR, owner VARCHAR, re_entered_service__p_ VARCHAR) ### OUTPUT SELECT pre_conversion FROM table_name_16 WHERE owner = "v/line passenger" AND re_entered_service__p_ = "23 november 1984"
{ "input": "CREATE TABLE table_name_16 (pre_conversion VARCHAR, owner VARCHAR, re_entered_service__p_ VARCHAR)", "instruction": "Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984?", "output": "SELECT pre_conversion FROM table_name_16 WHERE owner = \"v/line passenger\" AND re_entered_service__p_ = \"23 november 1984\"" }
### INSTRUCTION Which rd. took place at Hockenheimring? ### INPUT CREATE TABLE table_1137718_2 (rd INTEGER, location VARCHAR) ### OUTPUT SELECT MIN(rd) FROM table_1137718_2 WHERE location = "Hockenheimring"
{ "input": "CREATE TABLE table_1137718_2 (rd INTEGER, location VARCHAR)", "instruction": "Which rd. took place at Hockenheimring?", "output": "SELECT MIN(rd) FROM table_1137718_2 WHERE location = \"Hockenheimring\"" }
### INSTRUCTION What model has both a standard byte string and floating-point? ### INPUT CREATE TABLE table_name_90 (model VARCHAR, byte_string VARCHAR, floating_point VARCHAR) ### OUTPUT SELECT model FROM table_name_90 WHERE byte_string = "standard" AND floating_point = "standard"
{ "input": "CREATE TABLE table_name_90 (model VARCHAR, byte_string VARCHAR, floating_point VARCHAR)", "instruction": "What model has both a standard byte string and floating-point?", "output": "SELECT model FROM table_name_90 WHERE byte_string = \"standard\" AND floating_point = \"standard\"" }
### INSTRUCTION what are name and phone number of patients who had more than one appointment? ### INPUT CREATE TABLE appointment (patient VARCHAR); CREATE TABLE patient (ssn VARCHAR) ### OUTPUT SELECT name, phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING COUNT(*) > 1
{ "input": "CREATE TABLE appointment (patient VARCHAR); CREATE TABLE patient (ssn VARCHAR)", "instruction": "what are name and phone number of patients who had more than one appointment?", "output": "SELECT name, phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING COUNT(*) > 1" }
### INSTRUCTION What venue did the game on september 5, 1998 take place at? ### INPUT CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR) ### OUTPUT SELECT venue FROM table_name_71 WHERE date = "september 5, 1998"
{ "input": "CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR)", "instruction": "What venue did the game on september 5, 1998 take place at?", "output": "SELECT venue FROM table_name_71 WHERE date = \"september 5, 1998\"" }
### INSTRUCTION What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012? ### INPUT CREATE TABLE table_name_99 (number_of_episodes INTEGER, dvd_region_2_release_date VARCHAR, original_air_date VARCHAR, series_number VARCHAR) ### OUTPUT SELECT SUM(number_of_episodes) FROM table_name_99 WHERE original_air_date > 1991 AND series_number < 21 AND dvd_region_2_release_date = "26 march 2012"
{ "input": "CREATE TABLE table_name_99 (number_of_episodes INTEGER, dvd_region_2_release_date VARCHAR, original_air_date VARCHAR, series_number VARCHAR)", "instruction": "What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012?", "output": "SELECT SUM(number_of_episodes) FROM table_name_99 WHERE original_air_date > 1991 AND series_number < 21 AND dvd_region_2_release_date = \"26 march 2012\"" }
### INSTRUCTION Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15? ### INPUT CREATE TABLE table_name_41 (record VARCHAR, week VARCHAR, kickoff VARCHAR, game_site VARCHAR) ### OUTPUT SELECT record FROM table_name_41 WHERE kickoff = "12:00pm cst" AND game_site = "arrowhead stadium" AND week = "15"
{ "input": "CREATE TABLE table_name_41 (record VARCHAR, week VARCHAR, kickoff VARCHAR, game_site VARCHAR)", "instruction": "Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15?", "output": "SELECT record FROM table_name_41 WHERE kickoff = \"12:00pm cst\" AND game_site = \"arrowhead stadium\" AND week = \"15\"" }