output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT moving_to FROM table_name_56 WHERE transfer_fee = "£300,000"
CREATE TABLE table_name_56 (moving_to VARCHAR, transfer_fee VARCHAR), What is the item "Moving to", when the Transfer fee is £300,000?
SELECT country FROM table_name_94 WHERE transfer_fee = "loan" AND name = "lynch"
CREATE TABLE table_name_94 (country VARCHAR, transfer_fee VARCHAR, name VARCHAR), What is the Country, when the Transfer fee is "loan", and when the Name is Lynch?
SELECT transfer_window FROM table_name_86 WHERE transfer_fee = "free" AND name = "dugdale"
CREATE TABLE table_name_86 (transfer_window VARCHAR, transfer_fee VARCHAR, name VARCHAR), What is the Transfer window, when the Transfer fee is "free", and when the Name is Dugdale?
SELECT name FROM table_name_80 WHERE transfer_fee = "loan"
CREATE TABLE table_name_80 (name VARCHAR, transfer_fee VARCHAR), What is the Name, when the Transfer fee is "loan"?
SELECT transfer_window FROM table_name_30 WHERE transfer_fee = "free" AND moving_to = "norwich city"
CREATE TABLE table_name_30 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR), What is the Transfer window, when the Transfer fee is "free", and when the item "Moving to" is Norwich City?
SELECT transfer_fee FROM table_name_94 WHERE transfer_window = "winter" AND moving_to = "northwich victoria"
CREATE TABLE table_name_94 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR), What is the Transfer fee, when the Transfer window is "winter", and when the item "Moving to" is Northwich Victoria?
SELECT constructor FROM table_name_44 WHERE time_retired = "collision" AND grid = "11"
CREATE TABLE table_name_44 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR), What companyw as the constructor when the Time/Retired was collision, and a Grid of 11?
SELECT time_retired FROM table_name_2 WHERE grid = "8"
CREATE TABLE table_name_2 (time_retired VARCHAR, grid VARCHAR), What shows as the Time/Retired for Grid 8?
SELECT laps FROM table_name_36 WHERE grid = "3"
CREATE TABLE table_name_36 (laps VARCHAR, grid VARCHAR), What is the number of laps for Grid 3?
SELECT constructor FROM table_name_50 WHERE driver = "nick heidfeld"
CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR), What company was the constructor when Nick Heidfeld was the driver/
SELECT laps FROM table_name_48 WHERE time_retired = "+1:08.577"
CREATE TABLE table_name_48 (laps VARCHAR, time_retired VARCHAR), What shows for laps when the Time/Retired was +1:08.577?
SELECT constructor FROM table_name_11 WHERE grid = "1"
CREATE TABLE table_name_11 (constructor VARCHAR, grid VARCHAR), What is the name of the constructor for Grid 1?
SELECT test_career FROM table_name_98 WHERE player = "mushfiqur rahim"
CREATE TABLE table_name_98 (test_career VARCHAR, player VARCHAR), When was Mushfiqur Rahim's test career?
SELECT SUM(points) FROM table_name_95 WHERE year < 1984
CREATE TABLE table_name_95 (points INTEGER, year INTEGER), Name the sum of points for 1984
SELECT points FROM table_name_99 WHERE engine = "chevrolet 265c"
CREATE TABLE table_name_99 (points VARCHAR, engine VARCHAR), Name the points for Engine of chevrolet 265c
SELECT chassis FROM table_name_43 WHERE points = 147 AND engine = "ford cosworth dfx"
CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR, engine VARCHAR), Name the chassis of 147 points and engine of ford cosworth dfx
SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR), Which term had a Democratic representative from district 7?
SELECT term FROM table_name_6 WHERE hometown = "anchorage" AND name = "bruce biers kendall"
CREATE TABLE table_name_6 (term VARCHAR, hometown VARCHAR, name VARCHAR), What was the term of Bruce Biers Kendall whose hometown is Anchorage?
SELECT hometown FROM table_name_22 WHERE legislatures = "twenty-sixth"
CREATE TABLE table_name_22 (hometown VARCHAR, legislatures VARCHAR), What is the hometown of the representative that served the twenty-sixth legislature?
SELECT qual FROM table_name_28 WHERE rank = "19"
CREATE TABLE table_name_28 (qual VARCHAR, rank VARCHAR), What is the qual with a 19 rank?
SELECT rank FROM table_name_33 WHERE finish = "25"
CREATE TABLE table_name_33 (rank VARCHAR, finish VARCHAR), What rank has a 25 finish?
SELECT finish FROM table_name_69 WHERE qual = "143.056"
CREATE TABLE table_name_69 (finish VARCHAR, qual VARCHAR), What finish has a 143.056 qual?
SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5"
CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR), What rank had more than 165 laps and a finish of 5?
SELECT record FROM table_name_22 WHERE opponent = "blue jays" AND loss = "batista (0–3)"
CREATE TABLE table_name_22 (record VARCHAR, opponent VARCHAR, loss VARCHAR), What was the record at the game against the Blue Jays with a loss of Batista (0–3)?
SELECT loss FROM table_name_90 WHERE record = "14–8"
CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR), What was the loss of the game when the record was 14–8?
SELECT score FROM table_name_62 WHERE record = "28–19"
CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR), What was the score of the game when the record was 28–19?
SELECT record FROM table_name_94 WHERE date = "may 1" AND loss = "speier (1–3)"
CREATE TABLE table_name_94 (record VARCHAR, date VARCHAR, loss VARCHAR), What was the record at the game held on May 1st with a loss of Speier (1–3)?
SELECT played FROM table_name_75 WHERE lost < 12 AND points > 37 AND drawn = 5
CREATE TABLE table_name_75 (played VARCHAR, drawn VARCHAR, lost VARCHAR, points VARCHAR), How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points?
SELECT AVG(lost) FROM table_name_83 WHERE drawn = 5 AND points > 41
CREATE TABLE table_name_83 (lost INTEGER, drawn VARCHAR, points VARCHAR), How many games lost for the team that drew 5 times and had over 41 points?
SELECT COUNT(played) FROM table_name_81 WHERE drawn < 5 AND team = "army" AND points > 51
CREATE TABLE table_name_81 (played VARCHAR, points VARCHAR, drawn VARCHAR, team VARCHAR), How many games played for the army team with over 51 points and under 5 games drawn?
SELECT SUM(points) FROM table_name_4 WHERE team = "navy" AND lost > 11
CREATE TABLE table_name_4 (points INTEGER, team VARCHAR, lost VARCHAR), How many points for the navy team that lost over 11?
SELECT class FROM table_name_31 WHERE race_title = "xi coppa acerbo"
CREATE TABLE table_name_31 (class VARCHAR, race_title VARCHAR), What class of car had the XI Coppa Acerbo title?
SELECT driver_s FROM table_name_67 WHERE race_title = "iii coppa acerbo"
CREATE TABLE table_name_67 (driver_s VARCHAR, race_title VARCHAR), Who won the III Coppa Acerbo title?
SELECT race_title FROM table_name_81 WHERE vehicle = "maserati a6gcs"
CREATE TABLE table_name_81 (race_title VARCHAR, vehicle VARCHAR), What's the name of the title for the Maserati A6GCS?
SELECT driver_s FROM table_name_81 WHERE class = "sports car" AND race_title = "xxiv gran premio di pescara"
CREATE TABLE table_name_81 (driver_s VARCHAR, class VARCHAR, race_title VARCHAR), Who won the XXIV Gran Premio di Pescara in the sports car class?
SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta"
CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR), What surface was the città di caltanissetta played on?
SELECT score FROM table_name_1 WHERE tournament = "volkswagen challenger"
CREATE TABLE table_name_1 (score VARCHAR, tournament VARCHAR), What was the score in Volkswagen Challenger tournament?
SELECT 2010 FROM table_name_23 WHERE 2011 = "2,240,000"
CREATE TABLE table_name_23 (Id VARCHAR), what is the production in 2010 with 2011 production of 2,240,000?
SELECT rank FROM table_name_52 WHERE 2010 = "2,903,000"
CREATE TABLE table_name_52 (rank VARCHAR), what is the ranking for 2010 production of 2,903,000?
SELECT 2010 FROM table_name_39 WHERE rank = "8"
CREATE TABLE table_name_39 (rank VARCHAR), what is the production in 2010 with rank of 8?
SELECT club FROM table_name_95 WHERE captain = "john hutchinson"
CREATE TABLE table_name_95 (club VARCHAR, captain VARCHAR), What club captain is John Hutchinson in?
SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp"
CREATE TABLE table_name_13 (australian_marquee VARCHAR, captain VARCHAR), What Australian Marquee team is Michael Beauchamp a captain of?
SELECT junior_marquee_player FROM table_name_22 WHERE captain = "harry kewell"
CREATE TABLE table_name_22 (junior_marquee_player VARCHAR, captain VARCHAR), What Junior Marquee team is Harry Kewell of?
SELECT call_sign FROM table_name_33 WHERE frequency_mhz = "91.1 fm"
CREATE TABLE table_name_33 (call_sign VARCHAR, frequency_mhz VARCHAR), What is the name of call sign that uses a Frequency MHz of 91.1 fm?
SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = "107.9 fm"
CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR), How much is the total ERP W for an 107.9 fm freqeuncy MHz?
SELECT fcc_info FROM table_name_39 WHERE city_of_license = "harmony township, new jersey"
CREATE TABLE table_name_39 (fcc_info VARCHAR, city_of_license VARCHAR), Can you tell me what is FCC info for harmony township, new jersey?
SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania"
CREATE TABLE table_name_66 (erp_w INTEGER, city_of_license VARCHAR), What is the smallest ERP for allentown, pennsylvania?
SELECT AVG(grid) FROM table_name_42 WHERE time_retired = "+3.9 secs" AND laps < 96
CREATE TABLE table_name_42 (grid INTEGER, time_retired VARCHAR, laps VARCHAR), Which grid has a time/retired of +3.9 secs in less than 96 laps?
SELECT driver FROM table_name_28 WHERE points = 7 AND team = "team australia"
CREATE TABLE table_name_28 (driver VARCHAR, points VARCHAR, team VARCHAR), Which driver has 7 points for team Australia?
SELECT MIN(laps) FROM table_name_85 WHERE team = "dale coyne racing" AND time_retired = "mechanical" AND points < 5
CREATE TABLE table_name_85 (laps INTEGER, points VARCHAR, team VARCHAR, time_retired VARCHAR), What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points?
SELECT MAX(points) FROM table_name_61 WHERE driver = "dan clarke" AND grid > 10
CREATE TABLE table_name_61 (points INTEGER, driver VARCHAR, grid VARCHAR), What is the highest points total scored by Dan Clarke in a grid higher than 10?
SELECT MIN(total) FROM table_name_80 WHERE location = "boston, massachusetts"
CREATE TABLE table_name_80 (total INTEGER, location VARCHAR), What is the earliest episode of the series that is set in Boston, Massachusetts?
SELECT sample_size FROM table_name_84 WHERE date_s__administered = "june 30, 2010"
CREATE TABLE table_name_84 (sample_size VARCHAR, date_s__administered VARCHAR), How many people were surveyed in the poll from June 30, 2010?
SELECT meg_whitman__r_ FROM table_name_35 WHERE margin_of_error = "± 3.3%"
CREATE TABLE table_name_35 (meg_whitman__r_ VARCHAR, margin_of_error VARCHAR), What percentage of the vote with a margin of error of ± 3.3% did Meg Whitman (R) get?
SELECT sample_size FROM table_name_61 WHERE poll_source = "rasmussen reports" AND date_s__administered = "october 13, 2010"
CREATE TABLE table_name_61 (sample_size VARCHAR, poll_source VARCHAR, date_s__administered VARCHAR), How many people participated in the Rasmussen Reports poll on October 13, 2010?
SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010"
CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR), What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.
SELECT prize FROM table_name_10 WHERE event = "ept deauville"
CREATE TABLE table_name_10 (prize VARCHAR, event VARCHAR), What is the Prize, when the Event is Ept Deauville?
SELECT city FROM table_name_26 WHERE prize = "€880,000"
CREATE TABLE table_name_26 (city VARCHAR, prize VARCHAR), What is the City, when the Prize is €880,000?
SELECT city FROM table_name_25 WHERE winner = "ruben visser"
CREATE TABLE table_name_25 (city VARCHAR, winner VARCHAR), What is the City, when the Winner is Ruben Visser?
SELECT winner FROM table_name_98 WHERE prize = "€880,000"
CREATE TABLE table_name_98 (winner VARCHAR, prize VARCHAR), Who is the Winner, when the Prize is €880,000?
SELECT city FROM table_name_17 WHERE prize = "$1,859,000"
CREATE TABLE table_name_17 (city VARCHAR, prize VARCHAR), What is the City, when the Prize is $1,859,000?
SELECT prize FROM table_name_11 WHERE event = "ept sanremo"
CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR), What is the Prize, when the Event is Ept Sanremo?
SELECT date FROM table_name_97 WHERE venue = "edgbaston"
CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR), On what date was the venue at Edgbaston?
SELECT MIN(image) FROM table_name_51 WHERE harrison = "20w" AND ashmolean < 20
CREATE TABLE table_name_51 (image INTEGER, harrison VARCHAR, ashmolean VARCHAR), What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean?
SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = "14s" AND image < 542
CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR), What is the number of Ashmolean with 14s Harrison, and image less than 542?
SELECT cooper FROM table_name_43 WHERE ashmolean < 21 AND hahland < 4
CREATE TABLE table_name_43 (cooper VARCHAR, ashmolean VARCHAR, hahland VARCHAR), What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?
SELECT smith FROM table_name_62 WHERE ashmolean = 16
CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR), What is the smith with a 16 ashmolean?
SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)"
CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR), What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?
SELECT MAX(red_list) FROM table_name_70 WHERE family = "muridae" AND species_authority = "microtus pinetorum (le conte, 1830)"
CREATE TABLE table_name_70 (red_list INTEGER, family VARCHAR, species_authority VARCHAR), What is the highest Red List for the muridae family and species Authority of microtus pinetorum (le conte, 1830)?
SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825"
CREATE TABLE table_name_76 (name VARCHAR, species_authority VARCHAR), What is the name for the species Authority of sigmodon hispidus say & ord, 1825?
SELECT MAX(total) FROM table_name_73 WHERE silver = 1 AND rank > 7
CREATE TABLE table_name_73 (total INTEGER, silver VARCHAR, rank VARCHAR), What is the largest total with a Silver of 1, and a Rank larger than 7?
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 6
CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR), How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6?
SELECT MIN(silver) FROM table_name_33 WHERE bronze < 6 AND total = 3 AND rank < 9
CREATE TABLE table_name_33 (silver INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR), What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9?
SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1
CREATE TABLE table_name_14 (rank VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR), How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1?
SELECT SUM(total) FROM table_name_22 WHERE bronze = 0 AND gold < 0
CREATE TABLE table_name_22 (total INTEGER, bronze VARCHAR, gold VARCHAR), How many totals have a Bronze of 0, and a Gold smaller than 0?
SELECT SUM(silver) FROM table_name_94 WHERE rank > 9 AND total > 1
CREATE TABLE table_name_94 (silver INTEGER, rank VARCHAR, total VARCHAR), What is the total silver with a Rank larger than 9, and a Total larger than 1?
SELECT percentage___percentage_ FROM table_name_31 WHERE males = "1"
CREATE TABLE table_name_31 (percentage___percentage_ VARCHAR, males VARCHAR), Which language do 1% of males speak?
SELECT males FROM table_name_44 WHERE percentage___percentage_ = "87.5"
CREATE TABLE table_name_44 (males VARCHAR, percentage___percentage_ VARCHAR), Which language do 87.5% of males speak?
SELECT females FROM table_name_10 WHERE number = "706"
CREATE TABLE table_name_10 (females VARCHAR, number VARCHAR), Which language do 706 females speak?
SELECT females FROM table_name_11 WHERE language = "ukrainian"
CREATE TABLE table_name_11 (females VARCHAR, language VARCHAR), How many females speak Ukrainian?
SELECT SUM(position) FROM table_name_98 WHERE goal_difference < -11 AND played < 38
CREATE TABLE table_name_98 (position INTEGER, goal_difference VARCHAR, played VARCHAR), What was the position of the team that had a goal difference of less than -11 and played less than 38 games?
SELECT MAX(played) FROM table_name_61 WHERE goal_difference < 27 AND losses > 13 AND goals_for < 42 AND draws = 6
CREATE TABLE table_name_61 (played INTEGER, draws VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, losses VARCHAR), Which position had a goal difference of less than 27, lost more than 13 games, scored less than 42 goals and drew 6 games?
SELECT COUNT(wins) FROM table_name_96 WHERE goals_against < 32
CREATE TABLE table_name_96 (wins VARCHAR, goals_against INTEGER), What was the number of wins with goals against of less than 32?
SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt"
CREATE TABLE table_name_37 (in_service INTEGER, aircraft VARCHAR), How many Antonov An-2 Colt aircraft are in service?
SELECT name FROM table_name_67 WHERE position = "rb"
CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR), for the position of rb what is the name?
SELECT last_update FROM table_name_75 WHERE name = "joe surratt"
CREATE TABLE table_name_75 (last_update VARCHAR, name VARCHAR), for the name of joe surratt what is the last update?
SELECT last_update FROM table_name_81 WHERE name = "jamar jackson"
CREATE TABLE table_name_81 (last_update VARCHAR, name VARCHAR), for the name of jamar jackson what is the last update?
SELECT class FROM table_name_87 WHERE name = "jamar jackson"
CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR), for the name of jamar jackson what is the class?
SELECT COUNT(number) FROM table_name_99 WHERE name = "jamar jackson"
CREATE TABLE table_name_99 (number VARCHAR, name VARCHAR), for the name of jamar jackson what is the total of Number?
SELECT term_in_office FROM table_name_68 WHERE state = "vic" AND member = "stewart mcarthur"
CREATE TABLE table_name_68 (term_in_office VARCHAR, state VARCHAR, member VARCHAR), What term did Stewart Mcarthur from Vic serve in office?
SELECT party FROM table_name_70 WHERE member = "hon paul keating"
CREATE TABLE table_name_70 (party VARCHAR, member VARCHAR), What is Hon Paul Keating's Party?
SELECT member FROM table_name_73 WHERE party = "liberal" AND electorate = "bruce"
CREATE TABLE table_name_73 (member VARCHAR, party VARCHAR, electorate VARCHAR), What member is in the liberal party and has an electorate of bruce?
SELECT electorate FROM table_name_6 WHERE state = "vic" AND party = "labor" AND member = "david charles"
CREATE TABLE table_name_6 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR), Which Electorate is from vic, a labor party, and is David Charles a member of?
SELECT format FROM table_name_59 WHERE label = "alfa records" AND date = "july 27, 1994"
CREATE TABLE table_name_59 (format VARCHAR, label VARCHAR, date VARCHAR), Name the format on july 27, 1994 for alfa records
SELECT region FROM table_name_43 WHERE format = "cd" AND catalog = "alca-9203"
CREATE TABLE table_name_43 (region VARCHAR, format VARCHAR, catalog VARCHAR), Name the region for cd with catalog of alca-9203
SELECT date FROM table_name_6 WHERE label = "alfa records" AND catalog = "alr-28045"
CREATE TABLE table_name_6 (date VARCHAR, label VARCHAR, catalog VARCHAR), Name the date for alfa records and catalog of alr-28045
SELECT region FROM table_name_30 WHERE format = "cd" AND date = "february 22, 1984"
CREATE TABLE table_name_30 (region VARCHAR, format VARCHAR, date VARCHAR), Name the region for cd format on february 22, 1984
SELECT region FROM table_name_6 WHERE date = "february 14, 2002"
CREATE TABLE table_name_6 (region VARCHAR, date VARCHAR), Name the region for february 14, 2002
SELECT AVG(first_game) FROM table_name_16 WHERE lost > 16
CREATE TABLE table_name_16 (first_game INTEGER, lost INTEGER), What First game has a Lost greater than 16?
SELECT percentage FROM table_name_80 WHERE first_game = 1998
CREATE TABLE table_name_80 (percentage VARCHAR, first_game VARCHAR), What Percentage did the First game of 1998 have?