instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_77083 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Player who has a To par of 2 and a Score of 69-73=142? ### Response:
SELECT "Player" FROM table_77083 WHERE "To par" = '–2' AND "Score" = '69-73=142'
### Instruction: CREATE TABLE table_57962 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalogue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What format is the Catalogue 9362486152 from the region of Australia in? ### Response:
SELECT "Format" FROM table_57962 WHERE "Catalogue" = '9362486152' AND "Region" = 'australia'
### Instruction: CREATE TABLE table_34246 ( "Champs" real, "Games" real, "Draw" real, "Lost" real, "Win/Lose Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Champs is the average one that has a Draw larger than 2, and Games smaller ...
SELECT AVG("Champs") FROM table_34246 WHERE "Draw" > '2' AND "Games" < '60'
### Instruction: CREATE TABLE table_19948664_1 ( index__year_ VARCHAR, author___editor___source VARCHAR, ranking_la__2_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ran...
SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = "United Nations (UNDP)" AND ranking_la__2_ = "2nd"
### Instruction: CREATE TABLE table_59247 ( "County" text, "Precincts" text, "E. Greenberg" text, "G. Hager" text, "T. Wyka" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the G. Hager of E. Greenberg of 266 (14%)? ### Response:
SELECT "G. Hager" FROM table_59247 WHERE "E. Greenberg" = '266 (14%)'
### Instruction: CREATE TABLE table_57240 ( "Round" real, "Grand Prix" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pol...
SELECT "Pole Position" FROM table_57240 WHERE "Grand Prix" = 'hungarian grand prix'
### Instruction: CREATE TABLE table_79392 ( "Model" text, "Years" text, "Engine code" text, "Power" text, "Torque" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What model is the n m (lb ft)@1500-2500 torque? ### Response:
SELECT "Model" FROM table_79392 WHERE "Torque" = 'n·m (lb·ft)@1500-2500'
### Instruction: CREATE TABLE table_51801 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the combined crowd in Vancouver on may 22...
SELECT SUM("Attendance") FROM table_51801 WHERE "Home" = 'vancouver' AND "Date" = 'may 22'
### Instruction: CREATE TABLE table_69259 ( "Rank" 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 medals won by nations that had 7 bronze medals and more than 18 go...
SELECT SUM("Total") FROM table_69259 WHERE "Bronze" = '7' AND "Gold" > '18'
### Instruction: CREATE TABLE table_22124 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Prod. code" real, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who direc...
SELECT "Directed by" FROM table_22124 WHERE "Title" = 'People Who Use People'
### Instruction: CREATE TABLE table_16952 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the GTE Suncoast Classic t...
SELECT "Location" FROM table_16952 WHERE "Tournament" = 'GTE Suncoast Classic'
### Instruction: CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) -- Using valid SQLite, answer the following quest...
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
### Instruction: CREATE TABLE table_204_75 ( id number, "year" number, "place" text, "gold" text, "silver" text, "bronze" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which country has won more gold medals : china or mexico ? ### Response:
SELECT "gold" FROM table_204_75 WHERE "gold" IN ('chn', 'mex') GROUP BY "gold" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_75383 ( "Polling Firm" text, "Date" text, "PSD - PC" text, "UDMR" text, "Elena B\u0103sescu" text, "Others" text, "Undecided" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has the others of 2%? ...
SELECT "Date" FROM table_75383 WHERE "Others" = '2%'
### Instruction: CREATE TABLE table_14626 ( "Name" text, "Country" text, "Type" text, "Moving from" text, "Transfer window" text, "Ends" real, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sourc...
SELECT "Source" FROM table_14626 WHERE "Moving from" = 'swindon town'
### Instruction: CREATE TABLE table_56281 ( "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 smallest crowd size...
SELECT MIN("Crowd") FROM table_56281 WHERE "Away team" = 'fitzroy'
### Instruction: CREATE TABLE table_20680 ( "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. -- What is the position of tickets sold/available when th...
SELECT COUNT("Tickets sold / available") FROM table_20680 WHERE "Sellout (%)" = '82%'
### Instruction: CREATE TABLE table_name_98 ( pick VARCHAR, college VARCHAR, round VARCHAR, position VARCHAR, overall VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Pick, when Position is OT, when Overall is greater th...
SELECT COUNT(pick) FROM table_name_98 WHERE position = "ot" AND overall > 91 AND round > 21 AND college = "mississippi"
### Instruction: CREATE TABLE table_21966 ( "Parish (Prestegjeld)" text, "Sub-Parish (Sogn)" text, "Church Name" text, "Year Built" real, "Location of the Church" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the year that the oldest church...
SELECT MIN("Year Built") FROM table_21966 WHERE "Location of the Church" = 'Jostedal'
### Instruction: CREATE TABLE table_203_803 ( id number, "draw" number, "country" text, "language" text, "artist" text, "song" text, "english translation" text, "place" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT COUNT("artist") FROM table_203_803 WHERE "points" >= 40
### Instruction: CREATE TABLE table_203_528 ( id number, "year" number, "political rights" number, "civil liberties" number, "status" text, "president" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many years was it before the first partly ...
SELECT COUNT("year") FROM table_203_528 WHERE id < (SELECT id FROM table_203_528 WHERE "status" = 'partly free')
### Instruction: CREATE TABLE table_46585 ( "Place" text, "Player" text, "Country" text, "Score" text, "To Par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when Place is 'T9', and when Score is '73-70=143'? ### Response:
SELECT "Player" FROM table_46585 WHERE "Place" = 't9' AND "Score" = '73-70=143'
### Instruction: CREATE TABLE table_65601 ( "Year (Ceremony)" text, "Category" text, "Film title used in nomination" text, "Original title" text, "Language" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What title was used in the...
SELECT "Film title used in nomination" FROM table_65601 WHERE "Original title" = 'una giornata particolare'
### Instruction: CREATE TABLE table_23553 ( "#" text, "Original title" text, "Directed by" text, "Written by" text, "Original airdate" text, "Prod. code" text, "Viewers" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 'the postcard' is t...
SELECT "Prod. code" FROM table_23553 WHERE "Original title" = 'The Postcard'
### Instruction: CREATE TABLE table_49489 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Result, when Original Title is 'Ti nm C...
SELECT "Result" FROM table_49489 WHERE "Original title" = 'tiānmǎ cháfáng (天馬茶房)'
### Instruction: CREATE TABLE table_2253 ( "Date" text, "Location" text, "Discipline" text, "Winner" text, "2nd place" text, "3rd place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who got the 3rd place in the cup on 01.02.2009? ### Respons...
SELECT "3rd place" FROM table_2253 WHERE "Date" = '01.02.2009'
### Instruction: CREATE TABLE table_70805 ( "Rank" real, "Fastest time (s)" real, "Wind (m/s)" real, "Athlete" text, "Nation" text, "Date" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what nation is bianca knight the answe...
SELECT "Nation" FROM table_70805 WHERE "Athlete" = 'bianca knight'
### Instruction: CREATE TABLE table_30929 ( "No. overall" real, "No. for series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "UK viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What ...
SELECT "Original air date" FROM table_30929 WHERE "Title" = 'The Changeling'
### Instruction: CREATE TABLE table_39099 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which highest overall figure had Robert Alford as a name and a round ...
SELECT MAX("Overall") FROM table_39099 WHERE "Name" = 'robert alford' AND "Round" > '2'
### Instruction: CREATE TABLE table_75805 ( "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number listed under against when there were less than 13 losses and less than 2 b...
SELECT COUNT("Against") FROM table_75805 WHERE "Losses" < '13' AND "Byes" < '2'
### Instruction: CREATE TABLE table_204_603 ( id number, "pos" text, "no" number, "rider" text, "bike" text, "laps" number, "time" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many points did jon...
SELECT "points" FROM table_204_603 WHERE "rider" = 'jonas folger'
### Instruction: CREATE TABLE table_32458 ( "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 date of the game wh...
SELECT "Date" FROM table_32458 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_57634 ( "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 was the biggest crowd at p...
SELECT MAX("Crowd") FROM table_57634 WHERE "Venue" = 'punt road oval'
### Instruction: CREATE TABLE table_10104 ( "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 for the away ...
SELECT "Away team score" FROM table_10104 WHERE "Away team" = 'essendon'
### Instruction: CREATE TABLE table_61371 ( "Number" real, "Time" real, "Aircraft" text, "Opponent" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number has the opponent Fokker d.vii with a time of 600? ### Response:
SELECT SUM("Number") FROM table_61371 WHERE "Opponent" = 'fokker d.vii' AND "Time" = '600'
### Instruction: CREATE TABLE table_69364 ( "Outcome" text, "Year" real, "Tournament" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the player who played against Wong Choong Hann in the Dutch Ope...
SELECT "Score" FROM table_69364 WHERE "Tournament" = 'dutch open' AND "Opponent" = 'wong choong hann'
### Instruction: CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE college ( cname text, state text, enr number ) -- Using valid SQLite, answer the following question...
SELECT DISTINCT cname FROM tryout ORDER BY cname
### Instruction: CREATE TABLE table_1909 ( "Elimination number" real, "Wrestler" text, "Entered" real, "Eliminated by" text, "Method of elimination" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the elimination number of t...
SELECT MAX("Elimination number") FROM table_1909 WHERE "Time" = '26:15'
### Instruction: CREATE TABLE table_42418 ( "Season" text, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What series had ...
SELECT "Series" FROM table_42418 WHERE "Podiums" > '10'
### Instruction: CREATE TABLE table_70922 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What competition did he compete in before 2007 in gothenburg, sweden? ### Response:
SELECT "Competition" FROM table_70922 WHERE "Year" < '2007' AND "Venue" = 'gothenburg, sweden'
### Instruction: CREATE TABLE table_69079 ( "Year" real, "Award" text, "Festival" text, "Nominated work" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the nominated work for 1996 and festival of black maria film and video festiv...
SELECT "Nominated work" FROM table_69079 WHERE "Year" = '1996' AND "Festival" = 'black maria film and video festival'
### Instruction: CREATE TABLE table_35270 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the score of 6 3 ...
SELECT "Date" FROM table_35270 WHERE "Score" = '6–3 6–4'
### Instruction: CREATE TABLE table_65360 ( "Place" text, "Code" real, "Area (km 2 )" real, "Population" real, "Most spoken language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Population of the Place with an Area (km 2) larger than ...
SELECT COUNT("Population") FROM table_65360 WHERE "Area (km 2 )" > '498.77'
### Instruction: CREATE TABLE table_66534 ( "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 nation that had more than 1 gold medal and a total of 62 medals...
SELECT "Nation" FROM table_66534 WHERE "Gold" > '1' AND "Total" = '62'
### Instruction: CREATE TABLE table_18972 ( "High School" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Nickname" text, "Division" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many enrollment figures ar...
SELECT COUNT("Enrollment") FROM table_18972 WHERE "High School" = 'Roosevelt'
### Instruction: CREATE TABLE table_64971 ( "Governor" text, "Took office" text, "Left office" text, "Party" text, "Lieutenant Governor" text, "Terms" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which governor took office on January 8, 1877? ...
SELECT "Governor" FROM table_64971 WHERE "Took office" = 'january 8, 1877'
### Instruction: CREATE TABLE table_56385 ( "Rank" real, "Building" text, "Height" text, "Floors" real, "Completed" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest amount of floors in the building completed before 1970 ranked more ...
SELECT MIN("Floors") FROM table_56385 WHERE "Completed" < '1970' AND "Rank" > '14'
### Instruction: CREATE TABLE table_24547 ( "Year" real, "Horse" text, "Driver" text, "Trainer" text, "Country of owner" text, "Odds of winner" text, "Winning time (km rate)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many horses are...
SELECT COUNT("Horse") FROM table_24547 WHERE "Year" = '1985'
### Instruction: CREATE TABLE table_9764 ( "Stage" real, "Winner" text, "General Classification" text, "Points Classification" text, "Mountains Classification" text, "Metas Volantes Classification" text, "Team Classification" text ) -- Using valid SQLite, answer the following questions for...
SELECT "Winner" FROM table_9764 WHERE "Points Classification" = 'damiano cunego'
### Instruction: CREATE TABLE table_77428 ( "Year" real, "Player" text, "Position" text, "Nationality" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the position when the player was Justin Mapp Category:articles with hcards with...
SELECT "Position" FROM table_77428 WHERE "Nationality" = 'united states' AND "Player" = 'justin mapp category:articles with hcards'
### Instruction: CREATE TABLE table_1317 ( "Episode" real, "Title" text, "Story" text, "Adapted by" text, "Director" text, "Airdate" text, "Exists?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the airdate when the director is geor...
SELECT "Airdate" FROM table_1317 WHERE "Director" = 'George Spenton-Foster'
### Instruction: CREATE TABLE table_25583 ( "Rank" real, "Metropolitan area" text, "Principal city" text, "10,000+ places" real, "Densest incorporated place" text, "Density" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the density for pen...
SELECT "Density" FROM table_25583 WHERE "Densest incorporated place" = 'Pennsbury Village'
### Instruction: CREATE TABLE table_37996 ( "Game" real, "April" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Points have a Score of 1 3, and a Game larger than 82? ### Re...
SELECT COUNT("Points") FROM table_37996 WHERE "Score" = '1–3' AND "Game" > '82'
### Instruction: CREATE TABLE table_26795 ( "Version" text, "Dock Connection" text, "AUX In" text, "Battery" text, "iPhone Certified" text, "Video Out" text, "Dual Voltage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many connections ...
SELECT COUNT("AUX In") FROM table_26795 WHERE "Dock Connection" = 'FireWire'
### Instruction: CREATE TABLE table_62645 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog number" text, "Lyrics" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What language is the Lyrics of the release with Catalog number 56...
SELECT "Lyrics" FROM table_62645 WHERE "Catalog number" = '560 6111'
### Instruction: CREATE TABLE table_57856 ( "Country" text, "Population" text, "Area (km\u00b2)" text, "GDP (nominal)" text, "GDP per capita (nominal)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which population has a GDP (nominal) of $6.4 billi...
SELECT "Population" FROM table_57856 WHERE "GDP (nominal)" = '$6.4 billion'
### Instruction: CREATE TABLE table_22299 ( "Player" text, "FCSL Team" text, "Years Played" text, "Year Drafted" real, "Round" text, "MLB Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When toronto blue jays are the mlb team who are the fs...
SELECT "FCSL Team" FROM table_22299 WHERE "MLB Team" = 'Toronto Blue Jays'
### Instruction: CREATE TABLE table_72713 ( "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 points" FROM table_72713 WHERE "Team" = 'Washington'
### Instruction: CREATE TABLE table_4642 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home team score when...
SELECT "Home team score" FROM table_4642 WHERE "Away team" = 'collingwood'
### Instruction: CREATE TABLE table_65321 ( "Year" real, "Record" text, "Finish" text, "Manager" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round? ### Respons...
SELECT MIN("Year") FROM table_65321 WHERE "Manager" = 'bobby dews' AND "Playoffs" = 'lost in 1st round'
### Instruction: CREATE TABLE table_33022 ( "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 has Carlton for...
SELECT "Away team" FROM table_33022 WHERE "Home team" = 'carlton'
### Instruction: CREATE TABLE table_42340 ( "Year" text, "Matches" text, "Wins" text, "Losses" text, "No Result" text, "Success Rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the win for 4 matches with a success rate of 25%? ###...
SELECT "Wins" FROM table_42340 WHERE "Matches" = '4' AND "Success Rate" = '25%'
### Instruction: CREATE TABLE table_203_308 ( id number, "athlete" text, "nation" text, "olympics" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who had the fewest number ...
SELECT "athlete" FROM table_203_308 ORDER BY "gold" LIMIT 1
### Instruction: CREATE TABLE table_42169 ( "Date" text, "Opponent" text, "Score" text, "Site/Stadium" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the game played at Harmon Stadium on February 24? ### Respon...
SELECT "Score" FROM table_42169 WHERE "Site/Stadium" = 'harmon stadium' AND "Date" = 'february 24'
### Instruction: CREATE TABLE table_78357 ( "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 Venue is the one for the ...
SELECT "Venue" FROM table_78357 WHERE "Home team" = 'footscray'
### Instruction: CREATE TABLE table_204_479 ( id number, "defendant" text, "arrested" text, "charge" text, "result" text, "sentence" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- vernon cassel and reginald shaffer was sentenced how many years ?...
SELECT "sentence" FROM table_204_479 WHERE "defendant" IN ('vernon cassel', 'reginald shaffer')
### Instruction: CREATE TABLE table_25594 ( "Stage" real, "Winner" text, "General classification" text, "Mountains classification" text, "Points classification" text, "Sprints classification" text, "Team classification" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Winner" FROM table_25594 WHERE "Sprints classification" = 'no award'
### Instruction: CREATE TABLE table_41815 ( "Year" real, "Tournament Name" text, "Champions" text, "Runners-up" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament had a score of 5 7, 6 4, 6 4? ### Response:
SELECT "Tournament Name" FROM table_41815 WHERE "Score" = '5–7, 6–4, 6–4'
### Instruction: CREATE TABLE table_20523 ( "Member State" text, "Population in millions" text, "Population % of EU" text, "Area km 2" real, "Area % of EU" text, "Pop. density People/km 2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the ...
SELECT "Population % of EU" FROM table_20523 WHERE "Member State" = 'Greece'
### Instruction: CREATE TABLE table_203_347 ( id number, "temple name" text, "posthumous name" text, "family name (in bold) and personal name" text, "reign" text, "era names and their year ranges" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables pro...
SELECT COUNT("family name (in bold) and personal name") FROM table_203_347
### Instruction: CREATE TABLE table_46689 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which event led to a loss against Josh Diekman? #...
SELECT "Event" FROM table_46689 WHERE "Res." = 'loss' AND "Opponent" = 'josh diekman'
### Instruction: CREATE TABLE table_28376 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT MIN("Poles") FROM table_28376
### Instruction: CREATE TABLE table_67308 ( "Year" real, "Team" text, "Chassis" text, "Engine" text, "Rank" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the chassis of 147 points and engine of ford cosworth dfx ### Respon...
SELECT "Chassis" FROM table_67308 WHERE "Points" = '147' AND "Engine" = 'ford cosworth dfx'
### Instruction: CREATE TABLE table_203_134 ( 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. -- what player placed nest after dustin johnson ? ### Response:
SELECT "player" FROM table_203_134 WHERE id = (SELECT id FROM table_203_134 WHERE "player" = 'dustin johnson') + 1
### Instruction: CREATE TABLE table_77437 ( "Season" text, "Points" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Turnovers" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many blocks are there when the rebounds a...
SELECT COUNT("Blocks") FROM table_77437 WHERE "Rebounds" < '5.2'
### Instruction: CREATE TABLE table_76943 ( "Year" real, "Championship" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Championship has a Score of 2 6, 4 6, 4 6? ### Response:
SELECT "Championship" FROM table_76943 WHERE "Score" = '2–6, 4–6, 4–6'
### Instruction: CREATE TABLE table_74103 ( "Status" text, "2001 number (,000)" real, "2001 %" text, "2011 number (,000)" real, "2011 %" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest 2011 number (,000)? ### Response:
SELECT MIN("2011 number (,000)") FROM table_74103
### Instruction: CREATE TABLE table_53475 ( "Grid" real, "Driver" text, "Constructor" text, "Qual" real, "Rank" real, "Laps" real, "Time/Retired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was #16 rank constructor with a grid of more...
SELECT "Constructor" FROM table_53475 WHERE "Grid" > '1' AND "Rank" = '16'
### Instruction: CREATE TABLE table_203_581 ( id number, "club" text, "chinese" text, "city" text, "home stadium" text, "capacity" number, "average attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which stadium only has a capacit...
SELECT "home stadium" FROM table_203_581 WHERE "capacity" = 20000
### Instruction: CREATE TABLE table_3718 ( "season" text, "division" text, "date" text, "home team" text, "result" text, "away team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many dates are shown for the home team of orlando pirates and...
SELECT COUNT("date") FROM table_3718 WHERE "home team" = 'Orlando Pirates' AND "result" = '1–3'
### Instruction: CREATE TABLE table_203_671 ( id number, "name" text, "rank" text, "age" number, "years until mandatory retirement" text, "appointed by" text, "year appointed" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times d...
SELECT COUNT(*) FROM table_203_671 WHERE "appointed by" = 'luis fortuno'
### Instruction: CREATE TABLE table_28324 ( "Series No." real, "Episode No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who di...
SELECT "Directed by" FROM table_28324 WHERE "Series No." = '11'
### Instruction: CREATE TABLE table_73229 ( "Sporting profession" text, "First place(s)" real, "Second place(s)" real, "Third place(s)" real, "Total placing(s)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of 3rd place ent...
SELECT COUNT("Third place(s)") FROM table_73229 WHERE "Total placing(s)" = '8'
### Instruction: CREATE TABLE table_201_25 ( id number, "party" text, "leader" text, "from" text, "to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which party had its first leader in 1974 and last leader in 1980 ? ### Response:
SELECT "party" FROM table_201_25 GROUP BY "party" HAVING MIN("from") = 1974 AND MAX("to") = 1980
### Instruction: CREATE TABLE Student ( fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR ) CREATE TABLE Has_allergy ( fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Fin...
SELECT fname, major FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Soy")
### Instruction: CREATE TABLE table_32168 ( "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 Venue was used when the H...
SELECT "Venue" FROM table_32168 WHERE "Home team" = 'geelong'
### Instruction: CREATE TABLE table_name_99 ( match INTEGER, attendance VARCHAR, venue VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000? ### Response:...
SELECT MAX(match) FROM table_name_99 WHERE venue = "h" AND date = "22 september 1888" AND attendance < 4 OFFSET 000
### Instruction: CREATE TABLE table_48684 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Outcome of the game with a Score of 6 4, 6 4? ### R...
SELECT "Outcome" FROM table_48684 WHERE "Score" = '6–4, 6–4'
### Instruction: CREATE TABLE table_58272 ( "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. -- I want to see the away team the...
SELECT "Away team" FROM table_58272 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_24 ( "Rank Each wrestlers total number of days as champion are ranked highest to lowest; wrestlers with the same number mean that they are tied for that certain rank." real, "Wrestler" text, "# of reigns" real, "Combined defenses" real, "Combined days" text ) --...
SELECT MIN("# of reigns") FROM table_24
### Instruction: CREATE TABLE table_3989 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What episo...
SELECT "No. in series" FROM table_3989 WHERE "Title" = 'The Drum Major'
### Instruction: CREATE TABLE table_20216 ( "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. -- Who were the pictorials when the cen...
SELECT "Pictorials" FROM table_20216 WHERE "Centerfold model" = 'Ava Fabian'
### Instruction: CREATE TABLE table_45545 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which High poi...
SELECT "High points" FROM table_45545 WHERE "Record" = '27–29'
### Instruction: CREATE TABLE table_1708610_3 ( march_27_29 VARCHAR, january_15_16 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name march 27-29 where january 15-16 is january 15, 1991 ### Response:
SELECT march_27_29 FROM table_1708610_3 WHERE january_15_16 = "January 15, 1991"
### Instruction: CREATE TABLE table_58973 ( "Provider" text, "Years" text, "Free or pay" text, "No. of channels" text, "Colour" text, "Digital" text, "Transmission" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which provider is pay with an...
SELECT "Provider" FROM table_58973 WHERE "Free or pay" = 'pay' AND "Transmission" = 'analogue cable'
### Instruction: CREATE TABLE table_55411 ( "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 combined of Crowd w...
SELECT COUNT("Crowd") FROM table_55411 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_52546 ( "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 was the lowest attendance ...
SELECT MIN("Crowd") FROM table_52546 WHERE "Venue" = 'windy hill'
### Instruction: CREATE TABLE table_204_787 ( id number, "year" number, "category" text, "nominee(s)" text, "episode" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what number of episodes won outstanding film editing for a series...
SELECT COUNT("episode") FROM table_204_787 WHERE "category" = 'outstanding film editing for a series' AND "result" = 'won'
### Instruction: CREATE TABLE table_48171 ( "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. -- what is the record when the oppone...
SELECT "Record" FROM table_48171 WHERE "Opponent" = 'jeff williams'
### Instruction: CREATE TABLE table_204_865 ( id number, "date" text, "tournament" text, "winner" text, "purse ($)" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the first tournament this year where rafael gomez won ? ...
SELECT "tournament" FROM table_204_865 WHERE "winner" = 'rafael gomez' ORDER BY "date" LIMIT 1