instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_1341 ( "Name" text, "Abbr." text, "Political Leader" text, "International Affiliation" text, "Votes ( 2012 )" real, "House of Rep. seats" real, "Senate seats" real, "European Parliament seats" real ) -- Using valid SQLite, answer the following questi...
SELECT MIN("European Parliament seats") FROM table_1341 WHERE "International Affiliation" = 'Global Greens, EGP'
### Instruction: CREATE TABLE table_204_476 ( id number, "name" text, "date built" number, "builder" text, "works no." number, "wheels" text, "cylinders" text, "notes" text, "withdrawn" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT (SELECT "date built" FROM table_204_476 WHERE "name" = 'no.1') - (SELECT "date built" FROM table_204_476 WHERE "name" = 'fairfield')
### Instruction: CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) -- Using valid SQLite, answer the follo...
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Type, Nationality ORDER BY COUNT(Nationality) DESC
### Instruction: CREATE TABLE table_851 ( "Rnd" real, "Circuit" text, "GTO Winning Team" text, "GTU Winning Team" text, "TO Winning Team" text, "TU Winning Team" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the GTO ...
SELECT "GTO Winning Team" FROM table_851 WHERE "Rnd" = '5' AND "GTU Winning Team" = '#59 Brumos Porsche - Audi'
### Instruction: CREATE TABLE table_203_83 ( id number, "ranking" number, "company" text, "industry" text, "revenue (usd billions)" text, "fy" text, "capitalization (usd billions)" text, "employees" number, "listing" text, "headquarters" text, "ceo" text ) -- Using valid SQ...
SELECT "company" FROM table_203_83 ORDER BY "revenue (usd billions)" DESC LIMIT 1
### Instruction: CREATE TABLE table_16790 ( "Season" text, "Games" real, "Won" real, "Lost" real, "Tied" real, "Points" real, "Pct %" text, "Goals for" real, "Goals against" real, "Standing" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "Won" FROM table_16790 WHERE "Standing" = '2nd OHA' AND "Games" = '62'
### Instruction: CREATE TABLE table_70510 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Height m ( ft )" text, "Class" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the FCC info wit...
SELECT "FCC info" FROM table_70510 WHERE "Frequency MHz" < '100.3' AND "City of license" = 'lowville, ny'
### Instruction: CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE has_allergy ( stuid number, allergy text ) -- U...
SELECT COUNT(*) FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food"
### Instruction: CREATE TABLE table_2275 ( "Constituency" text, "Electorate" real, "s Spoilt vote" real, "Total poll (%)" text, "For (%)" text, "Against (%)" text, "\u00b1 Yes side 2008 (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Whe...
SELECT "For (%)" FROM table_2275 WHERE "Against (%)" = '17,874 (33.2)'
### Instruction: CREATE TABLE table_75990 ( "Source" text, "Date" text, "Goberman" text, "Loera" text, "Merkley" text, "Neville" text, "Novick" text, "Obrist" text, "Other/ Undecided" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Goberman" FROM table_75990 WHERE "Date" = 'april 28–april 30, 2008'
### Instruction: CREATE TABLE table_201_46 ( id number, "name" text, "position" text, "length\n[km]" number, "drainage basin area\n[km2]" number, "confluence\n[by lahn-km]" number, "mouth elevation\n[m above msl]" number ) -- Using valid SQLite, answer the following questions for the table...
SELECT "name" FROM table_201_46 WHERE "position" = 'left' AND "length\n[km]" = 46.6
### Instruction: CREATE TABLE table_80138 ( "Vehicle Flight #" text, "Date" text, "Pilot" text, "Mach" real, "Velocity (km/h)" real, "Altitude (meters)" real, "Duration" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Vehicle Flight # ha...
SELECT "Vehicle Flight #" FROM table_80138 WHERE "Pilot" = 'peterson' AND "Velocity (km/h)" = '649'
### Instruction: CREATE TABLE Type_Of_Restaurant ( Id VARCHAR ) CREATE TABLE Restaurant ( Id VARCHAR ) CREATE TABLE Restaurant_Type ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many restaurant is the Sandwich type restaurant? ### Response:...
SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'
### Instruction: CREATE TABLE table_38209 ( "Character Name" text, "Voice Actor (Japanese)" text, "Voice Actor (English 1997 / Saban)" text, "Voice Actor (English 1998 / Pioneer)" text, "Voice Actor (English 2006 / FUNimation)" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Character Name" FROM table_38209 WHERE "Voice Actor (English 1998 / Pioneer)" = 'laara sadiq'
### Instruction: CREATE TABLE table_202_115 ( id number, "station" text, "distance from wellington" text, "height above sea level (m)" text, "opened" text, "closed" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how much higher...
SELECT (SELECT "height above sea level (m)" FROM table_202_115 WHERE "station" = 'takapu road') - (SELECT "height above sea level (m)" FROM table_202_115 WHERE "station" = 'wellington')
### Instruction: CREATE TABLE news_report ( journalist_ID int, Event_ID int, Work_Type text ) CREATE TABLE event ( Event_ID int, Date text, Venue text, Name text, Event_Attendance int ) CREATE TABLE journalist ( journalist_ID int, Name text, Nationality text, Age text, ...
SELECT Nationality, SUM(Age) FROM journalist GROUP BY Nationality ORDER BY SUM(Age) DESC
### Instruction: CREATE TABLE table_67003 ( "Season" text, "Northumberland Senior Cup" text, "Northumberland Senior Benevolent Bowl" text, "Northumberland Minor Cup" text, "Northumberland Women's Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "Northumberland Senior Benevolent Bowl" FROM table_67003 WHERE "Northumberland Women's Cup" = 'blyth spartans ladies'
### Instruction: CREATE TABLE table_21563 ( "1391 Carelia" text, "1398 Donnera" text, "1405 Sibelius" text, "1406 Komppa" text, "1407 Lindel\u00f6f" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many 1391 carelia where 1398 donnera is 2397 lapp...
SELECT COUNT("1391 Carelia") FROM table_21563 WHERE "1398 Donnera" = '2397 Lappajärvi'
### Instruction: CREATE TABLE station ( Station_ID int, Name text, Annual_entry_exit real, Annual_interchanges real, Total_Passengers real, Location text, Main_Services text, Number_of_Platforms int ) CREATE TABLE train ( Train_ID int, Name text, Time text, Service text ...
SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location
### Instruction: CREATE TABLE table_14884 ( "Rider" text, "Years active" text, "Races" real, "Wins" real, "2nd pl." real, "3rd pl." real, "Titles." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of 2nd place finishes...
SELECT SUM("2nd pl.") FROM table_14884 WHERE "Years active" = '2009-2010' AND "Wins" > '0'
### Instruction: CREATE TABLE table_72131 ( "Village (German)" text, "Village (Slovenian)" text, "Number of people 1991" real, "Percent of Slovenes 1991" text, "Percent of Slovenes 1951" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Provide me with...
SELECT "Village (German)" FROM table_72131 WHERE "Percent of Slovenes 1951" = '96.9%'
### Instruction: CREATE TABLE table_40058 ( "Club" text, "Wins" real, "Loses" real, "Points For" real, "Points Against" real, "Percentage" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many losses have points against grea...
SELECT COUNT("Loses") FROM table_40058 WHERE "Points Against" > '592' AND "Club" = 'high park demons' AND "Points For" > '631'
### Instruction: CREATE TABLE table_52411 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT SUM("Played") FROM table_52411 WHERE "Club" = 'barcelona b' AND "Wins" < '11'
### Instruction: CREATE TABLE table_22263 ( "Foodstuff" text, "Pinoresinol" real, "Syringaresinol" real, "Sesamin" text, "Lariciresinol" real, "Secoisolariciresinol" real, "Matairesinol" real, "Hydroxymatairesinol" real ) -- Using valid SQLite, answer the following questions for the ta...
SELECT MAX("Pinoresinol") FROM table_22263 WHERE "Foodstuff" = 'Wheat bran'
### Instruction: CREATE TABLE entrepreneur ( entrepreneur_id number, people_id number, company text, money_requested number, investor text ) CREATE TABLE people ( people_id number, name text, height number, weight number, date_of_birth text ) -- Using valid SQLite, answer the ...
SELECT T2.name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.investor <> "Rachel Elnaugh"
### Instruction: CREATE TABLE table_1514 ( "Institution" text, "Wins" real, "Loss" real, "Home Wins" real, "Home Losses" real, "Away Wins" real, "Away Losses" real, "Neutral Wins" real, "Neutral Losses" real, "Current Streak" text ) -- Using valid SQLite, answer the following q...
SELECT COUNT("Home Losses") FROM table_1514 WHERE "Away Losses" = '6'
### Instruction: CREATE TABLE table_65848 ( "Date Released" text, "Institute" text, "Social Democratic" text, "Socialist" text, "Green-Communist" text, "Democratic Renewal" text, "Democratic and Social Centre" text, "Lead" text ) -- Using valid SQLite, answer the following questions fo...
SELECT "Social Democratic" FROM table_65848 WHERE "Democratic and Social Centre" = '10.0% 22 seats'
### Instruction: CREATE TABLE table_56516 ( "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. -- If the home team playing is haw...
SELECT "Away team score" FROM table_56516 WHERE "Crowd" > '13,000' AND "Home team" = 'hawthorn'
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Code, Price FROM Products WHERE Price BETWEEN 60 AND 120 GROUP BY Name
### Instruction: CREATE TABLE table_3911 ( "#" real, "Date" text, "Opponent" text, "Site/Stadium" text, "Score" text, "Win" text, "Loss" text, "Save" text, "Attendance" real, "Overall Record" text, "Pac-10 Record" text ) -- Using valid SQLite, answer the following questions...
SELECT MIN("Attendance") FROM table_3911 WHERE "Win" = 'G. Claypool (4-1)'
### Instruction: CREATE TABLE table_4307 ( "Sport" text, "Years" text, "Games" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the lowest Bronze for gold of 3 in the winter for ...
SELECT MIN("Bronze") FROM table_4307 WHERE "Gold" = '3' AND "Games" = 'winter' AND "Sport" = 'cross-country skiing' AND "Silver" < '0'
### Instruction: CREATE TABLE table_203_593 ( id number, "tenure" text, "coach" text, "years" number, "record" text, "pct." number, "ncaa tournament" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the next coach of the auburn tiger...
SELECT "coach" FROM table_203_593 WHERE "tenure" > (SELECT "tenure" FROM table_203_593 WHERE "coach" = 'steve renfroe') ORDER BY "tenure" LIMIT 1
### Instruction: CREATE TABLE table_25605 ( "Star" text, "Stellar classification" text, "Distance from Earth ( ly )" text, "Constellation" text, "Dust (or Debris; Temperature (K)" text, "System" text, "Dust (or Debris) Location (AU)" text, "Cool Dust > 10 AU" text, "Stellar Age (Myr)...
SELECT "System" FROM table_25605 WHERE "Constellation" = 'Aries'
### Instruction: CREATE TABLE table_73886 ( "\u00d7" text, "Faisaly" text, "Wehdat" text, "Ramtha" text, "Ahli" text, "Jazeera" text, "Hussein" text, "Amman" text, "Orthodoxy" text, "Jeel" text, "Ain Karem" text ) -- Using valid SQLite, answer the following questions for th...
SELECT "Faisaly" FROM table_73886 WHERE "Wehdat" = 'XXX'
### Instruction: CREATE TABLE tags ( index number, id number, tag text ) CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) -- Using valid SQLite, answer the following questions for the tab...
SELECT SUM(totalsnatched) FROM torrents WHERE groupyear BETWEEN 2000 AND 2010 UNION SELECT SUM(totalsnatched) FROM torrents WHERE groupyear < 2000
### Instruction: CREATE TABLE table_51434 ( "Athlete" text, "Event" text, "Round of 32" text, "Round of 16" text, "Quarterfinal" text, "Semifinal" text, "Final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the round of 32 was n/a and ...
SELECT "Round of 16" FROM table_51434 WHERE "Quarterfinal" = 'did not advance' AND "Round of 32" = 'n/a'
### Instruction: CREATE TABLE table_203_424 ( id number, "year" number, "starts" number, "wins" number, "top 5" number, "top 10" number, "poles" number, "avg. start" number, "avg. finish" number, "winnings" text, "position" text, "team(s)" text ) -- Using valid SQLite, ...
SELECT COUNT(*) FROM table_203_424 WHERE "avg. start" < 20
### Instruction: CREATE TABLE table_204_381 ( id number, "sum" number, "mongolian" number, "population\n(2005)" number, "population\n(2008)" number, "population\n(2009)" number, "area\nkm2" number, "density\n/km2" number, "sum centre\npopulation" number ) -- Using valid SQLite, ans...
SELECT "sum" FROM table_204_381 ORDER BY "sum centre\npopulation" DESC LIMIT 1
### Instruction: CREATE TABLE table_3335 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "Dominant religion (2002)" FROM table_3335 WHERE "Type" = 'village' AND "Settlement" = 'Banatski Despotovac'
### Instruction: CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text ) CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) -- Using ...
SELECT team FROM elimination WHERE eliminated_by = "Orton" INTERSECT SELECT team FROM elimination WHERE eliminated_by = "Benjamin"
### Instruction: CREATE TABLE HOST ( Name VARCHAR, Host_ID VARCHAR ) CREATE TABLE party ( Party_ID VARCHAR, Number_of_hosts INTEGER ) CREATE TABLE party_host ( Host_ID VARCHAR, Party_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show th...
SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20
### Instruction: CREATE TABLE table_name_26 ( country VARCHAR, holmenkollen VARCHAR, fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country has a FIS Nordic World Ski Championship befo...
SELECT country FROM table_name_26 WHERE fis_nordic_world_ski_championships < 1989 AND winter_olympics < 1980 AND holmenkollen = "1956"
### Instruction: CREATE TABLE table_30381 ( "\u2116" real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "Title" FROM table_30381 WHERE "Directed by" = 'David Solomon' AND "Written by" = 'Marti Noxon'
### Instruction: CREATE TABLE table_16307 ( "Village (German)" text, "Village (Slovenian)" text, "Number of people 1991" real, "Percent of Slovenes 1991" text, "Percent of Slovenes 1951" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the sl...
SELECT "Village (Slovenian)" FROM table_16307 WHERE "Percent of Slovenes 1991" = '16.7%'
### Instruction: CREATE TABLE table_203_375 ( id number, "name" text, "year built" text, "country" text, "town" text, "height" text, "remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the london emirates air line pylon has the same hei...
SELECT "name" FROM table_203_375 WHERE "name" <> 'london emirates air line' AND "height" = (SELECT "height" FROM table_203_375 WHERE "name" = 'london emirates air line')
### Instruction: CREATE TABLE table_38486 ( "Gloss" text, "Cholim" text, "Lungchang" text, "Rera" text, "Tikhak" text, "Yonguk" text, "Muklom" text, "Hakhun" text, "Halang" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Lungcha...
SELECT "Lungchang" FROM table_38486 WHERE "Halang" = 'ʒɯ²' AND "Rera" = 'ʒo²'
### Instruction: CREATE TABLE mill ( architect_id number, id number, location text, name text, type text, built_year number, notes text ) CREATE TABLE bridge ( architect_id number, id number, name text, location text, length_meters number, length_feet number ) CREAT...
SELECT name FROM mill WHERE location <> 'Donceel'
### Instruction: CREATE TABLE table_15763 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT MIN("Goals for") FROM table_15763 WHERE "Position" > '4' AND "Draws" > '11'
### Instruction: CREATE TABLE table_73168 ( "Season" real, "Class" text, "Team" text, "Motorcycle" text, "Type" text, "Races" real, "Wins" real, "Podiums" real, "Poles" real, "Fastest Laps" real, "Pts" real, "Position" text ) -- Using valid SQLite, answer the following ...
SELECT "Team" FROM table_73168 WHERE "Motorcycle" = 'Honda'
### Instruction: CREATE TABLE table_27684 ( "Casinos" real, "County" text, "Road" text, "1-Jul-08" real, "FY07 $millions" text, "FY08 $millions" text, "FY09 $millions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many casinos are assoc...
SELECT "Casinos" FROM table_27684 WHERE "1-Jul-08" = '1865746'
### Instruction: CREATE TABLE train_station ( Train_ID int, Station_ID int ) CREATE TABLE train ( Train_ID int, Name text, Time text, Service text ) CREATE TABLE station ( Station_ID int, Name text, Annual_entry_exit real, Annual_interchanges real, Total_Passengers real, ...
SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location
### Instruction: CREATE TABLE table_204_980 ( id number, "name" text, "type" text, "elevation\n(ground station)" number, "elevation\n(mountain station)" number, "slope length" number, "capacity\n(persons/hour)" number, "construction year" number ) -- Using valid SQLite, answer the foll...
SELECT "name" FROM table_204_980 WHERE "type" = 'cable car' AND "slope length" = 2937
### Instruction: CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height re...
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex
### Instruction: CREATE TABLE table_42760 ( "Sport" text, "Record" text, "Nation - athlete(s)" text, "Date" text, "Time (seconds)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Date, when the Record is, 'track', when the Time (seconds) ...
SELECT "Date" FROM table_42760 WHERE "Record" = 'track' AND "Time (seconds)" > '43.564' AND "Sport" = 'luge - women''s singles'
### Instruction: CREATE TABLE table_73178 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions fo...
SELECT "Team(s)" FROM table_73178 WHERE "Top 10" = '18'
### Instruction: CREATE TABLE table_16157 ( "Model" real, "Introduction" text, "Discontinued" text, "CPU Speed" text, "Print resolution (DPI) Resolution is given in dots per inch (DPI)" text, "Print speed (PPM)" text, "Standard memory" text, "Maximum memory" text ) -- Using valid SQLit...
SELECT "Maximum memory" FROM table_16157 WHERE "Discontinued" = 'November 2001'
### Instruction: CREATE TABLE table_61398 ( "Military deaths" real, "Civilian deaths (including foreigners)" real, "Total deaths" real, "Military and/or Civilian wounded" text, "Total casualties" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What i...
SELECT COUNT("Military deaths") FROM table_61398 WHERE "Military and/or Civilian wounded" = '78' AND "Total deaths" > '27'
### Instruction: CREATE TABLE table_34236 ( "Season" text, "Order" text, "Played" real, "Drawn" real, "Lost" real, "Penalties" real, "Points For" real, "Points Against" real, "Points Diff" real, "Coach" text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT COUNT("Lost") FROM table_34236 WHERE "Order" = '2nd' AND "Played" > '13'
### Instruction: CREATE TABLE table_35745 ( "Name" text, "Location" text, "State" text, "Opened (closing date if defunct)" text, "Surface" text, "Length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name with an Opened (closing dat...
SELECT "Name" FROM table_35745 WHERE "Opened (closing date if defunct)" = '1995' AND "Length" = 'miles (m)' AND "State" = 'illinois'
### Instruction: CREATE TABLE table_204_375 ( id number, "#" number, "season" number, "competition" text, "date" text, "round" text, "opponent" text, "h / a" text, "result" text, "scorer (s)" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT "opponent" FROM table_204_375 WHERE "season" = 2011 ORDER BY "result" DESC LIMIT 1
### Instruction: CREATE TABLE table_58695 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT COUNT("Losses") FROM table_58695 WHERE "Goals for" = '30' AND "Points" > '24'
### Instruction: CREATE TABLE table_67678 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT MIN("Played") FROM table_67678 WHERE "Position" = '2' AND "Goals against" > '53'
### Instruction: CREATE TABLE table_45087 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" real ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MIN("Goals For") FROM table_45087 WHERE "Goals Against" = '75' AND "Drawn" < '11'
### Instruction: CREATE TABLE table_9592 ( "School" text, "Base" text, "Bask" text, "Golf" text, "Soccer" text, "Swimming" text, "Tennis" text, "Indoor track" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status for tennis a...
SELECT "Tennis" FROM table_9592 WHERE "Golf" = 'yes' AND "Soccer" = 'yes' AND "Swimming" = 'yes' AND "School" = 'cleveland state'
### Instruction: CREATE TABLE table_68054 ( "Tournament" text, "1999" text, "2002" text, "2004" text, "2006" text, "2007" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2006 value wi...
SELECT "2006" FROM table_68054 WHERE "2011" = '1r'
### Instruction: CREATE TABLE table_32871 ( "Adherents" real, "Regular Attendees" real, "% of adherents" text, "Monasteries" real, "Parishes" real, "Average Parish Size" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest average p...
SELECT MIN("Average Parish Size") FROM table_32871 WHERE "% of adherents" = '47.2%' AND "Regular Attendees" > '4,936'
### Instruction: CREATE TABLE table_72944 ( "Player" text, "Team" text, "Matches" real, "Overs" text, "Runs" real, "Wickets" real, "Best" text, "Econ" text, "S/Rate" text, "4/inns" real, "5+/inns" real, "Average" text ) -- Using valid SQLite, answer the following questi...
SELECT MIN("Matches") FROM table_72944 WHERE "Runs" = '276'
### Instruction: CREATE TABLE table_8380 ( "Pick" real, "Player" text, "Pos." text, "Nationality" text, "Team" text, "Previous team" text, "NBA years [a ]" text, "Career with the franchise [b ]" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT "Career with the franchise [b ]" FROM table_8380 WHERE "Player" = 'willie anderson category:articles with hcards'
### Instruction: CREATE TABLE browser ( id number, name text, market_share number ) CREATE TABLE accelerator_compatible_browser ( accelerator_id number, browser_id number, compatible_since_year number ) CREATE TABLE web_client_accelerator ( id number, name text, operating_system te...
SELECT name, operating_system FROM web_client_accelerator WHERE connection <> 'Broadband'
### Instruction: CREATE TABLE table_41896 ( "Name" text, "Level" real, "Digits" real, "Average size (square miles)" text, "Number of HUs (approximate)" real, "Example name" text, "Example code (HUC)" real ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT AVG("Level") FROM table_41896 WHERE "Example name" = 'lower snake' AND "Number of HUs (approximate)" < '370'
### Instruction: CREATE TABLE school ( School_ID int, Grade text, School text, Location text, Type text ) CREATE TABLE school_bus ( School_ID int, Driver_ID int, Years_Working int, If_full_time bool ) CREATE TABLE driver ( Driver_ID int, Name text, Party text, Home_...
SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY Party
### Instruction: CREATE TABLE table_74768 ( "Year" text, "Order No." text, "Quantity" real, "GER Nos." text, "LNER No." text, "LNER 1946 No." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which LNER 1946 number is from 1892 and has an LNER numb...
SELECT "LNER 1946 No." FROM table_74768 WHERE "Year" = '1892' AND "LNER No." = '7347–7356'
### Instruction: CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name ORDER BY name DESC
### Instruction: CREATE TABLE table_72185 ( "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. -- Give m...
SELECT "Kickoff [a ]" FROM table_72185 WHERE "TV" = 'CBS' AND "Opponent" = 'St. Louis Cardinals'
### Instruction: CREATE TABLE table_72996 ( "Main contestant" text, "Co-contestant (Yaar vs. Pyaar)" text, "Date performed" text, "Scores by each individual judge" text, "Total score/week" text, "Position" text, "Status" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "Date performed" FROM table_72996 WHERE "Main contestant" = 'Jatin Shah' AND "Co-contestant (Yaar vs. Pyaar)" = 'Shalini Chandran'
### Instruction: CREATE TABLE table_203_613 ( id number, "formula" text, "color" text, "symmetry" text, "space group" text, "no" number, "pearson symbol" text, "a (pm)" number, "b (pm)" number, "c (pm)" number, "z" number, "density, g/cm3" number ) -- Using valid SQLite...
SELECT COUNT("formula") FROM table_203_613 WHERE "color" = 'white'
### Instruction: CREATE TABLE table_60336 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT AVG("Points") FROM table_60336 WHERE "Goals conceded" > '23' AND "Position" > '12'
### Instruction: CREATE TABLE table_64026 ( "Class to 1928" text, "Class from 1928" text, "Seats" text, "Quantity" real, "Year(s) of Manufacture" text, "Remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average quantity for coa...
SELECT AVG("Quantity") FROM table_64026 WHERE "Year(s) of Manufacture" = '1921/23' AND "Seats" = '40'
### Instruction: CREATE TABLE table_62555 ( "Year" real, "Total passengers" text, "Passenger Change" text, "Domestic" text, "International (total)" text, "International (non-CIS)" text, "Aircraft Landings" text, "Cargo (tonnes)" text ) -- Using valid SQLite, answer the following questi...
SELECT "Cargo (tonnes)" FROM table_62555 WHERE "International (non-CIS)" = '297 421'
### Instruction: CREATE TABLE table_58280 ( "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 has a Crowd larger th...
SELECT "Date" FROM table_58280 WHERE "Crowd" > '12,000' AND "Away team score" = '9.16 (70)'
### Instruction: CREATE TABLE table_16086 ( "Year" real, "Games" real, "Games started" real, "Completions" real, "Attempts" real, "Completion %" text, "Yards" real, "Yards/Attempt" text, "Touchdowns" real, "Interceptions" real, "Rating" text ) -- Using valid SQLite, answer ...
SELECT "Completions" FROM table_16086 WHERE "Games started" = '12'
### Instruction: CREATE TABLE table_204_644 ( id number, "week" number, "date" text, "opponent" text, "result" text, "record" text, "game site" text, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the opponent previous to t...
SELECT "opponent" FROM table_204_644 WHERE "date" < (SELECT "date" FROM table_204_644 WHERE "opponent" = 'south georgia wildcats') ORDER BY "date" DESC LIMIT 1
### Instruction: CREATE TABLE table_15578 ( "State" text, "Born/Died" text, "Active service" text, "Chief Judge" text, "Senior status" text, "Appointed by" text, "Reason for termination" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which s...
SELECT "State" FROM table_15578 WHERE "Reason for termination" = 'retirement' AND "Active service" = '1926–1928'
### Instruction: CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real ) CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY COUNT(*)
### Instruction: CREATE TABLE table_42141 ( "Office" text, "Republican ticket" text, "Democratic ticket" text, "Conservative ticket" text, "Liberal ticket" text, "Socialist Labor ticket" text, "Socialist Workers ticket" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Office" FROM table_42141 WHERE "Socialist Labor ticket" = '(none)' AND "Liberal ticket" = 'stanley h. fuld'
### Instruction: CREATE TABLE table_38220 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which name has an overall number of more than 164, when the pick numb...
SELECT "Name" FROM table_38220 WHERE "Overall" > '164' AND "Pick #" > '2' AND "Position" = 'running back' AND "Round" = '16'
### Instruction: CREATE TABLE table_59336 ( "White" text, "Black" text, "Year" real, "Result" text, "Moves" real, "Tournament" text, "Opening" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Opening, when White is Kramnik, when Year i...
SELECT "Opening" FROM table_59336 WHERE "White" = 'kramnik' AND "Year" < '2001' AND "Tournament" = 'siemens giants'
### Instruction: CREATE TABLE table_73072 ( "Date" text, "B-52 Model" text, "Serial #" text, "Unit" text, "Bomb Capacity" text, "Mission/Target" text, "Cause of Loss" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When hit by sam at 38,500 f...
SELECT "Mission/Target" FROM table_73072 WHERE "Cause of Loss" = 'Hit by SAM at 38,500 feet just after bomb release'
### Instruction: CREATE TABLE table_79830 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points were in a...
SELECT COUNT("Points") FROM table_79830 WHERE "Goals Conceded" = '27' AND "Lost" = '5' AND "Place" > '2'
### Instruction: CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, "Home Town" text ) CREATE TABLE perpetrator ( Perpetrator_ID int, People_ID int, Date text, Year real, Location text, Country text, Killed int, Injured int ) -- Using valid S...
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY Country DESC
### Instruction: CREATE TABLE table_11219 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stage did team Carrera Jeans-Tassoni have wh...
SELECT "Stage" FROM table_11219 WHERE "Trofeo Fast Team" = 'carrera jeans-tassoni' AND "Winner" = 'mario cipollini' AND "Points classification" = 'claudio chiappucci'
### Instruction: CREATE TABLE table_73355 ( "Year" real, "Starts" real, "Wins" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT COUNT("Top 10") FROM table_73355 WHERE "Avg. Finish" = '23.3'
### Instruction: CREATE TABLE table_27889 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Largest ethnic group (2002)" FROM table_27889 WHERE "Cyrillic Name Other Names" = 'Ватин'
### Instruction: CREATE TABLE table_22578 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions fo...
SELECT COUNT("Winnings") FROM table_22578 WHERE "Starts" = '32'
### Instruction: CREATE TABLE table_34453 ( "Position" real, "Club (City/Town)" text, "Games Played" real, "W-L-D" text, "Goals For/Against" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of games played...
SELECT MAX("Games Played") FROM table_34453 WHERE "Position" < '4' AND "Goals For/Against" = '29-24'
### Instruction: CREATE TABLE table_18782 ( "Rnd" real, "Race" text, "Pole position" text, "Fastest lap" text, "Most laps led" text, "Winning driver" text, "Winning team" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- whic...
SELECT "Winning team" FROM table_18782 WHERE "Winning driver" = 'Ryan Briscoe' AND "Fastest lap" = 'Tomas Scheckter'
### Instruction: CREATE TABLE table_33051 ( "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 12.17 (8...
SELECT "Away team" FROM table_33051 WHERE "Crowd" > '17,000' AND "Away team score" = '12.17 (89)'
### Instruction: CREATE TABLE table_68019 ( "Sydney" text, "Melbourne" text, "Perth" text, "Adelaide" text, "Gold Coast" text, "Auckland" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Adelaide has an Auckland of yes, a Melbourne of yes, a...
SELECT "Adelaide" FROM table_68019 WHERE "Auckland" = 'yes' AND "Melbourne" = 'yes' AND "Perth" = 'yes' AND "Sydney" = 'cancelled'
### Instruction: CREATE TABLE table_5597 ( "Date Released" text, "Institute" text, "Socialist" text, "Social Democratic" text, "Green-Communist" text, "Left Bloc" text, "People's Party" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "Lead" FROM table_5597 WHERE "Institute" = 'election results' AND "Social Democratic" = '31.7% 8 seats'
### Instruction: CREATE TABLE table_77578 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine \u2020" text, "Tyre" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the engine when the rounds ar a...
SELECT "Engine \u2020" FROM table_77578 WHERE "Rounds" = 'all' AND "Tyre" = 'm' AND "Driver" = 'david coulthard'