text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Manager of marty berghammer, and a Finish of 1st involved what lowest year? ### INPUT CREATE TABLE table_name_59 (year INTEGER, manager VARCHAR, finish VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_59 WHERE manager = "marty berghammer" AND finish = "1st"
{ "input": "CREATE TABLE table_name_59 (year INTEGER, manager VARCHAR, finish VARCHAR)", "instruction": "Manager of marty berghammer, and a Finish of 1st involved what lowest year?", "output": "SELECT MIN(year) FROM table_name_59 WHERE manager = \"marty berghammer\" AND finish = \"1st\"" }
### INSTRUCTION What was the 6-4 score's maximum attendance? ### INPUT CREATE TABLE table_27537518_4 (attendance INTEGER, score VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_27537518_4 WHERE score = "6-4"
{ "input": "CREATE TABLE table_27537518_4 (attendance INTEGER, score VARCHAR)", "instruction": "What was the 6-4 score's maximum attendance?", "output": "SELECT MAX(attendance) FROM table_27537518_4 WHERE score = \"6-4\"" }
### INSTRUCTION Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924? ### INPUT CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR) ### OUTPUT SELECT MIN(quantity) FROM table_name_87 WHERE type = "e h4v" AND year_s__of_manufacture = "1920–1924"
{ "input": "CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR)", "instruction": "Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924?", "output": "SELECT MIN(quantity) FROM table_name_87 WHERE type = \"e h4v\" AND year_s__of_manufacture = \"1920–1924\"" }
### INSTRUCTION Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224? ### INPUT CREATE TABLE table_name_19 (name VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR, round VARCHAR) ### OUTPUT SELECT name FROM table_name_19 WHERE overall < 224 AND round < 6 AND pick = 15 AND college = "nebraska"
{ "input": "CREATE TABLE table_name_19 (name VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR, round VARCHAR)", "instruction": "Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?", "output": "SELECT name FROM table_name_19 WHERE overall < 224 AND round < 6 AND pick = 15 AND college = \"nebraska\"" }
### INSTRUCTION What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia? ### INPUT CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia"
{ "input": "CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)", "instruction": "What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?", "output": "SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = \"georgia\"" }
### INSTRUCTION What is Tie No, when Date is 18 February 1956, and when Home Team is Charlton Athletic? ### INPUT CREATE TABLE table_name_10 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR) ### OUTPUT SELECT tie_no FROM table_name_10 WHERE date = "18 february 1956" AND home_team = "charlton athletic"
{ "input": "CREATE TABLE table_name_10 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)", "instruction": "What is Tie No, when Date is 18 February 1956, and when Home Team is Charlton Athletic?", "output": "SELECT tie_no FROM table_name_10 WHERE date = \"18 february 1956\" AND home_team = \"charlton athletic\"" }
### INSTRUCTION What digital channel corresponds to virtual channel 23.2? ### INPUT CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR) ### OUTPUT SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = "23.2"
{ "input": "CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR)", "instruction": "What digital channel corresponds to virtual channel 23.2?", "output": "SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = \"23.2\"" }
### INSTRUCTION Which District has a First elected of 1856, and an Incumbent of william kellogg? ### INPUT CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = "william kellogg"
{ "input": "CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)", "instruction": "Which District has a First elected of 1856, and an Incumbent of william kellogg?", "output": "SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = \"william kellogg\"" }
### INSTRUCTION How many different kinds of clients are supported by the web clients accelerators? ### INPUT CREATE TABLE web_client_accelerator (client VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT client) FROM web_client_accelerator
{ "input": "CREATE TABLE web_client_accelerator (client VARCHAR)", "instruction": "How many different kinds of clients are supported by the web clients accelerators?", "output": "SELECT COUNT(DISTINCT client) FROM web_client_accelerator" }
### INSTRUCTION What building is in Shenzhen, have less than 115 floors, and was completed before 2017? ### INPUT CREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR) ### OUTPUT SELECT name FROM table_name_79 WHERE city = "shenzhen" AND completion < 2017 AND floors < 115
{ "input": "CREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR)", "instruction": "What building is in Shenzhen, have less than 115 floors, and was completed before 2017?", "output": "SELECT name FROM table_name_79 WHERE city = \"shenzhen\" AND completion < 2017 AND floors < 115" }
### INSTRUCTION What is the minimum number of points for teams averaging 1.412? ### INPUT CREATE TABLE table_2865020_5 (points INTEGER, average VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_2865020_5 WHERE average = "1.412"
{ "input": "CREATE TABLE table_2865020_5 (points INTEGER, average VARCHAR)", "instruction": "What is the minimum number of points for teams averaging 1.412?", "output": "SELECT MIN(points) FROM table_2865020_5 WHERE average = \"1.412\"" }
### INSTRUCTION What is the muzzle device with a 1:7 barrel twist and a stock 4th generation? ### INPUT CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR) ### OUTPUT SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = "1:7" AND stock = "4th generation"
{ "input": "CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR)", "instruction": "What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?", "output": "SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = \"1:7\" AND stock = \"4th generation\"" }
### INSTRUCTION What is the highest round of Ian Cole, who played position d from the United States? ### INPUT CREATE TABLE table_name_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR) ### OUTPUT SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole"
{ "input": "CREATE TABLE table_name_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR)", "instruction": "What is the highest round of Ian Cole, who played position d from the United States?", "output": "SELECT MAX(round) FROM table_name_35 WHERE position = \"d\" AND nationality = \"united states\" AND player = \"ian cole\"" }
### INSTRUCTION What is 02-03, when School Year is % Learning In Latvian? ### INPUT CREATE TABLE table_name_33 (school_year VARCHAR) ### OUTPUT SELECT 02 AS _03 FROM table_name_33 WHERE school_year = "% learning in latvian"
{ "input": "CREATE TABLE table_name_33 (school_year VARCHAR)", "instruction": "What is 02-03, when School Year is % Learning In Latvian?", "output": "SELECT 02 AS _03 FROM table_name_33 WHERE school_year = \"% learning in latvian\"" }
### INSTRUCTION Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13? ### INPUT CREATE TABLE table_name_56 (effic INTEGER, avg_g VARCHAR, gp_gs VARCHAR) ### OUTPUT SELECT MAX(effic) FROM table_name_56 WHERE avg_g < 305.6 AND gp_gs = "13-13"
{ "input": "CREATE TABLE table_name_56 (effic INTEGER, avg_g VARCHAR, gp_gs VARCHAR)", "instruction": "Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?", "output": "SELECT MAX(effic) FROM table_name_56 WHERE avg_g < 305.6 AND gp_gs = \"13-13\"" }
### INSTRUCTION What is the total dist with Johnny Murtagh and less than 26 runners? ### INPUT CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR) ### OUTPUT SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = "johnny murtagh" AND runners < 26
{ "input": "CREATE TABLE table_name_12 (dist__f_ INTEGER, jockey VARCHAR, runners VARCHAR)", "instruction": "What is the total dist with Johnny Murtagh and less than 26 runners?", "output": "SELECT SUM(dist__f_) FROM table_name_12 WHERE jockey = \"johnny murtagh\" AND runners < 26" }
### INSTRUCTION How many people attended the away league competition with a date of 22? ### INPUT CREATE TABLE table_name_61 (attendance VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR) ### OUTPUT SELECT attendance FROM table_name_61 WHERE competition = "league" AND venue = "away" AND date = 22
{ "input": "CREATE TABLE table_name_61 (attendance VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)", "instruction": "How many people attended the away league competition with a date of 22?", "output": "SELECT attendance FROM table_name_61 WHERE competition = \"league\" AND venue = \"away\" AND date = 22" }
### INSTRUCTION Which Result F-A has Opponents of rosenborg? ### INPUT CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR) ### OUTPUT SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg"
{ "input": "CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR)", "instruction": "Which Result F-A has Opponents of rosenborg?", "output": "SELECT result_f___a FROM table_name_8 WHERE opponents = \"rosenborg\"" }
### INSTRUCTION Which player plays for the college of manitoba? ### INPUT CREATE TABLE table_name_96 (player VARCHAR, college VARCHAR) ### OUTPUT SELECT player FROM table_name_96 WHERE college = "manitoba"
{ "input": "CREATE TABLE table_name_96 (player VARCHAR, college VARCHAR)", "instruction": "Which player plays for the college of manitoba?", "output": "SELECT player FROM table_name_96 WHERE college = \"manitoba\"" }
### INSTRUCTION What is the A-league with 39 saves? ### INPUT CREATE TABLE table_name_7 (a_league VARCHAR, saves VARCHAR) ### OUTPUT SELECT a_league FROM table_name_7 WHERE saves = 39
{ "input": "CREATE TABLE table_name_7 (a_league VARCHAR, saves VARCHAR)", "instruction": "What is the A-league with 39 saves?", "output": "SELECT a_league FROM table_name_7 WHERE saves = 39" }
### INSTRUCTION What is the total Decile that has a state authority, fairlie area and roll smarter than 206? ### INPUT CREATE TABLE table_name_49 (decile VARCHAR, roll VARCHAR, authority VARCHAR, area VARCHAR) ### OUTPUT SELECT COUNT(decile) FROM table_name_49 WHERE authority = "state" AND area = "fairlie" AND roll < 206
{ "input": "CREATE TABLE table_name_49 (decile VARCHAR, roll VARCHAR, authority VARCHAR, area VARCHAR)", "instruction": "What is the total Decile that has a state authority, fairlie area and roll smarter than 206?", "output": "SELECT COUNT(decile) FROM table_name_49 WHERE authority = \"state\" AND area = \"fairlie\" AND roll < 206" }
### INSTRUCTION What is the sum shot % when the country is finland, and an ends lost is larger than 49? ### INPUT CREATE TABLE table_name_72 (shot__percentage INTEGER, country VARCHAR, ends_lost VARCHAR) ### OUTPUT SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = "finland" AND ends_lost > 49
{ "input": "CREATE TABLE table_name_72 (shot__percentage INTEGER, country VARCHAR, ends_lost VARCHAR)", "instruction": "What is the sum shot % when the country is finland, and an ends lost is larger than 49?", "output": "SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = \"finland\" AND ends_lost > 49" }
### INSTRUCTION What circuit was after round 2 in Victoria? ### INPUT CREATE TABLE table_name_64 (circuit VARCHAR, round VARCHAR, state_territory VARCHAR) ### OUTPUT SELECT circuit FROM table_name_64 WHERE round > 2 AND state_territory = "victoria"
{ "input": "CREATE TABLE table_name_64 (circuit VARCHAR, round VARCHAR, state_territory VARCHAR)", "instruction": "What circuit was after round 2 in Victoria?", "output": "SELECT circuit FROM table_name_64 WHERE round > 2 AND state_territory = \"victoria\"" }
### INSTRUCTION what is the image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007? ### INPUT CREATE TABLE table_name_32 (image_quality VARCHAR, date VARCHAR, multiple_sessions VARCHAR, authentication VARCHAR) ### OUTPUT SELECT image_quality FROM table_name_32 WHERE multiple_sessions = "x" AND authentication = "✓" AND date = "may 15, 2007"
{ "input": "CREATE TABLE table_name_32 (image_quality VARCHAR, date VARCHAR, multiple_sessions VARCHAR, authentication VARCHAR)", "instruction": "what is the image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007?", "output": "SELECT image_quality FROM table_name_32 WHERE multiple_sessions = \"x\" AND authentication = \"✓\" AND date = \"may 15, 2007\"" }
### INSTRUCTION How many first elected years are provided for Thomas P. Moore? ### INPUT CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = "Thomas P. Moore"
{ "input": "CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR)", "instruction": "How many first elected years are provided for Thomas P. Moore?", "output": "SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = \"Thomas P. Moore\"" }
### INSTRUCTION What is Home, when Ground is Humber College North, and when Time is 15:00? ### INPUT CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR) ### OUTPUT SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00"
{ "input": "CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR)", "instruction": "What is Home, when Ground is Humber College North, and when Time is 15:00?", "output": "SELECT home FROM table_name_58 WHERE ground = \"humber college north\" AND time = \"15:00\"" }
### INSTRUCTION which Authority has a coed school with a decile greater than 4, with a 150 roll? ### INPUT CREATE TABLE table_name_49 (authority VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR) ### OUTPUT SELECT authority FROM table_name_49 WHERE gender = "coed" AND decile > 4 AND roll = "150"
{ "input": "CREATE TABLE table_name_49 (authority VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR)", "instruction": "which Authority has a coed school with a decile greater than 4, with a 150 roll?", "output": "SELECT authority FROM table_name_49 WHERE gender = \"coed\" AND decile > 4 AND roll = \"150\"" }
### INSTRUCTION Show the names and genders of players with a coach starting after 2011. ### INPUT CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR) ### OUTPUT SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011
{ "input": "CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)", "instruction": "Show the names and genders of players with a coach starting after 2011.", "output": "SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011" }
### INSTRUCTION What series has dan povenmire as the director, with museum scream as the title? ### INPUT CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR) ### OUTPUT SELECT series FROM table_name_46 WHERE director = "dan povenmire" AND title = "museum scream"
{ "input": "CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR)", "instruction": "What series has dan povenmire as the director, with museum scream as the title?", "output": "SELECT series FROM table_name_46 WHERE director = \"dan povenmire\" AND title = \"museum scream\"" }
### INSTRUCTION Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.57? ### INPUT ### OUTPUT SELECT SUM(_100s) FROM table_name_41 WHERE team = "deccan chargers" AND matches = 8 AND average > 35.57
{ "input": "", "instruction": "Can you tell me the sum of 100s that has the Team of deccan chargers, and the Match of 8, and the Average larger than 35.57?", "output": "SELECT SUM(_100s) FROM table_name_41 WHERE team = \"deccan chargers\" AND matches = 8 AND average > 35.57" }
### INSTRUCTION Name the total number of median income for population 2006 for 365540 ### INPUT CREATE TABLE table_151994_1 (median_monthly_per_capita___labour_force_income__hkd_ VARCHAR, population__2006_est_ VARCHAR) ### OUTPUT SELECT COUNT(median_monthly_per_capita___labour_force_income__hkd_) FROM table_151994_1 WHERE population__2006_est_ = 365540
{ "input": "CREATE TABLE table_151994_1 (median_monthly_per_capita___labour_force_income__hkd_ VARCHAR, population__2006_est_ VARCHAR)", "instruction": "Name the total number of median income for population 2006 for 365540", "output": "SELECT COUNT(median_monthly_per_capita___labour_force_income__hkd_) FROM table_151994_1 WHERE population__2006_est_ = 365540" }
### INSTRUCTION What year did the Cosworth v8 engine participate in? ### INPUT CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_37 WHERE engine = "cosworth v8"
{ "input": "CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR)", "instruction": "What year did the Cosworth v8 engine participate in?", "output": "SELECT AVG(year) FROM table_name_37 WHERE engine = \"cosworth v8\"" }
### INSTRUCTION What is the average rank Finland, which has 1 bronze, more than 1 silver, and less than 0 gold, has? ### INPUT CREATE TABLE table_name_6 (rank INTEGER, gold VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR) ### OUTPUT SELECT AVG(rank) FROM table_name_6 WHERE bronze = 1 AND silver > 1 AND nation = "finland" AND gold < 0
{ "input": "CREATE TABLE table_name_6 (rank INTEGER, gold VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)", "instruction": "What is the average rank Finland, which has 1 bronze, more than 1 silver, and less than 0 gold, has?", "output": "SELECT AVG(rank) FROM table_name_6 WHERE bronze = 1 AND silver > 1 AND nation = \"finland\" AND gold < 0" }
### INSTRUCTION What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent? ### INPUT CREATE TABLE table_name_19 (location VARCHAR, method VARCHAR, opponent VARCHAR) ### OUTPUT SELECT location FROM table_name_19 WHERE method = "submission (armbar)" AND opponent = "mayra conde"
{ "input": "CREATE TABLE table_name_19 (location VARCHAR, method VARCHAR, opponent VARCHAR)", "instruction": "What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?", "output": "SELECT location FROM table_name_19 WHERE method = \"submission (armbar)\" AND opponent = \"mayra conde\"" }
### INSTRUCTION Find the the name of the customers who have a loan with amount more than 3000. ### INPUT CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) ### OUTPUT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000
{ "input": "CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)", "instruction": "Find the the name of the customers who have a loan with amount more than 3000.", "output": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000" }
### INSTRUCTION Find the name of the user who gives the most reviews. ### INPUT CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR) ### OUTPUT SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)", "instruction": "Find the name of the user who gives the most reviews.", "output": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION How many players hometown was Cincinnati, Ohio? ### INPUT CREATE TABLE table_11677691_4 (player VARCHAR, hometown VARCHAR) ### OUTPUT SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio"
{ "input": "CREATE TABLE table_11677691_4 (player VARCHAR, hometown VARCHAR)", "instruction": "How many players hometown was Cincinnati, Ohio?", "output": "SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = \"Cincinnati, Ohio\"" }
### INSTRUCTION How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer? ### INPUT CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR) ### OUTPUT SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = "fokker"
{ "input": "CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR)", "instruction": "How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?", "output": "SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = \"fokker\"" }
### INSTRUCTION What is total number of years that has genre of first-person shooter? ### INPUT CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_50 WHERE genre = "first-person shooter"
{ "input": "CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR)", "instruction": "What is total number of years that has genre of first-person shooter?", "output": "SELECT SUM(year) FROM table_name_50 WHERE genre = \"first-person shooter\"" }
### INSTRUCTION Tell me the total number of top 25 for wins less than 1 and cuts made of 22 ### INPUT CREATE TABLE table_name_59 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR) ### OUTPUT SELECT COUNT(top_25) FROM table_name_59 WHERE cuts_made = 22 AND wins < 1
{ "input": "CREATE TABLE table_name_59 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)", "instruction": "Tell me the total number of top 25 for wins less than 1 and cuts made of 22", "output": "SELECT COUNT(top_25) FROM table_name_59 WHERE cuts_made = 22 AND wins < 1" }
### INSTRUCTION How many events for orville moody, ranking below 3? ### INPUT CREATE TABLE table_name_67 (events INTEGER, rank VARCHAR, player VARCHAR) ### OUTPUT SELECT SUM(events) FROM table_name_67 WHERE rank > 3 AND player = "orville moody"
{ "input": "CREATE TABLE table_name_67 (events INTEGER, rank VARCHAR, player VARCHAR)", "instruction": "How many events for orville moody, ranking below 3?", "output": "SELECT SUM(events) FROM table_name_67 WHERE rank > 3 AND player = \"orville moody\"" }
### INSTRUCTION What is the mean round number for center position when the pick number is less than 23? ### INPUT CREATE TABLE table_name_39 (round INTEGER, position VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_39 WHERE position = "center" AND pick__number < 23
{ "input": "CREATE TABLE table_name_39 (round INTEGER, position VARCHAR, pick__number VARCHAR)", "instruction": "What is the mean round number for center position when the pick number is less than 23?", "output": "SELECT AVG(round) FROM table_name_39 WHERE position = \"center\" AND pick__number < 23" }
### INSTRUCTION What was the average ranking of Saudi Arabia in the years of 2000–? ### INPUT CREATE TABLE table_name_53 (ranking INTEGER, nationality VARCHAR, years VARCHAR) ### OUTPUT SELECT AVG(ranking) FROM table_name_53 WHERE nationality = "saudi arabia" AND years = "2000–"
{ "input": "CREATE TABLE table_name_53 (ranking INTEGER, nationality VARCHAR, years VARCHAR)", "instruction": "What was the average ranking of Saudi Arabia in the years of 2000–?", "output": "SELECT AVG(ranking) FROM table_name_53 WHERE nationality = \"saudi arabia\" AND years = \"2000–\"" }
### INSTRUCTION Which college did Dean Kirkland go to ### INPUT CREATE TABLE table_15353123_1 (college VARCHAR, player VARCHAR) ### OUTPUT SELECT college FROM table_15353123_1 WHERE player = "Dean Kirkland"
{ "input": "CREATE TABLE table_15353123_1 (college VARCHAR, player VARCHAR)", "instruction": "Which college did Dean Kirkland go to", "output": "SELECT college FROM table_15353123_1 WHERE player = \"Dean Kirkland\"" }
### INSTRUCTION How many wins for bruce fleisher with over 31 events? ### INPUT CREATE TABLE table_name_16 (wins INTEGER, player VARCHAR, events VARCHAR) ### OUTPUT SELECT AVG(wins) FROM table_name_16 WHERE player = "bruce fleisher" AND events > 31
{ "input": "CREATE TABLE table_name_16 (wins INTEGER, player VARCHAR, events VARCHAR)", "instruction": "How many wins for bruce fleisher with over 31 events?", "output": "SELECT AVG(wins) FROM table_name_16 WHERE player = \"bruce fleisher\" AND events > 31" }
### INSTRUCTION Which team was in a game with a record of 15-63? ### INPUT CREATE TABLE table_13619053_9 (team VARCHAR, record VARCHAR) ### OUTPUT SELECT team FROM table_13619053_9 WHERE record = "15-63"
{ "input": "CREATE TABLE table_13619053_9 (team VARCHAR, record VARCHAR)", "instruction": "Which team was in a game with a record of 15-63?", "output": "SELECT team FROM table_13619053_9 WHERE record = \"15-63\"" }
### INSTRUCTION Who wrote the album recorded at funhouse studios with a time of 3:27? ### INPUT CREATE TABLE table_name_64 (writer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR) ### OUTPUT SELECT writer_s_ FROM table_name_64 WHERE recorded_at = "funhouse studios" AND time = "3:27"
{ "input": "CREATE TABLE table_name_64 (writer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR)", "instruction": "Who wrote the album recorded at funhouse studios with a time of 3:27?", "output": "SELECT writer_s_ FROM table_name_64 WHERE recorded_at = \"funhouse studios\" AND time = \"3:27\"" }
### INSTRUCTION What category was al pacino nominated for in the film, glengarry glen ross? ### INPUT CREATE TABLE table_name_51 (category VARCHAR, actor_actress VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT category FROM table_name_51 WHERE actor_actress = "al pacino" AND film_title_used_in_nomination = "glengarry glen ross"
{ "input": "CREATE TABLE table_name_51 (category VARCHAR, actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "What category was al pacino nominated for in the film, glengarry glen ross?", "output": "SELECT category FROM table_name_51 WHERE actor_actress = \"al pacino\" AND film_title_used_in_nomination = \"glengarry glen ross\"" }
### INSTRUCTION List all of the ids for left-footed players with a height between 180cm and 190cm. ### INPUT CREATE TABLE Player_Attributes (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR); CREATE TABLE Player (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR) ### OUTPUT SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = "left"
{ "input": "CREATE TABLE Player_Attributes (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR); CREATE TABLE Player (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR)", "instruction": "List all of the ids for left-footed players with a height between 180cm and 190cm.", "output": "SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = \"left\"" }
### INSTRUCTION Show the names and heights of buildings with at least two institutions founded after 1880. ### INPUT CREATE TABLE building (name VARCHAR, height_feet VARCHAR, building_id VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded INTEGER) ### OUTPUT SELECT T1.name, T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE building (name VARCHAR, height_feet VARCHAR, building_id VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded INTEGER)", "instruction": "Show the names and heights of buildings with at least two institutions founded after 1880.", "output": "SELECT T1.name, T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING COUNT(*) >= 2" }
### INSTRUCTION How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414? ### INPUT CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR) ### OUTPUT SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = "total northern villages" AND population__2006_ > 11414
{ "input": "CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR)", "instruction": "How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?", "output": "SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = \"total northern villages\" AND population__2006_ > 11414" }
### INSTRUCTION Which Visiting Team is on december 23? ### INPUT CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) ### OUTPUT SELECT visiting_team FROM table_name_59 WHERE date = "december 23"
{ "input": "CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)", "instruction": "Which Visiting Team is on december 23?", "output": "SELECT visiting_team FROM table_name_59 WHERE date = \"december 23\"" }
### INSTRUCTION Who was the home team in the game played at arden street oval? ### INPUT CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval"
{ "input": "CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)", "instruction": "Who was the home team in the game played at arden street oval?", "output": "SELECT home_team AS score FROM table_name_42 WHERE venue = \"arden street oval\"" }
### INSTRUCTION What is the result of the game at Bishop Kearney Field on August 2? ### INPUT CREATE TABLE table_name_24 (result VARCHAR, field VARCHAR, date VARCHAR) ### OUTPUT SELECT result FROM table_name_24 WHERE field = "bishop kearney field" AND date = "august 2"
{ "input": "CREATE TABLE table_name_24 (result VARCHAR, field VARCHAR, date VARCHAR)", "instruction": "What is the result of the game at Bishop Kearney Field on August 2?", "output": "SELECT result FROM table_name_24 WHERE field = \"bishop kearney field\" AND date = \"august 2\"" }
### INSTRUCTION How many places associated with latitude 48.247662? ### INPUT CREATE TABLE table_18600760_13 (ansi_code VARCHAR, latitude VARCHAR) ### OUTPUT SELECT COUNT(ansi_code) FROM table_18600760_13 WHERE latitude = "48.247662"
{ "input": "CREATE TABLE table_18600760_13 (ansi_code VARCHAR, latitude VARCHAR)", "instruction": "How many places associated with latitude 48.247662?", "output": "SELECT COUNT(ansi_code) FROM table_18600760_13 WHERE latitude = \"48.247662\"" }
### INSTRUCTION What is the lowest goal difference a club with 61 goals against and less than 11 draws has? ### INPUT CREATE TABLE table_name_94 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR) ### OUTPUT SELECT MIN(goal_difference) FROM table_name_94 WHERE goals_against = 61 AND draws < 11
{ "input": "CREATE TABLE table_name_94 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR)", "instruction": "What is the lowest goal difference a club with 61 goals against and less than 11 draws has?", "output": "SELECT MIN(goal_difference) FROM table_name_94 WHERE goals_against = 61 AND draws < 11" }
### INSTRUCTION What was the score of the game at the Chicago Stadium? ### INPUT CREATE TABLE table_name_67 (score VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT score FROM table_name_67 WHERE location_attendance = "chicago stadium"
{ "input": "CREATE TABLE table_name_67 (score VARCHAR, location_attendance VARCHAR)", "instruction": "What was the score of the game at the Chicago Stadium?", "output": "SELECT score FROM table_name_67 WHERE location_attendance = \"chicago stadium\"" }
### INSTRUCTION Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007? ### INPUT CREATE TABLE table_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR) ### OUTPUT SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-2007"
{ "input": "CREATE TABLE table_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR)", "instruction": "Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007?", "output": "SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = \"Alan Degroote\" AND gorham_principal = \"Paul Lahue\" AND year = \"2006-2007\"" }
### INSTRUCTION What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired? ### INPUT CREATE TABLE table_name_2 (year VARCHAR, numbers__quantity_ordered_ VARCHAR, fuel_propulsion VARCHAR, length VARCHAR) ### OUTPUT SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = "diesel" AND length = "40'" AND numbers__quantity_ordered_ = "3701-3729 (29 buses)"
{ "input": "CREATE TABLE table_name_2 (year VARCHAR, numbers__quantity_ordered_ VARCHAR, fuel_propulsion VARCHAR, length VARCHAR)", "instruction": "What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?", "output": "SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = \"diesel\" AND length = \"40'\" AND numbers__quantity_ordered_ = \"3701-3729 (29 buses)\"" }
### INSTRUCTION Tell me the total number of years for lady cecily waynflete and opera house, kennedy center ### INPUT CREATE TABLE table_name_51 (year VARCHAR, role VARCHAR, theatre VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_51 WHERE role = "lady cecily waynflete" AND theatre = "opera house, kennedy center"
{ "input": "CREATE TABLE table_name_51 (year VARCHAR, role VARCHAR, theatre VARCHAR)", "instruction": "Tell me the total number of years for lady cecily waynflete and opera house, kennedy center", "output": "SELECT COUNT(year) FROM table_name_51 WHERE role = \"lady cecily waynflete\" AND theatre = \"opera house, kennedy center\"" }
### INSTRUCTION What was the score of the friendly match at Amman on February 14, 2006? ### INPUT CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) ### OUTPUT SELECT score FROM table_name_72 WHERE venue = "amman" AND competition = "friendly" AND date = "february 14, 2006"
{ "input": "CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)", "instruction": "What was the score of the friendly match at Amman on February 14, 2006?", "output": "SELECT score FROM table_name_72 WHERE venue = \"amman\" AND competition = \"friendly\" AND date = \"february 14, 2006\"" }
### INSTRUCTION When gaoliang 高涼 is the commandery what is the commandery capital? ### INPUT CREATE TABLE table_278229_1 (commandery VARCHAR) ### OUTPUT SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Gaoliang 高涼"
{ "input": "CREATE TABLE table_278229_1 (commandery VARCHAR)", "instruction": "When gaoliang 高涼 is the commandery what is the commandery capital?", "output": "SELECT commandery AS capital FROM table_278229_1 WHERE commandery = \"Gaoliang 高涼\"" }
### INSTRUCTION Find the name and college of students whose decisions are yes in the tryout. ### INPUT CREATE TABLE tryout (cName VARCHAR, pID VARCHAR, decision VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) ### OUTPUT SELECT T1.pName, T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
{ "input": "CREATE TABLE tryout (cName VARCHAR, pID VARCHAR, decision VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)", "instruction": "Find the name and college of students whose decisions are yes in the tryout.", "output": "SELECT T1.pName, T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" }
### INSTRUCTION When melbourne was the home team what was their score? ### INPUT CREATE TABLE table_name_46 (home_team VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"
{ "input": "CREATE TABLE table_name_46 (home_team VARCHAR)", "instruction": "When melbourne was the home team what was their score?", "output": "SELECT home_team AS score FROM table_name_46 WHERE home_team = \"melbourne\"" }
### INSTRUCTION What genre is Star Plus from India? ### INPUT CREATE TABLE table_name_50 (genre VARCHAR, origin_of_programming VARCHAR, network VARCHAR) ### OUTPUT SELECT genre FROM table_name_50 WHERE origin_of_programming = "india" AND network = "star plus"
{ "input": "CREATE TABLE table_name_50 (genre VARCHAR, origin_of_programming VARCHAR, network VARCHAR)", "instruction": "What genre is Star Plus from India?", "output": "SELECT genre FROM table_name_50 WHERE origin_of_programming = \"india\" AND network = \"star plus\"" }
### INSTRUCTION What is the id and name of the department store that has both marketing and managing department? ### INPUT CREATE TABLE department_stores (dept_store_id VARCHAR, store_name VARCHAR); CREATE TABLE departments (dept_store_id VARCHAR, department_name VARCHAR) ### OUTPUT SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = "marketing" INTERSECT SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = "managing"
{ "input": "CREATE TABLE department_stores (dept_store_id VARCHAR, store_name VARCHAR); CREATE TABLE departments (dept_store_id VARCHAR, department_name VARCHAR)", "instruction": "What is the id and name of the department store that has both marketing and managing department?", "output": "SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"marketing\" INTERSECT SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"managing\"" }
### INSTRUCTION What is the lowest Population, when Per Capita Income is "$16,330"? ### INPUT CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR) ### OUTPUT SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = "$16,330"
{ "input": "CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR)", "instruction": "What is the lowest Population, when Per Capita Income is \"$16,330\"?", "output": "SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = \"$16,330\"" }
### INSTRUCTION What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5? ### INPUT CREATE TABLE table_name_20 (co_2_g_km VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, fuel_type VARCHAR, manufacturer VARCHAR) ### OUTPUT SELECT COUNT(co_2_g_km) FROM table_name_20 WHERE fuel_type = "diesel" AND manufacturer = "fiat" AND l_100km_urban__cold_ > 6.3 AND mpg_uk_combined = 43.5
{ "input": "CREATE TABLE table_name_20 (co_2_g_km VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, fuel_type VARCHAR, manufacturer VARCHAR)", "instruction": "What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5?", "output": "SELECT COUNT(co_2_g_km) FROM table_name_20 WHERE fuel_type = \"diesel\" AND manufacturer = \"fiat\" AND l_100km_urban__cold_ > 6.3 AND mpg_uk_combined = 43.5" }
### INSTRUCTION What is the total for 1984 for the team with 100 points total and more than 3 seasons? ### INPUT CREATE TABLE table_name_11 (total_points VARCHAR, seasons VARCHAR) ### OUTPUT SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 3
{ "input": "CREATE TABLE table_name_11 (total_points VARCHAR, seasons VARCHAR)", "instruction": "What is the total for 1984 for the team with 100 points total and more than 3 seasons?", "output": "SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 3" }
### INSTRUCTION How many townships are there in the region with 376 village groups? ### INPUT CREATE TABLE table_19457_1 (town_ships INTEGER, village_groups VARCHAR) ### OUTPUT SELECT MAX(town_ships) FROM table_19457_1 WHERE village_groups = 376
{ "input": "CREATE TABLE table_19457_1 (town_ships INTEGER, village_groups VARCHAR)", "instruction": "How many townships are there in the region with 376 village groups?", "output": "SELECT MAX(town_ships) FROM table_19457_1 WHERE village_groups = 376" }
### INSTRUCTION What is the lowest points when the ranking is 1st? ### INPUT CREATE TABLE table_name_60 (points INTEGER, rank VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_name_60 WHERE rank = "1st"
{ "input": "CREATE TABLE table_name_60 (points INTEGER, rank VARCHAR)", "instruction": "What is the lowest points when the ranking is 1st?", "output": "SELECT MIN(points) FROM table_name_60 WHERE rank = \"1st\"" }
### INSTRUCTION What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R? ### INPUT CREATE TABLE table_name_72 (Id VARCHAR) ### OUTPUT SELECT 1997 FROM table_name_72 WHERE 1999 = "1r" AND 1992 = "qf" AND 1995 = "1r"
{ "input": "CREATE TABLE table_name_72 (Id VARCHAR)", "instruction": "What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?", "output": "SELECT 1997 FROM table_name_72 WHERE 1999 = \"1r\" AND 1992 = \"qf\" AND 1995 = \"1r\"" }
### INSTRUCTION If first elected on 2003 (appt.), when was the term limited? ### INPUT CREATE TABLE table_26131768_4 (term_limited INTEGER, first_elected VARCHAR) ### OUTPUT SELECT MIN(term_limited) FROM table_26131768_4 WHERE first_elected = "2003 (Appt.)"
{ "input": "CREATE TABLE table_26131768_4 (term_limited INTEGER, first_elected VARCHAR)", "instruction": "If first elected on 2003 (appt.), when was the term limited?", "output": "SELECT MIN(term_limited) FROM table_26131768_4 WHERE first_elected = \"2003 (Appt.)\"" }
### INSTRUCTION What location was fábio maldonado the opponent at? ### INPUT CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado"
{ "input": "CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR)", "instruction": "What location was fábio maldonado the opponent at?", "output": "SELECT location FROM table_name_26 WHERE opponent = \"fábio maldonado\"" }
### INSTRUCTION What was the founding of navy blue? ### INPUT CREATE TABLE table_11604804_5 (founded VARCHAR, color VARCHAR) ### OUTPUT SELECT founded FROM table_11604804_5 WHERE color = "Navy Blue"
{ "input": "CREATE TABLE table_11604804_5 (founded VARCHAR, color VARCHAR)", "instruction": "What was the founding of navy blue?", "output": "SELECT founded FROM table_11604804_5 WHERE color = \"Navy Blue\"" }
### INSTRUCTION How many male (sex is M) students have class senator votes in the fall election cycle? ### INPUT CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR); CREATE TABLE STUDENT (StuID VARCHAR, Sex VARCHAR) ### OUTPUT SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall"
{ "input": "CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR); CREATE TABLE STUDENT (StuID VARCHAR, Sex VARCHAR)", "instruction": "How many male (sex is M) students have class senator votes in the fall election cycle?", "output": "SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = \"M\" AND T2.Election_Cycle = \"Fall\"" }
### INSTRUCTION What is the Dismissals with a Venue with source: cricinfo.com? ### INPUT CREATE TABLE table_name_43 (dismissals VARCHAR, venue VARCHAR) ### OUTPUT SELECT dismissals FROM table_name_43 WHERE venue = "source: cricinfo.com"
{ "input": "CREATE TABLE table_name_43 (dismissals VARCHAR, venue VARCHAR)", "instruction": "What is the Dismissals with a Venue with source: cricinfo.com?", "output": "SELECT dismissals FROM table_name_43 WHERE venue = \"source: cricinfo.com\"" }
### INSTRUCTION When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669? ### INPUT CREATE TABLE table_name_23 (first_time_as_hc_climb VARCHAR, height__m_ VARCHAR, most_recent VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR) ### OUTPUT SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = "1669"
{ "input": "CREATE TABLE table_name_23 (first_time_as_hc_climb VARCHAR, height__m_ VARCHAR, most_recent VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR)", "instruction": "When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669?", "output": "SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = \"1669\"" }
### INSTRUCTION what's the party with candidates  jerry weller (r) 51.77% clem balanoff (d) 48.23% ### INPUT CREATE TABLE table_1341472_15 (party VARCHAR, candidates VARCHAR) ### OUTPUT SELECT party FROM table_1341472_15 WHERE candidates = "Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%"
{ "input": "CREATE TABLE table_1341472_15 (party VARCHAR, candidates VARCHAR)", "instruction": "what's the party with candidates  jerry weller (r) 51.77% clem balanoff (d) 48.23%", "output": "SELECT party FROM table_1341472_15 WHERE candidates = \"Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%\"" }
### INSTRUCTION How many times is the accession number xp_001843282? ### INPUT CREATE TABLE table_26708105_5 (common_name VARCHAR, accession_number VARCHAR) ### OUTPUT SELECT COUNT(common_name) FROM table_26708105_5 WHERE accession_number = "XP_001843282"
{ "input": "CREATE TABLE table_26708105_5 (common_name VARCHAR, accession_number VARCHAR)", "instruction": "How many times is the accession number xp_001843282?", "output": "SELECT COUNT(common_name) FROM table_26708105_5 WHERE accession_number = \"XP_001843282\"" }
### INSTRUCTION How many provinces have evening gown score of 8.49 ### INPUT CREATE TABLE table_15081939_4 (province VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT COUNT(province) FROM table_15081939_4 WHERE evening_gown = "8.49"
{ "input": "CREATE TABLE table_15081939_4 (province VARCHAR, evening_gown VARCHAR)", "instruction": "How many provinces have evening gown score of 8.49", "output": "SELECT COUNT(province) FROM table_15081939_4 WHERE evening_gown = \"8.49\"" }
### INSTRUCTION what is the year when the citation is honor and the author is kadir nelson? ### INPUT CREATE TABLE table_name_37 (year INTEGER, citation VARCHAR, author VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_37 WHERE citation = "honor" AND author = "kadir nelson"
{ "input": "CREATE TABLE table_name_37 (year INTEGER, citation VARCHAR, author VARCHAR)", "instruction": "what is the year when the citation is honor and the author is kadir nelson?", "output": "SELECT SUM(year) FROM table_name_37 WHERE citation = \"honor\" AND author = \"kadir nelson\"" }
### INSTRUCTION Tell me the catalog for date larger than 2004 ### INPUT CREATE TABLE table_name_72 (catalog VARCHAR, date INTEGER) ### OUTPUT SELECT catalog FROM table_name_72 WHERE date > 2004
{ "input": "CREATE TABLE table_name_72 (catalog VARCHAR, date INTEGER)", "instruction": "Tell me the catalog for date larger than 2004", "output": "SELECT catalog FROM table_name_72 WHERE date > 2004" }
### INSTRUCTION What is Tournament, when Moves is "37", and when Result is "½–½"? ### INPUT CREATE TABLE table_name_50 (tournament VARCHAR, moves VARCHAR, result VARCHAR) ### OUTPUT SELECT tournament FROM table_name_50 WHERE moves = 37 AND result = "½–½"
{ "input": "CREATE TABLE table_name_50 (tournament VARCHAR, moves VARCHAR, result VARCHAR)", "instruction": "What is Tournament, when Moves is \"37\", and when Result is \"½–½\"?", "output": "SELECT tournament FROM table_name_50 WHERE moves = 37 AND result = \"½–½\"" }
### INSTRUCTION What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0? ### INPUT CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR) ### OUTPUT SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-0"
{ "input": "CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR)", "instruction": "What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?", "output": "SELECT date FROM table_name_7 WHERE site = \"memorial stadium • minneapolis, mn\" AND attendance = \"20,000\" AND result = \"w52-0\"" }
### INSTRUCTION What is the suriname with a 16.8% brokopondo? ### INPUT CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR) ### OUTPUT SELECT suriname FROM table_name_62 WHERE brokopondo = "16.8%"
{ "input": "CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR)", "instruction": "What is the suriname with a 16.8% brokopondo?", "output": "SELECT suriname FROM table_name_62 WHERE brokopondo = \"16.8%\"" }
### INSTRUCTION What is the Name with a Year with freshman, and a Home Town with los angeles, ca, and a Height of 6–4? ### INPUT CREATE TABLE table_name_90 (name VARCHAR, height VARCHAR, year VARCHAR, home_town VARCHAR) ### OUTPUT SELECT name FROM table_name_90 WHERE year = "freshman" AND home_town = "los angeles, ca" AND height = "6–4"
{ "input": "CREATE TABLE table_name_90 (name VARCHAR, height VARCHAR, year VARCHAR, home_town VARCHAR)", "instruction": "What is the Name with a Year with freshman, and a Home Town with los angeles, ca, and a Height of 6–4?", "output": "SELECT name FROM table_name_90 WHERE year = \"freshman\" AND home_town = \"los angeles, ca\" AND height = \"6–4\"" }
### INSTRUCTION What is the score of the game that had a visiting team of Edmonton? ### INPUT CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR) ### OUTPUT SELECT score FROM table_name_93 WHERE visitor = "edmonton"
{ "input": "CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR)", "instruction": "What is the score of the game that had a visiting team of Edmonton?", "output": "SELECT score FROM table_name_93 WHERE visitor = \"edmonton\"" }
### INSTRUCTION How long has Mel Daniels been playing? ### INPUT CREATE TABLE table_22719663_3 (experience VARCHAR, name VARCHAR) ### OUTPUT SELECT experience FROM table_22719663_3 WHERE name = "Mel Daniels"
{ "input": "CREATE TABLE table_22719663_3 (experience VARCHAR, name VARCHAR)", "instruction": "How long has Mel Daniels been playing?", "output": "SELECT experience FROM table_22719663_3 WHERE name = \"Mel Daniels\"" }
### INSTRUCTION How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42? ### INPUT CREATE TABLE table_name_66 (body_width_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR) ### OUTPUT SELECT SUM(body_width_mm) FROM table_name_66 WHERE part_number = "tsop40/44" AND body_length_mm < 18.42
{ "input": "CREATE TABLE table_name_66 (body_width_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)", "instruction": "How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?", "output": "SELECT SUM(body_width_mm) FROM table_name_66 WHERE part_number = \"tsop40/44\" AND body_length_mm < 18.42" }
### INSTRUCTION Which parts have more than 2 faults? Show the part name and id. ### INPUT CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR) ### OUTPUT SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2
{ "input": "CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR)", "instruction": "Which parts have more than 2 faults? Show the part name and id.", "output": "SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2" }
### INSTRUCTION Which album had a release of heavenly (hvn95)? ### INPUT CREATE TABLE table_name_56 (album VARCHAR, release_info VARCHAR) ### OUTPUT SELECT album FROM table_name_56 WHERE release_info = "heavenly (hvn95)"
{ "input": "CREATE TABLE table_name_56 (album VARCHAR, release_info VARCHAR)", "instruction": "Which album had a release of heavenly (hvn95)?", "output": "SELECT album FROM table_name_56 WHERE release_info = \"heavenly (hvn95)\"" }
### INSTRUCTION Name the guest 2 for colin murray 6 april ### INPUT CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR) ### OUTPUT SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April"
{ "input": "CREATE TABLE table_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR)", "instruction": "Name the guest 2 for colin murray 6 april", "output": "SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = \"Colin Murray\" AND date = \"6 April\"" }
### INSTRUCTION Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0? ### INPUT CREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR) ### OUTPUT SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0"
{ "input": "CREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR)", "instruction": "Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?", "output": "SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = \"4-0-0\"" }
### INSTRUCTION What is the average sales of the journals that have an editor whose work type is 'Photo'? ### INPUT CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR) ### OUTPUT SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'
{ "input": "CREATE TABLE journal_committee (journal_ID VARCHAR, work_type VARCHAR); CREATE TABLE journal (sales INTEGER, journal_ID VARCHAR)", "instruction": "What is the average sales of the journals that have an editor whose work type is 'Photo'?", "output": "SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'" }
### INSTRUCTION Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5? ### INPUT CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR) ### OUTPUT SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5
{ "input": "CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR)", "instruction": "Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?", "output": "SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = \"england\" AND games < 5" }
### INSTRUCTION Which club has a League of american basketball association, and a Venue of tba? ### INPUT CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR) ### OUTPUT SELECT club FROM table_name_86 WHERE league = "american basketball association" AND venue = "tba"
{ "input": "CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR)", "instruction": "Which club has a League of american basketball association, and a Venue of tba?", "output": "SELECT club FROM table_name_86 WHERE league = \"american basketball association\" AND venue = \"tba\"" }
### INSTRUCTION What was the lowest number of Total Foreign-born (millions) people, when the number of people Born in a non EU state (millions) was 6.415? ### INPUT CREATE TABLE table_name_38 (total_foreign_born__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR) ### OUTPUT SELECT MIN(total_foreign_born__millions_) FROM table_name_38 WHERE born_in_a_non_eu_state__millions_ = 6.415
{ "input": "CREATE TABLE table_name_38 (total_foreign_born__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR)", "instruction": "What was the lowest number of Total Foreign-born (millions) people, when the number of people Born in a non EU state (millions) was 6.415?", "output": "SELECT MIN(total_foreign_born__millions_) FROM table_name_38 WHERE born_in_a_non_eu_state__millions_ = 6.415" }
### INSTRUCTION Which HQ is associated with a number of employees of 100? ### INPUT CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR) ### OUTPUT SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100
{ "input": "CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR)", "instruction": "Which HQ is associated with a number of employees of 100?", "output": "SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100" }
### INSTRUCTION Which band serves darwin for commercial purpose? ### INPUT CREATE TABLE table_name_61 (band VARCHAR, area_served VARCHAR, purpose VARCHAR) ### OUTPUT SELECT band FROM table_name_61 WHERE area_served = "darwin" AND purpose = "commercial"
{ "input": "CREATE TABLE table_name_61 (band VARCHAR, area_served VARCHAR, purpose VARCHAR)", "instruction": "Which band serves darwin for commercial purpose?", "output": "SELECT band FROM table_name_61 WHERE area_served = \"darwin\" AND purpose = \"commercial\"" }