instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_21459 ( "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 MAX("Game") FROM table_21459 WHERE "Date" = 'January 19'
### Instruction: CREATE TABLE table_16709 ( "Rnd" real, "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Race Winner" FROM table_16709 WHERE "Date" = '12 June'
### Instruction: CREATE TABLE table_55162 ( "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 the game where the home team...
SELECT "Venue" FROM table_55162 WHERE "Home team score" = '9.9 (63)'
### Instruction: CREATE TABLE table_54922 ( "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 was the away team when the ...
SELECT "Away team" FROM table_54922 WHERE "Home team score" = '12.21 (93)'
### Instruction: CREATE TABLE table_42626 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Played has a Points of 2...
SELECT AVG("Played") FROM table_42626 WHERE "Points" = '2' AND "Position" < '8'
### Instruction: CREATE TABLE table_203_244 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only rider with more points than doriano romboni ?...
SELECT "rider" FROM table_203_244 WHERE "points" > (SELECT "points" FROM table_203_244 WHERE "rider" = 'doriano romboni')
### Instruction: CREATE TABLE table_204_538 ( id number, "pos." number, "driver" text, "co-driver" text, "car" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which driver drove the same car as luis serrado ? ### Response:
SELECT "driver" FROM table_204_538 WHERE "driver" <> 'luis serrado' AND "car" = (SELECT "car" FROM table_204_538 WHERE "driver" = 'luis serrado')
### Instruction: CREATE TABLE table_204_463 ( id number, "year" number, "division" number, "league" text, "regular season" text, "playoffs" text, "open cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total amount of times th...
SELECT COUNT(*) FROM table_204_463 WHERE "playoffs" = 'did not qualify'
### Instruction: CREATE TABLE table_7719 ( "Basin" text, "Outlet" text, "Total Area" text, "In-State Area" text, "% In-State" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What outlet has and in-state area of 055 1,497km 2 578mi 2? ### Response:
SELECT "Outlet" FROM table_7719 WHERE "In-State Area" = '055 1,497km 2 578mi 2'
### Instruction: CREATE TABLE table_27420 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original Canadian air date" text, "Fox Int. Channels air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT COUNT("Fox Int. Channels air date") FROM table_27420 WHERE "Series #" = '5'
### Instruction: CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) -- Using valid SQLite, answer the follo...
SELECT Type, COUNT(Type) FROM ship GROUP BY Nationality, Type
### Instruction: CREATE TABLE table_203_148 ( id number, "date" text, "name" text, "nationality" text, "tonnage\n(grt)" number, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what nationality is on top of french navy ? ### Response:
SELECT "nationality" FROM table_203_148 WHERE id = (SELECT id FROM table_203_148 WHERE "nationality" = 'french navy') - 1
### Instruction: CREATE TABLE table_17350 ( "#" 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. -- what's the...
SELECT "Home" FROM table_17350 WHERE "Score" = 'L 80–88'
### Instruction: CREATE TABLE table_70737 ( "Model" text, "Build date" text, "Total produced" real, "Wheel arrangement" text, "Prime mover" text, "Power output" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What model has a total produced more ...
SELECT "Model" FROM table_70737 WHERE "Total produced" > '5' AND "Prime mover" = '12-251c'
### Instruction: CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) -- Using valid SQLite, answer the following questions for t...
SELECT Class, COUNT(Class) FROM captain GROUP BY Class ORDER BY Class
### Instruction: CREATE TABLE table_10811 ( "Round" text, "Opponent" text, "Date" text, "Venue" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what round saw wakefield trinity wildcats u21 as the opponenet at belle vue? ### Res...
SELECT "Round" FROM table_10811 WHERE "Opponent" = 'wakefield trinity wildcats u21' AND "Venue" = 'belle vue'
### Instruction: CREATE TABLE table_name_26 ( murder__2012__rate_per_100 VARCHAR, peace__2012__gpi VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What murder (2012) rate per 100,00 also has a 1.616 as the peace (2012) GPI? ### Response:
SELECT murder__2012__rate_per_100, 000 FROM table_name_26 WHERE peace__2012__gpi = 1.616
### Instruction: CREATE TABLE table_37356 ( "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. -- What is the Class for the ERP W of more than 2 and ...
SELECT "Class" FROM table_37356 WHERE "ERP W" > '2' AND "Call sign" = 'w223au'
### Instruction: CREATE TABLE table_24152 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were D rr's ...
SELECT "Opponents in the final" FROM table_24152 WHERE "Year" = '1968'
### Instruction: CREATE TABLE table_203_220 ( id number, "outcome" text, "no." number, "date" text, "tournament" text, "surface" text, "opponent in the final" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was her oppon...
SELECT "opponent in the final" FROM table_203_220 WHERE "tournament" = 'mestre'
### Instruction: CREATE TABLE table_56617 ( "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 home team played against t...
SELECT "Home team" FROM table_56617 WHERE "Away team score" = '13.6 (84)'
### Instruction: CREATE TABLE table_64139 ( "Club" text, "Active" text, "Wins" real, "Losses" real, "Draws" real, "Percentage wins" text, "Flags" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the losses of Warrnambool with a draw l...
SELECT AVG("Losses") FROM table_64139 WHERE "Club" = 'warrnambool' AND "Draws" < '19'
### Instruction: CREATE TABLE table_7944 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Money ( $ ), when Score is '75-71-72-70=288'? ### Respons...
SELECT "Money ( $ )" FROM table_7944 WHERE "Score" = '75-71-72-70=288'
### Instruction: CREATE TABLE table_63716 ( "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 a total less than 11, more than 1 silver and less than 1 br...
SELECT "Nation" FROM table_63716 WHERE "Total" < '11' AND "Silver" < '1' AND "Bronze" < '1'
### Instruction: CREATE TABLE table_23625 ( "Electorate" text, "Labour" text, "National" text, "New Zealand First" text, "Green" text, "United Future" text, "Maori Party" text, "ACT" text, "Progressive" text, "Other" text ) -- Using valid SQLite, answer the following questions ...
SELECT "Green" FROM table_23625 WHERE "Electorate" = 'Otaki'
### Instruction: CREATE TABLE table_16815 ( "model" text, "max. motive power" text, "max. torque at rpm" text, "engine displacement" text, "engine type" text, "engine configuration & notes 0-100km/h" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "engine displacement" FROM table_16815 WHERE "engine type" = 'B5254 T'
### Instruction: CREATE TABLE table_203_303 ( id number, "tribunal" text, "number of autos da fe" number, "executions in persona" number, "executions in effigie" number, "penanced" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "tribunal" FROM table_203_303 ORDER BY "total" LIMIT 1
### Instruction: CREATE TABLE table_203_529 ( id number, "fin" number, "st" number, "driver" text, "car #" number, "make" text, "points" number, "bonus" number, "laps" number, "winnings" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "driver" FROM table_203_529 ORDER BY "winnings" DESC LIMIT 1
### Instruction: CREATE TABLE table_69042 ( "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 was the Position of Pick #23 in a Round less than 5 with 23 Over...
SELECT "Position" FROM table_69042 WHERE "Round" < '5' AND "Pick #" = '23' AND "Overall" = '23'
### Instruction: CREATE TABLE table_73014 ( "Year" real, "Illinois" text, "Indiana" text, "Kentucky" text, "Michigan" text, "Ohio" text, "Wisconsin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the little league team from Ohio whe...
SELECT "Ohio" FROM table_73014 WHERE "Kentucky" = 'Warren County South LL Bowling Green'
### Instruction: CREATE TABLE table_73269 ( "Gas name" text, "Chemical formula" text, "Lifetime (years)" text, "20-yr" text, "100-yr" text, "500-yr" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 20 year for Sulfur Hexafluoride? ##...
SELECT "20-yr" FROM table_73269 WHERE "Gas name" = 'Sulfur hexafluoride'
### Instruction: CREATE TABLE table_41110 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many losses does corinthia...
SELECT COUNT("Lost") FROM table_41110 WHERE "Team" = 'corinthians' AND "Points" > '22'
### Instruction: CREATE TABLE table_54784 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Nationality" text, "Team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the team for pick more than 30 and position...
SELECT "Team" FROM table_54784 WHERE "Pick" > '30' AND "Position" = 'c' AND "Round" > '4'
### Instruction: CREATE TABLE table_name_71 ( time_retired VARCHAR, rider VARCHAR, laps VARCHAR, manufacturer VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time/retired of the honda manufacturer with a grid less than 26...
SELECT time_retired FROM table_name_71 WHERE manufacturer = "honda" AND grid < 26 AND laps = 18 AND rider = "joan olivé"
### Instruction: CREATE TABLE table_17942 ( "Year" real, "Starts" real, "Wins (Majors)" text, "2nd" real, "3rd" real, "Earnings ($)" real, "Money list rank" text, "Scoring average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is t...
SELECT "Money list rank" FROM table_17942 WHERE "Year" = '1966'
### Instruction: CREATE TABLE table_9312 ( "Player" text, "Team" text, "Matches" real, "Innings" real, "Runs" real, "Average" real, "Highest Score" text, "100s" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of...
SELECT AVG("Innings") FROM table_9312 WHERE "100s" > '3'
### Instruction: CREATE TABLE table_56584 ( "Unit" text, "Complement" text, "Killed" text, "Wounded" text, "Missing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wound...
SELECT "Complement" FROM table_56584 WHERE "Killed" = '0 off 0 men' AND "Wounded" = '0 off 0 men' AND "Unit" = 'artillery corps'
### Instruction: CREATE TABLE table_20420 ( "Episode Number" real, "Air Date" text, "Guest Host" text, "Musical Guest (Song performed)" text, "Who knows the most about the guest host? panelists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what...
SELECT "Air Date" FROM table_20420 WHERE "Who knows the most about the guest host? panelists" = 'Gary Lucy and Susie Verrico'
### Instruction: CREATE TABLE table_23581 ( "Title" text, "Author" text, "Reader" text, "Format" text, "Company" text, "Release Date" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which companies released on 2010-11-04 4 novem...
SELECT "Company" FROM table_23581 WHERE "Release Date" = '2010-11-04 4 November 2010'
### Instruction: CREATE TABLE table_24727 ( "School" text, "Location" text, "Enrolment" real, "Founded" real, "Denomination" text, "Boys/Girls" text, "Day/Boarding" text, "School Colors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How...
SELECT COUNT("Founded") FROM table_24727 WHERE "Enrolment" = '850'
### Instruction: CREATE TABLE table_78693 ( "Seat Order (Right to Left)" real, "Series 1" text, "Series 2" text, "Series 3" text, "Series 5" text, "Series 9" text, "Series 11" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Series 1 has...
SELECT "Series 1" FROM table_78693 WHERE "Series 11" = 'peter jones'
### Instruction: CREATE TABLE table_47377 ( "Rank" real, "Mountain Peak" text, "Region" text, "Mountain Range" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the mountain peak when the location is 53.1370 n 119.2667 w? ###...
SELECT "Mountain Peak" FROM table_47377 WHERE "Location" = '53.1370°n 119.2667°w'
### Instruction: CREATE TABLE table_34392 ( "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 the record of the game played at home by th...
SELECT "Record" FROM table_34392 WHERE "Attendance" > '4,719' AND "Home" = 'blues'
### Instruction: CREATE TABLE table_71684 ( "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. -- What is the to par for the player who had a score of 70-72-70-69=2...
SELECT "To par" FROM table_71684 WHERE "Score" = '70-72-70-69=281'
### Instruction: CREATE TABLE table_16297 ( "Season" text, "Series" text, "Team Name" 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 abo...
SELECT "Season" FROM table_16297 WHERE "Team Name" = 'ART Grand Prix'
### Instruction: CREATE TABLE table_name_70 ( caps INTEGER, club_province VARCHAR, date_of_birth__age_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Caps is the lowest one that has a Club/province of ospreys, and a Date of Birth (Age) of 19 septem...
SELECT MIN(caps) FROM table_name_70 WHERE club_province = "ospreys" AND date_of_birth__age_ = "19 september 1985"
### Instruction: CREATE TABLE table_59839 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( \u00a3 )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What To par has a Score of 71-73-71-71=286? ### Response:
SELECT "To par" FROM table_59839 WHERE "Score" = '71-73-71-71=286'
### Instruction: CREATE TABLE table_57501 ( "City of license/market" text, "Station" text, "Channel TV ( RF )" text, "Year of affiliation" real, "Year of disaffiliation" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the earliest year of dis...
SELECT MIN("Year of disaffiliation") FROM table_57501 WHERE "City of license/market" = 'hamilton, ontario'
### Instruction: CREATE TABLE table_27185 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "No. in series" FROM table_27185 WHERE "Title" = 'Past Tense'
### Instruction: CREATE TABLE table_52944 ( "State ranked in partisan order" text, "Percentage Democrats" text, "Percentage Republicans" text, "Democratic/ Republican" text, "Democratic seat plurality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "Democratic seat plurality" FROM table_52944 WHERE "State ranked in partisan order" = 'new hampshire'
### Instruction: CREATE TABLE table_37513 ( "Season" text, "Competition" text, "Round" text, "Against" text, "Played" text, "Drew" text, "Lost" text, "Goals for" text, "Goals against" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Ho...
SELECT "Lost" FROM table_37513 WHERE "Goals against" = '5'
### Instruction: CREATE TABLE table_51974 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the home team of the game with manu...
SELECT "Home" FROM table_51974 WHERE "Leading scorer" = 'manu ginóbili (34)'
### Instruction: CREATE TABLE table_4810 ( "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 is the home team's score wh...
SELECT "Home team score" FROM table_4810 WHERE "Away team score" = '9.14 (68)'
### Instruction: CREATE TABLE table_78497 ( "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. -- How many people witnessed their...
SELECT MAX("Crowd") FROM table_78497 WHERE "Home team score" = '13.15 (93)'
### Instruction: CREATE TABLE table_63106 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than...
SELECT AVG("Rank") FROM table_63106 WHERE "Nationality" = 'france' AND "Name" = 'alain bernard' AND "Lane" < '6'
### Instruction: CREATE TABLE member_of_club ( stuid number, clubid number, position text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE club ( clubid number, clubname ...
SELECT clubname FROM club
### Instruction: CREATE TABLE table_45093 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and...
SELECT MAX("Bronze") FROM table_45093 WHERE "Gold" > '0' AND "Total" = '15' AND "Silver" < '5'
### Instruction: CREATE TABLE table_27659 ( "English" text, "Latin" text, "Proto-Italo-Western 1" text, "Conservative Central Italian 1" text, "Italian" text, "Spanish" text, "Catalan" text, "Old French" text ) -- Using valid SQLite, answer the following questions for the tables provid...
SELECT "Latin" FROM table_27659 WHERE "Catalan" = 'mar'
### Instruction: CREATE TABLE table_14903627_1 ( mens_doubles VARCHAR, womens_doubles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE? ### Response:
SELECT mens_doubles FROM table_14903627_1 WHERE womens_doubles = "Helen Reino Kai-Riin Saluste"
### Instruction: CREATE TABLE table_69007 ( "Country" text, "2006" real, "2005" real, "2004" real, "2003" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Country has a number smaller than 3 in 2004 and larger than 1 in 2005? ### Response:
SELECT COUNT("2006") FROM table_69007 WHERE "2004" < '3' AND "2005" > '1'
### Instruction: CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) -- Using valid SQLite, answer the following questions for t...
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_13713 ( "Year" real, "MISS EARTH" text, "Miss Air (1st Runner-up)" text, "Miss Water (2nd Runner-up)" text, "Miss Fire (3rd Runner-up)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was Caroline Medina ...
SELECT AVG("Year") FROM table_13713 WHERE "Miss Fire (3rd Runner-up)" = 'caroline medina'
### Instruction: CREATE TABLE table_73445 ( "County" text, "Population" real, "Unemployment Rate" text, "Market Income Per Capita" text, "Poverty Rate" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the market income per c...
SELECT "Market Income Per Capita" FROM table_73445 WHERE "Poverty Rate" = '9.4%'
### Instruction: CREATE TABLE table_204_192 ( id number, "year" number, "team" text, "co-drivers" text, "car" text, "class" text, "laps" number, "pos." text, "class\npos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many diffe...
SELECT COUNT(DISTINCT "team") FROM table_204_192 WHERE "year" >= 1985
### Instruction: CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults number, kids number ) CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy num...
SELECT COUNT(*) FROM rooms
### Instruction: CREATE TABLE table_52379 ( "Player" text, "Tackles" real, "Solo" real, "Assisted" real, "Sack" real, "Yards" real, "TD's" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many yards for the player with 20 solo tackles and ...
SELECT SUM("Yards") FROM table_52379 WHERE "Solo" = '20' AND "TD's" < '0'
### Instruction: CREATE TABLE table_62314 ( "Pick" real, "Player" text, "Team" text, "Position" text, "Hometown/School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Hometown/School had a pick above 30, position of OF and team of Cleveland Ind...
SELECT "Hometown/School" FROM table_62314 WHERE "Pick" > '30' AND "Position" = 'of' AND "Team" = 'cleveland indians'
### Instruction: CREATE TABLE table_16482 ( "Trim" text, "Engine" text, "Turbo" text, "Fuel Delivery" text, "Power" text, "Torque" text, "Transmission" text, "Performance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the turbo w...
SELECT "Turbo" FROM table_16482 WHERE "Trim" = '2.0 20v'
### Instruction: CREATE TABLE nuclear_power_plants ( id text, name text, latitude text, longitude text, country text, status text, reactortype text, reactormodel text, constructionstartat text, operationalfrom text, operationalto text, capacity text, lastupdatedat tex...
SELECT country FROM nuclear_power_plants WHERE name = "Chinon-A3"
### Instruction: CREATE TABLE table_23770 ( "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 was...
SELECT "Result" FROM table_23770 WHERE "Jockey" = 'J. Marshall'
### Instruction: CREATE TABLE table_204_615 ( id number, "date" text, "opponent" text, "result" text, "goal scorers (season goals)" text, "goalie saves" text, "attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which month were mo...
SELECT "date" FROM table_204_615 WHERE "date" IN (9, 10) GROUP BY "date" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_41637 ( "Driver" text, "NOR 1" text, "NOR 2" text, "ZAN 1" text, "ZAN 2" text, "N\u00dcR 1" text, "N\u00dcR 2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What driver has 5 as the zan 2? ### Response:...
SELECT "Driver" FROM table_41637 WHERE "ZAN 2" = '5'
### Instruction: CREATE TABLE table_204_696 ( id number, "issue" number, "volume" number, "title" text, "main feature story" text, "first/early appearance story/stories" text, "release date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how...
SELECT COUNT(*) FROM table_204_696 WHERE "release date" > (SELECT "release date" FROM table_204_696 WHERE "title" = 'power man')
### Instruction: CREATE TABLE table_77194 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727...
SELECT MIN("Week") FROM table_77194 WHERE "Opponent" = 'pittsburgh steelers' AND "Attendance" > '47,727'
### Instruction: CREATE TABLE table_25856 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Date" FROM table_25856 WHERE "Score" = 'L 89–92 (OT)'
### Instruction: CREATE TABLE table_25021 ( "Year" real, "1st Venue" text, "2nd Venue" text, "3rd Venue" text, "4th Venue" text, "5th Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Qingdao was the 1st venue city, how many 2nd venue c...
SELECT COUNT("2nd Venue") FROM table_25021 WHERE "1st Venue" = 'Qingdao'
### Instruction: CREATE TABLE table_53449 ( "Rank" real, "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 for nations ranked below 4, over 5 medals, and under 6 silve...
SELECT COUNT("Gold") FROM table_53449 WHERE "Rank" > '4' AND "Total" > '5' AND "Silver" < '6'
### Instruction: CREATE TABLE table_24579 ( "Round #" real, "Pick #" real, "Player" text, "Position" text, "Nationality" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which nationality is kitchener rangers (ohl)...
SELECT "Nationality" FROM table_24579 WHERE "College/junior/club team" = 'Kitchener Rangers (OHL)'
### Instruction: CREATE TABLE table_15451 ( "Date" text, "Location" text, "Nature of incident" text, "Circumstances" text, "Casualties" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the casualities for nation of incident of hostile on 2006-06-...
SELECT "Casualties" FROM table_15451 WHERE "Nature of incident" = 'hostile' AND "Date" = '2006-06-26'
### Instruction: CREATE TABLE table_name_74 ( victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, wi...
SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = "1st" AND jockey = "kent desormeaux" AND time = "1:35.66"
### Instruction: CREATE TABLE table_46875 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Total(s), when Finish is 'T21', and w...
SELECT COUNT("Total") FROM table_46875 WHERE "Finish" = 't21' AND "To par" > '23'
### Instruction: CREATE TABLE table_name_84 ( number_of_branches INTEGER, on_site_atms VARCHAR, off_site_atms VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigg...
SELECT SUM(number_of_branches) FROM table_name_84 WHERE on_site_atms = 1548 AND off_site_atms > 3672
### Instruction: CREATE TABLE table_7878 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Nationality" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT POSITION HAS A PICK SMALLER THAN 33, AND PLAYER BEING DARRELL...
SELECT "Position" FROM table_7878 WHERE "Pick" < '33' AND "Player" = 'darrell arthur'
### Instruction: CREATE TABLE table_63435 ( "Processor" text, "Model" text, "Clock speed (MHz)" real, "L1 cache (bytes)" text, "Introduced" text, "Discontinued" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least clock speed (MHz) w...
SELECT MIN("Clock speed (MHz)") FROM table_63435 WHERE "Introduced" = 'january 1986'
### Instruction: CREATE TABLE table_75218 ( "Home Run" real, "Game" real, "Date" text, "Inning" text, "Location" text, "Opposing Pitcher" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On June 17 in Tiger stadium, what was the a...
SELECT AVG("Home Run") FROM table_75218 WHERE "Location" = 'tiger stadium' AND "Date" = 'june 17'
### Instruction: CREATE TABLE table_14209 ( "Rank" real, "Lane" real, "Athlete" text, "Nationality" text, "Time" real, "React" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the shortest Time for David Neville when his React time was gre...
SELECT MIN("Time") FROM table_14209 WHERE "React" > '0.183' AND "Athlete" = 'david neville'
### Instruction: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) -- Using valid SQLite, answer the following questions for t...
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY Rank DESC
### Instruction: CREATE TABLE table_14430 ( "Estimate" text, "Name" text, "Nat." text, "Ship Type" text, "Principal victims" text, "Where sunk" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the estimated number of vict...
SELECT "Estimate" FROM table_14430 WHERE "Date" = 'april 27, 1865'
### Instruction: CREATE TABLE table_203_793 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of fifa w...
SELECT COUNT(*) FROM table_203_793 WHERE "competition" = '1982 fifa world cup'
### Instruction: CREATE TABLE table_10839 ( "Year" real, "Title" text, "Role" text, "Leading Lady" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directs before 1949 with linda darnell leading and jonathan kent? ### Response:
SELECT "Director" FROM table_10839 WHERE "Year" < '1949' AND "Leading Lady" = 'linda darnell' AND "Role" = 'jonathan kent'
### Instruction: CREATE TABLE table_55619 ( "Rank" real, "Movie" text, "Year" real, "Studio(s)" text, "Single Day Net Gross" real, "Day in Release" text, "Day of Week" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year f...
SELECT AVG("Year") FROM table_55619 WHERE "Day in Release" = 'friday' AND "Day of Week" > '2'
### Instruction: CREATE TABLE table_26863 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "FLaps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT COUNT("Poles") FROM table_26863 WHERE "Position" = '15th'
### Instruction: CREATE TABLE table_14916 ( "Season" text, "Series" text, "Races" text, "Wins" text, "Podiums" text, "Points" text, "Final Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Season has 0 Podiums, 1 Race, and 0 Poin...
SELECT "Season" FROM table_14916 WHERE "Podiums" = '0' AND "Races" = '1' AND "Points" = '0'
### Instruction: CREATE TABLE customers ( good_or_bad_customer VARCHAR, coupon_id VARCHAR ) CREATE TABLE discount_coupons ( coupon_id VARCHAR, coupon_amount VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Are the customers holding coupons with amount...
SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500
### Instruction: CREATE TABLE table_28604 ( "Year" real, "Under-11" text, "Under-13" text, "Under-15" text, "Under-17" text, "Under-19" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the under-11 was Aly Abou El Einen, who was the under-13?...
SELECT "Under-13" FROM table_28604 WHERE "Under-11" = 'Aly Abou El Einen'
### Instruction: CREATE TABLE table_39296 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponents in the final ha...
SELECT "Opponents in the final" FROM table_39296 WHERE "Partner" = 'daniella dominikovic'
### Instruction: CREATE TABLE table_203_158 ( id number, "date" text, "time" 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. -- how many games ha...
SELECT COUNT(*) FROM table_203_158 WHERE "attendance" >= 50000
### Instruction: CREATE TABLE table_204_357 ( id number, "year" number, "div." text, "pos." text, "cup" text, "top scorer (league)" text, "score" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which year had a higher position , 2008 or 200...
SELECT "year" FROM table_204_357 WHERE "year" IN (2008, 2004) ORDER BY "pos." LIMIT 1
### Instruction: CREATE TABLE table_64545 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least game that was played in Alexander Memorial...
SELECT MIN("Game") FROM table_64545 WHERE "Location/Attendance" = 'alexander memorial coliseum' AND "Date" = 'october 16'
### Instruction: CREATE TABLE table_41443 ( "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 "High assists" FROM table_41443 WHERE "Date" = 'march 31'