instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_28693 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "Written by" FROM table_28693 WHERE "Production code" = '202'
### Instruction: CREATE TABLE table_32772 ( "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 crowd size at the ...
SELECT AVG("Crowd") FROM table_32772 WHERE "Home team score" = '12.17 (89)'
### Instruction: CREATE TABLE table_21500 ( "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_21500 WHERE "High assists" = 'Mike Bibby (8)'
### Instruction: CREATE TABLE table_51915 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were in the cro...
SELECT "Crowd" FROM table_51915 WHERE "Away team score" = '15.18 (108)'
### Instruction: CREATE TABLE table_65574 ( "School" text, "Location" text, "Mascot" text, "Size" real, "IHSAA Class" text, "IHSAA Football Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the IHSAA class of Cente...
SELECT "IHSAA Class" FROM table_65574 WHERE "IHSAA Football Class" = 'aa' AND "School" = 'centerville'
### Instruction: CREATE TABLE table_9138 ( "Brigade" text, "Type" text, "Pumpers" text, "Tankers" real, "Slip-Ons" text, "Cars" text, "Hazmat" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Brigade, when the Type is Rural, and wh...
SELECT "Brigade" FROM table_9138 WHERE "Type" = 'rural' AND "Tankers" = '1'
### Instruction: CREATE TABLE customers ( customer_name VARCHAR, customer_id VARCHAR, payment_method_code VARCHAR ) CREATE TABLE customer_orders ( customer_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the names of customers who use Credit ...
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.payment_method_code = 'Credit Card' GROUP BY T1.customer_id HAVING COUNT(*) > 2
### Instruction: CREATE TABLE table_62410 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What T9 Place Player had a Score of 73-67-74-71=285? ### Respons...
SELECT "Player" FROM table_62410 WHERE "Place" = 't9' AND "Score" = '73-67-74-71=285'
### Instruction: CREATE TABLE table_56997 ( "Episode" text, "Air date" text, "Rating" real, "Share" real, "18-49 (Rating/Share)" text, "Viewers (m)" real, "Rank (timeslot)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest vi...
SELECT MIN("Viewers (m)") FROM table_56997 WHERE "Share" > '13'
### Instruction: CREATE TABLE table_34908 ( "Season" text, "Team" text, "Country" text, "Division" real, "Apps" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of goals for Torpedo Moscow in division 1 with an apps v...
SELECT SUM("Goals") FROM table_34908 WHERE "Team" = 'torpedo moscow' AND "Division" = '1' AND "Apps" < '29'
### Instruction: CREATE TABLE table_25903 ( "Series #" real, "Season #" real, "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. -- Name least series n...
SELECT MIN("Series #") FROM table_25903 WHERE "Written by" = 'David E. Kelley & Jill Goldsmith'
### Instruction: CREATE TABLE table_43101 ( "Date" text, "Race" text, "Country" text, "Winner" text, "Team" text, "World Cup Leader" text, "Leader's Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the leader's team w...
SELECT "Leader's Team" FROM table_43101 WHERE "Country" = 'france' AND "Date" = 'october 5'
### Instruction: CREATE TABLE table_73824 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Type" FROM table_73824 WHERE "Population (2011)" = '1441'
### Instruction: CREATE TABLE table_56534 ( "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 result when the time w...
SELECT "Res." FROM table_56534 WHERE "Time" = '5:00' AND "Record" = '14-4'
### Instruction: CREATE TABLE table_13887 ( "Draw" real, "Song" text, "Artist" text, "Points" real, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Draw number of the song by Artist of 'Loudest Whisper' with 68 or less Points with...
SELECT AVG("Draw") FROM table_13887 WHERE "Points" < '68' AND "Artist" = 'loudest whisper' AND "Place" > '9'
### Instruction: CREATE TABLE table_60738 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the Oppon...
SELECT "Opponents in the final" FROM table_60738 WHERE "Tournament" = 'schenectady, u.s.'
### Instruction: CREATE TABLE table_203_685 ( id number, "no. in\nseries" number, "no. in\nseason" number, "title" text, "directed by" text, "written by" text, "original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which month -l...
SELECT "original air date" FROM table_203_685 GROUP BY "original air date" HAVING COUNT("title") >= 4
### Instruction: CREATE TABLE table_59202 ( "Year" real, "Lok Sabha" text, "Members of Parliament" text, "Party Won" text, "Winner's % votes" text, "Trailing Party" text, "Trailing Party % votes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT MIN("Year") FROM table_59202 WHERE "Lok Sabha" = '4th lok sabha'
### Instruction: CREATE TABLE table_30575 ( "School" text, "Gender" text, "Age Range" text, "Religious Affiliation" text, "Location" text, "School website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the affiliation of the school with...
SELECT "Religious Affiliation" FROM table_30575 WHERE "School website" = 'http://www.townsend.herts.sch.uk/'
### Instruction: CREATE TABLE table_9371 ( "Year" text, "Starts" real, "Wins" real, "Top Fives" real, "Top Tens" real, "Poles" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of wins when casey mears rank...
SELECT COUNT("Wins") FROM table_9371 WHERE "Rank" = '36th' AND "Top Fives" > '0'
### Instruction: CREATE TABLE table_53315 ( "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 listed crowd when t...
SELECT "Crowd" FROM table_53315 WHERE "Home team score" = '27.13 (175)'
### Instruction: CREATE TABLE table_14045 ( "Polling firm" text, "Dates" text, "Prog. Cons." text, "New Democratic" text, "Liberal" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of people polled aligned with the Liberal party accord...
SELECT "Liberal" FROM table_14045 WHERE "New Democratic" = '36%' AND "Dates" = 'august 2008'
### Instruction: CREATE TABLE table_204_163 ( id number, "airline" text, "icao" text, "iata" text, "callsign" text, "commenced\noperations" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the next airline to be listed after royal daisy ...
SELECT "airline" FROM table_204_163 WHERE id = (SELECT id FROM table_204_163 WHERE "airline" = 'royal daisy airlines') + 1
### Instruction: CREATE TABLE table_204_143 ( id number, "national park" text, "region" text, "land area (km2)" number, "established" number, "visitation (2009)" number, "coordinates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many o...
SELECT COUNT("national park") FROM table_204_143 WHERE "land area (km2)" > 100
### Instruction: CREATE TABLE table_1433 ( "Year" text, "Event" text, "Pole position time" text, "107% time" text, "Driver" text, "Team" text, "Time" text, "% of pole" text, "Allowed to race?" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT COUNT("Year") FROM table_1433 WHERE "Time" = '1:42.086'
### Instruction: CREATE TABLE table_1172 ( "Nationality" text, "Player" text, "Year" real, "Wins" real, "Masters" text, "U.S. Open" text, "Open Ch." text, "PGA Ch." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the player's res...
SELECT "U.S. Open" FROM table_1172 WHERE "Open Ch." = '6th'
### Instruction: CREATE TABLE table_204_563 ( id number, "abbreviation" text, "settlement" text, "district" text, "official name" text, "division" text, "cup" number, "other information" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- wha...
SELECT "settlement" FROM table_204_563 WHERE id = (SELECT id FROM table_204_563 WHERE "settlement" = 'oulu') + 1
### Instruction: CREATE TABLE table_31520 ( "Rnd" real, "Circuit" text, "Location" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Winning team" text, "Supporting" text ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT "Fastest lap" FROM table_31520 WHERE "Location" = 'Bowmanville, Ontario'
### Instruction: CREATE TABLE table_54332 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest grid when the time retired is clutch, the driver is peter colli...
SELECT MIN("Grid") FROM table_54332 WHERE "Time/Retired" = 'clutch' AND "Driver" = 'peter collins' AND "Laps" < '26'
### Instruction: CREATE TABLE table_22170495_6 ( position_in_e4s_ratings_b VARCHAR, original_airing_on_channel_4 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4? ##...
SELECT position_in_e4s_ratings_b FROM table_22170495_6 WHERE original_airing_on_channel_4 = "June 30, 2010"
### Instruction: CREATE TABLE table_3575 ( "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. -- Who is the partner when the oppo...
SELECT "Partner" FROM table_3575 WHERE "Opponents in the final" = 'Stephanie Dubois Olga Savchuk'
### Instruction: CREATE TABLE table_name_47 ( population__on_the_census_also_called_censo_2010_ VARCHAR, deputies_required_ignoring_the_limits INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- According to the 2010 census, what was the population for the federa...
SELECT population__on_the_census_also_called_censo_2010_ FROM table_name_47 WHERE deputies_required_ignoring_the_limits < -6
### Instruction: CREATE TABLE table_203_371 ( id number, "round" number, "opponent" text, "result" text, "bro." number, "opp." number, "date" text, "venue" text, "crowd" number, "position" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT COUNT(*) FROM table_203_371 WHERE "crowd" > 20000
### Instruction: CREATE TABLE table_204_279 ( id number, "name of place" text, "number\nof\ncounties" number, "principal\ncounty" text, "zip code\nlower" number, "zip code\nupper" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many places ...
SELECT COUNT("name of place") FROM table_204_279 WHERE id < (SELECT id FROM table_204_279 WHERE "name of place" = 'dixon')
### Instruction: CREATE TABLE table_36565 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Dr...
SELECT AVG("Draws") FROM table_36565 WHERE "Played" < '18'
### Instruction: CREATE TABLE table_68017 ( "Sydney" text, "Melbourne" text, "Perth" text, "Adelaide" text, "Gold Coast" text, "Auckland" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Sydney has a Perth of no, a Melbourne of yes, and a Go...
SELECT "Sydney" FROM table_68017 WHERE "Perth" = 'no' AND "Melbourne" = 'yes' AND "Gold Coast" = 'no'
### Instruction: CREATE TABLE table_17642 ( "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. -- How many results are there with the original ti...
SELECT COUNT("Result") FROM table_17642 WHERE "Original title" = 'Ani Ohev Otach Roza (אני אוהב אותך רוזה)'
### Instruction: CREATE TABLE table_19589113_5 ( total_population_2001 INTEGER, growth_rate_1991_01 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08? ### Response:
SELECT MIN(total_population_2001) FROM table_19589113_5 WHERE growth_rate_1991_01 = "33.08"
### Instruction: CREATE TABLE table_45219 ( "Tournament" text, "2002" text, "2004" text, "2005" text, "2006" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for 2002 when the 2004 is A, and the 2005 is 1r? ### Response:
SELECT "2002" FROM table_45219 WHERE "2004" = 'a' AND "2005" = '1r'
### Instruction: CREATE TABLE table_4842 ( "Name" text, "Bullet" text, "Case Length" text, "Base" text, "Neck" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name has a Bullett of 10.57 (.416) and a Base of 14.96 (.589)? ### Response:
SELECT "Name" FROM table_4842 WHERE "Bullet" = '10.57 (.416)' AND "Base" = '14.96 (.589)'
### Instruction: CREATE TABLE table_41917 ( "Series" text, "Host" text, "Launch date" text, "Finale date" text, "Days" real, "Winner" text, "Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Series, when Days is greater than 99, ...
SELECT "Series" FROM table_41917 WHERE "Days" > '99' AND "Prize" = '€50,000'
### Instruction: CREATE TABLE table_24990 ( "Year" real, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" text, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Report" FROM table_24990 WHERE "Year" = '2010'
### Instruction: CREATE TABLE table_38081 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the grid number of Sandro Cortese, who has Aprilia as the manufacturer and...
SELECT SUM("Grid") FROM table_38081 WHERE "Manufacturer" = 'aprilia' AND "Laps" < '19' AND "Rider" = 'sandro cortese'
### Instruction: CREATE TABLE table_20034 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won" real, "Drawn" real, "Lost" real, "For" real, "Against" real, "Difference" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "Drawn" FROM table_20034 WHERE "Team" = 'Portuguesa Santista'
### Instruction: CREATE TABLE table_34515 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Game Site of hoosier dome, and a Result of l 7...
SELECT "Attendance" FROM table_34515 WHERE "Game Site" = 'hoosier dome' AND "Result" = 'l 7–31'
### Instruction: CREATE TABLE table_16943 ( "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. -- what is the total number of purse( $...
SELECT COUNT("Purse( $ )") FROM table_16943 WHERE "Winner" = 'Jimmy Powell (2)'
### Instruction: CREATE TABLE table_29850 ( "English" text, "Predecessor" text, "Ekavian" text, "Ikavian" text, "Ijekavian" text, "Ijekavian development" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Ikavian translation of the Ijekav...
SELECT "Ikavian" FROM table_29850 WHERE "Ijekavian development" = 'ěl → io'
### Instruction: CREATE TABLE table_16363 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "Original air date" FROM table_16363 WHERE "Title" = 'Quarry'
### Instruction: CREATE TABLE table_34544 ( "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. -- What is the winning score where the runner-up is Robert-Jan Der...
SELECT "Winning score" FROM table_34544 WHERE "Margin of victory" = '1 stroke' AND "Runner(s)-up" = 'robert-jan derksen'
### Instruction: CREATE TABLE table_74597 ( "Driver" text, "Car #" real, "Make" text, "Points" real, "Laps" real, "Winnings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of laps that has a car number of larger than 1, is a ford...
SELECT SUM("Laps") FROM table_74597 WHERE "Car #" > '1' AND "Make" = 'ford' AND "Points" = '155'
### Instruction: CREATE TABLE table_47314 ( "Year" text, "Indians admitted" real, "Pakistanis admitted" real, "Sri Lankans admitted" real, "Bangladeshis admitted" real, "Nepalis admitted" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was t...
SELECT MAX("Nepalis admitted") FROM table_47314 WHERE "Bangladeshis admitted" < '1,896'
### Instruction: CREATE TABLE table_29902 ( "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 COUNT("Date") FROM table_29902 WHERE "High rebounds" = 'Marcus Camby (18)'
### Instruction: CREATE TABLE table_204_683 ( id number, "no." number, "constituency" text, "winner candidate" text, "party" text, "votes" number, "margin" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the difference in votes for...
SELECT (SELECT "votes" FROM table_204_683 WHERE "no." = 1) - (SELECT "votes" FROM table_204_683 WHERE "no." = 2)
### Instruction: CREATE TABLE table_43914 ( "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 college had a pick in a round under 7, with a pick number 13 and ...
SELECT "College" FROM table_43914 WHERE "Round" < '7' AND "Overall" < '186' AND "Pick" = '13'
### Instruction: CREATE TABLE table_79120 ( "Club" text, "City" text, "Stadium" text, "2007\u201308 result" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stadium has 9th in 2.hnl as the 2007-08 result? ### Response:
SELECT "Stadium" FROM table_79120 WHERE "2007\u201308 result" = '9th in 2.hnl'
### Instruction: CREATE TABLE table_2757 ( "Pos" text, "##" real, "Name" text, "Team" text, "Lap One" text, "Lap Two" text, "Lap Three" text, "Lap Four" text, "Total Time" text, "Avg. Speed" text ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT MIN("##") FROM table_2757 WHERE "Team" = 'Team 3G'
### Instruction: CREATE TABLE table_21805 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real, "2000 result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the result was +2.5, w...
SELECT "Kerry%" FROM table_21805 WHERE "2000 result" = '+2.5'
### Instruction: CREATE TABLE table_65326 ( "Year" real, "Artist" text, "Song" text, "UK Chart" text, "At Eurovision" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where did the song by Michael Ball, which placed 2nd in Eurovision prior to 1961, pl...
SELECT "UK Chart" FROM table_65326 WHERE "Year" > '1961' AND "At Eurovision" = '2nd' AND "Artist" = 'michael ball'
### Instruction: CREATE TABLE table_21614 ( "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_21614 WHERE "High assists" = 'Carmelo Anthony (11)'
### Instruction: CREATE TABLE table_72280 ( "Name" text, "Location" text, "Light vehicle" text, "Heavy vehicle (2 axles)" text, "Heavy vehicle (3/4 axles)" text, "Heavy vehicle (5+ axles)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is t...
SELECT "Light vehicle" FROM table_72280 WHERE "Location" = 'between Bela Bela and Modimolle'
### Instruction: CREATE TABLE table_23643 ( "Standard Yarn Weight System" text, "Yarn Type (US)" text, "Ply (UK, NZ, AU)" text, "m/100g" text, "Wraps Per Inch (WPI)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the ply (uk, nz, au) for finger...
SELECT "Ply (UK, NZ, AU)" FROM table_23643 WHERE "Yarn Type (US)" = 'Fingering'
### Instruction: CREATE TABLE table_52442 ( "Year" real, "Network" text, "Lap-by-lap" text, "Color commentator(s)" text, "Pit reporters" text, "Host" text, "Ratings" text, "Viewers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was ...
SELECT "Host" FROM table_52442 WHERE "Ratings" = '9.4/27'
### Instruction: CREATE TABLE table_2293510_1 ( _percentage_of_eu_average_gdp__ppp_ VARCHAR, €_per_capita__2005_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the percentage of EU average GDP (PPP) in the region where per capita is 2519 ### Respons...
SELECT _percentage_of_eu_average_gdp__ppp_ FROM table_2293510_1 WHERE €_per_capita__2005_ = 2519
### Instruction: CREATE TABLE table_60225 ( "Crude oil name \\Rightarrow Location \\Rightarrow" text, "Barrow Island Australia" real, "Mutineer-Exeter Australia" real, "CPC Blend Kazakhstan" real, "Draugen North Sea" real ) -- Using valid SQLite, answer the following questions for the tables provi...
SELECT MIN("CPC Blend Kazakhstan") FROM table_60225 WHERE "Draugen North Sea" = '17'
### Instruction: CREATE TABLE table_26446 ( "Song title" text, "Artist" text, "Year" real, "Genre" text, "Single / Pack name" text, "Release date" text, "Family Friendly" text, "Additional Rock Band 3 Features" text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT "Artist" FROM table_26446 WHERE "Song title" = ' ...And Justice for All '
### Instruction: CREATE TABLE table_47901 ( "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 tables provided abo...
SELECT "Outgoing manager" FROM table_47901 WHERE "Manner of departure" = 'fc energie cottbus purchased rights'
### Instruction: CREATE TABLE table_204_525 ( id number, "rank" number, "player" text, "county" text, "tally" text, "total" number, "opposition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in the 197172 national hurling league , how many ...
SELECT COUNT("player") FROM table_204_525 WHERE "county" = 'cork' AND "rank" <= 15
### Instruction: CREATE TABLE table_41776 ( "Place" real, "Rider" text, "Country" text, "Machine" text, "Speed" text, "Time" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the United Kingdom had a time of 1:30.51.2, what ...
SELECT MIN("Place") FROM table_41776 WHERE "Country" = 'united kingdom' AND "Time" = '1:30.51.2'
### Instruction: CREATE TABLE table_10307 ( "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 of the aw...
SELECT COUNT("Crowd") FROM table_10307 WHERE "Away team score" = '18.16 (124)'
### Instruction: CREATE TABLE table_19629 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sm...
SELECT MIN("Conceded") FROM table_19629 WHERE "Team" = '12 de Octubre'
### Instruction: CREATE TABLE table_45206 ( "Name" text, "Location" text, "Height (m)" real, "Stories" real, "Year of completion" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest number of stories in Recife completed later than 200...
SELECT MAX("Stories") FROM table_45206 WHERE "Location" = 'recife' AND "Year of completion" > '2007' AND "Height (m)" < '135'
### Instruction: CREATE TABLE table_204_517 ( id number, "name" text, "date of birth" text, "club" text, "division" text, "appointed" text, "time as manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is older - francis bosschaerts o...
SELECT "name" FROM table_204_517 WHERE "name" IN ('francis bosschaerts', 'peter maes') ORDER BY "date of birth" LIMIT 1
### Instruction: CREATE TABLE table_28700 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "Title" FROM table_28700 WHERE "Production code" = '305'
### Instruction: CREATE TABLE table_14253123_1 ( population__2010___rank_ VARCHAR, area_sq_mi__km_2____rank_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the area sq mi (km 2 ) (rank) is sqmi (km2) (5) what is the population (2010) (rank)? ### Respo...
SELECT population__2010___rank_ FROM table_14253123_1 WHERE area_sq_mi__km_2____rank_ = "sqmi (km2) (5)"
### Instruction: CREATE TABLE table_38245 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partnering" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the outcome for opponen...
SELECT "Outcome" FROM table_38245 WHERE "Opponents in the final" = 'jonas björkman john mcenroe'
### Instruction: CREATE TABLE table_11502 ( "party" text, "Manhattan" text, "The Bronx" text, "Brooklyn" text, "Queens" text, "Richmond [Staten Is.]" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Richmond had a total coun...
SELECT "Brooklyn" FROM table_11502 WHERE "Richmond [Staten Is.]" = '2,293'
### Instruction: CREATE TABLE table_204_386 ( id number, "res." text, "record" text, "opponent" text, "method" text, "event" text, "date" text, "round" number, "time" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT MIN("time") FROM table_204_386 WHERE "res." = 'win'
### Instruction: CREATE TABLE table_399 ( "Name" text, "Position" text, "Height" text, "Weight(lbs)" real, "Born" text, "College" text, "Drafted" text, "Pro Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name when born ...
SELECT "Name" FROM table_399 WHERE "Born" = 'December 30, 1957 Detroit, MI'
### Instruction: CREATE TABLE table_9794 ( "Actor" text, "Role" text, "Status" text, "Number Of Episodes" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Number Of Episodes, when Status is '2001 - 2003, 2005 - 2009'? ### Respo...
SELECT "Number Of Episodes" FROM table_9794 WHERE "Status" = '2001 - 2003, 2005 - 2009'
### Instruction: CREATE TABLE table_68047 ( "Rank" real, "Population" real, "Name" text, "Former Name" text, "Municipality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of ranks for kujalleq with former name of brattahl and p...
SELECT COUNT("Rank") FROM table_68047 WHERE "Municipality" = 'kujalleq' AND "Former Name" = 'brattahlíð' AND "Population" < '47'
### Instruction: CREATE TABLE table_55863 ( "CERCLIS ID" text, "Name" text, "County" text, "Proposed" text, "Listed" text, "Construction completed" text, "Partially deleted" text, "Deleted" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "Deleted" FROM table_55863 WHERE "Name" = 'anniston army depot (se industrial area)'
### Instruction: CREATE TABLE table_68702 ( "Bellarine FL" text, "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 fewest losses that had an against score of 2190 and more...
SELECT MIN("Losses") FROM table_68702 WHERE "Against" = '2190' AND "Draws" > '0'
### Instruction: CREATE TABLE table_45402 ( "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. -- When Hapoel tel aviv was team 2 and 1st leg was 1 2, what was the 2nd leg? ### Response...
SELECT "2nd leg" FROM table_45402 WHERE "1st leg" = '1–2' AND "Team 2" = 'hapoel tel aviv'
### Instruction: CREATE TABLE table_17174 ( "#" real, "Episode" text, "Air Date" text, "Timeslot" text, "Rating" text, "Share" real, "18-49" text, "Viewers" text, "Weekly Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is t...
SELECT "Viewers" FROM table_17174 WHERE "Episode" = 'Woman Marries Heart'
### Instruction: CREATE TABLE table_26433 ( "No. by series" real, "No. by season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production number" real, "U.S. viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for...
SELECT "No. by series" FROM table_26433 WHERE "Title" = 'Pandora'
### Instruction: CREATE TABLE table_62004 ( "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner(s)-up" text, "Winner's share ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What winnin...
SELECT "Winning score" FROM table_62004 WHERE "Runner(s)-up" = 'in-kyung kim'
### Instruction: CREATE TABLE table_3263 ( "Date" text, "Time (ET)" text, "Event #" real, "Event" text, "Winner" text, "Prize" text, "Entries" text, "Prize Pool" text, "Elapsed Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wha...
SELECT "Prize Pool" FROM table_3263 WHERE "Entries" = '1,132'
### Instruction: CREATE TABLE table_3571 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT COUNT("Written by") FROM table_3571 WHERE "Directed by" = 'Arlene Sanford'
### Instruction: CREATE TABLE table_45146 ( "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. -- Who was the opponent in the bout t...
SELECT "Opponent" FROM table_45146 WHERE "Res." = 'win' AND "Time" = '1:21'
### Instruction: CREATE TABLE table_41536 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of p...
SELECT MIN("Played") FROM table_41536 WHERE "Points" = '18' AND "Position" > '5'
### Instruction: CREATE TABLE table_203_30 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number ) -- Using valid SQLite, answer the following qu...
SELECT SUM("goals\nscored") FROM table_203_30
### Instruction: CREATE TABLE table_36653 ( "Pick #" text, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What College/junior/club team has a Positio...
SELECT "College/junior/club team" FROM table_36653 WHERE "Position" = 'centre' AND "Pick #" = '22'
### Instruction: CREATE TABLE table_31355 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number in...
SELECT MIN("No. in series") FROM table_31355 WHERE "U.S. viewers (million)" = '0.23'
### Instruction: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) -- Using valid SQLite, answer the following questions for t...
SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag
### Instruction: CREATE TABLE table_67756 ( "Rank" real, "Time" text, "Wind (m/s)" text, "Athlete" text, "Nation" text, "Date" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the nation for 8 june 1983 for marlies gohr ...
SELECT "Nation" FROM table_67756 WHERE "Date" = '8 june 1983' AND "Athlete" = 'marlies gohr'
### Instruction: CREATE TABLE table_2420 ( "Political parties" text, "% 2006" text, "Seats 2006" real, "% 2001" text, "Seats 2001" real, "% 1997" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many time was the political party the social dem...
SELECT COUNT("% 2006") FROM table_2420 WHERE "Political parties" = 'Social Democratic Party of Germany'
### Instruction: CREATE TABLE table_name_46 ( type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and...
SELECT type FROM table_name_46 WHERE date < 1943 AND builder = "alco schenectady" AND number > 822 AND works_number = 59867
### Instruction: CREATE TABLE table_203_272 ( id number, "title" text, "release" text, "consoles" text, "handheld" text, "pc" text, "arcade" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- nfl blitz special edition and nfl blitz 20-02 were bo...
SELECT "release" FROM table_203_272 WHERE "title" IN ('nfl blitz special edition', 'nfl blitz 20-02')
### Instruction: CREATE TABLE table_train_18 ( "id" int, "with_cardiac_pacemaker" bool, "neuromuscular_disease" bool, "diabetic_polyneuropathy" bool, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT * FROM table_train_18 WHERE body_mass_index_bmi <= 35
### Instruction: CREATE TABLE table_49213 ( "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 "Date" FROM table_49213 WHERE "High rebounds" = 'yao ming (10)'