instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_28867 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the 'incumbent' of district south carolina 7? ...
SELECT "Incumbent" FROM table_28867 WHERE "District" = 'South Carolina 7'
### Instruction: CREATE TABLE table_203_502 ( id number, "team" text, "titles" number, "runner-up" number, "third place" number, "fourth place" number, "years participated" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times has ...
SELECT "runner-up" FROM table_203_502 WHERE "team" = 'michigan state'
### Instruction: CREATE TABLE table_train_207 ( "id" int, "anemia" bool, "hemoglobin_a1c_hba1c" float, "diabetic" string, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- type i diabetes ###...
SELECT * FROM table_train_207 WHERE diabetic = 'i'
### Instruction: CREATE TABLE table_73901 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in 1833, how many institutions were cre...
SELECT COUNT("Institution") FROM table_73901 WHERE "Founded" = '1833'
### Instruction: CREATE TABLE table_5501 ( "Name" text, "Hanzi" text, "Origin" text, "Launch" real, "Owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the owner of the object launched after 1997 and a Hanzi of ? ### Response:
SELECT "Owner" FROM table_5501 WHERE "Launch" > '1997' AND "Hanzi" = '厦门卫视'
### Instruction: CREATE TABLE table_203_636 ( id number, "#" number, "date" text, "winner" text, "score" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the first game played in houston , tx ? ### Res...
SELECT "date" FROM table_203_636 WHERE "location" = 'houston, tx' ORDER BY "date" LIMIT 1
### Instruction: CREATE TABLE table_67239 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the tournament for march 25, 2012 ### Response:
SELECT "Tournament" FROM table_67239 WHERE "Date" = 'march 25, 2012'
### Instruction: CREATE TABLE table_67587 ( "Season" text, "Prelim" text, "1st round" text, "2nd round" text, "3rd round" text, "Finals" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 3rd round for 1st eound of out of playoffs ### Res...
SELECT "3rd round" FROM table_67587 WHERE "1st round" = 'out of playoffs'
### Instruction: CREATE TABLE table_8842 ( "Year" real, "Ship" text, "Departed From" text, "Departed On" text, "Returned On" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has a Returned On of march 10, 2013? ### Response:
SELECT AVG("Year") FROM table_8842 WHERE "Returned On" = 'march 10, 2013'
### Instruction: CREATE TABLE table_25150 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the runners up for 1 shot deficit ### Respon...
SELECT "Runner(s)-up" FROM table_25150 WHERE "54 holes" = '1 shot deficit'
### Instruction: CREATE TABLE table_17738 ( "Year" real, "Song title" text, "Artist" text, "Master recording ?" text, "Release date" text, "Single / Pack" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many master recordings are there for 'F...
SELECT COUNT("Master recording ?") FROM table_17738 WHERE "Song title" = 'Famous For Nothing'
### Instruction: CREATE TABLE table_16540 ( "Year" real, "Title" text, "Format" text, "Studio" text, "Release Date" text, "Copyright Information" text, "Catalog Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The Catalog number is 808...
SELECT "Title" FROM table_16540 WHERE "Catalog Number" = '80809'
### Instruction: CREATE TABLE table_48113 ( "Province" text, "Largest city" text, "2nd Largest" text, "3rd Largest" text, "4th largest" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 3rd largest when 2nd largest in Minab? ### Response:...
SELECT "3rd Largest" FROM table_48113 WHERE "2nd Largest" = 'minab'
### Instruction: CREATE TABLE table_30587 ( "Stage" real, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT COUNT("Young rider classification") FROM table_30587 WHERE "Winner" = 'Diego Ulissi'
### Instruction: CREATE TABLE table_68398 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year had the Chassis of march 762 and more than 0 points? ### Response:
SELECT COUNT("Year") FROM table_68398 WHERE "Chassis" = 'march 762' AND "Points" > '0'
### Instruction: CREATE TABLE table_58733 ( "Name" text, "Total" real, "First" text, "Last" text, "Highest rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the last when the first was January 2001 and more than 26 total? ### Response:
SELECT "Last" FROM table_58733 WHERE "Total" > '26' AND "First" = 'january 2001'
### Instruction: CREATE TABLE table_204_360 ( id number, "year" number, "host" text, "gold" text, "silver" text, "bronze" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many gold medals did brazil win before 2000 ? ### Response:
SELECT COUNT(*) FROM table_204_360 WHERE "gold" = 'brazil' AND "year" < 2000
### Instruction: CREATE TABLE table_59872 ( "Name" text, "Pos." text, "Height" text, "Weight" text, "Date of Birth" text, "Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name of the D Player from the Dinamo Moscow Club? ### R...
SELECT "Name" FROM table_59872 WHERE "Club" = 'dinamo moscow' AND "Pos." = 'd'
### Instruction: CREATE TABLE table_78870 ( "Team" text, "City" text, "Venue" text, "Capacity" real, "Head Coach" text, "Team Captain" text, "Past Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Venue has a Past Season of 2nd? ...
SELECT "Venue" FROM table_78870 WHERE "Past Season" = '2nd'
### Instruction: CREATE TABLE table_32117 ( "Year" real, "Conference" text, "City" text, "Country" text, "Local Host(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the local hosts for the United States in years earlier than 2007? ### R...
SELECT "Local Host(s)" FROM table_32117 WHERE "Country" = 'united states' AND "Year" < '2007'
### Instruction: CREATE TABLE table_25305 ( "Country" text, "Type of Protection" text, "Maximum Term" text, "PCT route available" text, "Conversion from Patent Application" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For short patent type of prot...
SELECT "PCT route available" FROM table_25305 WHERE "Type of Protection" = 'short patent'
### Instruction: CREATE TABLE table_name_7 ( goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR, lost VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals that were scored had a place of more than 5, a lost of 11, and goals conceded...
SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45
### Instruction: CREATE TABLE table_29343 ( "Genus/Species" text, "Gene Name" text, "Accession number" text, "Sequence Length" text, "Sequence similarity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the gene name for methylobacterium nodulan...
SELECT "Gene Name" FROM table_29343 WHERE "Genus/Species" = 'Methylobacterium nodulans'
### Instruction: CREATE TABLE table_51622 ( "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 played at MCG? ...
SELECT "Away team" FROM table_51622 WHERE "Venue" = 'mcg'
### Instruction: CREATE TABLE table_50014 ( "Tournament" text, "Wins" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With wins greater than 0 what is the minimum Top-10? ### Respon...
SELECT MIN("Top-10") FROM table_50014 WHERE "Wins" > '0'
### Instruction: CREATE TABLE table_30839 ( "By-election" real, "Electorate" text, "Date" text, "Incumbent" text, "Reason" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When james seaton is the incumbent what is the reason? ###...
SELECT "Reason" FROM table_30839 WHERE "Incumbent" = 'James Seaton'
### Instruction: CREATE TABLE table_204_133 ( id number, "school year" text, "class a" text, "class aa" text, "class aaa" text, "class aaaa" text, "class aaaaa" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times has garden city wo...
SELECT COUNT(*) FROM table_204_133 WHERE "class a" = 'garden city'
### Instruction: CREATE TABLE table_16046689_29 ( conference_matchups VARCHAR, date VARCHAR, bowl_game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What teams played in the Capital One bowl game on January 1, 2009? ### Response:
SELECT conference_matchups FROM table_16046689_29 WHERE date = "January 1, 2009" AND bowl_game = "Capital One"
### Instruction: CREATE TABLE table_10751 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyres" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds have a chassis of thl2? ###...
SELECT "Rounds" FROM table_10751 WHERE "Chassis" = 'thl2'
### Instruction: CREATE TABLE table_57952 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average Grid for those who spun off after Lap 64? ### Response:
SELECT AVG("Grid") FROM table_57952 WHERE "Time/Retired" = 'spun off' AND "Laps" > '64'
### Instruction: CREATE TABLE vocals ( songid VARCHAR ) CREATE TABLE songs ( title VARCHAR, songid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find all the songs that do not have a back vocal. ### Response:
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
### Instruction: CREATE TABLE table_36498 ( "Year" real, "Class" text, "Team" text, "Points" real, "Rank" text, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did she have with team bultaco, ranked 6th? ### Response:
SELECT SUM("Points") FROM table_36498 WHERE "Team" = 'bultaco' AND "Rank" = '6th'
### Instruction: CREATE TABLE table_36350 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Surface has a Partner of galina voskoboeva? ### Response:
SELECT "Surface" FROM table_36350 WHERE "Partner" = 'galina voskoboeva'
### Instruction: CREATE TABLE table_24135 ( "Rank" real, "Average" text, "Player" text, "Runs" real, "Innings" real, "Not Out" real, "Period" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What period was there a career average of 48.15? #...
SELECT "Period" FROM table_24135 WHERE "Average" = '48.15'
### Instruction: CREATE TABLE table_45904 ( "Rank" real, "City" text, "Airport" text, "Passengers" real, "Carriers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least passengers from the Dallas/Fort Worth International (DFW) airport? ...
SELECT MIN("Passengers") FROM table_45904 WHERE "Airport" = 'dallas/fort worth international (dfw)'
### Instruction: CREATE TABLE table_9449 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Tie No is Replay, and when Home Team is Sunderland? ### Response:...
SELECT "Score" FROM table_9449 WHERE "Tie no" = 'replay' AND "Home team" = 'sunderland'
### Instruction: CREATE TABLE table_7455 ( "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 smallest total from Japan with a rank larger than 3? ### Respo...
SELECT MIN("Total") FROM table_7455 WHERE "Nation" = 'japan' AND "Rank" > '3'
### Instruction: CREATE TABLE table_22285 ( "No. overall" real, "No. in series" real, "Title" text, "Director" text, "Writer" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote 'episode...
SELECT "Writer" FROM table_22285 WHERE "Title" = 'Episode 10'
### Instruction: CREATE TABLE table_60555 ( "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 2nd Member has an Election of 1833 by-election? ### Response:
SELECT "2nd Member" FROM table_60555 WHERE "Election" = '1833 by-election'
### Instruction: CREATE TABLE table_name_63 ( play_by_play VARCHAR, studio_host VARCHAR, studio_analysts VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich Play-by-play has a Studio host of gary tanguay, and a Studio analysts of donny marshall? ### R...
SELECT play_by_play FROM table_name_63 WHERE studio_host = "gary tanguay" AND studio_analysts = "donny marshall"
### Instruction: CREATE TABLE table_1203 ( "No" real, "Date" text, "Round" text, "Circuit" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which round was the ci...
SELECT "Round" FROM table_1203 WHERE "Circuit" = 'Assen'
### Instruction: CREATE TABLE city ( city_id VARCHAR ) CREATE TABLE hosting_city ( host_city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the GDP and population of the city that already served as a host more than once? ### Response:
SELECT t1.gdp, t1.Regional_Population FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY t2.host_city HAVING COUNT(*) > 1
### Instruction: CREATE TABLE table_61106 ( "Year" real, "Award" text, "Category" text, "Nominated Work" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for the Outer Critics Circle award earlier than 2004? ### Res...
SELECT "Result" FROM table_61106 WHERE "Award" = 'outer critics circle award' AND "Year" < '2004'
### Instruction: CREATE TABLE table_40255 ( "Spoofed Title" text, "Actual Title" text, "Writer" text, "Artist" text, "Issue" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which artist has a Spoofed title in June 1992? ### Respons...
SELECT "Artist" FROM table_40255 WHERE "Date" = 'june 1992'
### Instruction: CREATE TABLE table_71192 ( "Player" text, "Position" text, "Previous Club" text, "Apps" real, "Tries" real, "Goals" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Full Back Player has 0 Apps? ### Respon...
SELECT "Player" FROM table_71192 WHERE "Position" = 'full back' AND "Apps" = '0'
### Instruction: CREATE TABLE table_57078 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality for the guard position from Bowling Gree...
SELECT "Nationality" FROM table_57078 WHERE "Position" = 'guard' AND "School/Club Team" = 'bowling green'
### Instruction: CREATE TABLE table_43078 ( "Club" text, "Winners" real, "Runners-up" real, "Winning Years" text, "Runner-up Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the runners-up for the FC Viktoria Plze club? ### Response:...
SELECT "Runners-up" FROM table_43078 WHERE "Club" = 'fc viktoria plzeň'
### Instruction: CREATE TABLE table_27739 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many joined this Private/Church of ...
SELECT "Joined" FROM table_27739 WHERE "Type" = 'Private/Church of God'
### Instruction: CREATE TABLE table_204_53 ( id number, "date" text, "result" text, "opponent" text, "event" text, "location" text, "method" text, "round" number, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which event ende...
SELECT "event" FROM table_204_53 ORDER BY "time" DESC LIMIT 1
### Instruction: CREATE TABLE table_46336 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who made the decision when detroit was the home team and boston was the ...
SELECT "Decision" FROM table_46336 WHERE "Home" = 'detroit' AND "Visitor" = 'boston'
### Instruction: CREATE TABLE table_33352 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was fitzroy the home ...
SELECT "Date" FROM table_33352 WHERE "Home team" = 'fitzroy'
### Instruction: CREATE TABLE table_16875 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many players only played for the Jazz in onl...
SELECT COUNT("No.") FROM table_16875 WHERE "Years for Jazz" = '2010'
### Instruction: CREATE TABLE table_63109 ( "Round" text, "Date" text, "Against" text, "Score AUFC \u2013 Away" text, "Attendance" real, "Weekday" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has an against of pohang steelers? ### ...
SELECT "Date" FROM table_63109 WHERE "Against" = 'pohang steelers'
### Instruction: CREATE TABLE table_203_396 ( id number, "year" number, "domestic passengers" number, "international passengers" number, "total passengers" number, "change" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many years did intern...
SELECT COUNT("year") FROM table_203_396 WHERE "international passengers" >= 100000
### Instruction: CREATE TABLE table_57126 ( "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. -- Name the total number of attendance when th...
SELECT COUNT("Attendance") FROM table_57126 WHERE "Visitor" = 'cavaliers'
### Instruction: CREATE TABLE table_66288 ( "Proto-Germanic" text, "West Germanic" text, "Old English" text, "German" text, "Dutch" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Proto Germanic when then German is /s/ or /ts/? ### Respo...
SELECT "Proto-Germanic" FROM table_66288 WHERE "German" = '/s/ or /ts/'
### Instruction: CREATE TABLE table_18359 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the candidates in the district won by the incu...
SELECT "Candidates" FROM table_18359 WHERE "Incumbent" = 'Del Latta'
### Instruction: CREATE TABLE table_37447 ( "School" text, "Mascot" text, "Location" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school is located in ...
SELECT "School" FROM table_37447 WHERE "Location" = 'michigan city'
### Instruction: CREATE TABLE table_16610 ( "Wicket" text, "Runs" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the batting team at Durham...
SELECT "Batting team" FROM table_16610 WHERE "Fielding team" = 'Durham'
### Instruction: CREATE TABLE table_20247 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the centerfold model for terrel...
SELECT "Centerfold model" FROM table_20247 WHERE "20 Questions" = 'Terrel Owens'
### Instruction: CREATE TABLE table_55140 ( "Title" text, "Publisher" text, "First Year" text, "Last Year" text, "Genre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the DC Comics title that debuted in 1937 end? ### Response:
SELECT "Last Year" FROM table_55140 WHERE "First Year" = '1937' AND "Publisher" = 'dc comics'
### Instruction: CREATE TABLE table_35779 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the Hartford Whalers home team with the April 13 game date? ### Respo...
SELECT "Record" FROM table_35779 WHERE "Home" = 'hartford whalers' AND "Date" = 'april 13'
### Instruction: CREATE TABLE table_56864 ( "Race Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was the I Dessau Autobahnspinne race? ##...
SELECT "Date" FROM table_56864 WHERE "Race Name" = 'i dessau autobahnspinne'
### Instruction: CREATE TABLE table_204_340 ( id number, "name" text, "year inducted" number, "position" text, "apps" number, "goals" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which two players had the least number of goals ? ### Respon...
SELECT "name" FROM table_204_340 WHERE "goals" = (SELECT MIN("goals") FROM table_204_340)
### Instruction: CREATE TABLE table_56565 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did the away team ...
SELECT "Date" FROM table_56565 WHERE "Away team" = 'melbourne'
### Instruction: CREATE TABLE table_67206 ( "Year" real, "Denomination" text, "Reverse" text, "Weight" text, "Diameter" text, "Fineness" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What denomination was produced in 2006? ...
SELECT "Denomination" FROM table_67206 WHERE "Year" = '2006'
### Instruction: CREATE TABLE table_25912 ( "Episode" text, "First broadcast" text, "Seans team" text, "Daves team" text, "Scores" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In how many episodes was Dave's team made up of David Walliams and Loui...
SELECT COUNT("Episode") FROM table_25912 WHERE "Daves team" = 'David Walliams and Louis Walsh'
### Instruction: CREATE TABLE table_41957 ( "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 average amount of gold medals for a country with more than 12 t...
SELECT AVG("Gold") FROM table_41957 WHERE "Total" > '12'
### 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. -- who is the director next to the title diwan b...
SELECT "director" FROM table_204_961 WHERE "title" = 'diwan bahadur'
### Instruction: CREATE TABLE table_54648 ( "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the title of the episode with the original air date o...
SELECT "Title" FROM table_54648 WHERE "Original air date" = 'october2,2002'
### Instruction: CREATE TABLE table_74592 ( "Club" text, "Played" real, "Lost" real, "Drawn" real, "Against" real, "Diff." real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of losses for teams with less than 4 gam...
SELECT SUM("Lost") FROM table_74592 WHERE "Played" < '4'
### Instruction: CREATE TABLE table_56495 ( "Date" text, "Venue" text, "Opponent" text, "Result" text, "Tournament" text, "Scored" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent with a score of 30-12? ### Response:
SELECT "Opponent" FROM table_56495 WHERE "Result" = '30-12'
### Instruction: CREATE TABLE table_69892 ( "Date" text, "Bowl" text, "Result" text, "Points For" real, "Points Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did the Mountaineers score 27 points and their opponent scored more tha...
SELECT "Date" FROM table_69892 WHERE "Points Against" > '7' AND "Points For" = '27'
### Instruction: CREATE TABLE table_76047 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which rank has 1 silver medal and more than 1 gold medal? ### Response:
SELECT "Rank" FROM table_76047 WHERE "Silver" = '1' AND "Gold" > '1'
### Instruction: CREATE TABLE table_7219 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the tournament played on 16 Jan 2011, what was the winning s...
SELECT "Winning score" FROM table_7219 WHERE "Date" = '16 jan 2011'
### Instruction: CREATE TABLE table_4446 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country is ranked number 2 and has less than 5 total medals? ### Res...
SELECT COUNT("Silver") FROM table_4446 WHERE "Rank" = '2' AND "Total" < '5'
### Instruction: CREATE TABLE table_203_462 ( 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 year was the only year the team ...
SELECT "year" FROM table_203_462 WHERE "playoffs" <> 'did not qualify'
### Instruction: CREATE TABLE table_46054 ( "Team" text, "Tries for" text, "Tries against" text, "Try diff" text, "Points for" text, "Points against" text, "Points diff" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the points again...
SELECT "Points against" FROM table_46054 WHERE "Try diff" = '+23'
### Instruction: CREATE TABLE table_name_16 ( goals_conceded INTEGER, draws VARCHAR, points VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total goals conceded are there when the points are greater than 58, less than 27 wins, a...
SELECT SUM(goals_conceded) FROM table_name_16 WHERE points > 58 AND wins < 27 AND draws < 1
### Instruction: CREATE TABLE table_8928 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Winner, when Location is Connie Mack Stadium, and when Year is 1946? ### Response:...
SELECT "Winner" FROM table_8928 WHERE "Location" = 'connie mack stadium' AND "Year" = '1946'
### Instruction: CREATE TABLE table_55561 ( "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 teamscore for ...
SELECT "Home team score" FROM table_55561 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_54180 ( "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 day is st kilda the home s...
SELECT "Date" FROM table_54180 WHERE "Home team" = 'st kilda'
### Instruction: CREATE TABLE table_37451 ( "Team" text, "Driver" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average grid of driver Christian Vietoris who has less than 12 laps? ### Response:
SELECT AVG("Grid") FROM table_37451 WHERE "Driver" = 'christian vietoris' AND "Laps" < '12'
### Instruction: CREATE TABLE table_62435 ( "Elector" text, "Nationality" text, "Order" text, "Title" text, "Elevated" text, "Elevator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What order has the title Deacon of SS. Cosma E Damiano? ### ...
SELECT "Order" FROM table_62435 WHERE "Title" = 'deacon of ss. cosma e damiano'
### Instruction: CREATE TABLE table_73078 ( "Round" text, "Clubs remaining" real, "Clubs involved" real, "Winners from previous round" text, "New entries this round" text, "Leagues entering this round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Leagues entering this round" FROM table_73078 WHERE "Clubs involved" = '4'
### Instruction: CREATE TABLE table_30108 ( "Player" text, "Matches" real, "Innings" real, "Runs" real, "Average" text, "Strike rate" text, "Highest score" text, "50s" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum nu...
SELECT MIN("50s") FROM table_30108
### Instruction: CREATE TABLE table_80307 ( "Year" real, "Winner" text, "Country" text, "Purse ( $ )" real, "Score" text, "First Prize ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the top first place prize in 1997? ### Respon...
SELECT MAX("First Prize ( $ )") FROM table_80307 WHERE "Year" = '1997'
### Instruction: CREATE TABLE table_name_7 ( ngc_number INTEGER, right_ascension___j2000__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s? ### Response:
SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = "05h33m30s"
### Instruction: CREATE TABLE table_203_683 ( id number, "season" text, "league" text, "gold" text, "silver" text, "bronze" text, "winning manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what number of times did lillestr m win gold ?...
SELECT COUNT(*) FROM table_203_683 WHERE "gold" = 'lillestrøm'
### Instruction: CREATE TABLE table_28301 ( "Shortscale comparison" text, "Chuquet" text, "Peletier" text, "Systematics" text, "Base 10" text, "SI Prefix" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the base 10 for shortscale comparison ...
SELECT "Base 10" FROM table_28301 WHERE "Shortscale comparison" = 'Billion'
### Instruction: CREATE TABLE table_45579 ( "Nat." text, "Name" text, "Moving from" text, "Type" text, "Transfer window" text, "Ends" real, "Transfer fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of Gavin Rae? ...
SELECT "Nat." FROM table_45579 WHERE "Name" = 'gavin rae'
### Instruction: CREATE TABLE table_739 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the district with incumbent being lawrence h. foun...
SELECT "District" FROM table_739 WHERE "Incumbent" = 'Lawrence H. Fountain'
### Instruction: CREATE TABLE table_18603 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many polling areas are there with John Taber as the...
SELECT COUNT("District") FROM table_18603 WHERE "Incumbent" = 'John Taber'
### Instruction: CREATE TABLE table_15610 ( "Name" text, "Years" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Spring Creek School's area when the decile was 4? ### Response:...
SELECT "Area" FROM table_15610 WHERE "Decile" = '4' AND "Name" = 'spring creek school'
### Instruction: CREATE TABLE table_58956 ( "Season" text, "League" text, "Teams" text, "Home" text, "Away" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which season was the Away record 2-2 and At Home record 1-0? ### Response:
SELECT "Season" FROM table_58956 WHERE "Away" = '2-2' AND "Home" = '1-0'
### Instruction: CREATE TABLE table_35481 ( "Call sign" text, "Frequency MHz" text, "City of license" text, "ERP W" real, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which City of license has a Frequency MHz of 91.5 fm? ### Response:...
SELECT "City of license" FROM table_35481 WHERE "Frequency MHz" = '91.5 fm'
### Instruction: CREATE TABLE table_203_829 ( id number, "event" text, "record" text, "athlete(s)" text, "date" text, "time (s)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did felix loch take to complete the men 's luge ? ### Re...
SELECT "time (s)" FROM table_203_829 WHERE "athlete(s)" = 'felix loch'
### Instruction: CREATE TABLE table_14935 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the earliest year that there was a cosworth v8 engine and 12 points? ### Respons...
SELECT MIN("Year") FROM table_14935 WHERE "Engine" = 'cosworth v8' AND "Points" = '12'
### Instruction: CREATE TABLE table_58826 ( "Year" real, "Artist" text, "Title" text, "Format" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the artist before 2010 with a Promotional 7' as a format? ### Response:
SELECT "Artist" FROM table_58826 WHERE "Year" < '2010' AND "Format" = 'promotional 7'
### Instruction: CREATE TABLE table_35020 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the game with a loss of Sele (0-1)? ### Res...
SELECT "Opponent" FROM table_35020 WHERE "Loss" = 'sele (0-1)'