instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_21126 ( "English name" text, "Irish name" text, "Numeral" text, "Reverse" text, "Introduction" text, "Withdrawal" text, "\u00a31 Fraction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1 fract...
SELECT "\u00a31 Fraction" FROM table_21126 WHERE "Reverse" = 'Hare'
### Instruction: CREATE TABLE table_12251 ( "Round" real, "Date" text, "Event" text, "Circuit" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Circuit has a Winning Driver of hans-joachim stuck, a...
SELECT "Circuit" FROM table_12251 WHERE "Winning Driver" = 'hans-joachim stuck' AND "Round" = '3'
### Instruction: CREATE TABLE table_62489 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1? #...
SELECT SUM("Bronze") FROM table_62489 WHERE "Silver" = '1' AND "Rank" < '4' AND "Gold" > '1'
### Instruction: CREATE TABLE table_21550 ( "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 "Team" FROM table_21550 WHERE "Date" = 'November 21'
### Instruction: CREATE TABLE table_10980 ( "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 home team has a crowd tha...
SELECT "Home team" FROM table_10980 WHERE "Crowd" > '22,449'
### Instruction: CREATE TABLE table_38944 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent for the game taht was before week 5 on October 10, 1954? ### Res...
SELECT "Opponent" FROM table_38944 WHERE "Week" < '5' AND "Date" = 'october 10, 1954'
### Instruction: CREATE TABLE table_204_795 ( id number, "date" text, "opponent" text, "score" text, "result" text, "location" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- were more points scored against butler or purd...
SELECT "opponent" FROM table_204_795 WHERE "opponent" IN ('butler', 'purdue') ORDER BY "score" + "score" DESC LIMIT 1
### Instruction: CREATE TABLE table_47372 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "High rebounds" FROM table_47372 WHERE "Team" = '@ toronto'
### Instruction: CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Draw a bar...
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) DESC
### Instruction: CREATE TABLE table_58579 ( "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 which date did a home team s...
SELECT "Date" FROM table_58579 WHERE "Home team score" = '6.17 (53)'
### Instruction: CREATE TABLE table_72056 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of silver medals for countries of rank 14, with le...
SELECT SUM("Silver") FROM table_72056 WHERE "Rank" = '14' AND "Total" < '1'
### Instruction: CREATE TABLE table_21201 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "High rebounds" FROM table_21201 WHERE "Game" = '46'
### Instruction: CREATE TABLE table_name_30 ( loses INTEGER, draws VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of loses of the club with more than 42 goals scored, more than 2...
SELECT MIN(loses) FROM table_name_30 WHERE goals_scored > 42 AND goals_conceded > 20 AND draws < 3
### Instruction: CREATE TABLE table_18857 ( "District" text, "2012 Commission" text, "2010 Commission" text, "2007 Commission" text, "2002 Commission" text, "1999 Commission" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What district for charl...
SELECT "District" FROM table_18857 WHERE "2012 Commission" = 'Charlie Oliver'
### Instruction: CREATE TABLE musical ( Musical_ID int, Name text, Year int, Award text, Category text, Nominee text, Result text ) CREATE TABLE actor ( Actor_ID int, Name text, Musical_ID int, Character text, Duration text, age int ) -- Using valid SQLite, answer ...
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee
### Instruction: CREATE TABLE table_57825 ( "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 big was the crowd in game t...
SELECT "Crowd" FROM table_57825 WHERE "Away team" = 'north melbourne'
### Instruction: CREATE TABLE table_name_22 ( first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of First Elected that has counties represented of A...
SELECT COUNT(first_elected) FROM table_name_22 WHERE counties_represented = "anne arundel" AND district = "30" AND committee = "ways and means"
### Instruction: CREATE TABLE table_36383 ( "Series Ep." text, "Episode" real, "Netflix" text, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which segment a's Netflix is S05E...
SELECT "Segment A" FROM table_36383 WHERE "Netflix" = 's05e22'
### Instruction: CREATE TABLE table_9933 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What did the away team score wh...
SELECT "Away team score" FROM table_9933 WHERE "Crowd" > '6,872'
### Instruction: CREATE TABLE table_1890 ( "No. in series" 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 above. -- N...
SELECT "Title" FROM table_1890 WHERE "Production code" = '2T6908'
### Instruction: CREATE TABLE table_31378 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" text, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT "Weight (kg)" FROM table_31378 WHERE "Race" = 'Autumn Classic'
### Instruction: CREATE TABLE table_3679 ( "Round" real, "Circuit" text, "Series" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the fastest lap wh...
SELECT "Fastest Lap" FROM table_3679 WHERE "Winning Driver" = 'Kristian Ghedina'
### Instruction: CREATE TABLE table_43127 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of bronze medals when the silver is greater than 0...
SELECT SUM("Bronze") FROM table_43127 WHERE "Silver" > '0' AND "Total" = '5'
### Instruction: CREATE TABLE table_56240 ( "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What race ha...
SELECT "Race" FROM table_56240 WHERE "Pole Position" = 'jacques laffite'
### Instruction: CREATE TABLE table_39895 ( "Player" text, "Nationality" text, "Position" text, "Years in Orlando" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Years in Orlando has a Nationality of united states, and...
SELECT "Years in Orlando" FROM table_39895 WHERE "Nationality" = 'united states' AND "Player" = 'doug overton'
### Instruction: CREATE TABLE table_train_237 ( "id" int, "fasting_c_peptide" float, "fasting_plasma_glucose" int, "smoking" bool, "body_mass_index_bmi" float, "serum_25_oh_d_levels" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT * FROM table_train_237 WHERE smoking = 1
### Instruction: CREATE TABLE table_name_75 ( date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the vacancy date for the manager appointed on 2 November 2009 who left due to m...
SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 2009"
### Instruction: CREATE TABLE table_27333 ( "Episode No." text, "Prod No." real, "Title" text, "Directed by" text, "Written by" text, "Original airdate UK" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the title of the episode that air...
SELECT "Title" FROM table_27333 WHERE "Original airdate UK" = 'October 7, 1965'
### Instruction: CREATE TABLE table_57186 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points were there before 1979 with a ferrari 312b2 chassis? ### Response:
SELECT "Points" FROM table_57186 WHERE "Year" < '1979' AND "Chassis" = 'ferrari 312b2'
### Instruction: CREATE TABLE table_23830 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was...
SELECT "Original air date" FROM table_23830 WHERE "Title" = 'The Boost Job'
### Instruction: CREATE TABLE table_17588 ( "Rank" real, "Peak" text, "Elevation (m)" real, "Prominence (m)" real, "Isolation (km)" real, "Municipality" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of rank...
SELECT COUNT("Rank") FROM table_17588 WHERE "Peak" = 'Fresvikbreen'
### Instruction: CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) -- Using valid SQLite, answer the following quest...
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
### Instruction: CREATE TABLE table_11031 ( "Position" real, "Drivers" text, "Class" text, "Class Position" real, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Class has Laps larger than 193, Class Position of 1, and a Position of 13? ...
SELECT "Class" FROM table_11031 WHERE "Laps" > '193' AND "Class Position" = '1' AND "Position" = '13'
### Instruction: CREATE TABLE table_15820 ( "District" text, "Counties Represented" text, "Party" text, "First Elected" real, "Committee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average first elected year that has a district of 11...
SELECT AVG("First Elected") FROM table_15820 WHERE "District" = '11' AND "Committee" = 'environmental matters'
### Instruction: CREATE TABLE Products_in_Events ( Product_ID VARCHAR ) CREATE TABLE Products ( Product_Name VARCHAR, Product_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the names of products and the number of events they are in, sorted by th...
SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC
### Instruction: CREATE TABLE table_45755 ( "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 is Date of Appoin...
SELECT "Date of appointment" FROM table_45755 WHERE "Outgoing manager" = 'hakan kutlu'
### Instruction: CREATE TABLE table_20624 ( "No." real, "Name" text, "Mi from Kingston" text, "Km from Kingston" text, "Parish" text, "Length feet" real, "Length meters" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many feet in length ...
SELECT COUNT("Length feet") FROM table_20624 WHERE "Length meters" = '106.1'
### Instruction: CREATE TABLE table_78305 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Week has a Result of w 24-0, and an Attendance smaller than 10,000? ### Respons...
SELECT MAX("Week") FROM table_78305 WHERE "Result" = 'w 24-0' AND "Attendance" < '10,000'
### Instruction: CREATE TABLE table_41052 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many gold medals were awarded to the team with more than 2 bronze and e...
SELECT "Gold" FROM table_41052 WHERE "Bronze" > '2' AND "Silver" = '29'
### Instruction: CREATE TABLE table_36192 ( "Season" text, "Winner" text, "Score" text, "Runner-up" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Winner has a Score of 1 0, and a Season of 2011 12? ### Response:
SELECT "Winner" FROM table_36192 WHERE "Score" = '1 – 0' AND "Season" = '2011–12'
### Instruction: CREATE TABLE table_203_529 ( id number, "fin" number, "st" number, "driver" text, "car #" number, "make" text, "points" number, "bonus" number, "laps" number, "winnings" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT COUNT("driver") FROM table_203_529 WHERE "bonus" IS NULL
### Instruction: CREATE TABLE table_45752 ( "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 is Team, when Dat...
SELECT "Team" FROM table_45752 WHERE "Date of appointment" = '10 november 2008'
### Instruction: CREATE TABLE table_11538 ( "State" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total for the state of new york and a swimsuit less than 9.394? ...
SELECT SUM("Interview") FROM table_11538 WHERE "State" = 'new york' AND "Swimsuit" < '9.394'
### Instruction: CREATE TABLE table_204_508 ( id number, "no." number, "race title" text, "track" text, "date" text, "tv" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the next race listed after the sfp 250 ? ### Response:
SELECT "race title" FROM table_204_508 WHERE id = (SELECT id FROM table_204_508 WHERE "race title" = 'sfp 250') + 1
### Instruction: CREATE TABLE table_66749 ( "Season" text, "Champion" text, "Runner Up" text, "Israel Bowl" text, "Venue" text, "Date" text, "Finals MVP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the venue for march 28, 2008 ### ...
SELECT "Venue" FROM table_66749 WHERE "Date" = 'march 28, 2008'
### Instruction: CREATE TABLE table_name_7 ( rating VARCHAR, air_date VARCHAR, weekly_winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Rating, when Air Date is 'July 24, 2008*', and when Weekly Winner is 'Sales Rep. Oscar Ledezma'? ### Res...
SELECT rating FROM table_name_7 WHERE air_date = "july 24, 2008*" AND weekly_winner = "sales rep. oscar ledezma"
### Instruction: CREATE TABLE table_name_57 ( population INTEGER, municipality VARCHAR, markatal VARCHAR, inhabitants_per_km² VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Population, when Markatal is greater than 48, when Inhabit...
SELECT SUM(population) FROM table_name_57 WHERE markatal > 48 AND inhabitants_per_km² > 24 AND municipality = "runavík"
### Instruction: CREATE TABLE table_203_450 ( id number, "team" text, "outgoing manager" text, "manner of departure" text, "date of vacancy" text, "replaced by" text, "date of appointment" text, "position in table" text ) -- Using valid SQLite, answer the following questions for the ta...
SELECT "team" FROM table_203_450 WHERE "position in table" = 5
### Instruction: CREATE TABLE table_23824 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT "Season #" FROM table_23824 WHERE "Series #" = '23'
### Instruction: CREATE TABLE table_77968 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Date" FROM table_77968 WHERE "Circuit" = 'monaco'
### Instruction: CREATE TABLE table_204_324 ( id number, "team 1" text, "agg." text, "team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team is next after dr congo ? ### Response:
SELECT "team 1" FROM table_204_324 WHERE id = (SELECT id FROM table_204_324 WHERE "team 1" = 'dr congo') + 1
### Instruction: CREATE TABLE table_35682 ( "Name" text, "Town/City" text, "Region" text, "On Dinosaur Trail?" text, "Education programs/ Guided tours?" text, "Associated Field Digs?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Is the Rudyard...
SELECT "On Dinosaur Trail?" FROM table_35682 WHERE "Name" = 'rudyard depot museum'
### Instruction: CREATE TABLE table_35022 ( "Game" real, "March" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Points smaller than 96, and a Record of 43 16 8 belongs to what game? ...
SELECT "Game" FROM table_35022 WHERE "Points" < '96' AND "Record" = '43–16–8'
### Instruction: CREATE TABLE table_29196 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original airdate" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The episode with production code 693...
SELECT COUNT("Original airdate") FROM table_29196 WHERE "Production code" = '693-002'
### Instruction: CREATE TABLE table_19948664_1 ( countries_sampled VARCHAR, ranking_la__2_ VARCHAR, world_ranking__1_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many countries were sampled for the index in 2nd place in the LA ranking and 23rd in ...
SELECT countries_sampled FROM table_19948664_1 WHERE ranking_la__2_ = "2nd" AND world_ranking__1_ = "23rd"
### Instruction: CREATE TABLE table_39162 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the winning score for jim barnes and year of 1924...
SELECT "Winning score" FROM table_39162 WHERE "Runner-up" = 'jim barnes' AND "Year" = '1924'
### Instruction: CREATE TABLE table_25704 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Location Attendance" FROM table_25704 WHERE "Record" = '5-15'
### Instruction: CREATE TABLE table_29725 ( "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_29725 WHERE "Date" = 'January 7'
### Instruction: CREATE TABLE table_16827 ( "Model name" text, "Power (ps)" real, "Torque (Nm@rpm)" text, "Displacement (cm\u00b3)" real, "Engine code" text, "Comment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the model of the engin...
SELECT "Model name" FROM table_16827 WHERE "Engine code" = 'D5252 T'
### Instruction: CREATE TABLE table_204_809 ( id number, "draw" number, "country" text, "language" text, "artist" text, "song" text, "english translation" text, "national final" text, "place" number, "points" number ) -- Using valid SQLite, answer the following questions for th...
SELECT "country" FROM table_204_809 WHERE "draw" = 17
### Instruction: CREATE TABLE table_35220 ( "Constituency" text, "Electorate" real, "Turnout" text, "Spoilt" text, "Valid Poll" real, "Quota" text, "Seats" real, "Candidates" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the averag...
SELECT AVG("Valid Poll") FROM table_35220 WHERE "Seats" < '3'
### Instruction: CREATE TABLE table_54131 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average for the player that scored 116 yards and had TD's less tha...
SELECT COUNT("Avg.") FROM table_54131 WHERE "Yards" = '116' AND "TD's" < '1'
### Instruction: CREATE TABLE table_67478 ( "Year" real, "Competition" text, "Venue" text, "Event" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What venue held the event in 2008 that has 2:13:10 in the notes? ### Response:
SELECT "Venue" FROM table_67478 WHERE "Year" = '2008' AND "Notes" = '2:13:10'
### Instruction: CREATE TABLE table_64186 ( "Minister" text, "Party" text, "Governments" text, "Term start" text, "Term end" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the end of the term for Kadima that started on 18 January 2006? ###...
SELECT "Term end" FROM table_64186 WHERE "Party" = 'kadima' AND "Term start" = '18 january 2006'
### Instruction: CREATE TABLE table_33629 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the away team that scor...
SELECT "Away team" FROM table_33629 WHERE "Away team score" = '7.6 (48)'
### Instruction: CREATE TABLE table_43049 ( "Volume" text, "Series" text, "Title" text, "Cover" text, "Published" text, "ISBN" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ISBN of the Conan the Barbarian series that has the title o...
SELECT "ISBN" FROM table_43049 WHERE "Series" = 'conan the barbarian' AND "Title" = 'queen of the black coast'
### Instruction: CREATE TABLE table_49333 ( "Name" text, "Built" text, "Listed" text, "Location" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the listing date for the verdigris creek bridge in royal of antelope county? ### ...
SELECT "Listed" FROM table_49333 WHERE "County" = 'antelope' AND "Location" = 'royal' AND "Name" = 'verdigris creek bridge'
### Instruction: CREATE TABLE table_51153 ( "Tribunal" text, "Number of autos da f\u00e9 with known sentences" text, "Executions in persona" text, "Executions in effigie" text, "Penanced" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "Tribunal" FROM table_51153 WHERE "Total" = '4167'
### Instruction: CREATE TABLE table_60138 ( "Club" text, "Nickname" text, "Location" text, "GFL Premierships" text, "Years in GFL" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nickname of the team who was in the GFL from 1986-1988? #...
SELECT "Nickname" FROM table_60138 WHERE "Years in GFL" = '1986-1988'
### Instruction: CREATE TABLE table_45863 ( "Player" text, "Club" text, "Games" real, "Goals" real, "Assists" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Games, when Player is Robert Hock, and when Goals is ...
SELECT AVG("Games") FROM table_45863 WHERE "Player" = 'robert hock' AND "Goals" < '24'
### Instruction: CREATE TABLE table_203_788 ( id number, "year" number, "author" text, "illustrator" text, "title" text, "publisher" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which other author , besides lewis carroll , has won the kurt mas...
SELECT "author" FROM table_203_788 WHERE "author" <> 'lewis carroll' GROUP BY "author" HAVING COUNT(*) = 2
### Instruction: CREATE TABLE table_name_43 ( investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Investing Dragon has requested 100,000 and is supported by Entrepreneur Kay Russe...
SELECT investing_dragon_s_ FROM table_name_43 WHERE money_requested__£_ = "100,000" AND entrepreneur_s_ = "kay russell"
### Instruction: CREATE TABLE table_29427 ( "No" real, "Peak" text, "Location" text, "Elevation (m)" real, "Prominence (m)" real, "Col height (m)" real, "Col location" text, "Parent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is...
SELECT MAX("Elevation (m)") FROM table_29427 WHERE "No" = '39'
### Instruction: CREATE TABLE table_43516 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the driver for the Forsythe Racing team that has the best time of 1:00.099? ### Respon...
SELECT "Name" FROM table_43516 WHERE "Team" = 'forsythe racing' AND "Best" = '1:00.099'
### Instruction: CREATE TABLE table_56581 ( "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 big is the Venue of Brunswi...
SELECT SUM("Crowd") FROM table_56581 WHERE "Venue" = 'brunswick street oval'
### Instruction: CREATE TABLE table_name_15 ( appointed_by VARCHAR, title VARCHAR, termination_of_mission VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was appointed with the title of envoy extraordinary and minister plenipotentiary, and a terminati...
SELECT appointed_by FROM table_name_15 WHERE title = "envoy extraordinary and minister plenipotentiary" AND termination_of_mission = "march 16, 1905"
### Instruction: CREATE TABLE table_43372 ( "Season" text, "Competition" text, "Round" text, "Opponent" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Round when the series shows 5th place, and a Season of 2006 07? ### R...
SELECT "Round" FROM table_43372 WHERE "Series" = '5th place' AND "Season" = '2006–07'
### Instruction: CREATE TABLE table_203_412 ( id number, "school" text, "conference" text, "record (conference)" text, "head coach" text, "cws appearances" text, "cws best finish" text, "cws record" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT "school" FROM table_203_412 WHERE "record (conference)" < 20
### Instruction: CREATE TABLE table_17649 ( "#" real, "Athlete (NOC)" text, "Shooting" text, "Fencing" text, "Swimming" text, "Riding" text, "Running" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Luis Siri's shooti...
SELECT "Shooting" FROM table_17649 WHERE "Athlete (NOC)" = 'Luis Siri'
### Instruction: CREATE TABLE table_11895 ( "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 of geelong p...
SELECT MIN("Crowd") FROM table_11895 WHERE "Home team" = 'geelong'
### Instruction: CREATE TABLE table_26698 ( "Episode" real, "Airdate" text, "Reward" text, "Immunity" text, "Eliminated" text, "Vote" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the eliminated 7th voted out day 21 ##...
SELECT "Eliminated" FROM table_26698 WHERE "Finish" = '7th Voted Out Day 21'
### Instruction: CREATE TABLE table_25520 ( "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. -- Who directed the episode which origin...
SELECT "Directed by" FROM table_25520 WHERE "Original air date" = 'February 4, 2005'
### Instruction: CREATE TABLE table_24041 ( "Episode #" real, "Episode" real, "Title" text, "Director" text, "Writer" text, "Original airdate" text, "U.S. airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the USA airdate for '...
SELECT "U.S. airdate" FROM table_24041 WHERE "Title" = 'Jenny from the Block'
### Instruction: CREATE TABLE table_204_341 ( id number, "name in english" text, "name in turkish" text, "area (km2)" text, "depth" text, "location (districts and/or provinces)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total nu...
SELECT COUNT(*) FROM table_204_341 WHERE "location (districts and/or provinces)" = 'van'
### Instruction: CREATE TABLE table_204_309 ( id number, "model" text, "released" number, "usage" text, "features" text, "storage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- after susie , what came next ? ### Response:
SELECT "model" FROM table_204_309 WHERE "released" > (SELECT "released" FROM table_204_309 WHERE "model" = 'susie') ORDER BY "released" LIMIT 1
### Instruction: CREATE TABLE table_40229 ( "Season" text, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "Podiums" real, "Points" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the poin...
SELECT SUM("Points") FROM table_40229 WHERE "Poles" < '0'
### Instruction: CREATE TABLE table_19196 ( "Bit 15" real, "Bits 14-12" real, "Bits 11-0" text, "Mnemonic" text, "Description" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most bits 14-12 for output from accumulator to character bus ###...
SELECT MIN("Bits 14-12") FROM table_19196 WHERE "Description" = 'Output from accumulator to character bus'
### Instruction: CREATE TABLE table_11832 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Score" FROM table_11832 WHERE "Team" = '@ houston'
### Instruction: CREATE TABLE table_20679 ( "Dates (MDY)" text, "Position" real, "Gross sales" text, "Tickets sold / available" text, "Sellout (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who many dates are in position 9 and the sellout is 81...
SELECT COUNT("Dates (MDY)") FROM table_20679 WHERE "Position" = '9' AND "Sellout (%)" = '81%'
### Instruction: CREATE TABLE table_17532 ( "Number" real, "Name" text, "Titles" text, "Date" text, "Opponent" text, "Result" text, "Defenses" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many opponents fought on 1982-12-03? ### Resp...
SELECT COUNT("Opponent") FROM table_17532 WHERE "Date" = '1982-12-03'
### Instruction: CREATE TABLE table_13085 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Reserved for (SC / ST /Non...
SELECT "Reserved for ( SC / ST /None)" FROM table_13085 WHERE "Name" = 'goverdhan'
### Instruction: CREATE TABLE table_329 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How may times did a player that at...
SELECT COUNT("Years for Rockets") FROM table_329 WHERE "School/Club Team/Country" = 'Iowa State'
### Instruction: CREATE TABLE table_73281 ( "Season" real, "Episode" real, "Episode Summary" text, "Premier date" text, "External Link" text, "Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes have a premier date of july 24...
SELECT COUNT("External Link") FROM table_73281 WHERE "Premier date" = 'July 24, 2006'
### Instruction: CREATE TABLE table_71767 ( "Tournament" text, "Wins" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest cuts made of the Masters tournament, which had a top-25 less than...
SELECT MIN("Cuts made") FROM table_71767 WHERE "Tournament" = 'masters tournament' AND "Top-25" < '0'
### Instruction: CREATE TABLE table_36943 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of attendence has points g...
SELECT COUNT("Attendance") FROM table_36943 WHERE "Points" > '40' AND "Home" = 'detroit'
### Instruction: CREATE TABLE table_name_70 ( wins INTEGER, ties VARCHAR, losses VARCHAR, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of wins for the person who coached from 1951 to 1956 and had less than 174 losse...
SELECT AVG(wins) FROM table_name_70 WHERE losses < 174 AND years = "1951 to 1956" AND ties < 6
### Instruction: CREATE TABLE table_203_665 ( id number, "name" text, "municipality" text, "established" number, "tower height\nin meters (ft)" text, "focal plane\nin meters (ft)" text, "current status" text, "current condition" text ) -- Using valid SQLite, answer the following questi...
SELECT 1889 - 1882
### Instruction: CREATE TABLE table_52274 ( "Year" real, "Theme" text, "Artist" text, "Issue Price" real, "Special Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? ...
SELECT COUNT("Year") FROM table_52274 WHERE "Theme" = 'toronto maple leafs' AND "Issue Price" = '24.95'
### Instruction: CREATE TABLE table_24485 ( "Day" text, "Stage" text, "Time (EET)" text, "Name" text, "Length" text, "Winner" text, "Time" text, "Avg. spd." text, "Rally leader" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ...
SELECT "Time" FROM table_24485 WHERE "Stage" = 'SS12'
### Instruction: CREATE TABLE table_name_52 ( pubs_2011 INTEGER, location VARCHAR, totals_07_11 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average PUBS 11 value in Mumbai, which has a 07-11 totals less than 1025? ### Response:
SELECT AVG(pubs_2011) FROM table_name_52 WHERE location = "mumbai" AND totals_07_11 < 1025