text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Which authors belong to the institution "Google"? Show the first names and last names. ### INPUT CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR) ### OUTPUT SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"
{ "input": "CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)", "instruction": "Which authors belong to the institution \"Google\"? Show the first names and last names.", "output": "SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Google\"" }
### INSTRUCTION What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%? ### INPUT CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR) ### OUTPUT SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = "holinshed" AND bob_chiarelli = "22.5%"
{ "input": "CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR)", "instruction": "What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?", "output": "SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = \"holinshed\" AND bob_chiarelli = \"22.5%\"" }
### INSTRUCTION List the clubs having "Davis Steven" as a member. ### INPUT CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### OUTPUT SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Davis" AND t3.lname = "Steven"
{ "input": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "instruction": "List the clubs having \"Davis Steven\" as a member.", "output": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Davis\" AND t3.lname = \"Steven\"" }
### INSTRUCTION What is the rad number for the dead end in rank 22? ### INPUT CREATE TABLE table_name_75 (road_number VARCHAR, type VARCHAR, rank VARCHAR) ### OUTPUT SELECT road_number FROM table_name_75 WHERE type = "dead end" AND rank = "22"
{ "input": "CREATE TABLE table_name_75 (road_number VARCHAR, type VARCHAR, rank VARCHAR)", "instruction": "What is the rad number for the dead end in rank 22?", "output": "SELECT road_number FROM table_name_75 WHERE type = \"dead end\" AND rank = \"22\"" }
### INSTRUCTION Which runner-up placed in a year prior to 2006 and whose Champion was Elon? ### INPUT CREATE TABLE table_name_66 (runner_up VARCHAR, year VARCHAR, champion VARCHAR) ### OUTPUT SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon"
{ "input": "CREATE TABLE table_name_66 (runner_up VARCHAR, year VARCHAR, champion VARCHAR)", "instruction": "Which runner-up placed in a year prior to 2006 and whose Champion was Elon?", "output": "SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = \"elon\"" }
### INSTRUCTION Which Pos has a Team of circle bar racing, and a Car # smaller than 14? ### INPUT CREATE TABLE table_name_64 (pos INTEGER, team VARCHAR, car__number VARCHAR) ### OUTPUT SELECT MAX(pos) FROM table_name_64 WHERE team = "circle bar racing" AND car__number < 14
{ "input": "CREATE TABLE table_name_64 (pos INTEGER, team VARCHAR, car__number VARCHAR)", "instruction": "Which Pos has a Team of circle bar racing, and a Car # smaller than 14?", "output": "SELECT MAX(pos) FROM table_name_64 WHERE team = \"circle bar racing\" AND car__number < 14" }
### INSTRUCTION What is the engine type when the max torque at rpm is n·m ( lbf·ft ) @ 4,800 Answers:? ### INPUT CREATE TABLE table_1147705_1 (engine_type VARCHAR, max_torque_at_rpm VARCHAR) ### OUTPUT SELECT engine_type FROM table_1147705_1 WHERE max_torque_at_rpm = "N·m ( lbf·ft ) @ 4,800"
{ "input": "CREATE TABLE table_1147705_1 (engine_type VARCHAR, max_torque_at_rpm VARCHAR)", "instruction": "What is the engine type when the max torque at rpm is n·m ( lbf·ft ) @ 4,800 Answers:?", "output": "SELECT engine_type FROM table_1147705_1 WHERE max_torque_at_rpm = \"N·m ( lbf·ft ) @ 4,800\"" }
### INSTRUCTION what is the location when the opponent is aleksandr pitchkounov? ### INPUT CREATE TABLE table_name_54 (location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT location FROM table_name_54 WHERE opponent = "aleksandr pitchkounov"
{ "input": "CREATE TABLE table_name_54 (location VARCHAR, opponent VARCHAR)", "instruction": "what is the location when the opponent is aleksandr pitchkounov?", "output": "SELECT location FROM table_name_54 WHERE opponent = \"aleksandr pitchkounov\"" }
### INSTRUCTION what is the minimum games played with goals for/against being 7-5 ### INPUT CREATE TABLE table_14181578_1 (games_played INTEGER, goals_for_against VARCHAR) ### OUTPUT SELECT MIN(games_played) FROM table_14181578_1 WHERE goals_for_against = "7-5"
{ "input": "CREATE TABLE table_14181578_1 (games_played INTEGER, goals_for_against VARCHAR)", "instruction": "what is the minimum games played with goals for/against being 7-5", "output": "SELECT MIN(games_played) FROM table_14181578_1 WHERE goals_for_against = \"7-5\"" }
### INSTRUCTION When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%? ### INPUT CREATE TABLE table_1341718_14 (first_elected INTEGER, party VARCHAR, candidates VARCHAR) ### OUTPUT SELECT MIN(first_elected) FROM table_1341718_14 WHERE party = "Republican" AND candidates = "Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%"
{ "input": "CREATE TABLE table_1341718_14 (first_elected INTEGER, party VARCHAR, candidates VARCHAR)", "instruction": "When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%?", "output": "SELECT MIN(first_elected) FROM table_1341718_14 WHERE party = \"Republican\" AND candidates = \"Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%\"" }
### INSTRUCTION What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7? ### INPUT CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR) ### OUTPUT SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7
{ "input": "CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR)", "instruction": "What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?", "output": "SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7" }
### INSTRUCTION how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5% ### INPUT CREATE TABLE table_1342013_34 (party VARCHAR, candidates VARCHAR) ### OUTPUT SELECT COUNT(party) FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%"
{ "input": "CREATE TABLE table_1342013_34 (party VARCHAR, candidates VARCHAR)", "instruction": " how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%", "output": "SELECT COUNT(party) FROM table_1342013_34 WHERE candidates = \"John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%\"" }
### INSTRUCTION What are the name of courses that have at least five enrollments? ### INPUT CREATE TABLE ENROLLED_IN (CID VARCHAR); CREATE TABLE COURSE (CName VARCHAR, CID VARCHAR) ### OUTPUT SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5
{ "input": "CREATE TABLE ENROLLED_IN (CID VARCHAR); CREATE TABLE COURSE (CName VARCHAR, CID VARCHAR)", "instruction": "What are the name of courses that have at least five enrollments?", "output": "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5" }
### INSTRUCTION What is the total number of sd listings where the status is quarterfinals lost to Novak Djokovic [1]? ### INPUT CREATE TABLE table_27615896_18 (sd VARCHAR, status VARCHAR) ### OUTPUT SELECT COUNT(sd) FROM table_27615896_18 WHERE status = "Quarterfinals lost to Novak Djokovic [1]"
{ "input": "CREATE TABLE table_27615896_18 (sd VARCHAR, status VARCHAR)", "instruction": "What is the total number of sd listings where the status is quarterfinals lost to Novak Djokovic [1]?", "output": "SELECT COUNT(sd) FROM table_27615896_18 WHERE status = \"Quarterfinals lost to Novak Djokovic [1]\"" }
### INSTRUCTION What are the details and ways to get to tourist attractions related to royal family? ### INPUT CREATE TABLE TOURIST_ATTRACTIONS (How_to_Get_There VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE ROYAL_FAMILY (Royal_Family_Details VARCHAR, Royal_Family_ID VARCHAR) ### OUTPUT SELECT T1.Royal_Family_Details, T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID
{ "input": "CREATE TABLE TOURIST_ATTRACTIONS (How_to_Get_There VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE ROYAL_FAMILY (Royal_Family_Details VARCHAR, Royal_Family_ID VARCHAR)", "instruction": "What are the details and ways to get to tourist attractions related to royal family?", "output": "SELECT T1.Royal_Family_Details, T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID" }
### INSTRUCTION Which general election had a pq majority and a 44.75% of the popular vote? ### INPUT CREATE TABLE table_106367_2 (general_election VARCHAR, result VARCHAR, _percentage_of_popular_vote VARCHAR) ### OUTPUT SELECT general_election FROM table_106367_2 WHERE result = "PQ majority" AND _percentage_of_popular_vote = "44.75%"
{ "input": "CREATE TABLE table_106367_2 (general_election VARCHAR, result VARCHAR, _percentage_of_popular_vote VARCHAR)", "instruction": "Which general election had a pq majority and a 44.75% of the popular vote?", "output": "SELECT general_election FROM table_106367_2 WHERE result = \"PQ majority\" AND _percentage_of_popular_vote = \"44.75%\"" }
### INSTRUCTION Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004 ### INPUT CREATE TABLE table_name_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR) ### OUTPUT SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < 2004
{ "input": "CREATE TABLE table_name_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR)", "instruction": "Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004", "output": "SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = \"oliver gavin jan magnussen\" AND class = \"gts\" AND year < 2004" }
### INSTRUCTION What is the Location of the Hietalahti Stadium? ### INPUT CREATE TABLE table_name_46 (location VARCHAR, stadium VARCHAR) ### OUTPUT SELECT location FROM table_name_46 WHERE stadium = "hietalahti stadium"
{ "input": "CREATE TABLE table_name_46 (location VARCHAR, stadium VARCHAR)", "instruction": "What is the Location of the Hietalahti Stadium?", "output": "SELECT location FROM table_name_46 WHERE stadium = \"hietalahti stadium\"" }
### INSTRUCTION Show the names of buildings except for those having an institution founded in 2003. ### INPUT CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE building (name VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded VARCHAR) ### OUTPUT SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003
{ "input": "CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE building (name VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded VARCHAR)", "instruction": "Show the names of buildings except for those having an institution founded in 2003.", "output": "SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003" }
### INSTRUCTION Who is nominated for the film Rugrats Go Wild? ### INPUT CREATE TABLE table_name_44 (winner_nominee_s_ VARCHAR, result VARCHAR, film VARCHAR) ### OUTPUT SELECT winner_nominee_s_ FROM table_name_44 WHERE result = "nominated" AND film = "rugrats go wild"
{ "input": "CREATE TABLE table_name_44 (winner_nominee_s_ VARCHAR, result VARCHAR, film VARCHAR)", "instruction": "Who is nominated for the film Rugrats Go Wild?", "output": "SELECT winner_nominee_s_ FROM table_name_44 WHERE result = \"nominated\" AND film = \"rugrats go wild\"" }
### INSTRUCTION Name the poll winner for march 19, 2008 ### INPUT CREATE TABLE table_15781170_2 (poll_winner VARCHAR, original_air_date VARCHAR) ### OUTPUT SELECT COUNT(poll_winner) FROM table_15781170_2 WHERE original_air_date = "March 19, 2008"
{ "input": "CREATE TABLE table_15781170_2 (poll_winner VARCHAR, original_air_date VARCHAR)", "instruction": "Name the poll winner for march 19, 2008", "output": "SELECT COUNT(poll_winner) FROM table_15781170_2 WHERE original_air_date = \"March 19, 2008\"" }
### INSTRUCTION What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley? ### INPUT CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) ### OUTPUT SELECT score FROM table_name_38 WHERE country = "united states" AND place = "t3" AND player = "chris riley"
{ "input": "CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)", "instruction": "What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley?", "output": "SELECT score FROM table_name_38 WHERE country = \"united states\" AND place = \"t3\" AND player = \"chris riley\"" }
### INSTRUCTION What Date has a Result of l 21–34? ### INPUT CREATE TABLE table_name_31 (date VARCHAR, result VARCHAR) ### OUTPUT SELECT date FROM table_name_31 WHERE result = "l 21–34"
{ "input": "CREATE TABLE table_name_31 (date VARCHAR, result VARCHAR)", "instruction": "What Date has a Result of l 21–34?", "output": "SELECT date FROM table_name_31 WHERE result = \"l 21–34\"" }
### INSTRUCTION What was the date for the Sepang International circuit, round 3? ### INPUT CREATE TABLE table_name_40 (date VARCHAR, circuit VARCHAR, round VARCHAR) ### OUTPUT SELECT date FROM table_name_40 WHERE circuit = "sepang international circuit" AND round = "3"
{ "input": "CREATE TABLE table_name_40 (date VARCHAR, circuit VARCHAR, round VARCHAR)", "instruction": "What was the date for the Sepang International circuit, round 3?", "output": "SELECT date FROM table_name_40 WHERE circuit = \"sepang international circuit\" AND round = \"3\"" }
### INSTRUCTION Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18? ### INPUT CREATE TABLE table_name_72 (model VARCHAR, engine_code VARCHAR, years VARCHAR, torque VARCHAR) ### OUTPUT SELECT model FROM table_name_72 WHERE years = "2001–2004" AND torque = "n·m (lb·ft) @ 3750" AND engine_code = "n42b18 / n46b18"
{ "input": "CREATE TABLE table_name_72 (model VARCHAR, engine_code VARCHAR, years VARCHAR, torque VARCHAR)", "instruction": "Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18?", "output": "SELECT model FROM table_name_72 WHERE years = \"2001–2004\" AND torque = \"n·m (lb·ft) @ 3750\" AND engine_code = \"n42b18 / n46b18\"" }
### INSTRUCTION Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name. ### INPUT CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR) ### OUTPUT SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30
{ "input": "CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR)", "instruction": "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.", "output": "SELECT T2.first_name, T2.last_name FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id HAVING COUNT(*) > 30" }
### INSTRUCTION Find the players' first name and last name who won award both in 1960 and in 1961. ### INPUT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR); CREATE TABLE player_award (year VARCHAR) ### OUTPUT SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961
{ "input": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR); CREATE TABLE player_award (year VARCHAR)", "instruction": "Find the players' first name and last name who won award both in 1960 and in 1961.", "output": "SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961" }
### INSTRUCTION How many years have a Location of pacific ring of fire, and Eruptions of pinatubo? ### INPUT CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_22 WHERE location = "pacific ring of fire" AND eruptions = "pinatubo"
{ "input": "CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR)", "instruction": "How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?", "output": "SELECT SUM(year) FROM table_name_22 WHERE location = \"pacific ring of fire\" AND eruptions = \"pinatubo\"" }
### INSTRUCTION find the names of programs whose origin is not in Beijing. ### INPUT CREATE TABLE program (name VARCHAR, origin VARCHAR) ### OUTPUT SELECT name FROM program WHERE origin <> 'Beijing'
{ "input": "CREATE TABLE program (name VARCHAR, origin VARCHAR)", "instruction": "find the names of programs whose origin is not in Beijing.", "output": "SELECT name FROM program WHERE origin <> 'Beijing'" }
### INSTRUCTION Who did the fastest lap when pole position was damon hill and the location was magny-cours? ### INPUT CREATE TABLE table_name_33 (fastest_lap VARCHAR, pole_position VARCHAR, location VARCHAR) ### OUTPUT SELECT fastest_lap FROM table_name_33 WHERE pole_position = "damon hill" AND location = "magny-cours"
{ "input": "CREATE TABLE table_name_33 (fastest_lap VARCHAR, pole_position VARCHAR, location VARCHAR)", "instruction": "Who did the fastest lap when pole position was damon hill and the location was magny-cours?", "output": "SELECT fastest_lap FROM table_name_33 WHERE pole_position = \"damon hill\" AND location = \"magny-cours\"" }
### INSTRUCTION What is the team of the player who was previously on the indiana pacers? ### INPUT CREATE TABLE table_name_15 (team VARCHAR, previous_team VARCHAR) ### OUTPUT SELECT team FROM table_name_15 WHERE previous_team = "indiana pacers"
{ "input": "CREATE TABLE table_name_15 (team VARCHAR, previous_team VARCHAR)", "instruction": "What is the team of the player who was previously on the indiana pacers?", "output": "SELECT team FROM table_name_15 WHERE previous_team = \"indiana pacers\"" }
### INSTRUCTION Name the average points for dallara 3087 lola t88/50 and year before 1988 ### INPUT CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR) ### OUTPUT SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988
{ "input": "CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR)", "instruction": "Name the average points for dallara 3087 lola t88/50 and year before 1988", "output": "SELECT AVG(points) FROM table_name_63 WHERE chassis = \"dallara 3087 lola t88/50\" AND year < 1988" }
### INSTRUCTION Which teams homeeground is Stemmemyren? ### INPUT CREATE TABLE table_2522473_1 (team VARCHAR, home_ground VARCHAR) ### OUTPUT SELECT team FROM table_2522473_1 WHERE home_ground = "Stemmemyren"
{ "input": "CREATE TABLE table_2522473_1 (team VARCHAR, home_ground VARCHAR)", "instruction": "Which teams homeeground is Stemmemyren? ", "output": "SELECT team FROM table_2522473_1 WHERE home_ground = \"Stemmemyren\"" }
### INSTRUCTION How many yards for the player with tfl-yds of 2.5-4? ### INPUT CREATE TABLE table_18064020_21 (no_yds VARCHAR, tfl_yds VARCHAR) ### OUTPUT SELECT no_yds FROM table_18064020_21 WHERE tfl_yds = "2.5-4"
{ "input": "CREATE TABLE table_18064020_21 (no_yds VARCHAR, tfl_yds VARCHAR)", "instruction": "How many yards for the player with tfl-yds of 2.5-4?", "output": "SELECT no_yds FROM table_18064020_21 WHERE tfl_yds = \"2.5-4\"" }
### INSTRUCTION What college or club did the round 9 draft pick from Canada come from? ### INPUT CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR) ### OUTPUT SELECT college_junior_club_team__league_ FROM table_name_11 WHERE round = 9 AND nationality = "canada"
{ "input": "CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)", "instruction": "What college or club did the round 9 draft pick from Canada come from?", "output": "SELECT college_junior_club_team__league_ FROM table_name_11 WHERE round = 9 AND nationality = \"canada\"" }
### INSTRUCTION Find the names of stadiums that the most swimmers have been to. ### INPUT CREATE TABLE record (event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR, id VARCHAR) ### OUTPUT SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE record (event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR, id VARCHAR)", "instruction": "Find the names of stadiums that the most swimmers have been to.", "output": "SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the abbreviation for the sign of Capricorn? ### INPUT CREATE TABLE table_name_22 (abbr VARCHAR, zodiac_sign VARCHAR) ### OUTPUT SELECT abbr FROM table_name_22 WHERE zodiac_sign = "capricorn"
{ "input": "CREATE TABLE table_name_22 (abbr VARCHAR, zodiac_sign VARCHAR)", "instruction": "What is the abbreviation for the sign of Capricorn?", "output": "SELECT abbr FROM table_name_22 WHERE zodiac_sign = \"capricorn\"" }
### INSTRUCTION What is the smallest amount of draws when the position is less than 7 and the against is 19? ### INPUT CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR) ### OUTPUT SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
{ "input": "CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)", "instruction": "What is the smallest amount of draws when the position is less than 7 and the against is 19?", "output": "SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19" }
### INSTRUCTION In what round was the first outside linebacker picked? ### INPUT CREATE TABLE table_name_72 (round INTEGER, position VARCHAR) ### OUTPUT SELECT MIN(round) FROM table_name_72 WHERE position = "outside linebacker"
{ "input": "CREATE TABLE table_name_72 (round INTEGER, position VARCHAR)", "instruction": "In what round was the first outside linebacker picked?", "output": "SELECT MIN(round) FROM table_name_72 WHERE position = \"outside linebacker\"" }
### INSTRUCTION What is the cores when the L3 cache is 8 mb, and the frequency is 2.5 ghz? ### INPUT CREATE TABLE table_name_58 (cores VARCHAR, l3_cache VARCHAR, frequency VARCHAR) ### OUTPUT SELECT cores FROM table_name_58 WHERE l3_cache = "8 mb" AND frequency = "2.5 ghz"
{ "input": "CREATE TABLE table_name_58 (cores VARCHAR, l3_cache VARCHAR, frequency VARCHAR)", "instruction": "What is the cores when the L3 cache is 8 mb, and the frequency is 2.5 ghz?", "output": "SELECT cores FROM table_name_58 WHERE l3_cache = \"8 mb\" AND frequency = \"2.5 ghz\"" }
### INSTRUCTION What is the IATA of galeão airport? ### INPUT CREATE TABLE table_name_58 (iata VARCHAR, airport VARCHAR) ### OUTPUT SELECT iata FROM table_name_58 WHERE airport = "galeão airport"
{ "input": "CREATE TABLE table_name_58 (iata VARCHAR, airport VARCHAR)", "instruction": "What is the IATA of galeão airport?", "output": "SELECT iata FROM table_name_58 WHERE airport = \"galeão airport\"" }
### INSTRUCTION Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr? ### INPUT CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR) ### OUTPUT SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = "2010" AND model = "de40lfr"
{ "input": "CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)", "instruction": "Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?", "output": "SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = \"2010\" AND model = \"de40lfr\"" }
### INSTRUCTION What was the result on october 8, 1961? ### INPUT CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR) ### OUTPUT SELECT result FROM table_name_49 WHERE date = "october 8, 1961"
{ "input": "CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR)", "instruction": "What was the result on october 8, 1961?", "output": "SELECT result FROM table_name_49 WHERE date = \"october 8, 1961\"" }
### INSTRUCTION How many games did janae stokes play? ### INPUT CREATE TABLE table_23346303_4 (games_played INTEGER, player VARCHAR) ### OUTPUT SELECT MAX(games_played) FROM table_23346303_4 WHERE player = "Janae Stokes"
{ "input": "CREATE TABLE table_23346303_4 (games_played INTEGER, player VARCHAR)", "instruction": "How many games did janae stokes play?", "output": "SELECT MAX(games_played) FROM table_23346303_4 WHERE player = \"Janae Stokes\"" }
### INSTRUCTION How many companies operates airlines in each airport? ### INPUT CREATE TABLE airport (id VARCHAR); CREATE TABLE flight (Id VARCHAR); CREATE TABLE operate_company (id VARCHAR) ### OUTPUT SELECT T3.id, COUNT(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id
{ "input": "CREATE TABLE airport (id VARCHAR); CREATE TABLE flight (Id VARCHAR); CREATE TABLE operate_company (id VARCHAR)", "instruction": "How many companies operates airlines in each airport?", "output": "SELECT T3.id, COUNT(*) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id JOIN airport AS T3 ON T2.airport_id = T3.id GROUP BY T3.id" }
### INSTRUCTION What are the coreceptors of the chromosomes in that location 11q22.2-q22.3? ### INPUT CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR) ### OUTPUT SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = "11q22.2-q22.3"
{ "input": "CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR)", "instruction": "What are the coreceptors of the chromosomes in that location 11q22.2-q22.3?", "output": "SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = \"11q22.2-q22.3\"" }
### INSTRUCTION What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"? ### INPUT CREATE TABLE table_name_9 (score VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT score FROM table_name_9 WHERE location_attendance = "madison square garden unknown" AND high_rebounds = "sidney green (10)"
{ "input": "CREATE TABLE table_name_9 (score VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR)", "instruction": "What is Score, when Location Attendance is \"Madison Square Garden Unknown\", and when High Rebounds is \"Sidney Green (10)\"?", "output": "SELECT score FROM table_name_9 WHERE location_attendance = \"madison square garden unknown\" AND high_rebounds = \"sidney green (10)\"" }
### INSTRUCTION What is the country of player chi-chi rodríguez, who has an e to par? ### INPUT CREATE TABLE table_name_2 (country VARCHAR, to_par VARCHAR, player VARCHAR) ### OUTPUT SELECT country FROM table_name_2 WHERE to_par = "e" AND player = "chi-chi rodríguez"
{ "input": "CREATE TABLE table_name_2 (country VARCHAR, to_par VARCHAR, player VARCHAR)", "instruction": "What is the country of player chi-chi rodríguez, who has an e to par?", "output": "SELECT country FROM table_name_2 WHERE to_par = \"e\" AND player = \"chi-chi rodríguez\"" }
### INSTRUCTION Which Prothrombin time has a Platelet count of unaffected, and a Bleeding time of unaffected, and a Partial thromboplastin time of normal or mildly prolonged? ### INPUT CREATE TABLE table_name_28 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR) ### OUTPUT SELECT prothrombin_time FROM table_name_28 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "normal or mildly prolonged"
{ "input": "CREATE TABLE table_name_28 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR)", "instruction": "Which Prothrombin time has a Platelet count of unaffected, and a Bleeding time of unaffected, and a Partial thromboplastin time of normal or mildly prolonged?", "output": "SELECT prothrombin_time FROM table_name_28 WHERE platelet_count = \"unaffected\" AND bleeding_time = \"unaffected\" AND partial_thromboplastin_time = \"normal or mildly prolonged\"" }
### INSTRUCTION If the grand average is 12.76-202, who is the player? ### INPUT CREATE TABLE table_27533947_1 (players VARCHAR, grand_average VARCHAR) ### OUTPUT SELECT players FROM table_27533947_1 WHERE grand_average = "12.76-202"
{ "input": "CREATE TABLE table_27533947_1 (players VARCHAR, grand_average VARCHAR)", "instruction": "If the grand average is 12.76-202, who is the player?", "output": "SELECT players FROM table_27533947_1 WHERE grand_average = \"12.76-202\"" }
### INSTRUCTION What was the smallest crowd size at a home game for Footscray? ### INPUT CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR) ### OUTPUT SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "footscray"
{ "input": "CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)", "instruction": "What was the smallest crowd size at a home game for Footscray?", "output": "SELECT MIN(crowd) FROM table_name_93 WHERE home_team = \"footscray\"" }
### INSTRUCTION What year did a school from Jennings County join? ### INPUT CREATE TABLE table_name_5 (year_joined VARCHAR, school VARCHAR) ### OUTPUT SELECT year_joined FROM table_name_5 WHERE school = "jennings county"
{ "input": "CREATE TABLE table_name_5 (year_joined VARCHAR, school VARCHAR)", "instruction": "What year did a school from Jennings County join?", "output": "SELECT year_joined FROM table_name_5 WHERE school = \"jennings county\"" }
### INSTRUCTION Which opponent has a Surface of clay, an Outcome of winner, a Tournament of bogotá, and a Score of 6–0, 6–4? ### INPUT CREATE TABLE table_name_51 (opponent VARCHAR, score VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR) ### OUTPUT SELECT opponent FROM table_name_51 WHERE surface = "clay" AND outcome = "winner" AND tournament = "bogotá" AND score = "6–0, 6–4"
{ "input": "CREATE TABLE table_name_51 (opponent VARCHAR, score VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR)", "instruction": "Which opponent has a Surface of clay, an Outcome of winner, a Tournament of bogotá, and a Score of 6–0, 6–4?", "output": "SELECT opponent FROM table_name_51 WHERE surface = \"clay\" AND outcome = \"winner\" AND tournament = \"bogotá\" AND score = \"6–0, 6–4\"" }
### INSTRUCTION What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111? ### INPUT CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR) ### OUTPUT SELECT region FROM table_name_46 WHERE label = "emi" AND format = "4 x vinyl" AND catalog_number = "560 6111"
{ "input": "CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR)", "instruction": "What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?", "output": "SELECT region FROM table_name_46 WHERE label = \"emi\" AND format = \"4 x vinyl\" AND catalog_number = \"560 6111\"" }
### INSTRUCTION What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18? ### INPUT CREATE TABLE table_name_62 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) ### OUTPUT SELECT MIN(top_5) FROM table_name_62 WHERE top_25 > 4 AND cuts_made = 29 AND top_10 > 18
{ "input": "CREATE TABLE table_name_62 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR)", "instruction": "What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18?", "output": "SELECT MIN(top_5) FROM table_name_62 WHERE top_25 > 4 AND cuts_made = 29 AND top_10 > 18" }
### INSTRUCTION What numbered game featured a High rebounds of radoslav nesterović (8), and a High assists of josé calderón (9)? ### INPUT CREATE TABLE table_name_12 (game VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR) ### OUTPUT SELECT COUNT(game) FROM table_name_12 WHERE high_rebounds = "radoslav nesterović (8)" AND high_assists = "josé calderón (9)"
{ "input": "CREATE TABLE table_name_12 (game VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR)", "instruction": "What numbered game featured a High rebounds of radoslav nesterović (8), and a High assists of josé calderón (9)?", "output": "SELECT COUNT(game) FROM table_name_12 WHERE high_rebounds = \"radoslav nesterović (8)\" AND high_assists = \"josé calderón (9)\"" }
### INSTRUCTION Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8? ### INPUT CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8
{ "input": "CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR)", "instruction": "Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?", "output": "SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8" }
### INSTRUCTION When did the New England Patriots play as the visiting team? ### INPUT CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR) ### OUTPUT SELECT date FROM table_name_23 WHERE visiting_team = "new england patriots"
{ "input": "CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR)", "instruction": "When did the New England Patriots play as the visiting team?", "output": "SELECT date FROM table_name_23 WHERE visiting_team = \"new england patriots\"" }
### INSTRUCTION Where does the staff member with the first name Elsa live? ### INPUT CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR) ### OUTPUT SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'
{ "input": "CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)", "instruction": "Where does the staff member with the first name Elsa live?", "output": "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'" }
### INSTRUCTION At which Conference was the Division in the East, and the Home Stadium named fedexfield? ### INPUT CREATE TABLE table_name_94 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR) ### OUTPUT SELECT conference FROM table_name_94 WHERE division = "east" AND home_stadium = "fedexfield"
{ "input": "CREATE TABLE table_name_94 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR)", "instruction": "At which Conference was the Division in the East, and the Home Stadium named fedexfield?", "output": "SELECT conference FROM table_name_94 WHERE division = \"east\" AND home_stadium = \"fedexfield\"" }
### INSTRUCTION What year was Teresa Wright nominated best supporting actress? ### INPUT CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR) ### OUTPUT SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = "Teresa Wright" AND category = "Best Supporting Actress"
{ "input": "CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR)", "instruction": "What year was Teresa Wright nominated best supporting actress?", "output": "SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = \"Teresa Wright\" AND category = \"Best Supporting Actress\"" }
### INSTRUCTION Name the points won for 1230 ### INPUT CREATE TABLE table_23501776_16 (points VARCHAR) ### OUTPUT SELECT points AS won FROM table_23501776_16 WHERE points = 1230
{ "input": "CREATE TABLE table_23501776_16 (points VARCHAR)", "instruction": "Name the points won for 1230", "output": "SELECT points AS won FROM table_23501776_16 WHERE points = 1230" }
### INSTRUCTION Who was champion in 2005 where the semi-finalist was #1 in western Carolina? ### INPUT CREATE TABLE table_name_36 (champion VARCHAR, year VARCHAR, semi_finalist__number1 VARCHAR) ### OUTPUT SELECT champion FROM table_name_36 WHERE year = 2005 AND semi_finalist__number1 = "western carolina"
{ "input": "CREATE TABLE table_name_36 (champion VARCHAR, year VARCHAR, semi_finalist__number1 VARCHAR)", "instruction": "Who was champion in 2005 where the semi-finalist was #1 in western Carolina?", "output": "SELECT champion FROM table_name_36 WHERE year = 2005 AND semi_finalist__number1 = \"western carolina\"" }
### INSTRUCTION Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser? ### INPUT CREATE TABLE table_name_51 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT stage FROM table_name_51 WHERE winner = "bernard hinault" AND points_classification = "francesco moser"
{ "input": "CREATE TABLE table_name_51 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR)", "instruction": "Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser?", "output": "SELECT stage FROM table_name_51 WHERE winner = \"bernard hinault\" AND points_classification = \"francesco moser\"" }
### INSTRUCTION How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5? ### INPUT CREATE TABLE table_name_92 (extra_points INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) ### OUTPUT SELECT SUM(extra_points) FROM table_name_92 WHERE touchdowns = 1 AND player = "ross kidston" AND points < 5
{ "input": "CREATE TABLE table_name_92 (extra_points INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR)", "instruction": "How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5?", "output": "SELECT SUM(extra_points) FROM table_name_92 WHERE touchdowns = 1 AND player = \"ross kidston\" AND points < 5" }
### INSTRUCTION What is every part number with model number core i5-670? ### INPUT CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR) ### OUTPUT SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = "Core i5-670"
{ "input": "CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR)", "instruction": "What is every part number with model number core i5-670?", "output": "SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = \"Core i5-670\"" }
### INSTRUCTION What was the result for Gypsy? ### INPUT CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "Gypsy"
{ "input": "CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "What was the result for Gypsy?", "output": "SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = \"Gypsy\"" }
### INSTRUCTION Players of judith wiesner and alex antonitsch had what match w-l? ### INPUT CREATE TABLE table_name_64 (matches_w_l VARCHAR, players VARCHAR) ### OUTPUT SELECT matches_w_l FROM table_name_64 WHERE players = "judith wiesner and alex antonitsch"
{ "input": "CREATE TABLE table_name_64 (matches_w_l VARCHAR, players VARCHAR)", "instruction": "Players of judith wiesner and alex antonitsch had what match w-l?", "output": "SELECT matches_w_l FROM table_name_64 WHERE players = \"judith wiesner and alex antonitsch\"" }
### INSTRUCTION What date is aston villa away? ### INPUT CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR) ### OUTPUT SELECT date FROM table_name_67 WHERE away_team = "aston villa"
{ "input": "CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)", "instruction": "What date is aston villa away?", "output": "SELECT date FROM table_name_67 WHERE away_team = \"aston villa\"" }
### INSTRUCTION When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)? ### INPUT CREATE TABLE table_26609958_1 (groundwater_discharge__million_m_3__ INTEGER, hydrographic_basin VARCHAR) ### OUTPUT SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = "Cabarita River"
{ "input": "CREATE TABLE table_26609958_1 (groundwater_discharge__million_m_3__ INTEGER, hydrographic_basin VARCHAR)", "instruction": "When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?", "output": "SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = \"Cabarita River\"" }
### INSTRUCTION How many clubs does the student named "Eric Tai" belong to? ### INPUT CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Eric" AND t3.lname = "Tai"
{ "input": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "instruction": "How many clubs does the student named \"Eric Tai\" belong to?", "output": "SELECT COUNT(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Eric\" AND t3.lname = \"Tai\"" }
### INSTRUCTION How many # were written by david hoselton? ### INPUT CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR) ### OUTPUT SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = "David Hoselton"
{ "input": "CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)", "instruction": "How many # were written by david hoselton?", "output": "SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = \"David Hoselton\"" }
### INSTRUCTION Which team plays at Lake Oval? ### INPUT CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team FROM table_name_39 WHERE venue = "lake oval"
{ "input": "CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)", "instruction": "Which team plays at Lake Oval?", "output": "SELECT home_team FROM table_name_39 WHERE venue = \"lake oval\"" }
### INSTRUCTION Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)? ### INPUT CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, power VARCHAR) ### OUTPUT SELECT engine FROM table_name_8 WHERE year > 2006 AND power = "bhp (kw)"
{ "input": "CREATE TABLE table_name_8 (engine VARCHAR, year VARCHAR, power VARCHAR)", "instruction": "Which Engine has a Year that's Larger than 2006 and Power of BHP (KW)?", "output": "SELECT engine FROM table_name_8 WHERE year > 2006 AND power = \"bhp (kw)\"" }
### INSTRUCTION Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5? ### INPUT CREATE TABLE table_name_93 (winnings VARCHAR, top_10 VARCHAR, starts VARCHAR, poles VARCHAR) ### OUTPUT SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5
{ "input": "CREATE TABLE table_name_93 (winnings VARCHAR, top_10 VARCHAR, starts VARCHAR, poles VARCHAR)", "instruction": "Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5?", "output": "SELECT winnings FROM table_name_93 WHERE starts > 34 AND poles < 1 AND top_10 = 5" }
### INSTRUCTION Which membership card has more than 5 members? ### INPUT CREATE TABLE member (Membership_card VARCHAR) ### OUTPUT SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5
{ "input": "CREATE TABLE member (Membership_card VARCHAR)", "instruction": "Which membership card has more than 5 members?", "output": "SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5" }
### INSTRUCTION What website has an Ofsted less than 106478 in Atherton? ### INPUT CREATE TABLE table_name_33 (website VARCHAR, ofsted VARCHAR, locality VARCHAR) ### OUTPUT SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = "atherton"
{ "input": "CREATE TABLE table_name_33 (website VARCHAR, ofsted VARCHAR, locality VARCHAR)", "instruction": "What website has an Ofsted less than 106478 in Atherton?", "output": "SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = \"atherton\"" }
### INSTRUCTION what is the maximum first elected with district being alabama 5 ### INPUT CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR) ### OUTPUT SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 5"
{ "input": "CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR)", "instruction": "what is the maximum first elected with district being alabama 5", "output": "SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = \"Alabama 5\"" }
### INSTRUCTION Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering? ### INPUT CREATE TABLE table_name_82 (year INTEGER, entrant VARCHAR, engine VARCHAR, chassis VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_82 WHERE engine = "offenhauser l4" AND chassis = "kurtis kraft 500c" AND entrant = "federal engineering"
{ "input": "CREATE TABLE table_name_82 (year INTEGER, entrant VARCHAR, engine VARCHAR, chassis VARCHAR)", "instruction": "Which is the latest year that has an engine of Offenhauser l4, a chassis of Kurtis Kraft 500c, and the entrant of Federal Engineering?", "output": "SELECT MAX(year) FROM table_name_82 WHERE engine = \"offenhauser l4\" AND chassis = \"kurtis kraft 500c\" AND entrant = \"federal engineering\"" }
### INSTRUCTION What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20? ### INPUT CREATE TABLE table_name_4 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT MIN(laps) FROM table_name_4 WHERE manufacturer = "yamaha" AND time_retired = "+1:08.312" AND grid < 20
{ "input": "CREATE TABLE table_name_4 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)", "instruction": "What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20?", "output": "SELECT MIN(laps) FROM table_name_4 WHERE manufacturer = \"yamaha\" AND time_retired = \"+1:08.312\" AND grid < 20" }
### INSTRUCTION Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes? ### INPUT CREATE TABLE table_name_86 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) ### OUTPUT SELECT runner_s__up FROM table_name_86 WHERE margin_of_victory = "2 strokes" AND tournament = "mazda senior tournament players championship"
{ "input": "CREATE TABLE table_name_86 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)", "instruction": "Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?", "output": "SELECT runner_s__up FROM table_name_86 WHERE margin_of_victory = \"2 strokes\" AND tournament = \"mazda senior tournament players championship\"" }
### INSTRUCTION Who is the November playmate with the July playmate Hope Marie Carlton? ### INPUT CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR) ### OUTPUT SELECT november FROM table_name_66 WHERE july = "hope marie carlton"
{ "input": "CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR)", "instruction": "Who is the November playmate with the July playmate Hope Marie Carlton?", "output": "SELECT november FROM table_name_66 WHERE july = \"hope marie carlton\"" }
### INSTRUCTION What was the reason for change to the successor that was seated on December 13, 1880? ### INPUT CREATE TABLE table_2417395_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) ### OUTPUT SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = "December 13, 1880"
{ "input": "CREATE TABLE table_2417395_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)", "instruction": "What was the reason for change to the successor that was seated on December 13, 1880?", "output": "SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = \"December 13, 1880\"" }
### INSTRUCTION What is Rochester, when Syracuse is Cardiff Dark Gray Shale, and when Albany is (Mt. Marion Fm.)? ### INPUT CREATE TABLE table_name_39 (rochester VARCHAR, syracuse VARCHAR, albany VARCHAR) ### OUTPUT SELECT rochester FROM table_name_39 WHERE syracuse = "cardiff dark gray shale" AND albany = "(mt. marion fm.)"
{ "input": "CREATE TABLE table_name_39 (rochester VARCHAR, syracuse VARCHAR, albany VARCHAR)", "instruction": "What is Rochester, when Syracuse is Cardiff Dark Gray Shale, and when Albany is (Mt. Marion Fm.)?", "output": "SELECT rochester FROM table_name_39 WHERE syracuse = \"cardiff dark gray shale\" AND albany = \"(mt. marion fm.)\"" }
### INSTRUCTION What was the sample size for polling on May 2-7, 2007 for Hillary Clinton? ### INPUT CREATE TABLE table_name_35 (sample_size VARCHAR, date VARCHAR, democrat VARCHAR) ### OUTPUT SELECT sample_size FROM table_name_35 WHERE date = "may 2-7, 2007" AND democrat = "hillary clinton"
{ "input": "CREATE TABLE table_name_35 (sample_size VARCHAR, date VARCHAR, democrat VARCHAR)", "instruction": "What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?", "output": "SELECT sample_size FROM table_name_35 WHERE date = \"may 2-7, 2007\" AND democrat = \"hillary clinton\"" }
### INSTRUCTION Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)? ### INPUT CREATE TABLE table_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT surface FROM table_22834834_3 WHERE score_in_the_final = "6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)"
{ "input": "CREATE TABLE table_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR)", "instruction": "Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)?", "output": "SELECT surface FROM table_22834834_3 WHERE score_in_the_final = \"6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)\"" }
### INSTRUCTION Name the year for womens doubles being raina tzvetkova emilia dimitrova ### INPUT CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR) ### OUTPUT SELECT year FROM table_14903491_1 WHERE womens_doubles = "Raina Tzvetkova Emilia Dimitrova"
{ "input": "CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR)", "instruction": "Name the year for womens doubles being raina tzvetkova emilia dimitrova", "output": "SELECT year FROM table_14903491_1 WHERE womens_doubles = \"Raina Tzvetkova Emilia Dimitrova\"" }
### INSTRUCTION What is the latest year with reporters Lesley Visser and Robin Roberts? ### INPUT CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"
{ "input": "CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR)", "instruction": "What is the latest year with reporters Lesley Visser and Robin Roberts?", "output": "SELECT MAX(year) FROM table_22654139_3 WHERE reporters = \"Lesley Visser and Robin Roberts\"" }
### INSTRUCTION How much is the total ERP W for an 107.9 fm freqeuncy MHz? ### INPUT CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR) ### OUTPUT SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = "107.9 fm"
{ "input": "CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR)", "instruction": "How much is the total ERP W for an 107.9 fm freqeuncy MHz?", "output": "SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = \"107.9 fm\"" }
### INSTRUCTION What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —? ### INPUT CREATE TABLE table_name_80 (country VARCHAR, internetlists VARCHAR, onisecurityfiltering VARCHAR) ### OUTPUT SELECT country FROM table_name_80 WHERE internetlists = "—" AND onisecurityfiltering = "—"
{ "input": "CREATE TABLE table_name_80 (country VARCHAR, internetlists VARCHAR, onisecurityfiltering VARCHAR)", "instruction": "What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —?", "output": "SELECT country FROM table_name_80 WHERE internetlists = \"—\" AND onisecurityfiltering = \"—\"" }
### INSTRUCTION Find the titles of all movies that have no ratings. ### INPUT CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### OUTPUT SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)
{ "input": "CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "instruction": "Find the titles of all movies that have no ratings.", "output": "SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)" }
### INSTRUCTION What are the distinct template type descriptions for the templates ever used by any document? ### INPUT CREATE TABLE Templates (template_type_code VARCHAR, Template_ID VARCHAR); CREATE TABLE Documents (template_ID VARCHAR); CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR) ### OUTPUT SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID
{ "input": "CREATE TABLE Templates (template_type_code VARCHAR, Template_ID VARCHAR); CREATE TABLE Documents (template_ID VARCHAR); CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR)", "instruction": "What are the distinct template type descriptions for the templates ever used by any document?", "output": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID" }
### INSTRUCTION What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995? ### INPUT CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR) ### OUTPUT SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = "september 21, 1995"
{ "input": "CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR)", "instruction": "What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995?", "output": "SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = \"september 21, 1995\"" }
### INSTRUCTION What district did James O'Connor belong to? ### INPUT CREATE TABLE table_1342451_16 (district VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT district FROM table_1342451_16 WHERE incumbent = "James O'Connor"
{ "input": "CREATE TABLE table_1342451_16 (district VARCHAR, incumbent VARCHAR)", "instruction": "What district did James O'Connor belong to?", "output": "SELECT district FROM table_1342451_16 WHERE incumbent = \"James O'Connor\"" }
### INSTRUCTION what is the date for traction type electric with calgary location? ### INPUT CREATE TABLE table_name_18 (date__from_ VARCHAR, traction_type VARCHAR, location VARCHAR) ### OUTPUT SELECT date__from_ FROM table_name_18 WHERE traction_type = "electric" AND location = "calgary"
{ "input": "CREATE TABLE table_name_18 (date__from_ VARCHAR, traction_type VARCHAR, location VARCHAR)", "instruction": "what is the date for traction type electric with calgary location?", "output": "SELECT date__from_ FROM table_name_18 WHERE traction_type = \"electric\" AND location = \"calgary\"" }
### INSTRUCTION Name the year for reportaje a la muerte ### INPUT CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR) ### OUTPUT SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = "Reportaje a la muerte"
{ "input": "CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR)", "instruction": "Name the year for reportaje a la muerte", "output": "SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = \"Reportaje a la muerte\"" }
### INSTRUCTION what's the county name for the republican river bridge listed on 1992-06-29? ### INPUT CREATE TABLE table_name_36 (county VARCHAR, listed VARCHAR, name VARCHAR) ### OUTPUT SELECT county FROM table_name_36 WHERE listed = "1992-06-29" AND name = "republican river bridge"
{ "input": "CREATE TABLE table_name_36 (county VARCHAR, listed VARCHAR, name VARCHAR)", "instruction": "what's the county name for the republican river bridge listed on 1992-06-29?", "output": "SELECT county FROM table_name_36 WHERE listed = \"1992-06-29\" AND name = \"republican river bridge\"" }
### INSTRUCTION What's the order number of the song originally performed by Rickie Lee Jones? ### INPUT CREATE TABLE table_12310814_1 (order__number VARCHAR, original_artist VARCHAR) ### OUTPUT SELECT order__number FROM table_12310814_1 WHERE original_artist = "Rickie Lee Jones"
{ "input": "CREATE TABLE table_12310814_1 (order__number VARCHAR, original_artist VARCHAR)", "instruction": "What's the order number of the song originally performed by Rickie Lee Jones?", "output": "SELECT order__number FROM table_12310814_1 WHERE original_artist = \"Rickie Lee Jones\"" }
### INSTRUCTION List the names of journalists who have not reported any event. ### INPUT CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Name VARCHAR, journalist_ID VARCHAR) ### OUTPUT SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report)
{ "input": "CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Name VARCHAR, journalist_ID VARCHAR)", "instruction": "List the names of journalists who have not reported any event.", "output": "SELECT Name FROM journalist WHERE NOT journalist_ID IN (SELECT journalist_ID FROM news_report)" }
### INSTRUCTION What is the team name and acc regular season score of the school that was founded for the longest time? ### INPUT CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR) ### OUTPUT SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1
{ "input": "CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR)", "instruction": "What is the team name and acc regular season score of the school that was founded for the longest time?", "output": "SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1" }