instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_204_93 ( id number, "round" number, "pick" number, "player" text, "position" text, "nationality" text, "team" text, "college" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which teams at most have 4 p...
SELECT "team" FROM table_204_93 GROUP BY "team" HAVING COUNT("player") <= 4
### Instruction: CREATE TABLE table_3633 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original U.S. air date" text, "Prod. code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote the episode titled 'big ki...
SELECT "Written by" FROM table_3633 WHERE "Title" = 'Big Kings on Campus'
### Instruction: CREATE TABLE table_66850 ( "Runs (Balls)" text, "Wicket" text, "Partnerships" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which wicket had a 100 (45) Runs (balls) amount? ### Response:
SELECT "Wicket" FROM table_66850 WHERE "Runs (Balls)" = '100 (45)'
### Instruction: CREATE TABLE table_203_440 ( id number, "rank" number, "player" text, "from" text, "to" text, "transfer fee\n(\u20ac million)" number, "year" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many players transferred afte...
SELECT COUNT("player") FROM table_203_440 WHERE "year" > 2010
### Instruction: CREATE TABLE table_name_78 ( cup_goals INTEGER, league_goals VARCHAR, league_apps VARCHAR, cup_apps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer th...
SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4
### Instruction: CREATE TABLE table_49711 ( "Model number" text, "Frequency" text, "L2 cache" text, "Mult." text, "Voltage" text, "Socket" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is L2 Cache, when Model Number is Pentium II 350? ##...
SELECT "L2 cache" FROM table_49711 WHERE "Model number" = 'pentium ii 350'
### Instruction: CREATE TABLE table_73884 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many pole positions for...
SELECT COUNT("Pole Position") FROM table_73884 WHERE "Round" = '20'
### Instruction: CREATE TABLE table_204_107 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which country has the most bronze medals in euro...
SELECT "nation" FROM table_204_107 ORDER BY "bronze" DESC LIMIT 1
### Instruction: CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Draw a pie...
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job
### Instruction: CREATE TABLE table_72397 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of incumbent for first elected of...
SELECT COUNT("Incumbent") FROM table_72397 WHERE "First elected" = '1944'
### Instruction: CREATE TABLE table_15766 ( "Shirt No" real, "Player" text, "Birth Date" text, "Weight" real, "Height" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Shirt number of 18, and a Height larger than 195 has how much weight? ### Respons...
SELECT COUNT("Weight") FROM table_15766 WHERE "Shirt No" = '18' AND "Height" > '195'
### Instruction: CREATE TABLE table_204_24 ( id number, "year" number, "league" text, "record" text, "finish" text, "manager" text, "playoffs" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which seasons were not played in ...
SELECT "year" FROM table_204_24 WHERE "league" <> 'california league'
### Instruction: CREATE TABLE table_name_78 ( weight INTEGER, height VARCHAR, spike VARCHAR, block VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest Weight, when Spike is less than 330, when Block is 315, and when Height is greater ...
SELECT MIN(weight) FROM table_name_78 WHERE spike < 330 AND block = 315 AND height > 187
### Instruction: CREATE TABLE table_32347 ( "Name" text, "Took office" text, "Left office" text, "Party" text, "Governor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the party of the politician who left office on January 12, 1857 ### Re...
SELECT "Party" FROM table_32347 WHERE "Left office" = 'january 12, 1857'
### Instruction: CREATE TABLE table_33242 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did Collingwood play at hom...
SELECT "Home team" FROM table_33242 WHERE "Away team" = 'collingwood'
### Instruction: CREATE TABLE table_203_771 ( id number, "#" number, "artist" text, "featuring" text, "title" text, "version" text, "length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total titles are listed for the artist benas...
SELECT COUNT("title") FROM table_203_771 WHERE "artist" = 'benassi bros'
### Instruction: CREATE TABLE table_61876 ( "Colliery" text, "Location" text, "Date" text, "Year" real, "Death toll" real, "cause" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has a Location of dinas on 13 january? ### Response:
SELECT "Year" FROM table_61876 WHERE "Location" = 'dinas' AND "Date" = '13 january'
### Instruction: CREATE TABLE table_44415 ( "Overall ranking" text, "Lat. Am. ranking" text, "Countries surveyed" real, "% rank." text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Date for less than 122 countries and a 47% rank? ### Resp...
SELECT "Date" FROM table_44415 WHERE "Countries surveyed" < '122' AND "% rank." = '47'
### Instruction: CREATE TABLE mountain ( mountain_id number, name text, height number, prominence number, range text, country text ) CREATE TABLE climber ( climber_id number, name text, country text, time text, points number, mountain_id number ) -- Using valid SQLite,...
SELECT name FROM climber ORDER BY points DESC
### Instruction: CREATE TABLE table_34772 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the second for the curling team which has alternate Margarita Fom...
SELECT "Second" FROM table_34772 WHERE "Alternate" = 'margarita fomina'
### Instruction: CREATE TABLE table_name_17 ( draws INTEGER, position VARCHAR, scored VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Out of the teams that have scored lower than 25 points, have a total of points less than 20, and a po...
SELECT MIN(draws) FROM table_name_17 WHERE scored < 25 AND points = 20 AND position > 8
### Instruction: CREATE TABLE table_46416 ( "Name" text, "Height" text, "Year" text, "Hometown" text, "Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What hometown was FR Year, and ha Brown's Gymnastics club? ### Response:
SELECT "Hometown" FROM table_46416 WHERE "Year" = 'fr' AND "Club" = 'brown''s gymnastics'
### Instruction: CREATE TABLE table_63713 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nation has more than 0 silver medals and is ranked 1? ### Response:
SELECT "Nation" FROM table_63713 WHERE "Silver" > '0' AND "Rank" = '1'
### Instruction: CREATE TABLE table_2562572_8 ( population__2002_ INTEGER, population__2011_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowes population of 2002 when the 2011 population was 30076? ### Response:
SELECT MIN(population__2002_) FROM table_2562572_8 WHERE population__2011_ = 30076
### Instruction: CREATE TABLE table_408 ( "Name" text, "#" real, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text, "High School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have the home town...
SELECT COUNT("Year") FROM table_408 WHERE "Home Town" = 'Baton Rouge, LA'
### Instruction: CREATE TABLE table_21131 ( "Election" real, "Candidates fielded" real, "# of seats won" real, "Total votes" real, "% of popular vote" text, "Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many percentages are listed f...
SELECT COUNT("% of popular vote") FROM table_21131 WHERE "Election" = '1983'
### Instruction: CREATE TABLE table_36172 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record at the game on November 13, 1932? ### Response:...
SELECT "Record" FROM table_36172 WHERE "Date" = 'november 13, 1932'
### Instruction: CREATE TABLE table_27129 ( "Wind farm" text, "Installed capacity (MW)" text, "Turbine Manufacturer" text, "County" text, "Date in Service" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did this wind farm started service with a...
SELECT "Date in Service" FROM table_27129 WHERE "Installed capacity (MW)" = '135'
### Instruction: CREATE TABLE table_204_888 ( id number, "location" text, "mile" number, "destinations" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many miles is the us 522 south - berkeley springs , wv location ? ### Response...
SELECT "mile" FROM table_204_888 WHERE "destinations" = 'us 522 south - berkeley springs, wv'
### Instruction: CREATE TABLE table_5622 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record has an Event of tpf 5: stars and strike...
SELECT "Record" FROM table_5622 WHERE "Event" = 'tpf 5: stars and strikes'
### Instruction: CREATE TABLE table_203_77 ( id number, "album title" text, "format" text, "year" number, "original label" text, "chart positions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what album title came next after get lost ? ### R...
SELECT "album title" FROM table_203_77 WHERE id = (SELECT id FROM table_203_77 WHERE "album title" = 'get lost') + 1
### Instruction: CREATE TABLE table_60338 ( "Nat." text, "Name" text, "Since" text, "Goals" real, "Ends" real, "Transfer fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of ends when the transfer fee was dkk 14m? ##...
SELECT COUNT("Ends") FROM table_60338 WHERE "Transfer fee" = 'dkk 14m'
### Instruction: CREATE TABLE table_38736 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Venue has a Result of 5-1, and a Score of 1-0? ### Response:
SELECT "Venue" FROM table_38736 WHERE "Result" = '5-1' AND "Score" = '1-0'
### Instruction: CREATE TABLE table_33014 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent after week 9 at rich stadium? ### Response:...
SELECT "Opponent" FROM table_33014 WHERE "Week" > '9' AND "Game site" = 'rich stadium'
### Instruction: CREATE TABLE table_48179 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the venue when the competition is 1996 afc asian cup group stage? ### Response...
SELECT "Venue" FROM table_48179 WHERE "Competition" = '1996 afc asian cup group stage'
### Instruction: CREATE TABLE table_38782 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the loss of the game with 38,062 folks in attendance? ### R...
SELECT "Loss" FROM table_38782 WHERE "Attendance" = '38,062'
### Instruction: CREATE TABLE table_74820 ( "Rank" real, "Name" text, "Location" text, "Height Metres / feet" text, "Floors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Floors have a Location of ljubljana, and a Name of tr3? ### Response:...
SELECT "Floors" FROM table_74820 WHERE "Location" = 'ljubljana' AND "Name" = 'tr3'
### Instruction: CREATE TABLE table_67098 ( "Player" text, "Years" text, "Games played" real, "Goals allowed" real, "Goals against average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played over 46 games and allowed less than 195 goals? ##...
SELECT "Player" FROM table_67098 WHERE "Games played" > '46' AND "Goals allowed" < '195'
### Instruction: CREATE TABLE table_21700 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the part 4 for the verb whose part 3 is borgen? ### Resp...
SELECT "Part 4" FROM table_21700 WHERE "Part 3" = 'borgen'
### Instruction: CREATE TABLE table_31409 ( "Rank" real, "Country/Territory" text, "Miss Earth" text, "Miss Air" real, "Miss Water" real, "Miss Fire" real, "Semifinalists" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT MAX("Total") FROM table_31409
### Instruction: CREATE TABLE table_71048 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the score of the game they played against a team with a record...
SELECT "Score" FROM table_71048 WHERE "Record" = '81-54'
### Instruction: CREATE TABLE table_3604 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- First elected in 1807 1817 in what district? ### Respo...
SELECT "District" FROM table_3604 WHERE "First elected" = '1807 1817'
### Instruction: CREATE TABLE table_45760 ( "Year" real, "Stage" real, "Category" text, "Start" text, "Finish" text, "Leader at the summit" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest year for stage 12, category 1? ### Re...
SELECT MIN("Year") FROM table_45760 WHERE "Category" = '1' AND "Stage" = '12'
### Instruction: CREATE TABLE table_30549 ( "#" text, "Player" text, "Country" text, "Score" text, "To par" text, "Winnings ($)" real, "After" real, "Before" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the after for geoff ogil...
SELECT MAX("After") FROM table_30549 WHERE "Player" = 'Geoff Ogilvy'
### Instruction: CREATE TABLE table_1239 ( "Maximum Ceiling Temperature" text, "Temperature Rating" text, "Temperature Classification" text, "Color Code (with Fusible Link)" text, "Glass Bulb Color" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Nam...
SELECT "Maximum Ceiling Temperature" FROM table_1239 WHERE "Temperature Classification" = 'Intermediate'
### Instruction: CREATE TABLE table_478 ( "Stage" real, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Intergiro classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT COUNT("Points classification") FROM table_478 WHERE "Stage" = '17'
### Instruction: CREATE TABLE table_44008 ( "Round" real, "Pick" real, "Name" text, "Position" text, "College" text, "AAFC Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Position has a Round smaller than 5, and a Pick of 5? ### Res...
SELECT "Position" FROM table_44008 WHERE "Round" < '5' AND "Pick" = '5'
### Instruction: CREATE TABLE table_10974 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the match at mcg ...
SELECT "Date" FROM table_10974 WHERE "Venue" = 'mcg'
### Instruction: CREATE TABLE table_1341663_10 ( incumbent VARCHAR, candidates VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%? ### Response:
SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.7%"
### Instruction: CREATE TABLE table_60528 ( "Year" real, "Round" real, "Pick" real, "Player" text, "NBA Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest pick for a year after 2010 and a round larger than 1? ### Response:
SELECT MAX("Pick") FROM table_60528 WHERE "Year" > '2010' AND "Round" > '1'
### Instruction: CREATE TABLE table_34715 ( "Year" text, "National Champion" text, "Runner-Up" text, "Location" text, "Host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Runner-up with Ohio as the National Champion in Tucson, AZ? ##...
SELECT "Runner-Up" FROM table_34715 WHERE "National Champion" = 'ohio' AND "Location" = 'tucson, az'
### Instruction: CREATE TABLE table_221653_1 ( partial_thromboplastin_time VARCHAR, condition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the partial thromboplastin time when the condition factor x deficiency as seen in amyloid purpura? ### Resp...
SELECT partial_thromboplastin_time FROM table_221653_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"
### Instruction: CREATE TABLE table_18314 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the race involving Billy Lee Evans as the seated Rep...
SELECT "Result" FROM table_18314 WHERE "Incumbent" = 'Billy Lee Evans'
### Instruction: CREATE TABLE table_48222 ( "Season" real, "Team 1" text, "Score" text, "Team 2" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the earliest season that Pisico B nh inh is team 2? ### Response:
SELECT MIN("Season") FROM table_48222 WHERE "Team 2" = 'pisico bình ðinh'
### Instruction: CREATE TABLE table_204_100 ( id number, "date" text, "name of ship" text, "nationality" text, "tonnage" number, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many ships had more then 7,000 in tonnage ? ### Response...
SELECT COUNT("name of ship") FROM table_204_100 WHERE "tonnage" > 7000
### Instruction: CREATE TABLE table_10965 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team calls VFL Park their...
SELECT "Home team" FROM table_10965 WHERE "Venue" = 'vfl park'
### Instruction: CREATE TABLE table_203_441 ( id number, "rank" number, "athlete" text, "ski time" text, "penalties\np+s+p+s" text, "total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many athletes did china have in the top 10 ranks ? #...
SELECT COUNT("athlete") FROM table_203_441 WHERE "athlete" = 'chn'
### Instruction: CREATE TABLE table_8535 ( "Discipline" text, "Championship" text, "Circuit" text, "Event" text, "Session" text, "Cause" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a Championship of 1959 USAC Championship Car Season what...
SELECT "Event" FROM table_8535 WHERE "Championship" = '1959 usac championship car season'
### Instruction: CREATE TABLE college ( cname text, state text, enr number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE player ( pid number, pname text, ycard text, hs number ) -- Using valid SQLite, answer the following question...
SELECT * FROM college ORDER BY enr
### Instruction: CREATE TABLE table_204_843 ( id number, "volume" number, "year" text, "names" text, "articles" number, "pages" number, "images" number, "maps" number, "number of copies" number ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "volume" FROM table_204_843 ORDER BY "maps" DESC LIMIT 1
### Instruction: CREATE TABLE table_16339 ( "Model" text, "RU" real, "Max processors" text, "Processor frequency" text, "Max memory" text, "Max disk capacity" text, "GA Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the max mem...
SELECT "Max memory" FROM table_16339 WHERE "Model" = 'T5120'
### Instruction: CREATE TABLE table_58972 ( "Provider" text, "Years" text, "Free or pay" text, "No. of channels" text, "Colour" text, "Digital" text, "Transmission" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the digital of Virgin...
SELECT "Digital" FROM table_58972 WHERE "Provider" = 'virgin [analogue]'
### Instruction: CREATE TABLE table_name_96 ( population__total_ INTEGER, year VARCHAR, _barcaldine_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1,780? ### Response:
SELECT MAX(population__total_) FROM table_name_96 WHERE year = 1976 AND _barcaldine_ < 1 OFFSET 780
### Instruction: CREATE TABLE table_75358 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the ERP W for glens falls, new york ### Resp...
SELECT "ERP W" FROM table_75358 WHERE "City of license" = 'glens falls, new york'
### Instruction: CREATE TABLE table_name_66 ( top_5 INTEGER, top_10 VARCHAR, wins VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s? ### Response:
SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14
### Instruction: CREATE TABLE table_73134 ( "Rank by average" real, "Place" real, "Couple" text, "Number of Dances" real, "Total Points" text, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If your rank by average is 9, what is the nam...
SELECT "Couple" FROM table_73134 WHERE "Rank by average" = '9'
### Instruction: CREATE TABLE table_48401 ( "Driver" text, "Points" real, "Races" real, "Wins" text, "Second" text, "Third" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins did the driver with 1 second and more than 12 races have? ...
SELECT "Wins" FROM table_48401 WHERE "Second" = '1' AND "Races" > '12'
### Instruction: CREATE TABLE table_7181 ( "Television service" text, "Country" text, "Language" text, "Content" text, "HDTV" text, "Package/Option" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is HDTV, when Television service is cartello...
SELECT "HDTV" FROM table_7181 WHERE "Television service" = 'cartello promozionale sky hd'
### Instruction: CREATE TABLE table_name_3 ( date VARCHAR, kicker VARCHAR, result VARCHAR, game_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what d...
SELECT date FROM table_name_3 WHERE result = "missed*" AND game_time = "2nd quarter (0:00)" AND kicker = "mason crosby"
### Instruction: CREATE TABLE table_66654 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The swimmer from the United States in a lane less than 5, had what as the average time? ##...
SELECT AVG("Time") FROM table_66654 WHERE "Nationality" = 'united states' AND "Lane" < '5'
### Instruction: CREATE TABLE table_2601 ( "Episode #" real, "US Air Date" text, "Rating" text, "Share" real, "Rating/Share (18-49)" text, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes have episode #11? ...
SELECT COUNT("US Air Date") FROM table_2601 WHERE "Episode #" = '11'
### Instruction: CREATE TABLE table_2631 ( "State (class)" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date of successors formal installation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the state class for isaac d. ba...
SELECT "State (class)" FROM table_2631 WHERE "Vacator" = 'Isaac D. Barnard (J)'
### Instruction: CREATE TABLE table_204_897 ( id number, "date" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of games played...
SELECT COUNT(*) FROM table_204_897
### Instruction: CREATE TABLE table_23484 ( "Year" text, "Horsepower" text, "Torque" text, "Fuel System" text, "Compression Ratio" text, "RPO" text, "Applications" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most applications for...
SELECT MAX("Applications") FROM table_23484 WHERE "Year" = '1986'
### Instruction: CREATE TABLE products ( code number, name text, price number, manufacturer number ) CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
### Instruction: CREATE TABLE table_3095 ( "Season" text, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT MIN("Wins") FROM table_3095
### Instruction: CREATE TABLE table_61778 ( "Date(s)" text, "City, state" text, "Ticket price(s)" text, "Ticket sold / available" text, "Ticket grossing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much were tickets for the show in Indianapol...
SELECT "Ticket price(s)" FROM table_61778 WHERE "City, state" = 'indianapolis, indiana'
### Instruction: CREATE TABLE table_29616 ( "Game" real, "October" real, "Opponent" text, "Score" text, "Decision" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On how many days in October was the ...
SELECT COUNT("October") FROM table_29616 WHERE "Score" = '6-1'
### Instruction: CREATE TABLE table_49596 ( "Scorer" text, "Club" text, "League goals" text, "FA Cup goals" real, "League Cup goals" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of FA Cup goals when there are 19 l...
SELECT SUM("FA Cup goals") FROM table_49596 WHERE "League goals" = '19'
### Instruction: CREATE TABLE table_59925 ( "Nat." text, "Name" text, "Moving to" text, "Type" text, "Transfer window" text, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player is associated with soenderj...
SELECT "Name" FROM table_59925 WHERE "Source" = 'soenderjyske.dk'
### Instruction: CREATE TABLE table_204_579 ( id number, "code" text, "district" text, "headquarters" text, "population (as of 2011)" number, "area (km2)" number, "density (/km2)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the ...
SELECT "code" FROM table_204_579 ORDER BY id DESC LIMIT 1
### Instruction: CREATE TABLE table_name_12 ( entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts? ### Respons...
SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 2
### Instruction: CREATE TABLE table_64698 ( "Player" text, "Matches" text, "Runs" text, "Balls" text, "Strike Rate" text, "Average" text, "100s" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What matches is 2 the 100s? ### Response:
SELECT "Matches" FROM table_64698 WHERE "100s" = '2'
### Instruction: CREATE TABLE table_24903 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team had an outg...
SELECT "Team" FROM table_24903 WHERE "Outgoing manager" = 'Behtash Fariba'
### Instruction: CREATE TABLE table_12940 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has 104 laps and a grid of 10? ### Response:
SELECT "Team" FROM table_12940 WHERE "Laps" = '104' AND "Grid" = '10'
### Instruction: CREATE TABLE table_77344 ( "Call sign" text, "Frequency" text, "City of license" text, "State" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the call sign for 90.9 FM which is in Florida? ### Response:
SELECT "Call sign" FROM table_77344 WHERE "State" = 'florida' AND "Frequency" = '90.9 fm'
### Instruction: CREATE TABLE table_70854 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Winning score on oct 22, 2000? ### Response:
SELECT "Winning score" FROM table_70854 WHERE "Date" = 'oct 22, 2000'
### Instruction: CREATE TABLE table_43063 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Interview Subject when the 20 Questions was Wil...
SELECT "Interview subject" FROM table_43063 WHERE "20 Questions" = 'william h. macy'
### Instruction: CREATE TABLE table_42896 ( "Year" real, "Award" text, "Category" text, "Recipient" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What category was The Suite Life on Deck nominated for later than 2010? ### Response:...
SELECT "Category" FROM table_42896 WHERE "Recipient" = 'the suite life on deck' AND "Year" > '2010'
### Instruction: CREATE TABLE table_203_568 ( id number, "town/village" text, "population" number, "postal code" text, "municipality" text, "island" text, "location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many people does argir h...
SELECT "population" FROM table_203_568 WHERE "town/village" = 'argir'
### Instruction: CREATE TABLE table_60133 ( "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Weight of the Senior Player with a Height of 6 10? ### ...
SELECT SUM("Weight") FROM table_60133 WHERE "Year" = 'senior' AND "Height" = '6–10'
### Instruction: CREATE TABLE table_70075 ( "Goal" text, "Location" text, "Lineup" text, "Assist/pass" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Assist/pass has a Result of 6-2? #...
SELECT "Assist/pass" FROM table_70075 WHERE "Result" = '6-2'
### Instruction: CREATE TABLE table_name_16 ( circuit VARCHAR, fastest_lap VARCHAR, tyre VARCHAR, pole_position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D ty...
SELECT circuit FROM table_name_16 WHERE tyre = "d" AND pole_position = "jochen rindt" AND fastest_lap = "jackie stewart"
### Instruction: CREATE TABLE table_29624 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Against what opponent did the game en...
SELECT "Opponent" FROM table_29624 WHERE "Score" = '5-4'
### Instruction: CREATE TABLE table_74269 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position does Antti-Jussi Niemi play? ...
SELECT "Position" FROM table_74269 WHERE "Player" = 'Antti-Jussi Niemi'
### Instruction: CREATE TABLE table_80222 ( "Year" real, "Alabama" text, "Arkansas" text, "Auburn" text, "Ole Miss" text, "Mississippi St." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Mississippi State player associated with Corne...
SELECT "Mississippi St." FROM table_80222 WHERE "Alabama" = 'cornelius bennett'
### Instruction: CREATE TABLE table_204_207 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- opponent for highest attended home game ### Resp...
SELECT "opponent" FROM table_204_207 WHERE "opponent" = 'home' ORDER BY "attendance" DESC LIMIT 1
### Instruction: CREATE TABLE table_204_365 ( id number, "year" number, "single" text, "chart positions\nusa billboard hot dance club play" number, "chart positions\npolish charts" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- w...
SELECT "single" FROM table_204_365 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_49079 ( "Outcome" text, "Year" real, "Pro Slam Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Year, wh...
SELECT AVG("Year") FROM table_49079 WHERE "Outcome" = 'winner'
### Instruction: CREATE TABLE table_203_862 ( id number, "draw" number, "artist" text, "song" text, "points" number, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did the song gitara or yesh earn more points ? ### Response:
SELECT "song" FROM table_203_862 WHERE "song" IN ('"gitara"', '"yesh"') ORDER BY "points" DESC LIMIT 1