text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4? ### INPUT CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR) ### OUTPUT SELECT MAX(pick__number) FROM table_name_86 WHERE name = "lawrence sidbury" AND round < 4
{ "input": "CREATE TABLE table_name_86 (pick__number INTEGER, name VARCHAR, round VARCHAR)", "instruction": "Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4?", "output": "SELECT MAX(pick__number) FROM table_name_86 WHERE name = \"lawrence sidbury\" AND round < 4" }
### INSTRUCTION What is Location Attendance, when High Assists is Alvin Williams (9)? ### INPUT CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR) ### OUTPUT SELECT location_attendance FROM table_name_29 WHERE high_assists = "alvin williams (9)"
{ "input": "CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR)", "instruction": "What is Location Attendance, when High Assists is Alvin Williams (9)?", "output": "SELECT location_attendance FROM table_name_29 WHERE high_assists = \"alvin williams (9)\"" }
### INSTRUCTION what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2? ### INPUT CREATE TABLE table_name_28 (since_beginning_of_big_12 VARCHAR, last_5_meetings VARCHAR, last_10_meetings VARCHAR, at_neutral_site VARCHAR) ### OUTPUT SELECT since_beginning_of_big_12 FROM table_name_28 WHERE last_10_meetings = "ou, 7-3" AND at_neutral_site = "ou, 2-1" AND last_5_meetings = "bu, 3-2"
{ "input": "CREATE TABLE table_name_28 (since_beginning_of_big_12 VARCHAR, last_5_meetings VARCHAR, last_10_meetings VARCHAR, at_neutral_site VARCHAR)", "instruction": "what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2?", "output": "SELECT since_beginning_of_big_12 FROM table_name_28 WHERE last_10_meetings = \"ou, 7-3\" AND at_neutral_site = \"ou, 2-1\" AND last_5_meetings = \"bu, 3-2\"" }
### INSTRUCTION What episode had the last appearances of the late wife of mac taylor? ### INPUT CREATE TABLE table_11240028_3 (last_appearance VARCHAR, relationship VARCHAR) ### OUTPUT SELECT last_appearance FROM table_11240028_3 WHERE relationship = "Late wife of Mac Taylor"
{ "input": "CREATE TABLE table_11240028_3 (last_appearance VARCHAR, relationship VARCHAR)", "instruction": "What episode had the last appearances of the late wife of mac taylor?", "output": "SELECT last_appearance FROM table_11240028_3 WHERE relationship = \"Late wife of Mac Taylor\"" }
### INSTRUCTION Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009? ### INPUT CREATE TABLE table_name_7 (senior_status VARCHAR, appointed_by VARCHAR, born_died VARCHAR) ### OUTPUT SELECT senior_status FROM table_name_7 WHERE appointed_by = "l. johnson category:articles with hcards" AND born_died = "1918–2009"
{ "input": "CREATE TABLE table_name_7 (senior_status VARCHAR, appointed_by VARCHAR, born_died VARCHAR)", "instruction": "Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009?", "output": "SELECT senior_status FROM table_name_7 WHERE appointed_by = \"l. johnson category:articles with hcards\" AND born_died = \"1918–2009\"" }
### INSTRUCTION Find the first name of students who have both cat and dog pets . ### INPUT CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR) ### OUTPUT SELECT t1.fname 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' INTERSECT SELECT t1.fname 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 = 'dog'
{ "input": "CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)", "instruction": "Find the first name of students who have both cat and dog pets .", "output": "SELECT t1.fname 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' INTERSECT SELECT t1.fname 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 = 'dog'" }
### INSTRUCTION Show the company name with the number of gas station. ### INPUT CREATE TABLE station_company (company_id VARCHAR); CREATE TABLE company (company VARCHAR, company_id VARCHAR) ### OUTPUT SELECT T2.company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id
{ "input": "CREATE TABLE station_company (company_id VARCHAR); CREATE TABLE company (company VARCHAR, company_id VARCHAR)", "instruction": "Show the company name with the number of gas station.", "output": "SELECT T2.company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id" }
### INSTRUCTION What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2? ### INPUT CREATE TABLE table_name_51 (wins INTEGER, byes VARCHAR, against VARCHAR, losses VARCHAR) ### OUTPUT SELECT AVG(wins) FROM table_name_51 WHERE against < 1786 AND losses < 4 AND byes < 2
{ "input": "CREATE TABLE table_name_51 (wins INTEGER, byes VARCHAR, against VARCHAR, losses VARCHAR)", "instruction": "What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?", "output": "SELECT AVG(wins) FROM table_name_51 WHERE against < 1786 AND losses < 4 AND byes < 2" }
### INSTRUCTION Name the total number of years for talbot-lago t26c and points less than 3 ### INPUT CREATE TABLE table_name_52 (year VARCHAR, chassis VARCHAR, points VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_52 WHERE chassis = "talbot-lago t26c" AND points < 3
{ "input": "CREATE TABLE table_name_52 (year VARCHAR, chassis VARCHAR, points VARCHAR)", "instruction": "Name the total number of years for talbot-lago t26c and points less than 3", "output": "SELECT COUNT(year) FROM table_name_52 WHERE chassis = \"talbot-lago t26c\" AND points < 3" }
### INSTRUCTION What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre? ### INPUT CREATE TABLE table_name_32 (result VARCHAR, competition VARCHAR, venue VARCHAR) ### OUTPUT SELECT result FROM table_name_32 WHERE competition = "2006 fifa world cup qualifier" AND venue = "warner park sporting complex, bassaterre"
{ "input": "CREATE TABLE table_name_32 (result VARCHAR, competition VARCHAR, venue VARCHAR)", "instruction": "What is the result when the competition was the 2006 fifa world cup qualifier, and a Venue of warner park sporting complex, bassaterre?", "output": "SELECT result FROM table_name_32 WHERE competition = \"2006 fifa world cup qualifier\" AND venue = \"warner park sporting complex, bassaterre\"" }
### INSTRUCTION What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix? ### INPUT CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR) ### OUTPUT SELECT circuit FROM table_name_16 WHERE fastest_lap = "juan manuel fangio" AND race = "german grand prix"
{ "input": "CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR)", "instruction": "What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix?", "output": "SELECT circuit FROM table_name_16 WHERE fastest_lap = \"juan manuel fangio\" AND race = \"german grand prix\"" }
### INSTRUCTION Show the names of members and the location of performances they attended in ascending alphabetical order of their names. ### INPUT CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR) ### OUTPUT SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name
{ "input": "CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)", "instruction": "Show the names of members and the location of performances they attended in ascending alphabetical order of their names.", "output": "SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name" }
### INSTRUCTION Which tournament has an Outcome of winner, and a Opponent of dia evtimova? ### INPUT CREATE TABLE table_name_53 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR) ### OUTPUT SELECT tournament FROM table_name_53 WHERE outcome = "winner" AND opponent = "dia evtimova"
{ "input": "CREATE TABLE table_name_53 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)", "instruction": "Which tournament has an Outcome of winner, and a Opponent of dia evtimova?", "output": "SELECT tournament FROM table_name_53 WHERE outcome = \"winner\" AND opponent = \"dia evtimova\"" }
### INSTRUCTION For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39? ### INPUT CREATE TABLE table_name_60 (wins INTEGER, goals_conceded VARCHAR, club VARCHAR, points VARCHAR, goals_scored VARCHAR) ### OUTPUT SELECT MIN(wins) FROM table_name_60 WHERE points < 25 AND goals_scored = 22 AND club = "minija kretinga" AND goals_conceded < 39
{ "input": "CREATE TABLE table_name_60 (wins INTEGER, goals_conceded VARCHAR, club VARCHAR, points VARCHAR, goals_scored VARCHAR)", "instruction": "For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39?", "output": "SELECT MIN(wins) FROM table_name_60 WHERE points < 25 AND goals_scored = 22 AND club = \"minija kretinga\" AND goals_conceded < 39" }
### INSTRUCTION Select the name of each manufacturer along with the name and price of its most expensive product. ### INPUT CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Name VARCHAR, Price INTEGER, manufacturer VARCHAR) ### OUTPUT SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
{ "input": "CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Name VARCHAR, Price INTEGER, manufacturer VARCHAR)", "instruction": "Select the name of each manufacturer along with the name and price of its most expensive product.", "output": "SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name" }
### INSTRUCTION Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27 ### INPUT CREATE TABLE table_name_75 (interview INTEGER, province VARCHAR, swimsuit VARCHAR) ### OUTPUT SELECT SUM(interview) FROM table_name_75 WHERE province = "monte cristi" AND swimsuit > 7.27
{ "input": "CREATE TABLE table_name_75 (interview INTEGER, province VARCHAR, swimsuit VARCHAR)", "instruction": "Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27", "output": "SELECT SUM(interview) FROM table_name_75 WHERE province = \"monte cristi\" AND swimsuit > 7.27" }
### INSTRUCTION At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur? ### INPUT CREATE TABLE table_name_5 (location VARCHAR, name_of_system VARCHAR, traction_type VARCHAR) ### OUTPUT SELECT location FROM table_name_5 WHERE name_of_system = "atm (1880–1911) geta (1911–1944)" AND traction_type = "electric"
{ "input": "CREATE TABLE table_name_5 (location VARCHAR, name_of_system VARCHAR, traction_type VARCHAR)", "instruction": "At what location did the event that used electric traction and system name ATM (1880–1911) GETA (1911–1944) occur?", "output": "SELECT location FROM table_name_5 WHERE name_of_system = \"atm (1880–1911) geta (1911–1944)\" AND traction_type = \"electric\"" }
### INSTRUCTION Who is the original west end performer for the character Neville Craven? ### INPUT CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR) ### OUTPUT SELECT original_west_end_performer FROM table_1901751_1 WHERE character = "Neville Craven"
{ "input": "CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR)", "instruction": "Who is the original west end performer for the character Neville Craven?", "output": "SELECT original_west_end_performer FROM table_1901751_1 WHERE character = \"Neville Craven\"" }
### INSTRUCTION What city is east region venue University Hall (University of Virginia) in? ### INPUT CREATE TABLE table_name_10 (city VARCHAR, region VARCHAR, venue VARCHAR) ### OUTPUT SELECT city FROM table_name_10 WHERE region = "east" AND venue = "university hall (university of virginia)"
{ "input": "CREATE TABLE table_name_10 (city VARCHAR, region VARCHAR, venue VARCHAR)", "instruction": "What city is east region venue University Hall (University of Virginia) in?", "output": "SELECT city FROM table_name_10 WHERE region = \"east\" AND venue = \"university hall (university of virginia)\"" }
### INSTRUCTION What is the number of wins associated with 1 point, more than 1 start, and under 7 finishes? ### INPUT CREATE TABLE table_name_68 (wins VARCHAR, points VARCHAR, finishes VARCHAR, starts VARCHAR) ### OUTPUT SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1
{ "input": "CREATE TABLE table_name_68 (wins VARCHAR, points VARCHAR, finishes VARCHAR, starts VARCHAR)", "instruction": "What is the number of wins associated with 1 point, more than 1 start, and under 7 finishes?", "output": "SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1" }
### INSTRUCTION The plural word of following lines or pages has what plural abbreviation? ### INPUT CREATE TABLE table_name_21 (plural_abbreviation VARCHAR, plural_word VARCHAR) ### OUTPUT SELECT plural_abbreviation FROM table_name_21 WHERE plural_word = "following lines or pages"
{ "input": "CREATE TABLE table_name_21 (plural_abbreviation VARCHAR, plural_word VARCHAR)", "instruction": "The plural word of following lines or pages has what plural abbreviation?", "output": "SELECT plural_abbreviation FROM table_name_21 WHERE plural_word = \"following lines or pages\"" }
### INSTRUCTION When were there less than 1 point with a cosworth v8 engine in jolly club switzerland? ### INPUT CREATE TABLE table_name_73 (year VARCHAR, entrant VARCHAR, points VARCHAR, engine VARCHAR) ### OUTPUT SELECT year FROM table_name_73 WHERE points < 1 AND engine = "cosworth v8" AND entrant = "jolly club switzerland"
{ "input": "CREATE TABLE table_name_73 (year VARCHAR, entrant VARCHAR, points VARCHAR, engine VARCHAR)", "instruction": "When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?", "output": "SELECT year FROM table_name_73 WHERE points < 1 AND engine = \"cosworth v8\" AND entrant = \"jolly club switzerland\"" }
### INSTRUCTION Who wrote the episode that received 1.83 million U.S. viewers? ### INPUT CREATE TABLE table_13477468_3 (written_by VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT written_by FROM table_13477468_3 WHERE us_viewers__millions_ = "1.83"
{ "input": "CREATE TABLE table_13477468_3 (written_by VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "Who wrote the episode that received 1.83 million U.S. viewers?", "output": "SELECT written_by FROM table_13477468_3 WHERE us_viewers__millions_ = \"1.83\"" }
### INSTRUCTION How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get? ### INPUT CREATE TABLE table_name_88 (total_goals INTEGER, league_cup_goals VARCHAR, playoff_apps VARCHAR, fa_cup_apps VARCHAR) ### OUTPUT SELECT SUM(total_goals) FROM table_name_88 WHERE playoff_apps = "2" AND fa_cup_apps = "2" AND league_cup_goals < 0
{ "input": "CREATE TABLE table_name_88 (total_goals INTEGER, league_cup_goals VARCHAR, playoff_apps VARCHAR, fa_cup_apps VARCHAR)", "instruction": "How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get?", "output": "SELECT SUM(total_goals) FROM table_name_88 WHERE playoff_apps = \"2\" AND fa_cup_apps = \"2\" AND league_cup_goals < 0" }
### INSTRUCTION What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s? ### INPUT CREATE TABLE table_name_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR) ### OUTPUT SELECT transmission FROM table_name_99 WHERE engine = "2.0l" AND acceleration_0_100km_h__0_62mph_ = "10.5 s"
{ "input": "CREATE TABLE table_name_99 (transmission VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)", "instruction": "What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?", "output": "SELECT transmission FROM table_name_99 WHERE engine = \"2.0l\" AND acceleration_0_100km_h__0_62mph_ = \"10.5 s\"" }
### INSTRUCTION What body is at the World Championship for Underwater Target shooting? ### INPUT CREATE TABLE table_name_12 (body VARCHAR, event_type VARCHAR, sport VARCHAR) ### OUTPUT SELECT body FROM table_name_12 WHERE event_type = "world championship" AND sport = "underwater target shooting"
{ "input": "CREATE TABLE table_name_12 (body VARCHAR, event_type VARCHAR, sport VARCHAR)", "instruction": "What body is at the World Championship for Underwater Target shooting?", "output": "SELECT body FROM table_name_12 WHERE event_type = \"world championship\" AND sport = \"underwater target shooting\"" }
### INSTRUCTION What are the code and description of the least frequent detention type ? ### INPUT CREATE TABLE Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR) ### OUTPUT SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR)", "instruction": "What are the code and description of the least frequent detention type ?", "output": "SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION Where is the Belhaven College SSAC conference location? ### INPUT CREATE TABLE table_name_23 (location VARCHAR, current_conference VARCHAR, institution VARCHAR) ### OUTPUT SELECT location FROM table_name_23 WHERE current_conference = "ssac" AND institution = "belhaven college"
{ "input": "CREATE TABLE table_name_23 (location VARCHAR, current_conference VARCHAR, institution VARCHAR)", "instruction": "Where is the Belhaven College SSAC conference location?", "output": "SELECT location FROM table_name_23 WHERE current_conference = \"ssac\" AND institution = \"belhaven college\"" }
### INSTRUCTION What Label was Catalogued tojp 60121-22? ### INPUT CREATE TABLE table_name_83 (label VARCHAR, catalogue VARCHAR) ### OUTPUT SELECT label FROM table_name_83 WHERE catalogue = "tojp 60121-22"
{ "input": "CREATE TABLE table_name_83 (label VARCHAR, catalogue VARCHAR)", "instruction": "What Label was Catalogued tojp 60121-22?", "output": "SELECT label FROM table_name_83 WHERE catalogue = \"tojp 60121-22\"" }
### INSTRUCTION What Place has a To par of –4? ### INPUT CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR) ### OUTPUT SELECT place FROM table_name_92 WHERE to_par = "–4"
{ "input": "CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR)", "instruction": "What Place has a To par of –4?", "output": "SELECT place FROM table_name_92 WHERE to_par = \"–4\"" }
### INSTRUCTION In which season did the évora settlements join the league? ### INPUT CREATE TABLE table_name_28 (season_joined_league VARCHAR, settlements VARCHAR) ### OUTPUT SELECT season_joined_league FROM table_name_28 WHERE settlements = "évora"
{ "input": "CREATE TABLE table_name_28 (season_joined_league VARCHAR, settlements VARCHAR)", "instruction": "In which season did the évora settlements join the league?", "output": "SELECT season_joined_league FROM table_name_28 WHERE settlements = \"évora\"" }
### INSTRUCTION What is Power HP (kW), when First Year is greater than 1965, when Distribution is "International", when Engine is V6 Biturbo, and when Model is "425"? ### INPUT CREATE TABLE table_name_60 (power_hp__kw_ VARCHAR, model VARCHAR, engine VARCHAR, first_year VARCHAR, distribution VARCHAR) ### OUTPUT SELECT power_hp__kw_ FROM table_name_60 WHERE first_year > 1965 AND distribution = "international" AND engine = "v6 biturbo" AND model = "425"
{ "input": "CREATE TABLE table_name_60 (power_hp__kw_ VARCHAR, model VARCHAR, engine VARCHAR, first_year VARCHAR, distribution VARCHAR)", "instruction": "What is Power HP (kW), when First Year is greater than 1965, when Distribution is \"International\", when Engine is V6 Biturbo, and when Model is \"425\"?", "output": "SELECT power_hp__kw_ FROM table_name_60 WHERE first_year > 1965 AND distribution = \"international\" AND engine = \"v6 biturbo\" AND model = \"425\"" }
### INSTRUCTION What is the target market for the station on 97.9 fm? ### INPUT CREATE TABLE table_134987_3 (target_city__market VARCHAR, frequency VARCHAR) ### OUTPUT SELECT target_city__market FROM table_134987_3 WHERE frequency = "97.9 FM"
{ "input": "CREATE TABLE table_134987_3 (target_city__market VARCHAR, frequency VARCHAR)", "instruction": "What is the target market for the station on 97.9 fm?", "output": "SELECT target_city__market FROM table_134987_3 WHERE frequency = \"97.9 FM\"" }
### INSTRUCTION What is the Score with a Date that is 2008-06-28? ### INPUT CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_35 WHERE date = "2008-06-28"
{ "input": "CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)", "instruction": "What is the Score with a Date that is 2008-06-28?", "output": "SELECT score FROM table_name_35 WHERE date = \"2008-06-28\"" }
### INSTRUCTION When did the Texans play BYE? ### INPUT CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_8 WHERE opponent = "bye"
{ "input": "CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)", "instruction": "When did the Texans play BYE?", "output": "SELECT date FROM table_name_8 WHERE opponent = \"bye\"" }
### INSTRUCTION What percent of the parliamentary election did the pensioners party receive ### INPUT CREATE TABLE table_203802_2 (english_party_name VARCHAR) ### OUTPUT SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = "Pensioners Party"
{ "input": "CREATE TABLE table_203802_2 (english_party_name VARCHAR)", "instruction": "What percent of the parliamentary election did the pensioners party receive", "output": "SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = \"Pensioners Party\"" }
### INSTRUCTION What's the February for the game against the Montreal Canadiens? ### INPUT CREATE TABLE table_name_88 (february INTEGER, opponent VARCHAR) ### OUTPUT SELECT SUM(february) FROM table_name_88 WHERE opponent = "montreal canadiens"
{ "input": "CREATE TABLE table_name_88 (february INTEGER, opponent VARCHAR)", "instruction": "What's the February for the game against the Montreal Canadiens?", "output": "SELECT SUM(february) FROM table_name_88 WHERE opponent = \"montreal canadiens\"" }
### INSTRUCTION what is the venue when the result is loss and the opponent is st george-illawarra dragons? ### INPUT CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, opponent VARCHAR) ### OUTPUT SELECT venue FROM table_name_58 WHERE result = "loss" AND opponent = "st george-illawarra dragons"
{ "input": "CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, opponent VARCHAR)", "instruction": "what is the venue when the result is loss and the opponent is st george-illawarra dragons?", "output": "SELECT venue FROM table_name_58 WHERE result = \"loss\" AND opponent = \"st george-illawarra dragons\"" }
### INSTRUCTION What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position? ### INPUT CREATE TABLE table_1132568_3 (rd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR) ### OUTPUT SELECT rd FROM table_1132568_3 WHERE fastest_lap = "Michael Schumacher" AND constructor = "Ferrari" AND pole_position = "Michael Schumacher"
{ "input": "CREATE TABLE table_1132568_3 (rd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)", "instruction": "What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?", "output": "SELECT rd FROM table_1132568_3 WHERE fastest_lap = \"Michael Schumacher\" AND constructor = \"Ferrari\" AND pole_position = \"Michael Schumacher\"" }
### INSTRUCTION How many Seat Orders (Right to Left) have a Series 3 of deborah meaden? ### INPUT CREATE TABLE table_name_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR) ### OUTPUT SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = "deborah meaden"
{ "input": "CREATE TABLE table_name_83 (seat_order__right_to_left_ VARCHAR, series_3 VARCHAR)", "instruction": "How many Seat Orders (Right to Left) have a Series 3 of deborah meaden?", "output": "SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = \"deborah meaden\"" }
### INSTRUCTION What was the match number for Start Gniezno? ### INPUT CREATE TABLE table_name_13 (match VARCHAR, team VARCHAR) ### OUTPUT SELECT match FROM table_name_13 WHERE team = "start gniezno"
{ "input": "CREATE TABLE table_name_13 (match VARCHAR, team VARCHAR)", "instruction": "What was the match number for Start Gniezno?", "output": "SELECT match FROM table_name_13 WHERE team = \"start gniezno\"" }
### INSTRUCTION What is the maximum number of players for the sega game, hang-on (cartridge version)? ### INPUT CREATE TABLE table_name_24 (max__number_of_players VARCHAR, developer VARCHAR, main_title___alternate_title_s_ VARCHAR) ### OUTPUT SELECT COUNT(max__number_of_players) FROM table_name_24 WHERE developer = "sega" AND main_title___alternate_title_s_ = "hang-on (cartridge version)"
{ "input": "CREATE TABLE table_name_24 (max__number_of_players VARCHAR, developer VARCHAR, main_title___alternate_title_s_ VARCHAR)", "instruction": "What is the maximum number of players for the sega game, hang-on (cartridge version)?", "output": "SELECT COUNT(max__number_of_players) FROM table_name_24 WHERE developer = \"sega\" AND main_title___alternate_title_s_ = \"hang-on (cartridge version)\"" }
### INSTRUCTION What is the most total goals for a player having 0 FA Cup goals and 41 League appearances? ### INPUT CREATE TABLE table_name_98 (total_goals INTEGER, fa_cup_goals VARCHAR, league_apps VARCHAR) ### OUTPUT SELECT MAX(total_goals) FROM table_name_98 WHERE fa_cup_goals = 0 AND league_apps = "41"
{ "input": "CREATE TABLE table_name_98 (total_goals INTEGER, fa_cup_goals VARCHAR, league_apps VARCHAR)", "instruction": "What is the most total goals for a player having 0 FA Cup goals and 41 League appearances?", "output": "SELECT MAX(total_goals) FROM table_name_98 WHERE fa_cup_goals = 0 AND league_apps = \"41\"" }
### INSTRUCTION How many losses did the club with 22 played and 334 points against have? ### INPUT CREATE TABLE table_name_1 (lost VARCHAR, played VARCHAR, points_against VARCHAR) ### OUTPUT SELECT lost FROM table_name_1 WHERE played = "22" AND points_against = "334"
{ "input": "CREATE TABLE table_name_1 (lost VARCHAR, played VARCHAR, points_against VARCHAR)", "instruction": "How many losses did the club with 22 played and 334 points against have?", "output": "SELECT lost FROM table_name_1 WHERE played = \"22\" AND points_against = \"334\"" }
### INSTRUCTION What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004? ### INPUT CREATE TABLE table_name_69 (series_number INTEGER, number_of_episodes VARCHAR, original_air_date VARCHAR, dvd_region_2_release_date VARCHAR) ### OUTPUT SELECT MIN(series_number) FROM table_name_69 WHERE original_air_date < 2009 AND dvd_region_2_release_date = "26 july 2004" AND number_of_episodes > 7
{ "input": "CREATE TABLE table_name_69 (series_number INTEGER, number_of_episodes VARCHAR, original_air_date VARCHAR, dvd_region_2_release_date VARCHAR)", "instruction": "What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?", "output": "SELECT MIN(series_number) FROM table_name_69 WHERE original_air_date < 2009 AND dvd_region_2_release_date = \"26 july 2004\" AND number_of_episodes > 7" }
### INSTRUCTION What issue was the Spoofed Title of the crockford files in? ### INPUT CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR) ### OUTPUT SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files"
{ "input": "CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR)", "instruction": "What issue was the Spoofed Title of the crockford files in?", "output": "SELECT issue FROM table_name_50 WHERE spoofed_title = \"the crockford files\"" }
### INSTRUCTION Name the week 3 for team of mark/jennifer ### INPUT CREATE TABLE table_name_99 (week_3 VARCHAR, team VARCHAR) ### OUTPUT SELECT week_3 FROM table_name_99 WHERE team = "mark/jennifer"
{ "input": "CREATE TABLE table_name_99 (week_3 VARCHAR, team VARCHAR)", "instruction": "Name the week 3 for team of mark/jennifer", "output": "SELECT week_3 FROM table_name_99 WHERE team = \"mark/jennifer\"" }
### INSTRUCTION What are the subdivision names (RU) where the subdivision name (BE) is Hrodzenskaya Voblasts'? ### INPUT CREATE TABLE table_290017_1 (subdivision_name___ru____gost_ VARCHAR, subdivision_name___be____bgn_pcgn_ VARCHAR) ### OUTPUT SELECT subdivision_name___ru____gost_ FROM table_290017_1 WHERE subdivision_name___be____bgn_pcgn_ = "Hrodzenskaya voblasts'"
{ "input": "CREATE TABLE table_290017_1 (subdivision_name___ru____gost_ VARCHAR, subdivision_name___be____bgn_pcgn_ VARCHAR)", "instruction": "What are the subdivision names (RU) where the subdivision name (BE) is Hrodzenskaya Voblasts'?", "output": "SELECT subdivision_name___ru____gost_ FROM table_290017_1 WHERE subdivision_name___be____bgn_pcgn_ = \"Hrodzenskaya voblasts'\"" }
### INSTRUCTION Tell me the highest matches for point 43 and final rank less than 7 ### INPUT CREATE TABLE table_name_32 (matches INTEGER, point VARCHAR, final_rank VARCHAR) ### OUTPUT SELECT MAX(matches) FROM table_name_32 WHERE point = 43 AND final_rank < 7
{ "input": "CREATE TABLE table_name_32 (matches INTEGER, point VARCHAR, final_rank VARCHAR)", "instruction": "Tell me the highest matches for point 43 and final rank less than 7", "output": "SELECT MAX(matches) FROM table_name_32 WHERE point = 43 AND final_rank < 7" }
### INSTRUCTION what race did Dominican win with a distance of 1-1/16 miles? ### INPUT CREATE TABLE table_name_57 (race VARCHAR, winning_horse VARCHAR, distance VARCHAR) ### OUTPUT SELECT race FROM table_name_57 WHERE winning_horse = "dominican" AND distance = "1-1/16 miles"
{ "input": "CREATE TABLE table_name_57 (race VARCHAR, winning_horse VARCHAR, distance VARCHAR)", "instruction": "what race did Dominican win with a distance of 1-1/16 miles?", "output": "SELECT race FROM table_name_57 WHERE winning_horse = \"dominican\" AND distance = \"1-1/16 miles\"" }
### INSTRUCTION Who is the main contestant with a total score/week of 42/60 and a co-contestant (Yaar vs. Pyaa) of Tina Sachdev? ### INPUT CREATE TABLE table_name_29 (main_contestant VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### OUTPUT SELECT main_contestant FROM table_name_29 WHERE total_score_week = "42/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev"
{ "input": "CREATE TABLE table_name_29 (main_contestant VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)", "instruction": "Who is the main contestant with a total score/week of 42/60 and a co-contestant (Yaar vs. Pyaa) of Tina Sachdev?", "output": "SELECT main_contestant FROM table_name_29 WHERE total_score_week = \"42/60\" AND co_contestant__yaar_vs_pyaar_ = \"tina sachdev\"" }
### INSTRUCTION What position does Syracuse's player have? ### INPUT CREATE TABLE table_12165999_1 (position VARCHAR, college VARCHAR) ### OUTPUT SELECT position FROM table_12165999_1 WHERE college = "Syracuse"
{ "input": "CREATE TABLE table_12165999_1 (position VARCHAR, college VARCHAR)", "instruction": "What position does Syracuse's player have?", "output": "SELECT position FROM table_12165999_1 WHERE college = \"Syracuse\"" }
### INSTRUCTION How many descriptions are there when the attribute is "ondragstart"? ### INPUT CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR) ### OUTPUT SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = "ondragstart"
{ "input": "CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR)", "instruction": "How many descriptions are there when the attribute is \"ondragstart\"?", "output": "SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = \"ondragstart\"" }
### INSTRUCTION Name the air date for the seasons before 14 and series less than 183 with production code more than 709 ### INPUT CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR) ### OUTPUT SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183
{ "input": "CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR)", "instruction": "Name the air date for the seasons before 14 and series less than 183 with production code more than 709", "output": "SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183" }
### INSTRUCTION What is the assists total number if the minutes is 1? ### INPUT CREATE TABLE table_24807406_1 (assists VARCHAR, minutes VARCHAR) ### OUTPUT SELECT COUNT(assists) FROM table_24807406_1 WHERE minutes = 1
{ "input": "CREATE TABLE table_24807406_1 (assists VARCHAR, minutes VARCHAR)", "instruction": "What is the assists total number if the minutes is 1?", "output": "SELECT COUNT(assists) FROM table_24807406_1 WHERE minutes = 1" }
### INSTRUCTION How many people can attend games in the stadium of the team whose captain is Vasil Vasilev? ### INPUT CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR) ### OUTPUT SELECT capacity FROM table_23214833_1 WHERE team_captain = "Vasil Vasilev"
{ "input": "CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR)", "instruction": "How many people can attend games in the stadium of the team whose captain is Vasil Vasilev?", "output": "SELECT capacity FROM table_23214833_1 WHERE team_captain = \"Vasil Vasilev\"" }
### INSTRUCTION Name the record for prudential center - 12,880 ### INPUT CREATE TABLE table_27539272_4 (record VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT record FROM table_27539272_4 WHERE location_attendance = "Prudential Center - 12,880"
{ "input": "CREATE TABLE table_27539272_4 (record VARCHAR, location_attendance VARCHAR)", "instruction": "Name the record for prudential center - 12,880", "output": "SELECT record FROM table_27539272_4 WHERE location_attendance = \"Prudential Center - 12,880\"" }
### INSTRUCTION What nationality is the la salle team? ### INPUT CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR) ### OUTPUT SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle"
{ "input": "CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR)", "instruction": "What nationality is the la salle team?", "output": "SELECT nationality FROM table_name_28 WHERE school_club_team = \"la salle\"" }
### INSTRUCTION For what current streak is KU, 8-2 under last 10 meetings? ### INPUT CREATE TABLE table_name_28 (current_streak VARCHAR, last_10_meetings VARCHAR) ### OUTPUT SELECT current_streak FROM table_name_28 WHERE last_10_meetings = "ku, 8-2"
{ "input": "CREATE TABLE table_name_28 (current_streak VARCHAR, last_10_meetings VARCHAR)", "instruction": "For what current streak is KU, 8-2 under last 10 meetings?", "output": "SELECT current_streak FROM table_name_28 WHERE last_10_meetings = \"ku, 8-2\"" }
### INSTRUCTION How many different results came out of the round in which #98 All American Racers became the GTU winning team? ### INPUT CREATE TABLE table_13643320_2 (results VARCHAR, gtu_winning_team VARCHAR) ### OUTPUT SELECT COUNT(results) FROM table_13643320_2 WHERE gtu_winning_team = "#98 All American Racers"
{ "input": "CREATE TABLE table_13643320_2 (results VARCHAR, gtu_winning_team VARCHAR)", "instruction": "How many different results came out of the round in which #98 All American Racers became the GTU winning team? ", "output": "SELECT COUNT(results) FROM table_13643320_2 WHERE gtu_winning_team = \"#98 All American Racers\"" }
### INSTRUCTION What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october? ### INPUT CREATE TABLE table_name_22 (president VARCHAR, date VARCHAR, year VARCHAR, location VARCHAR, type VARCHAR) ### OUTPUT SELECT president FROM table_name_22 WHERE location = "justus lipsius building, brussels" AND type = "scheduled" AND year > 2011 AND date = "18–19 october"
{ "input": "CREATE TABLE table_name_22 (president VARCHAR, date VARCHAR, year VARCHAR, location VARCHAR, type VARCHAR)", "instruction": "What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october?", "output": "SELECT president FROM table_name_22 WHERE location = \"justus lipsius building, brussels\" AND type = \"scheduled\" AND year > 2011 AND date = \"18–19 october\"" }
### INSTRUCTION What was the crowd size for the game with a score of 101-105? ### INPUT CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR) ### OUTPUT SELECT crowd FROM table_name_13 WHERE score = "101-105"
{ "input": "CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR)", "instruction": "What was the crowd size for the game with a score of 101-105?", "output": "SELECT crowd FROM table_name_13 WHERE score = \"101-105\"" }
### INSTRUCTION Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial? ### INPUT CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR) ### OUTPUT SELECT provider FROM table_name_90 WHERE free_or_pay = "pay" AND years = "2006–" AND transmission = "iptv and digital terrestrial"
{ "input": "CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR)", "instruction": "Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?", "output": "SELECT provider FROM table_name_90 WHERE free_or_pay = \"pay\" AND years = \"2006–\" AND transmission = \"iptv and digital terrestrial\"" }
### INSTRUCTION When was republican incumbent Joseph McKenna first elected? ### INPUT CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT first_elected FROM table_name_28 WHERE party = "republican" AND incumbent = "joseph mckenna"
{ "input": "CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, incumbent VARCHAR)", "instruction": "When was republican incumbent Joseph McKenna first elected?", "output": "SELECT first_elected FROM table_name_28 WHERE party = \"republican\" AND incumbent = \"joseph mckenna\"" }
### INSTRUCTION how many times is the rank less than 6, certification 2x platinum and the peak position 2? ### INPUT CREATE TABLE table_name_49 (sales VARCHAR, peak_position VARCHAR, rank VARCHAR, certification VARCHAR) ### OUTPUT SELECT COUNT(sales) FROM table_name_49 WHERE rank < 6 AND certification = "2x platinum" AND peak_position = "2"
{ "input": "CREATE TABLE table_name_49 (sales VARCHAR, peak_position VARCHAR, rank VARCHAR, certification VARCHAR)", "instruction": "how many times is the rank less than 6, certification 2x platinum and the peak position 2?", "output": "SELECT COUNT(sales) FROM table_name_49 WHERE rank < 6 AND certification = \"2x platinum\" AND peak_position = \"2\"" }
### INSTRUCTION Which Time has an Event of 200 m butterfly? ### INPUT CREATE TABLE table_name_7 (time VARCHAR, event VARCHAR) ### OUTPUT SELECT time FROM table_name_7 WHERE event = "200 m butterfly"
{ "input": "CREATE TABLE table_name_7 (time VARCHAR, event VARCHAR)", "instruction": "Which Time has an Event of 200 m butterfly?", "output": "SELECT time FROM table_name_7 WHERE event = \"200 m butterfly\"" }
### INSTRUCTION Which decile has an Area of welcome bay, and an Authority of state? ### INPUT CREATE TABLE table_name_62 (decile VARCHAR, area VARCHAR, authority VARCHAR) ### OUTPUT SELECT decile FROM table_name_62 WHERE area = "welcome bay" AND authority = "state"
{ "input": "CREATE TABLE table_name_62 (decile VARCHAR, area VARCHAR, authority VARCHAR)", "instruction": "Which decile has an Area of welcome bay, and an Authority of state?", "output": "SELECT decile FROM table_name_62 WHERE area = \"welcome bay\" AND authority = \"state\"" }
### INSTRUCTION What is the description of the product named "Chocolate"? ### INPUT CREATE TABLE products (product_description VARCHAR, product_name VARCHAR) ### OUTPUT SELECT product_description FROM products WHERE product_name = "Chocolate"
{ "input": "CREATE TABLE products (product_description VARCHAR, product_name VARCHAR)", "instruction": "What is the description of the product named \"Chocolate\"?", "output": "SELECT product_description FROM products WHERE product_name = \"Chocolate\"" }
### INSTRUCTION What is the total number of birth/2012 for January–December 2012 in Kurgan Oblast? ### INPUT CREATE TABLE table_25703_2 (birth_2012 VARCHAR, january_december_2012 VARCHAR) ### OUTPUT SELECT COUNT(birth_2012) FROM table_25703_2 WHERE january_december_2012 = "Kurgan Oblast"
{ "input": "CREATE TABLE table_25703_2 (birth_2012 VARCHAR, january_december_2012 VARCHAR)", "instruction": "What is the total number of birth/2012 for January–December 2012 in Kurgan Oblast?", "output": "SELECT COUNT(birth_2012) FROM table_25703_2 WHERE january_december_2012 = \"Kurgan Oblast\"" }
### INSTRUCTION Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent? ### INPUT CREATE TABLE table_1342256_33 (candidates VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT candidates FROM table_1342256_33 WHERE incumbent = "Harold D. Cooley"
{ "input": "CREATE TABLE table_1342256_33 (candidates VARCHAR, incumbent VARCHAR)", "instruction": "Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?", "output": "SELECT candidates FROM table_1342256_33 WHERE incumbent = \"Harold D. Cooley\"" }
### INSTRUCTION What is the lowest octal with a 30 hexadecimal and less than 0 glyphs? ### INPUT CREATE TABLE table_name_82 (octal INTEGER, hexadecimal VARCHAR, glyph VARCHAR) ### OUTPUT SELECT MIN(octal) FROM table_name_82 WHERE hexadecimal = 30 AND glyph < 0
{ "input": "CREATE TABLE table_name_82 (octal INTEGER, hexadecimal VARCHAR, glyph VARCHAR)", "instruction": "What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?", "output": "SELECT MIN(octal) FROM table_name_82 WHERE hexadecimal = 30 AND glyph < 0" }
### INSTRUCTION What date was the game against manchester city when they had a league position of 2nd? ### INPUT CREATE TABLE table_name_22 (date VARCHAR, opponents VARCHAR, h___a VARCHAR, league_position VARCHAR) ### OUTPUT SELECT date FROM table_name_22 WHERE h___a = "a" AND league_position = "2nd" AND opponents = "manchester city"
{ "input": "CREATE TABLE table_name_22 (date VARCHAR, opponents VARCHAR, h___a VARCHAR, league_position VARCHAR)", "instruction": "What date was the game against manchester city when they had a league position of 2nd?", "output": "SELECT date FROM table_name_22 WHERE h___a = \"a\" AND league_position = \"2nd\" AND opponents = \"manchester city\"" }
### INSTRUCTION Show the names of customers who have both an order in completed status and an order in part status. ### INPUT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR) ### OUTPUT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'
{ "input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR)", "instruction": "Show the names of customers who have both an order in completed status and an order in part status.", "output": "SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'" }
### INSTRUCTION If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location? ### INPUT CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR, track VARCHAR) ### OUTPUT SELECT location FROM table_22670216_1 WHERE winning_driver = "Wally Dallenbach" AND track = "Wisconsin State Fair Park Speedway"
{ "input": "CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR, track VARCHAR)", "instruction": "If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location?", "output": "SELECT location FROM table_22670216_1 WHERE winning_driver = \"Wally Dallenbach\" AND track = \"Wisconsin State Fair Park Speedway\"" }
### INSTRUCTION What is south africa's margin of victory? ### INPUT CREATE TABLE table_name_29 (margin_of_victory VARCHAR, country VARCHAR) ### OUTPUT SELECT margin_of_victory FROM table_name_29 WHERE country = "south africa"
{ "input": "CREATE TABLE table_name_29 (margin_of_victory VARCHAR, country VARCHAR)", "instruction": "What is south africa's margin of victory?", "output": "SELECT margin_of_victory FROM table_name_29 WHERE country = \"south africa\"" }
### INSTRUCTION What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? ### INPUT CREATE TABLE table_2155836_1 (population__millions VARCHAR, _2011_ VARCHAR, gdp__nominal___billions_usd_ VARCHAR) ### OUTPUT SELECT population__millions, _2011_ FROM table_2155836_1 WHERE gdp__nominal___billions_usd_ = "4"
{ "input": "CREATE TABLE table_2155836_1 (population__millions VARCHAR, _2011_ VARCHAR, gdp__nominal___billions_usd_ VARCHAR)", "instruction": "What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? ", "output": "SELECT population__millions, _2011_ FROM table_2155836_1 WHERE gdp__nominal___billions_usd_ = \"4\"" }
### INSTRUCTION hat is the Result F– A when they played against Leeds United? ### INPUT CREATE TABLE table_name_98 (result_f___a VARCHAR, opponents VARCHAR) ### OUTPUT SELECT result_f___a FROM table_name_98 WHERE opponents = "leeds united"
{ "input": "CREATE TABLE table_name_98 (result_f___a VARCHAR, opponents VARCHAR)", "instruction": "hat is the Result F– A when they played against Leeds United?", "output": "SELECT result_f___a FROM table_name_98 WHERE opponents = \"leeds united\"" }
### INSTRUCTION What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November? ### INPUT CREATE TABLE table_name_12 (july VARCHAR, november VARCHAR, october VARCHAR, december VARCHAR) ### OUTPUT SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.79
{ "input": "CREATE TABLE table_name_12 (july VARCHAR, november VARCHAR, october VARCHAR, december VARCHAR)", "instruction": "What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?", "output": "SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.79" }
### INSTRUCTION What is Cabinet, when Year is before 2001, when Lijsttrekker is "No Elections", when Fractievoorzitter is "Hans Van Mierlo", and when Chair is "S. Van Der Loo"? ### INPUT CREATE TABLE table_name_79 (cabinet VARCHAR, chair VARCHAR, fractievoorzitter VARCHAR, year VARCHAR, lijsttrekker VARCHAR) ### OUTPUT SELECT cabinet FROM table_name_79 WHERE year < 2001 AND lijsttrekker = "no elections" AND fractievoorzitter = "hans van mierlo" AND chair = "s. van der loo"
{ "input": "CREATE TABLE table_name_79 (cabinet VARCHAR, chair VARCHAR, fractievoorzitter VARCHAR, year VARCHAR, lijsttrekker VARCHAR)", "instruction": "What is Cabinet, when Year is before 2001, when Lijsttrekker is \"No Elections\", when Fractievoorzitter is \"Hans Van Mierlo\", and when Chair is \"S. Van Der Loo\"?", "output": "SELECT cabinet FROM table_name_79 WHERE year < 2001 AND lijsttrekker = \"no elections\" AND fractievoorzitter = \"hans van mierlo\" AND chair = \"s. van der loo\"" }
### INSTRUCTION What is the lowest number of episodes for anabel barnston? ### INPUT CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR) ### OUTPUT SELECT MIN(episodes) FROM table_name_35 WHERE actor = "anabel barnston"
{ "input": "CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR)", "instruction": "What is the lowest number of episodes for anabel barnston?", "output": "SELECT MIN(episodes) FROM table_name_35 WHERE actor = \"anabel barnston\"" }
### INSTRUCTION Which country had more than 2 silvers and less than 4 golds? ### INPUT CREATE TABLE table_name_65 (nation VARCHAR, silver VARCHAR, gold VARCHAR) ### OUTPUT SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 4
{ "input": "CREATE TABLE table_name_65 (nation VARCHAR, silver VARCHAR, gold VARCHAR)", "instruction": "Which country had more than 2 silvers and less than 4 golds?", "output": "SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 4" }
### INSTRUCTION what is the percentage of democratic voters in which the registered voters is 67.8%? ### INPUT CREATE TABLE table_27003223_4 (democratic VARCHAR, registered_voters VARCHAR) ### OUTPUT SELECT democratic FROM table_27003223_4 WHERE registered_voters = "67.8%"
{ "input": "CREATE TABLE table_27003223_4 (democratic VARCHAR, registered_voters VARCHAR)", "instruction": "what is the percentage of democratic voters in which the registered voters is 67.8%?", "output": "SELECT democratic FROM table_27003223_4 WHERE registered_voters = \"67.8%\"" }
### INSTRUCTION What's the production code of the episode with a series number 37b? ### INPUT CREATE TABLE table_14035132_3 (production_code VARCHAR, no_in_series VARCHAR) ### OUTPUT SELECT production_code FROM table_14035132_3 WHERE no_in_series = "37b"
{ "input": "CREATE TABLE table_14035132_3 (production_code VARCHAR, no_in_series VARCHAR)", "instruction": "What's the production code of the episode with a series number 37b? ", "output": "SELECT production_code FROM table_14035132_3 WHERE no_in_series = \"37b\"" }
### INSTRUCTION Which station is from China and has a frequency of 684khz? ### INPUT CREATE TABLE table_name_79 (station VARCHAR, country_of_origin VARCHAR, frequency VARCHAR) ### OUTPUT SELECT station FROM table_name_79 WHERE country_of_origin = "china" AND frequency = "684khz"
{ "input": "CREATE TABLE table_name_79 (station VARCHAR, country_of_origin VARCHAR, frequency VARCHAR)", "instruction": "Which station is from China and has a frequency of 684khz?", "output": "SELECT station FROM table_name_79 WHERE country_of_origin = \"china\" AND frequency = \"684khz\"" }
### INSTRUCTION What years did Marienhof run, which featured Leonore Capell and lasted 10 years? ### INPUT CREATE TABLE table_name_88 (years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR) ### OUTPUT SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell"
{ "input": "CREATE TABLE table_name_88 (years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR)", "instruction": "What years did Marienhof run, which featured Leonore Capell and lasted 10 years?", "output": "SELECT years FROM table_name_88 WHERE soap_opera = \"marienhof\" AND duration = \"10 years\" AND actor = \"leonore capell\"" }
### INSTRUCTION What was United States place when the player was Fred Couples? ### INPUT CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples"
{ "input": "CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "What was United States place when the player was Fred Couples?", "output": "SELECT place FROM table_name_26 WHERE country = \"united states\" AND player = \"fred couples\"" }
### INSTRUCTION WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR? ### INPUT CREATE TABLE table_11677100_11 (hometown VARCHAR, position VARCHAR) ### OUTPUT SELECT hometown FROM table_11677100_11 WHERE position = "Catcher"
{ "input": "CREATE TABLE table_11677100_11 (hometown VARCHAR, position VARCHAR)", "instruction": "WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR?", "output": "SELECT hometown FROM table_11677100_11 WHERE position = \"Catcher\"" }
### INSTRUCTION What is the division for the season earlier than 2004? ### INPUT CREATE TABLE table_name_60 (division VARCHAR, season INTEGER) ### OUTPUT SELECT division FROM table_name_60 WHERE season < 2004
{ "input": "CREATE TABLE table_name_60 (division VARCHAR, season INTEGER)", "instruction": "What is the division for the season earlier than 2004?", "output": "SELECT division FROM table_name_60 WHERE season < 2004" }
### INSTRUCTION What is the maximum goals score with less than 13 wins, greater than 86 goals were conceded, and more than 32 games lost? ### INPUT CREATE TABLE table_name_87 (goals_scored INTEGER, loses VARCHAR, wins VARCHAR, goals_conceded VARCHAR) ### OUTPUT SELECT MAX(goals_scored) FROM table_name_87 WHERE wins < 13 AND goals_conceded > 86 AND loses > 32
{ "input": "CREATE TABLE table_name_87 (goals_scored INTEGER, loses VARCHAR, wins VARCHAR, goals_conceded VARCHAR)", "instruction": "What is the maximum goals score with less than 13 wins, greater than 86 goals were conceded, and more than 32 games lost?", "output": "SELECT MAX(goals_scored) FROM table_name_87 WHERE wins < 13 AND goals_conceded > 86 AND loses > 32" }
### INSTRUCTION What is the km2 area for the population of 311? ### INPUT CREATE TABLE table_name_46 (area__km_2__ INTEGER, population VARCHAR) ### OUTPUT SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311
{ "input": "CREATE TABLE table_name_46 (area__km_2__ INTEGER, population VARCHAR)", "instruction": "What is the km2 area for the population of 311?", "output": "SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311" }
### INSTRUCTION What is the code of airport that has fewest number of flights? ### INPUT CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR) ### OUTPUT SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)", "instruction": "What is the code of airport that has fewest number of flights?", "output": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION What is the green rating for the vehicle with L/100km urban (cold) over 10.9, mpg in the US (urban) over 14.1, manufacturer of Volkswagen, and engine capacity under 3189? ### INPUT CREATE TABLE table_name_68 (green_rating VARCHAR, engine_capacity VARCHAR, manufacturer VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_us_urban VARCHAR) ### OUTPUT SELECT green_rating FROM table_name_68 WHERE l_100km_urban__cold_ > 10.9 AND mpg_us_urban > 14.1 AND manufacturer = "volkswagen" AND engine_capacity < 3189
{ "input": "CREATE TABLE table_name_68 (green_rating VARCHAR, engine_capacity VARCHAR, manufacturer VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_us_urban VARCHAR)", "instruction": "What is the green rating for the vehicle with L/100km urban (cold) over 10.9, mpg in the US (urban) over 14.1, manufacturer of Volkswagen, and engine capacity under 3189?", "output": "SELECT green_rating FROM table_name_68 WHERE l_100km_urban__cold_ > 10.9 AND mpg_us_urban > 14.1 AND manufacturer = \"volkswagen\" AND engine_capacity < 3189" }
### INSTRUCTION Which Total has a Date of 1602, and Greater Doubles smaller than 16? ### INPUT CREATE TABLE table_name_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 16
{ "input": "CREATE TABLE table_name_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR)", "instruction": "Which Total has a Date of 1602, and Greater Doubles smaller than 16?", "output": "SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 16" }
### INSTRUCTION Which Country has a Catalogue number(s) of eredv711? ### INPUT CREATE TABLE table_name_94 (country VARCHAR, catalogue_number_s_ VARCHAR) ### OUTPUT SELECT country FROM table_name_94 WHERE catalogue_number_s_ = "eredv711"
{ "input": "CREATE TABLE table_name_94 (country VARCHAR, catalogue_number_s_ VARCHAR)", "instruction": "Which Country has a Catalogue number(s) of eredv711?", "output": "SELECT country FROM table_name_94 WHERE catalogue_number_s_ = \"eredv711\"" }
### INSTRUCTION How many customers does Steve Johnson support? ### INPUT CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson"
{ "input": "CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)", "instruction": "How many customers does Steve Johnson support?", "output": "SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\"" }
### INSTRUCTION Name the population 1891 for area being 175836 ### INPUT CREATE TABLE table_14925084_1 (population_1891 VARCHAR, area_1891__statute_acres_ VARCHAR) ### OUTPUT SELECT COUNT(population_1891) FROM table_14925084_1 WHERE area_1891__statute_acres_ = 175836
{ "input": "CREATE TABLE table_14925084_1 (population_1891 VARCHAR, area_1891__statute_acres_ VARCHAR)", "instruction": "Name the population 1891 for area being 175836", "output": "SELECT COUNT(population_1891) FROM table_14925084_1 WHERE area_1891__statute_acres_ = 175836" }
### INSTRUCTION WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD? ### INPUT CREATE TABLE table_15621965_18 (no VARCHAR, position VARCHAR, school_club_team VARCHAR) ### OUTPUT SELECT no FROM table_15621965_18 WHERE position = "Guard" AND school_club_team = "Oklahoma State"
{ "input": "CREATE TABLE table_15621965_18 (no VARCHAR, position VARCHAR, school_club_team VARCHAR)", "instruction": "WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD?", "output": "SELECT no FROM table_15621965_18 WHERE position = \"Guard\" AND school_club_team = \"Oklahoma State\"" }
### INSTRUCTION When is the Competition of friendly match with a Result of 2–1? ### INPUT CREATE TABLE table_name_47 (date VARCHAR, competition VARCHAR, result VARCHAR) ### OUTPUT SELECT date FROM table_name_47 WHERE competition = "friendly match" AND result = "2–1"
{ "input": "CREATE TABLE table_name_47 (date VARCHAR, competition VARCHAR, result VARCHAR)", "instruction": "When is the Competition of friendly match with a Result of 2–1?", "output": "SELECT date FROM table_name_47 WHERE competition = \"friendly match\" AND result = \"2–1\"" }
### INSTRUCTION What is the to par for Leonard Thompson from the United States with a place of T6? ### INPUT CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR) ### OUTPUT SELECT to_par FROM table_name_3 WHERE place = "t6" AND country = "united states" AND player = "leonard thompson"
{ "input": "CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)", "instruction": "What is the to par for Leonard Thompson from the United States with a place of T6?", "output": "SELECT to_par FROM table_name_3 WHERE place = \"t6\" AND country = \"united states\" AND player = \"leonard thompson\"" }
### INSTRUCTION What's the original air date of the episode with a broadcast order s04 e01? ### INPUT CREATE TABLE table_1231892_4 (us_air_date VARCHAR, broadcast_order VARCHAR) ### OUTPUT SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = "S04 E01"
{ "input": "CREATE TABLE table_1231892_4 (us_air_date VARCHAR, broadcast_order VARCHAR)", "instruction": "What's the original air date of the episode with a broadcast order s04 e01?", "output": "SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = \"S04 E01\"" }