instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_53639 ( "City" text, "1970" real, "1980" real, "1990" real, "2000" real, "2010 est." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many 1990 growth numbers had less than 10,522 in 1970? ### Response:
SELECT COUNT("1990") FROM table_53639 WHERE "1970" < '10,522'
### Instruction: CREATE TABLE table_1826 ( "Episodes" text, "Monday" text, "Tuesday" text, "Wednesday" text, "Thursday" text, "Friday" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which episode was Transmitted on wednesday if the episode of '3...
SELECT COUNT("Wednesday") FROM table_1826 WHERE "Tuesday" = '319 Sucker Punch'
### Instruction: CREATE TABLE table_name_46 ( solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)? ### Respo...
SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283
### Instruction: CREATE TABLE table_37021 ( "Player" text, "League" real, "Malaysia Cup" real, "FA Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and ...
SELECT COUNT("Malaysia Cup") FROM table_37021 WHERE "Total" > '3' AND "Player" = 'ivan yusoff' AND "League" < '2'
### Instruction: CREATE TABLE table_4426 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the date for dinah pfizenmaier anna z...
SELECT "Date" FROM table_4426 WHERE "Outcome" = 'winner' AND "Opponents" = 'dinah pfizenmaier anna zaja'
### Instruction: CREATE TABLE table_26304 ( "Vehicle code" text, "Bore (mm)" text, "Stroke (mm)" text, "Capacity (cm 3 )" real, "Compression ratio" text, "Torque (N m)" real, "Power (HP)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what i...
SELECT "Stroke (mm)" FROM table_26304 WHERE "Vehicle code" = 'T211'
### Instruction: CREATE TABLE table_64639 ( "Name" text, "LWAT" real, "100+" real, "140+" real, "180s" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the 100+ when the 140+ is less than 128 and the LWAT of 29? ### Response:
SELECT SUM("100+") FROM table_64639 WHERE "LWAT" = '29' AND "140+" < '128'
### Instruction: CREATE TABLE table_65083 ( "City of license /Market" text, "Station" text, "Channel ( TV / RF )" text, "Owned Since" real, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What station was owned since 2011, and a channel...
SELECT "Station" FROM table_65083 WHERE "Owned Since" = '2011' AND "Channel ( TV / RF )" = '27'
### Instruction: CREATE TABLE table_36759 ( "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 Outcome has a Surface of hard (i), and a Date of 28 january...
SELECT "Outcome" FROM table_36759 WHERE "Surface" = 'hard (i)' AND "Date" = '28 january 2003'
### Instruction: CREATE TABLE table_1410 ( "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 COUNT("Goals scored") FROM table_1410 WHERE "Goals conceded" = '35'
### Instruction: CREATE TABLE table_60202 ( "Rank" real, "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 least silver when bronze is 1, rank is less than 2 and gold is ...
SELECT MIN("Silver") FROM table_60202 WHERE "Bronze" = '1' AND "Rank" < '2' AND "Gold" > '4'
### Instruction: CREATE TABLE table_33448 ( "Player" text, "Team" text, "Last Game" text, "Date" text, "Opposition" text, "D\u00e9but" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date for the player who debuted later than 1972 aga...
SELECT "Date" FROM table_33448 WHERE "D\u00e9but" > '1972' AND "Opposition" = 'limerick'
### Instruction: CREATE TABLE table_28963 ( "Detailed Family Information" text, "From" real, "To" real, "Anchor" real, "Orientation" text, "Conserved in Mus Musculus" text, "Matrix Sim" text, "Sequence" text, "Occurrence" real ) -- Using valid SQLite, answer the following questions...
SELECT COUNT("Detailed Family Information") FROM table_28963 WHERE "Sequence" = 'aAGTAct'
### Instruction: CREATE TABLE table_56427 ( "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 attended the ga...
SELECT SUM("Crowd") FROM table_56427 WHERE "Home team score" = '18.14 (122)'
### Instruction: CREATE TABLE table_56276 ( "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 score of the away t...
SELECT "Away team score" FROM table_56276 WHERE "Home team score" = '7.14 (56)'
### Instruction: CREATE TABLE table_5878 ( "Rank" text, "Quarterback" text, "Streak start" text, "Streak end" text, "Teams" text, "Regular season" real, "Playoffs" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What teams h...
SELECT "Teams" FROM table_5878 WHERE "Streak end" = '1/2/2011'
### Instruction: CREATE TABLE table_20888 ( "Archbishop" text, "Born" text, "Ordained Priest" text, "Ordained Bishop" text, "Appointed Archbishop" text, "Vacated throne" text, "Died" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which archb...
SELECT "Archbishop" FROM table_20888 WHERE "Ordained Bishop" = 'November 30, 1925'
### Instruction: CREATE TABLE table_76775 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Nationality" text, "College/Junior Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the college/junior team of player tyler myers...
SELECT "College/Junior Team" FROM table_76775 WHERE "Pick" < '44' AND "Player" = 'tyler myers'
### Instruction: CREATE TABLE table_train_228 ( "id" int, "ejection_fraction_ef" int, "hiv_infection" bool, "heart_disease" bool, "body_weight" float, "body_mass_index_bmi" float, "allergy_to_beef" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tabl...
SELECT * FROM table_train_228 WHERE body_weight >= 110
### Instruction: CREATE TABLE table_24262 ( "No. in series" real, "No. in 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 ...
SELECT "Written by" FROM table_24262 WHERE "Directed by" = 'David Straiton'
### Instruction: CREATE TABLE table_78811 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What election has a 1st member of richard blakemore and a 2nd member of w...
SELECT "Election" FROM table_78811 WHERE "2nd Member" = 'william goodenough hayter' AND "1st Member" = 'richard blakemore'
### Instruction: CREATE TABLE table_10949 ( "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. -- When the home team score was 21...
SELECT "Away team" FROM table_10949 WHERE "Home team score" = '21.15 (141)'
### Instruction: CREATE TABLE table_name_53 ( agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average agricultural panel value with a Labour pa...
SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0
### Instruction: CREATE TABLE table_43116 ( "Player" text, "Club" text, "League" real, "FA Cup" real, "FA Trophy" real, "League Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many FA Trophy that have a Player of paul d...
SELECT COUNT("FA Trophy") FROM table_43116 WHERE "Player" = 'paul dobson' AND "League Cup" < '2'
### Instruction: CREATE TABLE table_51857 ( "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. -- When the home team scored 12.21...
SELECT AVG("Crowd") FROM table_51857 WHERE "Home team score" = '12.21 (93)'
### Instruction: CREATE TABLE table_203_847 ( id number, "financial year" text, "turnover" text, "profit before tax" text, "net profit" text, "partner bonuses" text, "profit retained" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was t...
SELECT "financial year" FROM table_203_847 WHERE "financial year" < 2010 ORDER BY "net profit" DESC LIMIT 1
### Instruction: CREATE TABLE table_5673 ( "Date" text, "Episode" real, "Performer 1" text, "Performer 2" text, "Performer 3" text, "Performer 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Performer 4's name when Performer 3 was Rya...
SELECT "Performer 4" FROM table_5673 WHERE "Performer 3" = 'ryan stiles' AND "Episode" = '14'
### Instruction: CREATE TABLE Elimination ( Elimination_ID text, Wrestler_ID text, Team text, Eliminated_By text, Elimination_Move text, Time text ) CREATE TABLE wrestler ( Wrestler_ID int, Name text, Reign text, Days_held text, Location text, Event text ) -- Using val...
SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location
### Instruction: CREATE TABLE table_21773 ( "District" real, "Incumbent" text, "2008 Status" text, "Democratic" text, "Republican" text, "Independent Green" text, "Libertarian" text, "Other Party" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT COUNT("District") FROM table_21773 WHERE "Republican" = 'Bob Goodlatte'
### Instruction: CREATE TABLE table_35601 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the rider for laps less than 23 with grid greater than 21 that had a time ...
SELECT "Rider" FROM table_35601 WHERE "Laps" < '23' AND "Grid" > '21' AND "Time/Retired" = '+1 lap'
### Instruction: CREATE TABLE table_204_358 ( id number, "species" text, "common name" text, "ncbi accession #" text, "ncbi name" text, "length" text, "sequence identity" text, "sequence similarity" text, "years since divergence from human (mya)" number ) -- Using valid SQLite, ans...
SELECT "species" FROM table_204_358 WHERE "sequence identity" >= 87
### Instruction: CREATE TABLE table_8456 ( "Player" text, "Team" text, "Matches" real, "Wickets" real, "Average" real, "Best Bowling" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the highest wickets when best bowling is 5/40 and averag...
SELECT MAX("Wickets") FROM table_8456 WHERE "Best Bowling" = '5/40' AND "Average" < '33.09'
### Instruction: CREATE TABLE table_29225103_2 ( hp_winning_team VARCHAR, ep_winning_team VARCHAR, gm_winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team...
SELECT hp_winning_team FROM table_29225103_2 WHERE ep_winning_team = "Hans Zereis" AND gm_winning_team = "Charles Gibson"
### Instruction: CREATE TABLE table_2767 ( "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 MIN("Production code") FROM table_2767 WHERE "Series #" = '153'
### Instruction: CREATE TABLE table_39252 ( "Rank" real, "Town" text, "Population" real, "Year" real, "Borough" text, "Definition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has a Borough of harrogate, and a Rank smaller than 6, a...
SELECT "Year" FROM table_39252 WHERE "Borough" = 'harrogate' AND "Rank" < '6' AND "Definition" = 'civil parish'
### Instruction: CREATE TABLE table_60027 ( "Rank" text, "Bank" text, "Assets (USD) Millions" real, "Market Share" text, "Number of Branches" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Assets (USD) Millions from Equity Bank a...
SELECT MAX("Assets (USD) Millions") FROM table_60027 WHERE "Bank" = 'equity bank' AND "Number of Branches" < '44'
### Instruction: CREATE TABLE table_73828 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" text, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Population (2011)" FROM table_73828 WHERE "Cyrillic Name Other Names" = 'Јарковац'
### Instruction: CREATE TABLE table_7264 ( "Position" text, "Name" text, "Height (cm)" real, "Weight (kg)" real, "Birthdate" text, "Birthplace" text, "Previous Club/Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Height (cm) has a...
SELECT MIN("Height (cm)") FROM table_7264 WHERE "Position" = 'd' AND "Name" = 'jeff hymanson'
### Instruction: CREATE TABLE table_204_961 ( id number, "title" text, "director" text, "production" text, "music" text, "cast" text, "release date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what title is below dhaasippen or jothi malar...
SELECT "title" FROM table_204_961 WHERE id = (SELECT id FROM table_204_961 WHERE "title" = 'dhaasippen or jothi malar') + 1
### Instruction: CREATE TABLE table_69948 ( "Title" text, "Entered chart (UK)" text, "Peak position (UK)" real, "Weeks on Chart (UK)" real, "Sent to CBeebies Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many weeks did the single that en...
SELECT COUNT("Weeks on Chart (UK)") FROM table_69948 WHERE "Entered chart (UK)" = '14 september 2002'
### Instruction: CREATE TABLE table_30913 ( "Name" text, "#" real, "Position" text, "Height" text, "Weight ( lb. )" real, "Year" text, "Hometown" text, "Previous School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the previou...
SELECT "Previous School" FROM table_30913 WHERE "Height" = 'ft5in (m)' AND "Position" = 'Forward'
### Instruction: CREATE TABLE table_74254 ( "Date/Location" text, "Mens singles" text, "Womens Singles" text, "U21 Mens" text, "U21 Womens" text, "Mixed Restricted" text, "Mixed Veteran" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Ma...
SELECT "Mixed Restricted" FROM table_74254 WHERE "Mens singles" = 'Matt Ware'
### Instruction: CREATE TABLE table_27921 ( "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 is the lowe...
SELECT MIN("meas. num") FROM table_27921 WHERE "% YES" = '33.57%'
### 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, AVG(age) FROM captain GROUP BY Class ORDER BY Class DESC
### Instruction: CREATE TABLE table_4274 ( "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 for...
SELECT MAX("Starts") FROM table_4274
### Instruction: CREATE TABLE table_9067 ( "Name" text, "Height" text, "Weight" real, "Position" text, "Bats/Throws" text, "Class" text, "Hometown/Highschool" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the hometown/high school o...
SELECT "Hometown/Highschool" FROM table_9067 WHERE "Weight" = '170' AND "Name" = 'tyler wilson'
### Instruction: CREATE TABLE table_28191 ( "Metropolitan ring" text, "Localities" real, "Total" real, "Jews and others 1" real, "Thereof: Jews" real, "Arabs" real, "Population density (per km\u00b2)" text, "Annual Population growth rate" text ) -- Using valid SQLite, answer the follow...
SELECT MAX("Jews and others 1") FROM table_28191
### Instruction: CREATE TABLE table_70247 ( "Player" text, "Club" text, "Games Played" real, "Minutes" real, "Goals Against" real, "GA Average" real, "Wins" real, "Loses" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest ...
SELECT MIN("Loses") FROM table_70247 WHERE "Minutes" > '2776'
### Instruction: CREATE TABLE table_203_465 ( id number, "name" text, "population (2002 census)" number, "population (2007 estimation)" number, "population (2011 census)" number, "area (km2)" number, "density (pop/km2)" number ) -- Using valid SQLite, answer the following questions for the...
SELECT SUM("population (2002 census)") FROM table_203_465
### Instruction: CREATE TABLE table_34900 ( "Number" real, "Name of administrative unit" text, "Telephone (052)" text, "Area (km 2 )" real, "Population (people)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of area with a populatio...
SELECT SUM("Area (km 2 )") FROM table_34900 WHERE "Population (people)" = '5,615' AND "Number" > '6'
### Instruction: CREATE TABLE table_78079 ( "Airing date" text, "Number of episodes" real, "HD format" text, "Highest average point ratings" real, "Genre" text, "Official website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the airin...
SELECT "Airing date" FROM table_78079 WHERE "Number of episodes" > '20' AND "Genre" = 'costume action'
### Instruction: CREATE TABLE table_71308 ( "Member countries" text, "Population" text, "Area (km\u00b2)" text, "GDP (billion US$)" text, "GDP per capita (US$)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the country that has ...
SELECT "Member countries" FROM table_71308 WHERE "Area (km\u00b2)" = '49,036'
### Instruction: CREATE TABLE table_17129 ( "Calculator" text, "CPU" text, "RAM" text, "Display Size" text, "Programming Languages" text, "Link Abilities" text, "Year Released" text, "Predecessors" text, "Successors" text ) -- Using valid SQLite, answer the following questions for ...
SELECT "Display Size" FROM table_17129 WHERE "Calculator" = 'TI-82'
### Instruction: CREATE TABLE table_67807 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Score that has the Opponent of brewers, and the A...
SELECT "Score" FROM table_67807 WHERE "Opponent" = 'brewers' AND "Attendance" = '11,235'
### Instruction: CREATE TABLE table_30085 ( "\u2116" real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Directed by" FROM table_30085 WHERE "Production code" = '3X6116'
### Instruction: CREATE TABLE table_44049 ( "Class" text, "Wheel arrangement" text, "Manufacturer" text, "Year made" text, "Quantity made" text, "Quantity preserved" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Wheel Arrangement, when ...
SELECT "Wheel arrangement" FROM table_44049 WHERE "Manufacturer" = 'baldwin' AND "Quantity made" = '12'
### Instruction: CREATE TABLE table_204_300 ( id number, "date from" text, "date to" text, "pos." text, "name" text, "from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the previous loan before jacob butterfield ? ### Response:
SELECT "name" FROM table_204_300 WHERE "date from" < (SELECT "date from" FROM table_204_300 WHERE "name" = 'jacob butterfield') ORDER BY "date from" DESC LIMIT 1
### Instruction: CREATE TABLE table_29382 ( "Player" text, "Team" text, "Matches" real, "Overs" text, "Wickets" real, "Average" text, "Economy" text, "BBI" text, "4wi" real, "5wi" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Ho...
SELECT COUNT("Matches") FROM table_29382 WHERE "Wickets" = '16'
### Instruction: CREATE TABLE table_66169 ( "Property" text, "K-band" real, "Ka-band" real, "Q-band" real, "V-band" real, "W-band" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average v-band for Ka-band values under 33 and Q-bands ...
SELECT AVG("V-band") FROM table_66169 WHERE "Ka-band" < '33' AND "Q-band" = '1'
### Instruction: CREATE TABLE table_25652 ( "Country" text, "KEI" text, "KI" text, "Economic Incentive Regime" text, "Innovation" text, "Education" text, "ICT" text, "2008 Rank" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ...
SELECT "2008 Rank" FROM table_25652 WHERE "Country" = 'Djibouti'
### Instruction: CREATE TABLE table_25182437_1 ( start_date_of__first__term VARCHAR, date_of_birth VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term? ### Response:
SELECT start_date_of__first__term FROM table_25182437_1 WHERE date_of_birth = "1961-08-09 9 August 1961"
### Instruction: CREATE TABLE table_74052 ( "English" text, "Proto-Semitic" text, "Akkadian" text, "Arabic" text, "Aramaic" text, "Hebrew" text, "Geez" text, "Mehri" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- if the geez is libb, wha...
SELECT "Akkadian" FROM table_74052 WHERE "Geez" = 'libb'
### Instruction: CREATE TABLE table_45745 ( "Date" text, "at/vs." text, "Opponent'" text, "Score'" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the at/vs against the New York Saints with over 16,042 in...
SELECT "at/vs." FROM table_45745 WHERE "Opponent'" = 'new york saints' AND "Attendance" > '16,042'
### Instruction: CREATE TABLE table_204_353 ( id number, "no." number, "date/time" text, "aircraft" text, "foe" text, "result" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the next location listed...
SELECT "location" FROM table_204_353 WHERE id = (SELECT id FROM table_204_353 WHERE "location" = 'fonsazo') + 1
### Instruction: CREATE TABLE table_70093 ( "Value" text, "Khmer" real, "Word Form" text, "UNGEGN" text, "ALA-LC" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the UNGEGN, when the Khmer is greater than ? ### Response:
SELECT "UNGEGN" FROM table_70093 WHERE "Khmer" > '១០០០០០០០០'
### Instruction: CREATE TABLE table_40083 ( "Round" real, "Location" text, "Circuit" text, "Date" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the driver that one for the winning tpc team qi-m...
SELECT "Winning Driver" FROM table_40083 WHERE "Winning Team" = 'tpc team qi-meritus' AND "Round" > '8'
### Instruction: CREATE TABLE table_203_230 ( id number, "place" text, "player" text, "country" text, "score" text, "to par" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the countries of the united states and denmark where the only two count...
SELECT "score" FROM table_203_230 WHERE "country" = 'united states' INTERSECT SELECT "score" FROM table_203_230 WHERE "country" = 'denmark'
### Instruction: CREATE TABLE table_71723 ( "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. -- Which location had a round of 3, a...
SELECT "Location" FROM table_71723 WHERE "Round" < '3' AND "Opponent" = 'matt horwich'
### Instruction: CREATE TABLE table_47501 ( "Rank" real, "Player" text, "Club(s)" text, "Year(s)" text, "U-17 Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Rank, when U-17 Goals is '7', and when Player is 'Cesc F bregas'?...
SELECT MAX("Rank") FROM table_47501 WHERE "U-17 Goals" = '7' AND "Player" = 'cesc fàbregas'
### Instruction: CREATE TABLE table_24302700_6 ( event_2_truck_pull VARCHAR, event_4_fingals_fingers VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers? ### Re...
SELECT event_2_truck_pull FROM table_24302700_6 WHERE event_4_fingals_fingers = "1 (5 in 33.84s)"
### Instruction: CREATE TABLE table_5572 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in Final" text, "Score in Final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponents in Final ha...
SELECT "Opponents in Final" FROM table_5572 WHERE "Date" = 'september 16, 1990'
### Instruction: CREATE TABLE table_21286 ( "June 10-11" text, "March 27-29" text, "January 15-16" text, "November 3" text, "August 21-22" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the march 27-29 for november 3 being 133 ### Response:
SELECT "March 27-29" FROM table_21286 WHERE "November 3" = '133'
### Instruction: CREATE TABLE table_44265 ( "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 position did eric norri play who was the overall pick less than 32...
SELECT "Position" FROM table_44265 WHERE "Overall" < '322' AND "Round" > '3' AND "Name" = 'eric norri'
### Instruction: CREATE TABLE table_77727 ( "Driver" text, "Car #" real, "Make" text, "Points" real, "Laps" real, "Winnings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the car number that has less than 369 laps for a Dodge with more ...
SELECT SUM("Car #") FROM table_77727 WHERE "Laps" < '369' AND "Make" = 'dodge' AND "Points" > '49'
### Instruction: CREATE TABLE table_62151 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "NHL team" text, "Team from" text, "League from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which League from has a NHL team o...
SELECT "League from" FROM table_62151 WHERE "NHL team" = 'san jose sharks (from carolina) 3'
### Instruction: CREATE TABLE table_17274 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Musical guest and song" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT MIN("Season #") FROM table_17274 WHERE "Production code" = 'K1505'
### Instruction: CREATE TABLE table_36413 ( "Country" text, "Launches" real, "Successes" real, "Failures" real, "Partial failures" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Successes smaller than 6, and Launches larger than 1, and a Failures of...
SELECT SUM("Partial failures") FROM table_36413 WHERE "Successes" < '6' AND "Launches" > '1' AND "Failures" = '2'
### Instruction: CREATE TABLE table_204_256 ( id number, "position" number, "club" text, "played" number, "points" number, "wins" number, "draws" number, "losses" number, "goals for" number, "goals against" number, "goal difference" number ) -- Using valid SQLite, answer th...
SELECT "club" FROM table_204_256 ORDER BY "points" DESC LIMIT 1
### Instruction: CREATE TABLE table_38453 ( "Line" text, "Speed" text, "Length" text, "Construction begun" text, "Expected start of revenue services" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Speed when Construction begun in 2010, a...
SELECT "Speed" FROM table_38453 WHERE "Construction begun" = '2010' AND "Expected start of revenue services" = '2015'
### Instruction: CREATE TABLE table_28381 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by:" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles have directors of ma...
SELECT COUNT("Title") FROM table_28381 WHERE "Directed by" = 'Matthew Penn' AND "No. in series" = '143'
### Instruction: CREATE TABLE table_204_654 ( id number, "year" number, "song" text, "u.s." number, "u.s.\nr&b" number, "u.s.\nac" number, "uk" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many years after 1996 did ...
SELECT MIN("year") - 1996 FROM table_204_654 WHERE "year" > 1996
### Instruction: CREATE TABLE table_48244 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of a...
SELECT "Date of appointment" FROM table_48244 WHERE "Manner of departure" = 'contract expired' AND "Team" = 'lecce'
### Instruction: CREATE TABLE table_47117 ( "Senator" text, "Party" text, "District" real, "Home Town" text, "Took Office" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of District, when Took Office is greater than 1981, and when Se...
SELECT SUM("District") FROM table_47117 WHERE "Took Office" > '1981' AND "Senator" = 'cyndi taylor krier'
### Instruction: CREATE TABLE table_65163 ( "Round" real, "Date" text, "Home" text, "Result" text, "Visitor" text, "Venue" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Home team of the event on Thursday, Dece...
SELECT "Home" FROM table_65163 WHERE "Visitor" = 'modo hockey' AND "Date" = 'thursday, december 11'
### Instruction: CREATE TABLE table_name_33 ( fa_cup_goals INTEGER, league_goals VARCHAR, other_goals VARCHAR, fl_cup_goals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL...
SELECT AVG(fa_cup_goals) FROM table_name_33 WHERE other_goals = 0 AND fl_cup_goals = 0 AND league_goals < 39
### Instruction: CREATE TABLE table_58203 ( "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 Crowd had the least people...
SELECT MIN("Crowd") FROM table_58203 WHERE "Home team score" = '9.13 (67)'
### Instruction: CREATE TABLE table_12995531_3 ( total_viewers INTEGER, date_of_first_broadcast VARCHAR, episode_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total viewers where the date of first broadcast is 28 january 2010 and the ...
SELECT MIN(total_viewers) FROM table_12995531_3 WHERE date_of_first_broadcast = "28 January 2010" AND episode_number = 1
### Instruction: CREATE TABLE table_name_31 ( pages_per_minute__color_ VARCHAR, max_page_size VARCHAR, dimensions__mm_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pages per minute (color) of the machine that has a max page size of a4 and d...
SELECT pages_per_minute__color_ FROM table_name_31 WHERE max_page_size = "a4" AND dimensions__mm_ = "303 x 94 x 60"
### Instruction: CREATE TABLE list ( firstname VARCHAR, lastname VARCHAR, classroom VARCHAR ) CREATE TABLE teachers ( classroom VARCHAR, firstname VARCHAR, lastname VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find all students taught by O...
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"
### Instruction: CREATE TABLE table_1754 ( "DVD Title" text, "No. of Discs" real, "Year" text, "No. of Episodes" real, "Region 1" text, "Region 2" text, "Region 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many dvd titled 'series 5'...
SELECT COUNT("Region 2") FROM table_1754 WHERE "DVD Title" = 'Series 5'
### Instruction: CREATE TABLE table_2637317_1 ( change_in_population_since_1993 VARCHAR, _percentage_of_countrys_population VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the change in population since 1993 in the region where the % of country's popu...
SELECT COUNT(change_in_population_since_1993) FROM table_2637317_1 WHERE _percentage_of_countrys_population = "4.2"
### Instruction: CREATE TABLE table_203_58 ( id number, "airline" text, "airline (in russian)" text, "licence #" number, "icao" text, "iata" text, "domestic code" text, "callsign" text, "photo" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "airline" FROM table_203_58 WHERE "callsign" = 'air sakha'
### Instruction: CREATE TABLE table_9946 ( "Place" text, "Athlete" text, "Points" text, "Score" text, "500 m" text, "1500 m" text, "5000 m" text, "10000 m" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which athlete had a score of 236.0...
SELECT "Athlete" FROM table_9946 WHERE "Score" = '236.023'
### Instruction: CREATE TABLE table_73529 ( "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 "Record" FROM table_73529 WHERE "High assists" = 'Deron Williams (6)'
### Instruction: CREATE TABLE STUDENT ( Advisor VARCHAR, StuID VARCHAR ) CREATE TABLE VOTING_RECORD ( Treasurer_Vote VARCHAR, Election_Cycle VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the distinct Advisor of students who have treasurer vote...
SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring"
### Instruction: CREATE TABLE table_203_187 ( id number, "conference" text, "bids" number, "record" text, "win %" number, "quarterfinals" number, "semifinals" number, "final" number, "champions" number ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "win %" FROM table_203_187 WHERE "conference" = 'colonial athletic association'
### Instruction: CREATE TABLE table_name_13 ( scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90...
SELECT scheduled FROM table_name_13 WHERE capacity__mw_ < 32.5 AND type = "nordex n90 2.5mw" AND wind_farm = "glenough extension"
### Instruction: CREATE TABLE table_36990 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What College/Junior/Club Team (League) from Canada has a...
SELECT "College/Junior/Club Team (League)" FROM table_36990 WHERE "Nationality" = 'canada' AND "Round" < '3'
### Instruction: CREATE TABLE table_79037 ( "South West DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Draws have a South West DFL of tyrendarra, and less than ...
SELECT SUM("Draws") FROM table_79037 WHERE "South West DFL" = 'tyrendarra' AND "Wins" < '10'
### Instruction: CREATE TABLE table_60608 ( "Official Name" text, "Status" text, "Area km 2" real, "Population" real, "Census Ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Census Ranking has a Population smaller than 879, and an Area...
SELECT "Census Ranking" FROM table_60608 WHERE "Population" < '879' AND "Area km 2" > '537.62'