instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_19757 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" text, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where wa...
SELECT "Venue" FROM table_19757 WHERE "Distance" = '1400 m'
### Instruction: CREATE TABLE table_46871 ( "Date" text, "Result" text, "Opponent" text, "Event" text, "Location" text, "Method" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the location when the event is k-1 world g...
SELECT "Location" FROM table_46871 WHERE "Event" = 'k-1 world grand prix 2004 in saitama'
### Instruction: CREATE TABLE table_203_78 ( id number, "location" text, "reactor type" text, "status" text, "net\ncapacity\n(mwe)" number, "gross\ncapacity\n(mwe)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which reactor is the only one t...
SELECT "location" FROM table_203_78 WHERE "status" = 'operational until august 2026'
### Instruction: CREATE TABLE table_49460 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than ...
SELECT "Time" FROM table_49460 WHERE "Manufacturer" = 'yamaha' AND "Grid" < '8' AND "Laps" < '23'
### Instruction: CREATE TABLE table_2765 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT COUNT("Directed by") FROM table_2765 WHERE "Season #" = '3'
### Instruction: CREATE TABLE table_64928 ( "Event" text, "Date" text, "Location" text, "Winning skip" text, "Runner-up skip" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the event that happened in Gander, Newfoundland and Labrador with Ran...
SELECT "Event" FROM table_64928 WHERE "Runner-up skip" = 'randy ferbey' AND "Location" = 'gander, newfoundland and labrador'
### Instruction: CREATE TABLE table_55117 ( "Region" text, "Capital" text, "Area (km\u00b2)" text, "Area (sq. mi.)" text, "Population" text, "GDP ( bn )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Region has an area of 14,037km ? ###...
SELECT "Region" FROM table_55117 WHERE "Area (km\u00b2)" = '14,037'
### Instruction: CREATE TABLE table_78432 ( "Track" real, "Recorded" text, "Catalogue" text, "Release Date" text, "Song Title" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which song was released 12/8/70 with a time of 2:54? ###...
SELECT "Song Title" FROM table_78432 WHERE "Release Date" = '12/8/70' AND "Time" = '2:54'
### Instruction: CREATE TABLE table_74101 ( "Status" text, "2001 number (,000)" real, "2001 %" text, "2011 number (,000)" real, "2011 %" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the 2001 % for the status widowed or surviving partner? ...
SELECT "2001 %" FROM table_74101 WHERE "Status" = 'Widowed or surviving partner'
### Instruction: CREATE TABLE table_3626 ( "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. -- How many times was the incumbent john dawson redistricte...
SELECT COUNT("Candidates") FROM table_3626 WHERE "Incumbent" = 'John Dawson Redistricted from the 15th district'
### Instruction: CREATE TABLE table_47364 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Visitor is 'Pittsburgh', and wh...
SELECT "Score" FROM table_47364 WHERE "Visitor" = 'pittsburgh' AND "Points" > '18'
### Instruction: CREATE TABLE table_49295 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What event did Mikhail Avetisyan w...
SELECT "Event" FROM table_49295 WHERE "Method" = 'dq (eye gouging)'
### Instruction: CREATE TABLE table_72241 ( "#" real, "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who are al...
SELECT "Visitor" FROM table_72241 WHERE "Record" = '25–18'
### Instruction: CREATE TABLE table_24051 ( "Displacement" text, "Bore" text, "Stroke" text, "Cylinders" text, "Valves" real, "Power" text, "Torque" text, "Applications" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the torque poss...
SELECT "Torque" FROM table_24051 WHERE "Stroke" = '88.4mm'
### Instruction: CREATE TABLE table_26212 ( "World record" text, "Paula Radcliffe ( GBR )" text, "2:15:25" text, "London , Great Britain" text, "13 April 2003" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the world record for 26 april 2009 ...
SELECT "World record" FROM table_26212 WHERE "13 April 2003" = '26 April 2009'
### Instruction: CREATE TABLE table_47855 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average pick number for jerry hackenbruck who was overall p...
SELECT AVG("Pick") FROM table_47855 WHERE "Name" = 'jerry hackenbruck' AND "Overall" < '282'
### Instruction: CREATE TABLE table_50740 ( "Date" text, "Result" text, "Opponent" text, "Venue" text, "Location" text, "Method" text, "Round" real, "Time" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The match that ...
SELECT "Method" FROM table_50740 WHERE "Venue" = 'club med sandpiper'
### Instruction: CREATE TABLE table_34273 ( "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. -- How many laps are associated with a grid greater than 8, under 11 poin...
SELECT COUNT("Laps") FROM table_34273 WHERE "Grid" > '8' AND "Points" < '11' AND "Driver" = 'will power'
### Instruction: CREATE TABLE table_80455 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which loss has an attendance greater than 49,688 and 11-8 as the reco...
SELECT "Loss" FROM table_80455 WHERE "Attendance" > '49,688' AND "Record" = '11-8'
### Instruction: CREATE TABLE table_26638600_3 ( lites_2_race_one_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different circuits had Gary Gibson has the Lites 1 race two winning team? ### Resp...
SELECT COUNT(lites_2_race_one_winning_team) FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "Gary Gibson"
### Instruction: CREATE TABLE table_204_246 ( id number, "department" text, "total deputies" number, "uninominal deputies" number, "plurinominal deputies" number, "special indigenous\nor campesino deputies" number, "senators" number ) -- Using valid SQLite, answer the following questions f...
SELECT "department" FROM table_204_246 WHERE "total deputies" = 5
### Instruction: CREATE TABLE table_14263 ( "Year" real, "Competition" text, "Location" text, "Weight Category" text, "Snatch" text, "Clean and Jerk" text, "Total" text, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the...
SELECT "Snatch" FROM table_14263 WHERE "Total" = '409kg'
### Instruction: CREATE TABLE table_60753 ( "Date" text, "Time" text, "Competition" text, "Opponent" text, "Ground" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ground of the tim trophy competition, which had a time o...
SELECT "Ground" FROM table_60753 WHERE "Competition" = 'tim trophy' AND "Time" = '23:00 cet'
### Instruction: CREATE TABLE table_17973 ( "Round" real, "Circuit" text, "Date" text, "Length" text, "Pole Position" text, "GT3 Winner" text, "GTC Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are all the gtc winners for pole ...
SELECT "GTC Winner" FROM table_17973 WHERE "Pole Position" = 'No. 21 Team Modena'
### Instruction: CREATE TABLE table_5823 ( "Placing" real, "Team" text, "Players" text, "Seeding" text, "Playoffs W-L" text, "Matches W-L" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Matches W-L of 1-2, and a Team of spain had what seeding? ...
SELECT "Seeding" FROM table_5823 WHERE "Matches W-L" = '1-2' AND "Team" = 'spain'
### Instruction: CREATE TABLE table_204_793 ( id number, "call-sign" text, "location" text, "rf" number, "psip" number, "programming" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which psip is higher , wivx ld or wivm ld ? ### Response:
SELECT "call-sign" FROM table_204_793 WHERE "call-sign" IN ('wivx-ld', 'wivm-ld') ORDER BY "psip" DESC LIMIT 1
### Instruction: CREATE TABLE table_33546 ( "Player" text, "Span" text, "Start" text, "Tries" text, "Conv" text, "Pens" text, "Drop" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Start has a 0 Conv, 0 Pens and 8 Tries? ### Response:...
SELECT "Start" FROM table_33546 WHERE "Conv" = '0' AND "Pens" = '0' AND "Tries" = '8'
### Instruction: CREATE TABLE table_57495 ( "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. -- On what date did the home team ...
SELECT "Date" FROM table_57495 WHERE "Home team score" = '22.11 (143)'
### Instruction: CREATE TABLE table_43971 ( "Pilot" text, "Date" text, "Place" text, "Weapon" text, "Effect" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Pilot, when Weapon is '35mm fire', and when Date is '4 May 1982'? ### Response:
SELECT "Pilot" FROM table_43971 WHERE "Weapon" = '35mm fire' AND "Date" = '4 may 1982'
### Instruction: CREATE TABLE table_8521 ( "Player" text, "Position" text, "Premier League" real, "FA Cup" real, "League Cup" real, "UEFA Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the premier league number whe...
SELECT COUNT("Premier League") FROM table_8521 WHERE "Position" = 'forward' AND "Total" > '22'
### Instruction: CREATE TABLE table_203_340 ( id number, "rank" number, "airport" text, "passengers handled" number, "% change 2011 / 12" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which airport had more passengers handled than the united king...
SELECT "airport" FROM table_203_340 WHERE "passengers handled" > (SELECT "passengers handled" FROM table_203_340 WHERE "airport" = 'united kingdom')
### Instruction: CREATE TABLE table_25743 ( "Outcome" text, "Year" real, "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 was the score in the final when ...
SELECT "Score in the final" FROM table_25743 WHERE "Outcome" = 'Winner' AND "Year" = '1989'
### Instruction: CREATE TABLE table_36558 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average week for the game against baltimore colts with less than 41,062 in ...
SELECT AVG("Week") FROM table_36558 WHERE "Opponent" = 'baltimore colts' AND "Attendance" < '41,062'
### Instruction: CREATE TABLE table_38677 ( "Make" text, "Year placed in service" text, "Quantity" real, "Number of seats" real, "Wheelchair accessible? ()" text, "Current status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smalle...
SELECT MIN("Number of seats") FROM table_38677 WHERE "Current status" = 'retired' AND "Quantity" < '8'
### Instruction: CREATE TABLE table_75260 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real, "Participants" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed as the highest Participants that also have a Rank of 5...
SELECT MAX("Participants") FROM table_75260 WHERE "Rank" = '5' AND "Silver" < '0'
### Instruction: CREATE TABLE table_15962 ( "Song" text, "Mobiles" real, "Northern Ireland" real, "Northern England" real, "Scotland" real, "Southern England" real, "Wales" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How...
SELECT MIN("Wales") FROM table_15962 WHERE "Northern England" = '6'
### Instruction: CREATE TABLE table_26184 ( "Warship" text, "tons ( L.ton )" text, "Horse- power" real, "Speed ( Knots )" real, "Main Artillery" text, "Built Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the maximum speed for the 1.1...
SELECT "Speed ( Knots )" FROM table_26184 WHERE "tons ( L.ton )" = '1.150'
### Instruction: CREATE TABLE table_23083 ( "Scorecard" real, "Date" text, "Venue" text, "Team 1" text, "Team 2" text, "Result" text, "Man of the Match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the man of the match when the Roc...
SELECT "Man of the Match" FROM table_23083 WHERE "Result" = 'Rockets won by 9 wickets'
### Instruction: CREATE TABLE table_3021 ( "Overall" real, "No. in series" real, "Title" text, "Directed by" text, "Original air date" text, "U.S. viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many million U.S. viewer...
SELECT "U.S. viewers (in millions)" FROM table_3021 WHERE "Directed by" = 'Daniel H. Forer'
### Instruction: CREATE TABLE table_7805 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wat was the result for the 20 km after 2008 when the venue was Metz, France? ### Respons...
SELECT "Result" FROM table_7805 WHERE "Year" > '2008' AND "Event" = '20 km' AND "Venue" = 'metz, france'
### Instruction: CREATE TABLE table_7849 ( "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 day was the winning score 16 (67-70-69-66=272)? ### Respo...
SELECT "Date" FROM table_7849 WHERE "Winning score" = '–16 (67-70-69-66=272)'
### Instruction: CREATE TABLE table_13920 ( "Position" text, "Gymnast" text, "A Score" real, "B Score" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the average B Score that has the Position of 2nd, and the Total small...
SELECT AVG("B Score") FROM table_13920 WHERE "Position" = '2nd' AND "Total" < '15.525'
### Instruction: CREATE TABLE table_31377 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" text, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What man...
SELECT COUNT("Date") FROM table_31377 WHERE "Race" = 'Victoria Derby'
### Instruction: CREATE TABLE table_38174 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tournament had a 2010 result of QF and a 2012 result of SF? ### Response:
SELECT "Tournament" FROM table_38174 WHERE "2012" = 'sf' AND "2010" = 'qf'
### Instruction: CREATE TABLE table_27920 ( "meas. num" real, "passed" text, "YES votes" real, "NO votes" real, "% YES" text, "Const. Amd.?" text, "type" text, "description" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the pas...
SELECT "passed" FROM table_27920 WHERE "NO votes" = '61307'
### Instruction: CREATE TABLE table_40712 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year Year has a Co-Drivers of j r me polican...
SELECT SUM("Year") FROM table_40712 WHERE "Co-Drivers" = 'jérôme policand christopher campbell'
### Instruction: CREATE TABLE table_54008 ( "Year" text, "TCKL" real, "SACK" real, "P/KO RET" real, "YARDS" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of TCKL in 2000 with a P/KO RET less than 14? ### Response:
SELECT COUNT("TCKL") FROM table_54008 WHERE "Year" = '2000' AND "P/KO RET" < '14'
### Instruction: CREATE TABLE table_52375 ( "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 was the score of the Home ...
SELECT "Home team score" FROM table_52375 WHERE "Away team" = 'south melbourne'
### Instruction: CREATE TABLE table_31200 ( "Skip (Club)" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ...
SELECT MAX("W") FROM table_31200 WHERE "L" = '0'
### Instruction: CREATE TABLE table_8127 ( "Season" real, "Date" text, "Winner" text, "Score [C ]" text, "Venue" text, "Competition round [D ]" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the competition before the 1930 season, and a ...
SELECT "Competition round [D ]" FROM table_8127 WHERE "Season" < '1930' AND "Winner" = 'draw'
### Instruction: CREATE TABLE table_14508 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Bronze larger than 2, and a Rank of 4, and a Total larger than 7 has how many numbers of gold?...
SELECT AVG("Gold") FROM table_14508 WHERE "Bronze" > '2' AND "Rank" = '4' AND "Total" > '7'
### Instruction: CREATE TABLE table_24928 ( "Name" text, "Position" text, "Height" text, "Weight" text, "Date of Birth" text, "Home Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the height is 185cm and the home team is Heaton Mersey, w...
SELECT "Date of Birth" FROM table_24928 WHERE "Height" = '185cm' AND "Home Team" = 'Heaton Mersey'
### Instruction: CREATE TABLE table_4749 ( "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 was the away team score whe...
SELECT "Away team score" FROM table_4749 WHERE "Home team score" = '6.11 (47)'
### Instruction: CREATE TABLE table_62249 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Home Team, when Date is '22 Nov 1989', and when Away Team is 'Bath City'? ##...
SELECT "Home team" FROM table_62249 WHERE "Date" = '22 nov 1989' AND "Away team" = 'bath city'
### Instruction: CREATE TABLE table_204_123 ( id number, "week" number, "date" text, "kickoff" text, "opponent" text, "results\nfinal score" text, "results\nteam record" text, "game site" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT "results\nteam record" FROM table_204_123 ORDER BY "week" DESC LIMIT 1
### Instruction: CREATE TABLE table_27179 ( "Year" text, "Amiga demo" text, "PC demo" text, "C64 demo" text, "Amiga intro" text, "PC intro" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What won best pc intro when my kingdom (haujobb & scoopex)...
SELECT "PC intro" FROM table_27179 WHERE "Amiga demo" = 'My Kingdom (Haujobb & Scoopex)'
### Instruction: CREATE TABLE table_25540 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Rank (week)" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT MAX("#") FROM table_25540 WHERE "Written by" = 'David Hoselton'
### Instruction: CREATE TABLE table_226 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Kickoff [a ]" text, "Game site" text, "TV" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is ...
SELECT COUNT("Kickoff [a ]") FROM table_226 WHERE "Week" = 'Week'
### Instruction: CREATE TABLE table_55314 ( "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 Away team scored 21.10 (1...
SELECT "Away team" FROM table_55314 WHERE "Away team score" = '21.10 (136)'
### Instruction: CREATE TABLE table_26650 ( "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. -- List the number of vacators when su...
SELECT COUNT("Vacator") FROM table_26650 WHERE "Date of successors formal installation" = 'June 22, 1868'
### Instruction: CREATE TABLE table_22440 ( "Round" text, "Clubs remaining" real, "Clubs involved" real, "Winners from previous round" text, "New entries this round" text, "Leagues entering at this round" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT MAX("Clubs remaining") FROM table_22440 WHERE "Leagues entering at this round" = 'Süper Lig'
### Instruction: CREATE TABLE table_202_281 ( id number, "date" text, "time (edt)" number, "team #1" text, "res." text, "team #2" text, "round" text, "spectators" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which team won the 1994 f...
SELECT "team #1" FROM table_202_281 ORDER BY "spectators" DESC LIMIT 1
### Instruction: CREATE TABLE table_204_106 ( id number, "year" number, "title" text, "image" text, "dimensions" text, "collection" text, "comments" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- bentley vs the blue train is below blank in t...
SELECT "title" FROM table_204_106 WHERE id = (SELECT id FROM table_204_106 WHERE "title" = 'bentley vs the blue train') - 1
### Instruction: CREATE TABLE table_26952 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most goals for algeria ### Respo...
SELECT MIN("Goals\u00b9") FROM table_26952 WHERE "Nationality\u00b2" = 'Algeria'
### Instruction: CREATE TABLE table_51100 ( "Outcome" text, "Date" real, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which surface had a date after 1982 and part...
SELECT "Surface" FROM table_51100 WHERE "Date" > '1982' AND "Partner" = 'guy forget'
### Instruction: CREATE TABLE table_80101 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? ### Response:
SELECT "Chassis" FROM table_80101 WHERE "Year" < '1956' AND "Engine" = 'gordini straight-4' AND "Points" = '3'
### Instruction: CREATE TABLE table_203_247 ( id number, "district" text, "counties represented" text, "delegate" text, "party" text, "first elected" number, "committee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total amount...
SELECT COUNT(*) FROM table_203_247 WHERE "committee" = 'judiciary' AND "party" = 'republican'
### Instruction: CREATE TABLE table_9285 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "High assists" FROM table_9285 WHERE "Team" = 'l.a. lakers'
### Instruction: CREATE TABLE table_77246 ( "Position" real, "Team" text, "Rd 6" real, "Rd 7" real, "Rd 8" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average value for Rd 8 in a position less than 2 for Audi Sport A...
SELECT AVG("Rd 8") FROM table_77246 WHERE "Team" = 'audi sport australia' AND "Position" < '2'
### Instruction: CREATE TABLE table_59765 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Team 2 if the 1st Leg is 3-1 and the 2nd Leg is 4-1? ### Response:
SELECT "Team 2" FROM table_59765 WHERE "1st leg" = '3-1' AND "2nd leg" = '4-1'
### Instruction: CREATE TABLE table_203_413 ( id number, "rank" text, "city" text, "population" number, "area\n(km2)" number, "density\n(inhabitants/km2)" number, "altitude\n(mslm)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which city...
SELECT "city" FROM table_203_413 ORDER BY "density\n(inhabitants/km2)" LIMIT 1
### Instruction: CREATE TABLE table_42702 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than ...
SELECT COUNT("Gold") FROM table_42702 WHERE "Silver" > '1' AND "Nation" = 'vietnam' AND "Bronze" < '3'
### Instruction: CREATE TABLE table_74156 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Score" FROM table_74156 WHERE "Record" = '3–12'
### Instruction: CREATE TABLE table_73059 ( "Province" text, "Capital" text, "Area (km\u00b2)" text, "Population" real, "Density" real, "Map region" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when province is monse or nouel, what is the area...
SELECT "Area (km\u00b2)" FROM table_73059 WHERE "Province" = 'Monseñor Nouel'
### Instruction: CREATE TABLE table_49543 ( "Date" text, "H/A/N" text, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the opponents when the score was 122-135 and the H/A/N was H? ### Response:
SELECT "Opponent" FROM table_49543 WHERE "H/A/N" = 'h' AND "Score" = '122-135'
### Instruction: CREATE TABLE table_203_239 ( id number, "year" number, "title" text, "chinese title" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- after never say goodbye , what was the title of the next movie she wa...
SELECT "title" FROM table_203_239 WHERE id = (SELECT id FROM table_203_239 WHERE "title" = 'never say goodbye') + 1
### Instruction: CREATE TABLE table_36287 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Surface of hard on 28 august 1993? ### Res...
SELECT "Opponent" FROM table_36287 WHERE "Surface" = 'hard' AND "Date" = '28 august 1993'
### Instruction: CREATE TABLE table_15392 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much money has 76-70-68-73=287 as a score? ### Response:
SELECT SUM("Money ( $ )") FROM table_15392 WHERE "Score" = '76-70-68-73=287'
### Instruction: CREATE TABLE table_name_22 ( area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which area 2006 km has a city of sopot, and an area 1996 km smaller than 17.31? ### Response:
SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31
### Instruction: CREATE TABLE table_79006 ( "Player" text, "Team" text, "Round 1" real, "Round 2" text, "Subtotal" real, "Finals" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player has a subtotal of more than 3 and mor...
SELECT "Player" FROM table_79006 WHERE "Subtotal" > '3' AND "Round 1" > '8'
### Instruction: CREATE TABLE table_30754 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Location Attendance" FROM table_30754 WHERE "Date" = 'January 9'
### Instruction: CREATE TABLE table_39108 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the position for mauro at the world championships in 1985 during the foil ind...
SELECT "Position" FROM table_39108 WHERE "Event" = 'foil individual' AND "Competition" = 'world championships' AND "Year" = '1985'
### Instruction: CREATE TABLE table_name_71 ( tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Tournament had a Victory of 1 Stroke with a Winning score of 16 (67-66-70-69=272)? ### Respon...
SELECT tournament FROM table_name_71 WHERE margin_of_victory = "1 stroke" AND winning_score = –16(67 - 66 - 70 - 69 = 272)
### Instruction: CREATE TABLE table_58509 ( "Round" text, "Date" text, "Home Team" text, "Score" text, "Away Team" text, "Crowd" real, "Stadium" text, "Match Details" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Im the match where the ...
SELECT COUNT("Crowd") FROM table_58509 WHERE "Home Team" = 'melbourne victory'
### Instruction: CREATE TABLE table_2200 ( "Index (Year)" text, "Author / Editor / Source" text, "Year of publication" text, "Countries sampled" real, "World Ranking (1)" text, "Ranking L.A. (2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "World Ranking (1)" FROM table_2200 WHERE "Author / Editor / Source" = 'Transparency International'
### Instruction: CREATE TABLE table_77951 ( "CERCLIS ID" text, "County" text, "Proposed" text, "Listed" text, "Construction completed" text, "Partially deleted" text, "Deleted" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What construction...
SELECT "Listed" FROM table_77951 WHERE "Construction completed" = '08/10/2007'
### Instruction: CREATE TABLE table_2383498_4 ( last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001? ### Response:
SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001"
### Instruction: CREATE TABLE table_10065 ( "Railway" text, "Builder" text, "Built" text, "Wheels" text, "Location" text, "ObjectNumber" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Object Number for the item with wheels 4-4-0 and ...
SELECT "ObjectNumber" FROM table_10065 WHERE "Location" = 'barrow hill' AND "Wheels" = '4-4-0'
### Instruction: CREATE TABLE table_48929 ( "Rank" real, "Mountain Peak" text, "State" text, "Mountain Range" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which location is in Oregon, ranked under 121, and contains Mount McLoughli...
SELECT "Location" FROM table_48929 WHERE "State" = 'oregon' AND "Rank" < '121' AND "Mountain Peak" = 'mount mcloughlin'
### Instruction: CREATE TABLE table_55342 ( "Finish Position" text, "Lengths Behind" text, "Post Position" real, "Horse name" text, "Trainer" text, "Jockey" text, "Owner" text, "Post Time Odds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Owner" FROM table_55342 WHERE "Lengths Behind" = '5½'
### Instruction: CREATE TABLE table_68589 ( "Terminal" text, "Operator" text, "Depth (m)" text, "Berths" real, "Quay cranes" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the operator with berths more than 1 and depth of 12.5-15.5 ### Respon...
SELECT "Operator" FROM table_68589 WHERE "Berths" > '1' AND "Depth (m)" = '12.5-15.5'
### Instruction: CREATE TABLE table_78809 ( "Geelong DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of byes where the losses were 9 and the dr...
SELECT MAX("Byes") FROM table_78809 WHERE "Losses" = '9' AND "Draws" < '0'
### Instruction: CREATE TABLE table_70136 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which stage ...
SELECT "Stage" FROM table_70136 WHERE "Mountains classification" = 'mariano piccoli' AND "Winner" = 'giuseppe citterio'
### Instruction: CREATE TABLE table_20492 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Bills points" real, "Opponents" real, "Bills first downs" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the la...
SELECT MIN("Game") FROM table_20492 WHERE "Bills first downs" = '21'
### Instruction: CREATE TABLE table_65178 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" real, "Average Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Episodes have a TV Station of tbs, and a Japanese Titl...
SELECT MAX("Episodes") FROM table_65178 WHERE "TV Station" = 'tbs' AND "Japanese Title" = '今夜ひとりのベッドで'
### Instruction: CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) -- Using valid SQLite, answer the following quest...
SELECT Investor, COUNT(Investor) FROM entrepreneur GROUP BY Investor
### Instruction: CREATE TABLE table_26447 ( "Song title" text, "Artist" text, "Year" real, "Genre" text, "Single / Pack name" text, "Release date" text, "Family Friendly" text, "Additional Rock Band 3 Features" text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT "Year" FROM table_26447 WHERE "Song title" = ' Little Sister '
### Instruction: CREATE TABLE table_70270 ( "Name" text, "League" real, "Play-offs" real, "FA Cup" real, "League Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total of number of FA Cup that has a League small than ...
SELECT COUNT("FA Cup") FROM table_70270 WHERE "League" < '29' AND "Play-offs" < '0'
### Instruction: CREATE TABLE table_76817 ( "Model Number" text, "Frequency" text, "L2-Cache" text, "Front Side Bus" text, "Multiplier" text, "Voltage" text, "Socket" text, "Release Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Frequency" FROM table_76817 WHERE "Model Number" = 'c7 1.0'
### Instruction: CREATE TABLE table_name_75 ( name VARCHAR, apparent_magnitude VARCHAR, ra___j2000__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s? ### Response:
SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s"