text
stringlengths
147
1.06k
source
dict
### INSTRUCTION how many times has Aaron Ogden (f), been a successor and has had a formal installation? ### INPUT CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR) ### OUTPUT SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"
{ "input": "CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)", "instruction": "how many times has Aaron Ogden (f), been a successor and has had a formal installation? ", "output": "SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = \"Aaron Ogden (F)\"" }
### INSTRUCTION Name the authority for te akau with roll less than 254 and decile of 8 ### INPUT CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR) ### OUTPUT SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = "8" AND area = "te akau"
{ "input": "CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR)", "instruction": "Name the authority for te akau with roll less than 254 and decile of 8", "output": "SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = \"8\" AND area = \"te akau\"" }
### INSTRUCTION How many games have more than 288 goals and less than 34 losses? ### INPUT CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR) ### OUTPUT SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34
{ "input": "CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR)", "instruction": "How many games have more than 288 goals and less than 34 losses?", "output": "SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34" }
### INSTRUCTION What drawn has 416 as the points for and 533 as the points against? ### INPUT CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR) ### OUTPUT SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533"
{ "input": "CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR)", "instruction": "What drawn has 416 as the points for and 533 as the points against?", "output": "SELECT drawn FROM table_name_49 WHERE points_for = \"416\" AND points_against = \"533\"" }
### INSTRUCTION Which Season has a Mole of frederique van der wal? ### INPUT CREATE TABLE table_name_77 (season INTEGER, mole VARCHAR) ### OUTPUT SELECT MAX(season) FROM table_name_77 WHERE mole = "frederique van der wal"
{ "input": "CREATE TABLE table_name_77 (season INTEGER, mole VARCHAR)", "instruction": "Which Season has a Mole of frederique van der wal?", "output": "SELECT MAX(season) FROM table_name_77 WHERE mole = \"frederique van der wal\"" }
### INSTRUCTION What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August? ### INPUT CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, mon_24_aug VARCHAR) ### OUTPUT SELECT sat_29_aug FROM table_23465864_4 WHERE mon_24_aug = "24' 17.26 93.208mph"
{ "input": "CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, mon_24_aug VARCHAR)", "instruction": "What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?", "output": "SELECT sat_29_aug FROM table_23465864_4 WHERE mon_24_aug = \"24' 17.26 93.208mph\"" }
### INSTRUCTION What was the transfer fee when winter was the transfer window? ### INPUT CREATE TABLE table_name_1 (transfer_fee VARCHAR, transfer_window VARCHAR) ### OUTPUT SELECT transfer_fee FROM table_name_1 WHERE transfer_window = "winter"
{ "input": "CREATE TABLE table_name_1 (transfer_fee VARCHAR, transfer_window VARCHAR)", "instruction": "What was the transfer fee when winter was the transfer window?", "output": "SELECT transfer_fee FROM table_name_1 WHERE transfer_window = \"winter\"" }
### INSTRUCTION What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )? ### INPUT CREATE TABLE table_27279050_3 (country VARCHAR, last_current_driver_s__3_november_2013 VARCHAR) ### OUTPUT SELECT country FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = "Daniel Abt ( 2012 )"
{ "input": "CREATE TABLE table_27279050_3 (country VARCHAR, last_current_driver_s__3_november_2013 VARCHAR)", "instruction": "What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )?", "output": "SELECT country FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = \"Daniel Abt ( 2012 )\"" }
### INSTRUCTION What is the outcome with marina erakovic as opponent? ### INPUT CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR) ### OUTPUT SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic"
{ "input": "CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR)", "instruction": "What is the outcome with marina erakovic as opponent?", "output": "SELECT outcome FROM table_name_37 WHERE opponent = \"marina erakovic\"" }
### INSTRUCTION Find the name of the products that have the color description "red" and have the characteristic name "fast". ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### OUTPUT SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "fast"
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "instruction": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "output": "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"fast\"" }
### INSTRUCTION Who is the driver of the Chevrolet engine that is sponsored by godaddy.com? ### INPUT CREATE TABLE table_2503102_1 (driver_s_ VARCHAR, engine VARCHAR, car_sponsor_s_ VARCHAR) ### OUTPUT SELECT driver_s_ FROM table_2503102_1 WHERE engine = "Chevrolet" AND car_sponsor_s_ = "GoDaddy.com"
{ "input": "CREATE TABLE table_2503102_1 (driver_s_ VARCHAR, engine VARCHAR, car_sponsor_s_ VARCHAR)", "instruction": "Who is the driver of the Chevrolet engine that is sponsored by godaddy.com?", "output": "SELECT driver_s_ FROM table_2503102_1 WHERE engine = \"Chevrolet\" AND car_sponsor_s_ = \"GoDaddy.com\"" }
### INSTRUCTION What is the Sipe Sipe Municipality minimum if the language is Quechua? ### INPUT CREATE TABLE table_2509113_2 (sipe_sipe_municipality INTEGER, language VARCHAR) ### OUTPUT SELECT MIN(sipe_sipe_municipality) FROM table_2509113_2 WHERE language = "Quechua"
{ "input": "CREATE TABLE table_2509113_2 (sipe_sipe_municipality INTEGER, language VARCHAR)", "instruction": "What is the Sipe Sipe Municipality minimum if the language is Quechua?", "output": "SELECT MIN(sipe_sipe_municipality) FROM table_2509113_2 WHERE language = \"Quechua\"" }
### INSTRUCTION What Call sign has a City of license of higgston, ga? ### INPUT CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR) ### OUTPUT SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga"
{ "input": "CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR)", "instruction": "What Call sign has a City of license of higgston, ga?", "output": "SELECT call_sign FROM table_name_95 WHERE city_of_license = \"higgston, ga\"" }
### INSTRUCTION Name the tournament venue for big sky conference ### INPUT CREATE TABLE table_22849575_6 (tournament_venue__city_ VARCHAR, conference VARCHAR) ### OUTPUT SELECT tournament_venue__city_ FROM table_22849575_6 WHERE conference = "Big Sky conference"
{ "input": "CREATE TABLE table_22849575_6 (tournament_venue__city_ VARCHAR, conference VARCHAR)", "instruction": "Name the tournament venue for big sky conference", "output": "SELECT tournament_venue__city_ FROM table_22849575_6 WHERE conference = \"Big Sky conference\"" }
### INSTRUCTION Which club had football at Mitchel Athletic Field? ### INPUT CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR) ### OUTPUT SELECT club FROM table_name_43 WHERE sport = "football" AND venue = "mitchel athletic field"
{ "input": "CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR)", "instruction": "Which club had football at Mitchel Athletic Field?", "output": "SELECT club FROM table_name_43 WHERE sport = \"football\" AND venue = \"mitchel athletic field\"" }
### INSTRUCTION What is the date of appointment for the team with a resigned manner of departure and replaced by Sandy Clark? ### INPUT CREATE TABLE table_name_2 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR) ### OUTPUT SELECT date_of_appointment FROM table_name_2 WHERE manner_of_departure = "resigned" AND replaced_by = "sandy clark"
{ "input": "CREATE TABLE table_name_2 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)", "instruction": "What is the date of appointment for the team with a resigned manner of departure and replaced by Sandy Clark?", "output": "SELECT date_of_appointment FROM table_name_2 WHERE manner_of_departure = \"resigned\" AND replaced_by = \"sandy clark\"" }
### INSTRUCTION What c class engine did philipp eng and team hs technik motorsport use? ### INPUT CREATE TABLE table_name_2 (engine VARCHAR, driver VARCHAR, class VARCHAR, team VARCHAR) ### OUTPUT SELECT engine FROM table_name_2 WHERE class = "c" AND team = "hs technik motorsport" AND driver = "philipp eng"
{ "input": "CREATE TABLE table_name_2 (engine VARCHAR, driver VARCHAR, class VARCHAR, team VARCHAR)", "instruction": "What c class engine did philipp eng and team hs technik motorsport use?", "output": "SELECT engine FROM table_name_2 WHERE class = \"c\" AND team = \"hs technik motorsport\" AND driver = \"philipp eng\"" }
### INSTRUCTION What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas? ### INPUT CREATE TABLE table_name_90 (top_division_titles INTEGER, founded VARCHAR, location VARCHAR) ### OUTPUT SELECT SUM(top_division_titles) FROM table_name_90 WHERE founded < 1975 AND location = "chaguaramas"
{ "input": "CREATE TABLE table_name_90 (top_division_titles INTEGER, founded VARCHAR, location VARCHAR)", "instruction": "What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?", "output": "SELECT SUM(top_division_titles) FROM table_name_90 WHERE founded < 1975 AND location = \"chaguaramas\"" }
### INSTRUCTION What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15% ### INPUT CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR) ### OUTPUT SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+15%"
{ "input": "CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR)", "instruction": "What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%", "output": "SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = \"+15%\"" }
### INSTRUCTION What year had the Chassis of march 762 and more than 0 points? ### INPUT CREATE TABLE table_name_64 (year VARCHAR, chassis VARCHAR, points VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_64 WHERE chassis = "march 762" AND points > 0
{ "input": "CREATE TABLE table_name_64 (year VARCHAR, chassis VARCHAR, points VARCHAR)", "instruction": "What year had the Chassis of march 762 and more than 0 points?", "output": "SELECT COUNT(year) FROM table_name_64 WHERE chassis = \"march 762\" AND points > 0" }
### INSTRUCTION What are the names of body builders in descending order of total scores? ### INPUT CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### OUTPUT SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC
{ "input": "CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "instruction": "What are the names of body builders in descending order of total scores?", "output": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC" }
### INSTRUCTION Name the vacator for reason for change died january 12, 1826 ### INPUT CREATE TABLE table_225102_4 (vacator VARCHAR, reason_for_change VARCHAR) ### OUTPUT SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died January 12, 1826"
{ "input": "CREATE TABLE table_225102_4 (vacator VARCHAR, reason_for_change VARCHAR)", "instruction": "Name the vacator for reason for change died january 12, 1826", "output": "SELECT vacator FROM table_225102_4 WHERE reason_for_change = \"Died January 12, 1826\"" }
### INSTRUCTION What is the competition that was at serravalle, san marino? ### INPUT CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR) ### OUTPUT SELECT competition FROM table_name_80 WHERE venue = "serravalle, san marino"
{ "input": "CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR)", "instruction": "What is the competition that was at serravalle, san marino?", "output": "SELECT competition FROM table_name_80 WHERE venue = \"serravalle, san marino\"" }
### INSTRUCTION How many times did Boston Red Stockings lose in 2009 postseason? ### INPUT CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009
{ "input": "CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "instruction": "How many times did Boston Red Stockings lose in 2009 postseason?", "output": "SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009" }
### INSTRUCTION What is the lowest area for cannonvale that speaks afrikaans? ### INPUT CREATE TABLE table_name_31 (area__km_2__ INTEGER, most_spoken_language VARCHAR, place VARCHAR) ### OUTPUT SELECT MIN(area__km_2__) FROM table_name_31 WHERE most_spoken_language = "afrikaans" AND place = "cannonvale"
{ "input": "CREATE TABLE table_name_31 (area__km_2__ INTEGER, most_spoken_language VARCHAR, place VARCHAR)", "instruction": "What is the lowest area for cannonvale that speaks afrikaans?", "output": "SELECT MIN(area__km_2__) FROM table_name_31 WHERE most_spoken_language = \"afrikaans\" AND place = \"cannonvale\"" }
### INSTRUCTION What surface was the città di caltanissetta played on? ### INPUT CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR) ### OUTPUT SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta"
{ "input": "CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR)", "instruction": "What surface was the città di caltanissetta played on?", "output": "SELECT surface FROM table_name_22 WHERE tournament = \"città di caltanissetta\"" }
### INSTRUCTION What province in Tumbes has less than 11 districts and a UBIGEO of 2401? ### INPUT CREATE TABLE table_name_9 (province VARCHAR, ubigeo VARCHAR, districts VARCHAR, region VARCHAR) ### OUTPUT SELECT province FROM table_name_9 WHERE districts < 11 AND region = "tumbes" AND ubigeo = 2401
{ "input": "CREATE TABLE table_name_9 (province VARCHAR, ubigeo VARCHAR, districts VARCHAR, region VARCHAR)", "instruction": "What province in Tumbes has less than 11 districts and a UBIGEO of 2401?", "output": "SELECT province FROM table_name_9 WHERE districts < 11 AND region = \"tumbes\" AND ubigeo = 2401" }
### INSTRUCTION Tell me the D 49 and D 46 of r 13 ### INPUT CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR) ### OUTPUT SELECT d_49 FROM table_name_64 WHERE d_46 = "r 13"
{ "input": "CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR)", "instruction": "Tell me the D 49 and D 46 of r 13", "output": "SELECT d_49 FROM table_name_64 WHERE d_46 = \"r 13\"" }
### INSTRUCTION What is the fewest tally for the game played at Vasil Levski National Stadium, Sofia, Bulgaria? ### INPUT CREATE TABLE table_name_9 (tally INTEGER, venue VARCHAR) ### OUTPUT SELECT MIN(tally) FROM table_name_9 WHERE venue = "vasil levski national stadium, sofia, bulgaria"
{ "input": "CREATE TABLE table_name_9 (tally INTEGER, venue VARCHAR)", "instruction": "What is the fewest tally for the game played at Vasil Levski National Stadium, Sofia, Bulgaria?", "output": "SELECT MIN(tally) FROM table_name_9 WHERE venue = \"vasil levski national stadium, sofia, bulgaria\"" }
### INSTRUCTION Who was the writer for the episode with 2.15 million u.s.viewers? ### INPUT CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15"
{ "input": "CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "Who was the writer for the episode with 2.15 million u.s.viewers?", "output": "SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = \"2.15\"" }
### INSTRUCTION What's the latest year that daisy garcia reyes did not place in miss world? ### INPUT CREATE TABLE table_name_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes"
{ "input": "CREATE TABLE table_name_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR)", "instruction": "What's the latest year that daisy garcia reyes did not place in miss world?", "output": "SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = \"did not place\" AND delegate = \"daisy garcia reyes\"" }
### INSTRUCTION Find the id of students who do not have a cat pet. ### INPUT CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (stuid VARCHAR) ### OUTPUT SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'
{ "input": "CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (stuid VARCHAR)", "instruction": "Find the id of students who do not have a cat pet.", "output": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'" }
### INSTRUCTION Where were jamie cox & scott kremerskothen paired? ### INPUT CREATE TABLE table_name_24 (venue VARCHAR, batsmen VARCHAR) ### OUTPUT SELECT venue FROM table_name_24 WHERE batsmen = "jamie cox & scott kremerskothen"
{ "input": "CREATE TABLE table_name_24 (venue VARCHAR, batsmen VARCHAR)", "instruction": "Where were jamie cox & scott kremerskothen paired?", "output": "SELECT venue FROM table_name_24 WHERE batsmen = \"jamie cox & scott kremerskothen\"" }
### INSTRUCTION What district is the democratic Francis C. Le Blond from? ### INPUT CREATE TABLE table_name_69 (district VARCHAR, party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT district FROM table_name_69 WHERE party = "democratic" AND incumbent = "francis c. le blond"
{ "input": "CREATE TABLE table_name_69 (district VARCHAR, party VARCHAR, incumbent VARCHAR)", "instruction": "What district is the democratic Francis C. Le Blond from?", "output": "SELECT district FROM table_name_69 WHERE party = \"democratic\" AND incumbent = \"francis c. le blond\"" }
### INSTRUCTION What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4? ### INPUT CREATE TABLE table_22170495_6 (position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR) ### OUTPUT SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = "June 30, 2010"
{ "input": "CREATE TABLE table_22170495_6 (position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR)", "instruction": "What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?", "output": "SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = \"June 30, 2010\"" }
### INSTRUCTION What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds? ### INPUT CREATE TABLE table_name_24 (max_height__ft_ INTEGER, time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR) ### OUTPUT SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25°__seconds_ = "10.1" AND shell__lb_ < 12.5
{ "input": "CREATE TABLE table_name_24 (max_height__ft_ INTEGER, time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR)", "instruction": "What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?", "output": "SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25°__seconds_ = \"10.1\" AND shell__lb_ < 12.5" }
### INSTRUCTION What type of settlement is ором (hungarian: orom)? ### INPUT CREATE TABLE table_2562572_33 (type VARCHAR, cyrillic_name_other_names VARCHAR) ### OUTPUT SELECT type FROM table_2562572_33 WHERE cyrillic_name_other_names = "Ором (Hungarian: Orom)"
{ "input": "CREATE TABLE table_2562572_33 (type VARCHAR, cyrillic_name_other_names VARCHAR)", "instruction": "What type of settlement is ором (hungarian: orom)?", "output": "SELECT type FROM table_2562572_33 WHERE cyrillic_name_other_names = \"Ором (Hungarian: Orom)\"" }
### INSTRUCTION What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions? ### INPUT CREATE TABLE table_name_86 (year VARCHAR, result VARCHAR, champions VARCHAR) ### OUTPUT SELECT year FROM table_name_86 WHERE result = "4–3" AND champions = "daegu tongyang orions"
{ "input": "CREATE TABLE table_name_86 (year VARCHAR, result VARCHAR, champions VARCHAR)", "instruction": "What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions?", "output": "SELECT year FROM table_name_86 WHERE result = \"4–3\" AND champions = \"daegu tongyang orions\"" }
### INSTRUCTION Who many dates are in position 9 and the sellout is 81%? ### INPUT CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR) ### OUTPUT SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = "81%"
{ "input": "CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR)", "instruction": "Who many dates are in position 9 and the sellout is 81%?", "output": "SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = \"81%\"" }
### INSTRUCTION What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name? ### INPUT CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR) ### OUTPUT SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul"
{ "input": "CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR)", "instruction": "What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name?", "output": "SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = \"Chan Chi-yuen, Paul\"" }
### INSTRUCTION What is the second leg that has kk bosna? ### INPUT CREATE TABLE table_name_49 (team__number1 VARCHAR) ### OUTPUT SELECT 2 AS nd_leg FROM table_name_49 WHERE team__number1 = "kk bosna"
{ "input": "CREATE TABLE table_name_49 (team__number1 VARCHAR)", "instruction": "What is the second leg that has kk bosna?", "output": "SELECT 2 AS nd_leg FROM table_name_49 WHERE team__number1 = \"kk bosna\"" }
### INSTRUCTION Find the name of the ship that is steered by the youngest captain. ### INPUT CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, age VARCHAR) ### OUTPUT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1
{ "input": "CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, age VARCHAR)", "instruction": "Find the name of the ship that is steered by the youngest captain.", "output": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1" }
### INSTRUCTION Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939 ### INPUT CREATE TABLE table_name_73 (name VARCHAR, laid_down VARCHAR, commissioned VARCHAR) ### OUTPUT SELECT name FROM table_name_73 WHERE laid_down = "22 september 1939" AND commissioned = "30 august 1941"
{ "input": "CREATE TABLE table_name_73 (name VARCHAR, laid_down VARCHAR, commissioned VARCHAR)", "instruction": "Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939", "output": "SELECT name FROM table_name_73 WHERE laid_down = \"22 september 1939\" AND commissioned = \"30 august 1941\"" }
### INSTRUCTION What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008? ### INPUT CREATE TABLE table_name_60 (status VARCHAR, area_km_2 VARCHAR, census_ranking VARCHAR) ### OUTPUT SELECT status FROM table_name_60 WHERE area_km_2 > 5.2 AND census_ranking = "2,531 of 5,008"
{ "input": "CREATE TABLE table_name_60 (status VARCHAR, area_km_2 VARCHAR, census_ranking VARCHAR)", "instruction": "What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008?", "output": "SELECT status FROM table_name_60 WHERE area_km_2 > 5.2 AND census_ranking = \"2,531 of 5,008\"" }
### INSTRUCTION What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed? ### INPUT CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR) ### OUTPUT SELECT launched FROM table_name_56 WHERE spacecraft = "ulysses" AND time_elapsed = "491 days (1 yr, 4 mo, 3 d)"
{ "input": "CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR)", "instruction": "What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?", "output": "SELECT launched FROM table_name_56 WHERE spacecraft = \"ulysses\" AND time_elapsed = \"491 days (1 yr, 4 mo, 3 d)\"" }
### INSTRUCTION What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars? ### INPUT CREATE TABLE table_name_98 (us_rap VARCHAR, album VARCHAR) ### OUTPUT SELECT us_rap FROM table_name_98 WHERE album = "west coast bad boyz, vol. 3: poppin' collars"
{ "input": "CREATE TABLE table_name_98 (us_rap VARCHAR, album VARCHAR)", "instruction": "What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?", "output": "SELECT us_rap FROM table_name_98 WHERE album = \"west coast bad boyz, vol. 3: poppin' collars\"" }
### INSTRUCTION How many votes did 3rd ranking candidate Mary Louise Lorefice receive? ### INPUT CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR) ### OUTPUT SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice"
{ "input": "CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR)", "instruction": "How many votes did 3rd ranking candidate Mary Louise Lorefice receive?", "output": "SELECT COUNT(votes) FROM table_name_48 WHERE rank = \"3rd\" AND candidate = \"mary louise lorefice\"" }
### INSTRUCTION What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st? ### INPUT CREATE TABLE table_name_40 (points VARCHAR, series VARCHAR, position VARCHAR) ### OUTPUT SELECT points FROM table_name_40 WHERE series = "queensland formula ford championship" AND position = "1st"
{ "input": "CREATE TABLE table_name_40 (points VARCHAR, series VARCHAR, position VARCHAR)", "instruction": "What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st?", "output": "SELECT points FROM table_name_40 WHERE series = \"queensland formula ford championship\" AND position = \"1st\"" }
### INSTRUCTION What is the record of the game with a game number greater than 7 at boston garden with the providence steam rollers as the opponent? ### INPUT CREATE TABLE table_name_46 (record VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR) ### OUTPUT SELECT record FROM table_name_46 WHERE game > 7 AND location = "boston garden" AND opponent = "providence steam rollers"
{ "input": "CREATE TABLE table_name_46 (record VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR)", "instruction": "What is the record of the game with a game number greater than 7 at boston garden with the providence steam rollers as the opponent?", "output": "SELECT record FROM table_name_46 WHERE game > 7 AND location = \"boston garden\" AND opponent = \"providence steam rollers\"" }
### INSTRUCTION What is the median household income for Woodside? ### INPUT CREATE TABLE table_1447085_1 (median_house__hold_income VARCHAR, place VARCHAR) ### OUTPUT SELECT median_house__hold_income FROM table_1447085_1 WHERE place = "Woodside"
{ "input": "CREATE TABLE table_1447085_1 (median_house__hold_income VARCHAR, place VARCHAR)", "instruction": "What is the median household income for Woodside?", "output": "SELECT median_house__hold_income FROM table_1447085_1 WHERE place = \"Woodside\"" }
### INSTRUCTION What is the Serial Number of the Locomotive that Entered Service October 1989? ### INPUT CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR) ### OUTPUT SELECT serial_no FROM table_name_26 WHERE entered_service = "october 1989"
{ "input": "CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR)", "instruction": "What is the Serial Number of the Locomotive that Entered Service October 1989?", "output": "SELECT serial_no FROM table_name_26 WHERE entered_service = \"october 1989\"" }
### INSTRUCTION What is Game, when Road Team is "Syracuse", and when Result is "109-82"? ### INPUT CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR) ### OUTPUT SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82"
{ "input": "CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR)", "instruction": "What is Game, when Road Team is \"Syracuse\", and when Result is \"109-82\"?", "output": "SELECT game FROM table_name_77 WHERE road_team = \"syracuse\" AND result = \"109-82\"" }
### INSTRUCTION what was the engine when ken downing drove an entrant from connaught engineering? ### INPUT CREATE TABLE table_name_37 (engine VARCHAR, driver VARCHAR, entrant VARCHAR) ### OUTPUT SELECT engine FROM table_name_37 WHERE driver = "ken downing" AND entrant = "connaught engineering"
{ "input": "CREATE TABLE table_name_37 (engine VARCHAR, driver VARCHAR, entrant VARCHAR)", "instruction": "what was the engine when ken downing drove an entrant from connaught engineering?", "output": "SELECT engine FROM table_name_37 WHERE driver = \"ken downing\" AND entrant = \"connaught engineering\"" }
### INSTRUCTION Which player's results were T6 in the PGA Ch., T4 in the Masters and T8 at the U.S. Open? ### INPUT CREATE TABLE table_1506950_9 (player VARCHAR, us_open VARCHAR, pga_ch VARCHAR, masters VARCHAR) ### OUTPUT SELECT player FROM table_1506950_9 WHERE pga_ch = "T6" AND masters = "T4" AND us_open = "T8"
{ "input": "CREATE TABLE table_1506950_9 (player VARCHAR, us_open VARCHAR, pga_ch VARCHAR, masters VARCHAR)", "instruction": "Which player's results were T6 in the PGA Ch., T4 in the Masters and T8 at the U.S. Open?", "output": "SELECT player FROM table_1506950_9 WHERE pga_ch = \"T6\" AND masters = \"T4\" AND us_open = \"T8\"" }
### INSTRUCTION What is the visitor team of the game with Rudy Gay (18) as the leading scorer? ### INPUT CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR) ### OUTPUT SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)"
{ "input": "CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR)", "instruction": "What is the visitor team of the game with Rudy Gay (18) as the leading scorer?", "output": "SELECT visitor FROM table_name_96 WHERE leading_scorer = \"rudy gay (18)\"" }
### INSTRUCTION What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window? ### INPUT CREATE TABLE table_name_12 (moving_to VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR, nat VARCHAR) ### OUTPUT SELECT moving_to FROM table_name_12 WHERE transfer_fee = "free" AND nat = "cyp" AND transfer_window = "winter"
{ "input": "CREATE TABLE table_name_12 (moving_to VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR, nat VARCHAR)", "instruction": "What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?", "output": "SELECT moving_to FROM table_name_12 WHERE transfer_fee = \"free\" AND nat = \"cyp\" AND transfer_window = \"winter\"" }
### INSTRUCTION How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2? ### INPUT CREATE TABLE table_name_83 (tonnage___grt__ INTEGER, deaths VARCHAR, date VARCHAR, fate VARCHAR, flag VARCHAR) ### OUTPUT SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = "sunk" AND flag = "great britain" AND date = "26 september 1940" AND deaths = 2
{ "input": "CREATE TABLE table_name_83 (tonnage___grt__ INTEGER, deaths VARCHAR, date VARCHAR, fate VARCHAR, flag VARCHAR)", "instruction": "How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?", "output": "SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = \"sunk\" AND flag = \"great britain\" AND date = \"26 september 1940\" AND deaths = 2" }
### INSTRUCTION what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivières draveurs (qmjhl)? ### INPUT CREATE TABLE table_2679061_2 (pick__number INTEGER, nhl_team VARCHAR, college_junior_club_team VARCHAR) ### OUTPUT SELECT MIN(pick__number) FROM table_2679061_2 WHERE nhl_team = "Montreal Canadiens" AND college_junior_club_team = "Trois-Rivières Draveurs (QMJHL)"
{ "input": "CREATE TABLE table_2679061_2 (pick__number INTEGER, nhl_team VARCHAR, college_junior_club_team VARCHAR)", "instruction": "what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivières draveurs (qmjhl)?", "output": "SELECT MIN(pick__number) FROM table_2679061_2 WHERE nhl_team = \"Montreal Canadiens\" AND college_junior_club_team = \"Trois-Rivières Draveurs (QMJHL)\"" }
### INSTRUCTION What's the total attendance at anaheim stadium after 1983 when the result is 14-28? ### INPUT CREATE TABLE table_name_67 (attendance VARCHAR, result VARCHAR, year VARCHAR, venue VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28"
{ "input": "CREATE TABLE table_name_67 (attendance VARCHAR, result VARCHAR, year VARCHAR, venue VARCHAR)", "instruction": "What's the total attendance at anaheim stadium after 1983 when the result is 14-28?", "output": "SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = \"anaheim stadium\" AND result = \"14-28\"" }
### INSTRUCTION What is the total of PI GP played by Anton Rodin with a Reg GP less than 0? ### INPUT CREATE TABLE table_name_73 (pl_gp VARCHAR, player VARCHAR, reg_gp VARCHAR) ### OUTPUT SELECT COUNT(pl_gp) FROM table_name_73 WHERE player = "anton rodin" AND reg_gp < 0
{ "input": "CREATE TABLE table_name_73 (pl_gp VARCHAR, player VARCHAR, reg_gp VARCHAR)", "instruction": "What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?", "output": "SELECT COUNT(pl_gp) FROM table_name_73 WHERE player = \"anton rodin\" AND reg_gp < 0" }
### INSTRUCTION What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)? ### INPUT CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT surface FROM table_name_86 WHERE score_in_the_final = "5–7, 6–7 (2–7)"
{ "input": "CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR)", "instruction": "What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)?", "output": "SELECT surface FROM table_name_86 WHERE score_in_the_final = \"5–7, 6–7 (2–7)\"" }
### INSTRUCTION state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna ### INPUT CREATE TABLE table_18498743_1 (el_canal_de_las_estrellas VARCHAR, mañana_es_para_siempre VARCHAR) ### OUTPUT SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = "Impreuna pentru totdeauna"
{ "input": "CREATE TABLE table_18498743_1 (el_canal_de_las_estrellas VARCHAR, mañana_es_para_siempre VARCHAR)", "instruction": "state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna", "output": "SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = \"Impreuna pentru totdeauna\"" }
### INSTRUCTION Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position smaller than 12, and a Drawn smaller than 2? ### INPUT CREATE TABLE table_name_18 (played INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_18 WHERE lost > 9 AND points < 15 AND position < 12 AND drawn < 2
{ "input": "CREATE TABLE table_name_18 (played INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)", "instruction": "Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position smaller than 12, and a Drawn smaller than 2?", "output": "SELECT AVG(played) FROM table_name_18 WHERE lost > 9 AND points < 15 AND position < 12 AND drawn < 2" }
### INSTRUCTION In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis? ### INPUT CREATE TABLE table_28853064_15 (stage VARCHAR, winner VARCHAR, team_classification VARCHAR, mountains_classification VARCHAR) ### OUTPUT SELECT stage FROM table_28853064_15 WHERE team_classification = "EPM-UNE" AND mountains_classification = "Oscar Solis" AND winner = "Jaime Vergara"
{ "input": "CREATE TABLE table_28853064_15 (stage VARCHAR, winner VARCHAR, team_classification VARCHAR, mountains_classification VARCHAR)", "instruction": "In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?", "output": "SELECT stage FROM table_28853064_15 WHERE team_classification = \"EPM-UNE\" AND mountains_classification = \"Oscar Solis\" AND winner = \"Jaime Vergara\"" }
### INSTRUCTION What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%? ### INPUT CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR) ### OUTPUT SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.44%"
{ "input": "CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR)", "instruction": "What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%?", "output": "SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = \"playstation 3\" AND gamerankings = \"84.44%\"" }
### INSTRUCTION Show member names without any registered branch. ### INPUT CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (name VARCHAR, member_id VARCHAR) ### OUTPUT SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)
{ "input": "CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (name VARCHAR, member_id VARCHAR)", "instruction": "Show member names without any registered branch.", "output": "SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)" }
### INSTRUCTION When mixed quad singles is the event what is the final/bronze medal match? ### INPUT CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, event VARCHAR) ### OUTPUT SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = "Mixed Quad Singles"
{ "input": "CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, event VARCHAR)", "instruction": "When mixed quad singles is the event what is the final/bronze medal match?", "output": "SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = \"Mixed Quad Singles\"" }
### INSTRUCTION Which representative has a birthday of January 31, 1866? ### INPUT CREATE TABLE table_10284385_1 (representative VARCHAR, date_of_birth VARCHAR) ### OUTPUT SELECT representative FROM table_10284385_1 WHERE date_of_birth = "January 31, 1866"
{ "input": "CREATE TABLE table_10284385_1 (representative VARCHAR, date_of_birth VARCHAR)", "instruction": "Which representative has a birthday of January 31, 1866?", "output": "SELECT representative FROM table_10284385_1 WHERE date_of_birth = \"January 31, 1866\"" }
### INSTRUCTION What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football? ### INPUT CREATE TABLE table_name_46 (average_attendance VARCHAR, sport VARCHAR, _number_of_teams VARCHAR, season VARCHAR, games VARCHAR) ### OUTPUT SELECT average_attendance FROM table_name_46 WHERE season = "2011" AND games < 519 AND _number_of_teams > 14 AND sport = "association football"
{ "input": "CREATE TABLE table_name_46 (average_attendance VARCHAR, sport VARCHAR, _number_of_teams VARCHAR, season VARCHAR, games VARCHAR)", "instruction": "What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football?", "output": "SELECT average_attendance FROM table_name_46 WHERE season = \"2011\" AND games < 519 AND _number_of_teams > 14 AND sport = \"association football\"" }
### INSTRUCTION What is Pos., when Height is "m (ft 10in)", and when Date of Birth is "1983-05-29"? ### INPUT CREATE TABLE table_name_45 (pos VARCHAR, height VARCHAR, date_of_birth VARCHAR) ### OUTPUT SELECT pos FROM table_name_45 WHERE height = "m (ft 10in)" AND date_of_birth = "1983-05-29"
{ "input": "CREATE TABLE table_name_45 (pos VARCHAR, height VARCHAR, date_of_birth VARCHAR)", "instruction": "What is Pos., when Height is \"m (ft 10in)\", and when Date of Birth is \"1983-05-29\"?", "output": "SELECT pos FROM table_name_45 WHERE height = \"m (ft 10in)\" AND date_of_birth = \"1983-05-29\"" }
### INSTRUCTION Who's Fourth District has a Second District of bob springstead? ### INPUT CREATE TABLE table_name_72 (fourth_district VARCHAR, second_district VARCHAR) ### OUTPUT SELECT fourth_district FROM table_name_72 WHERE second_district = "bob springstead"
{ "input": "CREATE TABLE table_name_72 (fourth_district VARCHAR, second_district VARCHAR)", "instruction": "Who's Fourth District has a Second District of bob springstead?", "output": "SELECT fourth_district FROM table_name_72 WHERE second_district = \"bob springstead\"" }
### INSTRUCTION How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. ### INPUT CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR) ### OUTPUT SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1
{ "input": "CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)", "instruction": "How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.", "output": "SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1" }
### INSTRUCTION Who was the Constructor at the Argentine Grand Prix? ### INPUT CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR) ### OUTPUT SELECT constructor FROM table_name_21 WHERE race = "argentine grand prix"
{ "input": "CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR)", "instruction": "Who was the Constructor at the Argentine Grand Prix?", "output": "SELECT constructor FROM table_name_21 WHERE race = \"argentine grand prix\"" }
### INSTRUCTION What is the Team of Winner Mark Skaife in ATCC Round 7? ### INPUT CREATE TABLE table_name_82 (team VARCHAR, winner VARCHAR, series VARCHAR) ### OUTPUT SELECT team FROM table_name_82 WHERE winner = "mark skaife" AND series = "atcc round 7"
{ "input": "CREATE TABLE table_name_82 (team VARCHAR, winner VARCHAR, series VARCHAR)", "instruction": "What is the Team of Winner Mark Skaife in ATCC Round 7?", "output": "SELECT team FROM table_name_82 WHERE winner = \"mark skaife\" AND series = \"atcc round 7\"" }
### INSTRUCTION Name the cyrillic name for orthodox christianity village and bačko dobro polje ### INPUT CREATE TABLE table_2562572_20 (cyrillic_name_other_names VARCHAR, settlement VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR) ### OUTPUT SELECT cyrillic_name_other_names FROM table_2562572_20 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND settlement = "Bačko Dobro Polje"
{ "input": "CREATE TABLE table_2562572_20 (cyrillic_name_other_names VARCHAR, settlement VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)", "instruction": "Name the cyrillic name for orthodox christianity village and bačko dobro polje", "output": "SELECT cyrillic_name_other_names FROM table_2562572_20 WHERE dominant_religion__2002_ = \"Orthodox Christianity\" AND type = \"village\" AND settlement = \"Bačko Dobro Polje\"" }
### INSTRUCTION Name the attendance for atlanta braves opponent for september 9 ### INPUT CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_26 WHERE opponent = "atlanta braves" AND date = "september 9"
{ "input": "CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR)", "instruction": "Name the attendance for atlanta braves opponent for september 9", "output": "SELECT AVG(attendance) FROM table_name_26 WHERE opponent = \"atlanta braves\" AND date = \"september 9\"" }
### INSTRUCTION What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain? ### INPUT CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) ### OUTPUT SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = "defeated democratic gain" AND incumbent = "james humphrey"
{ "input": "CREATE TABLE table_name_3 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)", "instruction": "What district is James Humphrey from who was first elected in 1858 and was eventually defeated democratic gain?", "output": "SELECT district FROM table_name_3 WHERE first_elected = 1858 AND result = \"defeated democratic gain\" AND incumbent = \"james humphrey\"" }
### INSTRUCTION Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, and a Range of virunga mountains, and a Mountain of nyiragongo? ### INPUT CREATE TABLE table_name_12 (country VARCHAR, mountain VARCHAR, range VARCHAR, prominence__m_ VARCHAR, height__m_ VARCHAR) ### OUTPUT SELECT country FROM table_name_12 WHERE prominence__m_ < 1540 AND height__m_ < 3530 AND range = "virunga mountains" AND mountain = "nyiragongo"
{ "input": "CREATE TABLE table_name_12 (country VARCHAR, mountain VARCHAR, range VARCHAR, prominence__m_ VARCHAR, height__m_ VARCHAR)", "instruction": "Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, and a Range of virunga mountains, and a Mountain of nyiragongo?", "output": "SELECT country FROM table_name_12 WHERE prominence__m_ < 1540 AND height__m_ < 3530 AND range = \"virunga mountains\" AND mountain = \"nyiragongo\"" }
### INSTRUCTION What is the mean average score when the evening gown score is more than 9.35, the state is South Carolina, and the swimsuit score is more than 9.4? ### INPUT CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR) ### OUTPUT SELECT AVG(average) FROM table_name_52 WHERE evening_gown > 9.35 AND state = "south carolina" AND swimsuit > 9.4
{ "input": "CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR)", "instruction": "What is the mean average score when the evening gown score is more than 9.35, the state is South Carolina, and the swimsuit score is more than 9.4?", "output": "SELECT AVG(average) FROM table_name_52 WHERE evening_gown > 9.35 AND state = \"south carolina\" AND swimsuit > 9.4" }
### INSTRUCTION How many athletes were named federico muller? ### INPUT CREATE TABLE table_29521180_35 (quarterfinals VARCHAR, athlete VARCHAR) ### OUTPUT SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = "Federico Muller"
{ "input": "CREATE TABLE table_29521180_35 (quarterfinals VARCHAR, athlete VARCHAR)", "instruction": "How many athletes were named federico muller?", "output": "SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = \"Federico Muller\"" }
### INSTRUCTION What was 2009, when 2001 was, "not masters series"? ### INPUT CREATE TABLE table_name_5 (Id VARCHAR) ### OUTPUT SELECT 2009 FROM table_name_5 WHERE 2001 = "not masters series"
{ "input": "CREATE TABLE table_name_5 (Id VARCHAR)", "instruction": "What was 2009, when 2001 was, \"not masters series\"?", "output": "SELECT 2009 FROM table_name_5 WHERE 2001 = \"not masters series\"" }
### INSTRUCTION Which Rank is the Country of soviet union with a Total smaller than 19? ### INPUT CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR, total VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_94 WHERE country = "soviet union" AND total < 19
{ "input": "CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR, total VARCHAR)", "instruction": "Which Rank is the Country of soviet union with a Total smaller than 19?", "output": "SELECT MIN(rank) FROM table_name_94 WHERE country = \"soviet union\" AND total < 19" }
### INSTRUCTION What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense? ### INPUT CREATE TABLE table_name_98 (sunlight_hours INTEGER, city_town VARCHAR, days_with_frost VARCHAR) ### OUTPUT SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = "ourense" AND days_with_frost > 30
{ "input": "CREATE TABLE table_name_98 (sunlight_hours INTEGER, city_town VARCHAR, days_with_frost VARCHAR)", "instruction": "What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?", "output": "SELECT MIN(sunlight_hours) FROM table_name_98 WHERE city_town = \"ourense\" AND days_with_frost > 30" }
### INSTRUCTION Find the total revenue for each manufacturer. ### INPUT CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER) ### OUTPUT SELECT SUM(revenue), name FROM manufacturers GROUP BY name
{ "input": "CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)", "instruction": "Find the total revenue for each manufacturer.", "output": "SELECT SUM(revenue), name FROM manufacturers GROUP BY name" }
### INSTRUCTION How many cover dates does the story "Devastation Derby! (part 1)" have? ### INPUT CREATE TABLE table_18305523_2 (cover_date VARCHAR, story_title VARCHAR) ### OUTPUT SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = "DEVASTATION DERBY! (Part 1)"
{ "input": "CREATE TABLE table_18305523_2 (cover_date VARCHAR, story_title VARCHAR)", "instruction": "How many cover dates does the story \"Devastation Derby! (part 1)\" have?", "output": "SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = \"DEVASTATION DERBY! (Part 1)\"" }
### INSTRUCTION What is the smallest Weight, when Spike is less than 330, when Block is 315, and when Height is greater than 187? ### INPUT CREATE TABLE table_name_78 (weight INTEGER, height VARCHAR, spike VARCHAR, block VARCHAR) ### OUTPUT SELECT MIN(weight) FROM table_name_78 WHERE spike < 330 AND block = 315 AND height > 187
{ "input": "CREATE TABLE table_name_78 (weight INTEGER, height VARCHAR, spike VARCHAR, block VARCHAR)", "instruction": "What is the smallest Weight, when Spike is less than 330, when Block is 315, and when Height is greater than 187?", "output": "SELECT MIN(weight) FROM table_name_78 WHERE spike < 330 AND block = 315 AND height > 187" }
### INSTRUCTION What is Case Suffix (Case), when English Meaning is "to Georgia, in Georgia"? ### INPUT CREATE TABLE table_name_54 (case_suffix__case_ VARCHAR, english_meaning VARCHAR) ### OUTPUT SELECT case_suffix__case_ FROM table_name_54 WHERE english_meaning = "to georgia, in georgia"
{ "input": "CREATE TABLE table_name_54 (case_suffix__case_ VARCHAR, english_meaning VARCHAR)", "instruction": "What is Case Suffix (Case), when English Meaning is \"to Georgia, in Georgia\"?", "output": "SELECT case_suffix__case_ FROM table_name_54 WHERE english_meaning = \"to georgia, in georgia\"" }
### INSTRUCTION Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong? ### INPUT CREATE TABLE table_24430894_20 (mutya_ng_pilipinas_asia_pacific VARCHAR) ### OUTPUT SELECT 2 AS nd_runner_up FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = "Rochelle Romero Ong"
{ "input": "CREATE TABLE table_24430894_20 (mutya_ng_pilipinas_asia_pacific VARCHAR)", "instruction": "Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong?", "output": "SELECT 2 AS nd_runner_up FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = \"Rochelle Romero Ong\"" }
### INSTRUCTION Name the term in office for liberal and state of sa for ian mclachlan ### INPUT CREATE TABLE table_name_27 (term_in_office VARCHAR, member VARCHAR, party VARCHAR, state VARCHAR) ### OUTPUT SELECT term_in_office FROM table_name_27 WHERE party = "liberal" AND state = "sa" AND member = "ian mclachlan"
{ "input": "CREATE TABLE table_name_27 (term_in_office VARCHAR, member VARCHAR, party VARCHAR, state VARCHAR)", "instruction": "Name the term in office for liberal and state of sa for ian mclachlan", "output": "SELECT term_in_office FROM table_name_27 WHERE party = \"liberal\" AND state = \"sa\" AND member = \"ian mclachlan\"" }
### INSTRUCTION How many total itv viewers were there for the episode with official itv ratings of 10.24 million? ### INPUT CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_rating__millions_ VARCHAR) ### OUTPUT SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_rating__millions_ = "10.24"
{ "input": "CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_rating__millions_ VARCHAR)", "instruction": "How many total itv viewers were there for the episode with official itv ratings of 10.24 million?", "output": "SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_rating__millions_ = \"10.24\"" }
### INSTRUCTION Name the color analyst for terry bowden and 17.2 ### INPUT CREATE TABLE table_2724704_5 (color_analyst_s_ VARCHAR, studio_analyst_s_ VARCHAR, tv_rating VARCHAR) ### OUTPUT SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = "Terry Bowden" AND tv_rating = "17.2"
{ "input": "CREATE TABLE table_2724704_5 (color_analyst_s_ VARCHAR, studio_analyst_s_ VARCHAR, tv_rating VARCHAR)", "instruction": "Name the color analyst for terry bowden and 17.2", "output": "SELECT color_analyst_s_ FROM table_2724704_5 WHERE studio_analyst_s_ = \"Terry Bowden\" AND tv_rating = \"17.2\"" }
### INSTRUCTION Which school, club team, or country played for the rockets in the years 2000-01? ### INPUT CREATE TABLE table_11734041_3 (school_club_team_country VARCHAR, years_for_rockets VARCHAR) ### OUTPUT SELECT school_club_team_country FROM table_11734041_3 WHERE years_for_rockets = "2000-01"
{ "input": "CREATE TABLE table_11734041_3 (school_club_team_country VARCHAR, years_for_rockets VARCHAR)", "instruction": "Which school, club team, or country played for the rockets in the years 2000-01?", "output": "SELECT school_club_team_country FROM table_11734041_3 WHERE years_for_rockets = \"2000-01\"" }
### INSTRUCTION Show the carriers of devices in stock at more than one shop. ### INPUT CREATE TABLE stock (Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR) ### OUTPUT SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1
{ "input": "CREATE TABLE stock (Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)", "instruction": "Show the carriers of devices in stock at more than one shop.", "output": "SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1" }
### INSTRUCTION Which Year has a Competition of european championships, and Notes of 66.81 m? ### INPUT CREATE TABLE table_name_26 (year INTEGER, competition VARCHAR, notes VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_26 WHERE competition = "european championships" AND notes = "66.81 m"
{ "input": "CREATE TABLE table_name_26 (year INTEGER, competition VARCHAR, notes VARCHAR)", "instruction": "Which Year has a Competition of european championships, and Notes of 66.81 m?", "output": "SELECT SUM(year) FROM table_name_26 WHERE competition = \"european championships\" AND notes = \"66.81 m\"" }
### INSTRUCTION What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network? ### INPUT CREATE TABLE table_name_11 (origin_of_programming VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR, language VARCHAR) ### OUTPUT SELECT origin_of_programming FROM table_name_11 WHERE service = "dish" AND language = "malayalam" AND genre = "general" AND network = "asianet plus"
{ "input": "CREATE TABLE table_name_11 (origin_of_programming VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR, language VARCHAR)", "instruction": "What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?", "output": "SELECT origin_of_programming FROM table_name_11 WHERE service = \"dish\" AND language = \"malayalam\" AND genre = \"general\" AND network = \"asianet plus\"" }
### INSTRUCTION What is the ranktotal number if the Hashan Tillakaratne? ### INPUT CREATE TABLE table_26041144_16 (rank VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(rank) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
{ "input": "CREATE TABLE table_26041144_16 (rank VARCHAR, player VARCHAR)", "instruction": "What is the ranktotal number if the Hashan Tillakaratne?", "output": "SELECT COUNT(rank) FROM table_26041144_16 WHERE player = \"Hashan Tillakaratne\"" }
### INSTRUCTION Game Site of hoosier dome, and a Result of l 7–31 involved what attendance? ### INPUT CREATE TABLE table_name_29 (attendance VARCHAR, game_site VARCHAR, result VARCHAR) ### OUTPUT SELECT attendance FROM table_name_29 WHERE game_site = "hoosier dome" AND result = "l 7–31"
{ "input": "CREATE TABLE table_name_29 (attendance VARCHAR, game_site VARCHAR, result VARCHAR)", "instruction": "Game Site of hoosier dome, and a Result of l 7–31 involved what attendance?", "output": "SELECT attendance FROM table_name_29 WHERE game_site = \"hoosier dome\" AND result = \"l 7–31\"" }
### INSTRUCTION What was the series# with the original airdate of october 23, 1967? ### INPUT CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR) ### OUTPUT SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967"
{ "input": "CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR)", "instruction": "What was the series# with the original airdate of october 23, 1967?", "output": "SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = \"October 23, 1967\"" }
### INSTRUCTION What did United States place when the player was Raymond Floyd? ### INPUT CREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT place FROM table_name_84 WHERE country = "united states" AND player = "raymond floyd"
{ "input": "CREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "What did United States place when the player was Raymond Floyd?", "output": "SELECT place FROM table_name_84 WHERE country = \"united states\" AND player = \"raymond floyd\"" }
### INSTRUCTION What is the description and code of the type of service that is performed the most often? ### INPUT CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR) ### OUTPUT SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)", "instruction": "What is the description and code of the type of service that is performed the most often?", "output": "SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1" }