instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_43367 ( "Ballarat FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the teams that had fewer than 1 Byes, what was the lowest number ...
SELECT MIN("Draws") FROM table_43367 WHERE "Byes" < '1'
### Instruction: CREATE TABLE table_462 ( "Name" text, "Pennant" text, "Builder" text, "Laid Down" text, "Launched" text, "Commissioned" text, "Fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pennant for 4 may 1943? ### Re...
SELECT "Pennant" FROM table_462 WHERE "Laid Down" = '4 May 1943'
### Instruction: CREATE TABLE table_14485 ( "Name" text, "Number" real, "Released" real, "Film" text, "Pieces" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the earliest year with 339 pieces and a number smaller than 7198? ### Response:
SELECT MIN("Released") FROM table_14485 WHERE "Pieces" = '339' AND "Number" < '7198'
### Instruction: CREATE TABLE Addresses ( zip_postcode VARCHAR, address_id VARCHAR ) CREATE TABLE Student_Addresses ( address_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the id and zip code of the address with the highest monthly rental? ...
SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1
### Instruction: CREATE TABLE table_65684 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Record of 2 0...
SELECT "Opponent" FROM table_65684 WHERE "Record" = '2–0'
### Instruction: CREATE TABLE table_203_753 ( id number, "rank" number, "name" text, "caps" number, "goals" number, "years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which name is listed after alan smith ? ### Response:
SELECT "name" FROM table_203_753 WHERE id = (SELECT id FROM table_203_753 WHERE "name" = 'alan smith') + 1
### Instruction: CREATE TABLE table_46139 ( "Title" text, "Author" text, "ISBN UK" text, "ISBN US" text, "TV companions featured" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is ISBN UK, when Author is 'Dave Martin', and when ISBN US is 'N/A'...
SELECT "ISBN UK" FROM table_46139 WHERE "Author" = 'dave martin' AND "ISBN US" = 'n/a'
### Instruction: CREATE TABLE table_49555 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the box score when the home team is me...
SELECT "Box Score" FROM table_49555 WHERE "Home team" = 'melbourne tigers'
### Instruction: CREATE TABLE table_10390 ( "Round" text, "Pick" text, "Player" text, "Position" text, "Nationality" text, "Team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of the player in Positio...
SELECT "Nationality" FROM table_10390 WHERE "Round" = '1' AND "Position" = 'c'
### Instruction: CREATE TABLE table_11218 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team had a final stage when Claudio Chiappu...
SELECT "Trofeo Fast Team" FROM table_11218 WHERE "Points classification" = 'claudio chiappucci' AND "Stage" = 'final'
### Instruction: CREATE TABLE table_75683 ( "Position" text, "Number" real, "Name" text, "Height" text, "Weight" real, "Class" text, "Hometown" text, "Games\u2191" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Class has a Weight o...
SELECT "Class" FROM table_75683 WHERE "Weight" = '203'
### Instruction: CREATE TABLE table_22296 ( "No. in series" real, "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 is the original air date of th...
SELECT "Original air date" FROM table_22296 WHERE "Production code" = '1115'
### Instruction: CREATE TABLE table_71198 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a Time of 1:34?...
SELECT "Opponent" FROM table_71198 WHERE "Time" = '1:34'
### Instruction: CREATE TABLE table_203_102 ( id number, "event" text, "performance" text, "athlete" text, "nation" text, "place" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in 2008 in track and field events how many world re...
SELECT COUNT(*) FROM table_203_102 WHERE "athlete" = 'usain bolt'
### Instruction: CREATE TABLE table_5767 ( "Opposition" text, "Score" text, "Venue" text, "City" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which number of Years has a Venue of old trafford, and an Opposition of yorkshire? ### Res...
SELECT COUNT("Year") FROM table_5767 WHERE "Venue" = 'old trafford' AND "Opposition" = 'yorkshire'
### Instruction: CREATE TABLE table_6879 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" text, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Acquisition via, when Season is 2006-2012? ...
SELECT "Acquisition via" FROM table_6879 WHERE "Season" = '2006-2012'
### Instruction: CREATE TABLE table_12716 ( "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 the Country of the T8 Place Player with a Score of 68-74=142? ### Response:
SELECT "Country" FROM table_12716 WHERE "Place" = 't8' AND "Score" = '68-74=142'
### Instruction: CREATE TABLE table_203_545 ( id number, "single/ep" text, "release date" text, "label" text, "format(s)" text, "uk singles chart position" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which format was used ...
SELECT "format(s)" FROM table_203_545 GROUP BY "format(s)" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_39313 ( "Name" text, "GP-GS" text, "Effic" real, "Att-Cmp-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Att-Cmp-Int for the player with a efficiency of 117.4? ### Response:
SELECT "Att-Cmp-Int" FROM table_39313 WHERE "Effic" = '117.4'
### Instruction: CREATE TABLE table_59458 ( "Club" text, "Coach" text, "City" text, "Stadium" text, "2007-2008 season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which coach had a 2007-2008 season of 6th? ### Response:
SELECT "Coach" FROM table_59458 WHERE "2007-2008 season" = '6th'
### Instruction: CREATE TABLE table_name_15 ( outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Outcome which has a Score in the final of 4 6, 4 6 on october 21, 1990? ### Response:
SELECT outcome FROM table_name_15 WHERE score_in_the_final = "4–6, 4–6" AND date = "october 21, 1990"
### Instruction: CREATE TABLE table_72172 ( "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 was the re...
SELECT "Report" FROM table_72172 WHERE "Grand Prix" = 'Belgian Grand Prix'
### Instruction: CREATE TABLE table_2624098_1 ( old_english_day_name VARCHAR, glossed_from_latin_day_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how mant different day names in old English were coined from the Latin day name 'dies iovis'? ### Respo...
SELECT COUNT(old_english_day_name) FROM table_2624098_1 WHERE glossed_from_latin_day_name = "Dies Iovis"
### Instruction: CREATE TABLE table_72121 ( "Rd" real, "Name" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the races that johnny ...
SELECT "Name" FROM table_72121 WHERE "Winning driver" = 'Johnny Rutherford'
### Instruction: CREATE TABLE table_44516 ( "Year started" real, "Number of cars" real, "Current car" text, "Car #" text, "Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Current car has a Number of cars of 1, and a Year started of 199...
SELECT "Current car" FROM table_44516 WHERE "Number of cars" = '1' AND "Year started" = '1999'
### Instruction: CREATE TABLE table_22619 ( "Pos" real, "Driver" text, "Starts" real, "Finishes" real, "Wins" real, "Podiums" real, "Stage wins" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many podiums for the drive...
SELECT COUNT("Podiums") FROM table_22619 WHERE "Stage wins" = '18'
### Instruction: CREATE TABLE table_52575 ( "Player" text, "Tries" text, "Conv" text, "Pens" text, "Drop" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the venue that has conv of 5 players on 20 points ### ...
SELECT "Venue" FROM table_52575 WHERE "Conv" = '5 players on 20 points'
### Instruction: CREATE TABLE table_20147 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the bleeding time in Bernard-sou...
SELECT "Bleeding time" FROM table_20147 WHERE "Condition" = 'Bernard-Soulier syndrome'
### Instruction: CREATE TABLE table_name_68 ( int_yds VARCHAR, solo VARCHAR, team VARCHAR, sacks VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greate...
SELECT int_yds FROM table_name_68 WHERE team = "new orleans saints" AND sacks > 0 AND solo = 71
### Instruction: CREATE TABLE table_4056 ( "Executed person" text, "Date of execution" text, "Place of execution" text, "Crime" text, "Method" text, "Under President" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- for what crime was gunther volz...
SELECT "Crime" FROM table_4056 WHERE "Place of execution" = 'Metz' AND "Executed person" = 'Gunther Volz'
### Instruction: CREATE TABLE table_15937 ( "UN Operation name" text, "UN Operation title" text, "Location" text, "Dates of Australian involvement" text, "Number of Australians involved" text, "Australian role" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "UN Operation title" FROM table_15937 WHERE "UN Operation name" = 'UNCOK'
### Instruction: CREATE TABLE table_26255 ( "Year" text, "District-wide" real, "High schools" real, "Middle schools" real, "Elementary schools" real, "Other programs & adjustments" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most mid...
SELECT MAX("Middle schools") FROM table_26255 WHERE "Year" = '2005-2006'
### Instruction: CREATE TABLE table_58082 ( "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. -- If collingwood was the Home tea...
SELECT "Date" FROM table_58082 WHERE "Home team" = 'collingwood'
### Instruction: CREATE TABLE table_63902 ( "Year" real, "Main" text, "Hessen" text, "Rhein" text, "Saar" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05? ### Response:
SELECT "Year" FROM table_63902 WHERE "Main" = 'eintracht frankfurt' AND "Hessen" = 'fsv mainz 05'
### Instruction: CREATE TABLE table_27027 ( "Eliminated" 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 is the maximum number that entered whe...
SELECT MAX("Entered") FROM table_27027 WHERE "Eliminated by" = 'Triple H'
### Instruction: CREATE TABLE table_name_96 ( club VARCHAR, losing_bp VARCHAR, lost VARCHAR, played VARCHAR, drawn VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the club that has played 22 rounds, has a drawn score of 0, has lost 14, and...
SELECT club FROM table_name_96 WHERE played = "22" AND drawn = "0" AND lost = "14" AND losing_bp = "5"
### Instruction: CREATE TABLE table_name_39 ( name VARCHAR, college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller tha...
SELECT name FROM table_name_39 WHERE round > 4 AND overall < 338 AND pick < 11 AND college = "virginia tech"
### Instruction: CREATE TABLE table_73835 ( "meas. num" real, "passed" text, "YES votes" real, "NO votes" real, "% YES" text, "Const. Amd.?" text, "type" text, "description" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the meas...
SELECT "meas. num" FROM table_73835 WHERE "type" = 'Init'
### Instruction: CREATE TABLE table_3921 ( "Outcome" text, "Edition" text, "Opponent Team" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what edition was the opponent team Z...
SELECT "Edition" FROM table_3921 WHERE "Opponent Team" = 'Zimbabwe'
### Instruction: CREATE TABLE table_17452 ( "Pick #" real, "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. -- where is team player mike mcniven played fo...
SELECT "College/junior/club team" FROM table_17452 WHERE "Player" = 'Mike McNiven'
### Instruction: CREATE TABLE table_name_54 ( viewers__in_households_ INTEGER, finale VARCHAR, episodes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum number of views that watched the show when there was more than 22 episodes and the ...
SELECT MIN(viewers__in_households_) FROM table_name_54 WHERE finale = "may 23, 1995" AND episodes > 22
### Instruction: CREATE TABLE table_16359 ( "No. in series" real, "No. in season" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many peop...
SELECT COUNT("Writer(s)") FROM table_16359 WHERE "Title" = 'Michael''s Game'
### Instruction: CREATE TABLE table_32889 ( "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 given by the ...
SELECT "Home team score" FROM table_32889 WHERE "Home team" = 'geelong'
### Instruction: CREATE TABLE table_32306 ( "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 attendance when VF...
SELECT MAX("Crowd") FROM table_32306 WHERE "Venue" = 'mcg'
### Instruction: CREATE TABLE table_204_863 ( id number, "state" text, "city/county" text, "population served" number, "charter type" text, "station name" text, "web site" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of ...
SELECT "population served" FROM table_204_863 WHERE "city/county" = 'rolla'
### Instruction: CREATE TABLE table_name_36 ( release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Release date has a Version of 1.0, a Category of utilities, a Deve...
SELECT release_date FROM table_name_36 WHERE version = "1.0" AND category = "utilities" AND developer = "microsoft" AND title = "msn money"
### Instruction: CREATE TABLE table_25043 ( "Rank MidEast" real, "Rank Asia" real, "Rank World" real, "Country" text, "2011 GDP (PPP) billions of USD" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many asian rank have 1 as a mideast rank? ###...
SELECT COUNT("Rank Asia") FROM table_25043 WHERE "Rank MidEast" = '1'
### Instruction: CREATE TABLE table_72345 ( "Submitting country" text, "Film title used in nomination" text, "Original title" text, "Language(s)" text, "Director(s)" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country subm...
SELECT "Submitting country" FROM table_72345 WHERE "Film title used in nomination" = 'The Orphanage'
### Instruction: CREATE TABLE table_47238 ( "1998" text, "2000" text, "2004" text, "2007" text, "2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1998 value if the 2000 value is 25? ### Response:
SELECT "1998" FROM table_47238 WHERE "2000" = '25'
### Instruction: CREATE TABLE table_2728 ( "Date" text, "Location" text, "Opponent" text, "Spartans Points" real, "Opp. Points" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the opponents with a 6-2 record aga...
SELECT MIN("Opp. Points") FROM table_2728 WHERE "Record" = '6-2'
### Instruction: CREATE TABLE table_16724844_1 ( mens_u20 VARCHAR, womens_40 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones? ### Response:
SELECT COUNT(mens_u20) FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions def North Queensland Cyclones"
### Instruction: CREATE TABLE table_75203 ( "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 rank of the team with 0 gold and less than 0 silvers? ### Res...
SELECT SUM("Rank") FROM table_75203 WHERE "Gold" = '0' AND "Silver" < '0'
### Instruction: CREATE TABLE table_31824 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Venue" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell mem the opponent for result of w 31-21 ### ...
SELECT "Opponent" FROM table_31824 WHERE "Result" = 'w 31-21'
### Instruction: CREATE TABLE table_203_241 ( id number, "name" text, "founded" number, "defunct" number, "country" text, "publisher" text, "topics" text, "external link" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which companies wer...
SELECT "name" FROM table_203_241 WHERE "founded" > 1990
### Instruction: CREATE TABLE table_51944 ( "Name" text, "Street address" text, "Years as tallest" text, "Height ft (m)" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- There is a building at 800 Boylston Street, how many floors does i...
SELECT SUM("Floors") FROM table_51944 WHERE "Street address" = '800 boylston street'
### Instruction: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Give me a ...
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender
### Instruction: CREATE TABLE table_52932 ( "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 South Melbourne's away...
SELECT "Away team score" FROM table_52932 WHERE "Away team" = 'south melbourne'
### Instruction: CREATE TABLE table_66720 ( "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 total rank with more than 2 silver and total larger than 10? ...
SELECT SUM("Rank") FROM table_66720 WHERE "Silver" = '2' AND "Total" > '10'
### Instruction: CREATE TABLE table_204_94 ( id number, "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponent in the final" text, "score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT COUNT(*) FROM table_204_94 WHERE "surface" = 'hard'
### Instruction: CREATE TABLE table_48963 ( "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 was the 1st leg score for the team with an Agg score of 151-134? ### Response:
SELECT "1st leg" FROM table_48963 WHERE "Agg." = '151-134'
### Instruction: CREATE TABLE table_19259 ( "AGR Power Station" text, "Net MWe" real, "Construction started" real, "Connected to grid" real, "Commercial operation" real, "Accounting closure date" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Construction started" FROM table_19259 WHERE "AGR Power Station" = 'Heysham 1'
### Instruction: CREATE TABLE table_name_22 ( tournament VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tournament has an opponent in the final of nadia petrova and a score of 6 3, 4 6, 6 1?? ### Resp...
SELECT tournament FROM table_name_22 WHERE opponent_in_the_final = "nadia petrova" AND score = "6–3, 4–6, 6–1"
### Instruction: CREATE TABLE table_63480 ( "District" real, "Incumbent" text, "2008 Status" text, "Democratic" text, "Republican" text, "Green" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Democratic when then Incumbent was Christ...
SELECT "Democratic" FROM table_63480 WHERE "Incumbent" = 'christopher shays'
### Instruction: CREATE TABLE table_name_36 ( shot_pct INTEGER, blank_ends VARCHAR, ends_lost VARCHAR, skip VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the shot % with a 44+ Ends Lost, skip Cathy King, and smaller than 13 Black Ends? ###...
SELECT MAX(shot_pct) FROM table_name_36 WHERE ends_lost > 44 AND skip = "cathy king" AND blank_ends < 13
### Instruction: CREATE TABLE table_50134 ( "Model" text, "Manufacturer" text, "Weight (kg)" real, "Display size (in)" real, "Processor model" text, "Storage type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Display size (in) has a Mode...
SELECT COUNT("Display size (in)") FROM table_50134 WHERE "Model" = 'vaio pcg-u3'
### Instruction: CREATE TABLE table_52209 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank for the player with 5 wins and under 32 events? ...
SELECT SUM("Rank") FROM table_52209 WHERE "Wins" = '5' AND "Events" < '32'
### Instruction: CREATE TABLE table_73326 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every district for reason for change is died Augu...
SELECT "District" FROM table_73326 WHERE "Reason for change" = 'Died August 9, 1964'
### Instruction: CREATE TABLE table_24160 ( "University" text, "Nick" text, "University status" real, "Founded" real, "Location" text, "Division" text, "Specialization" text, "Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where...
SELECT "Location" FROM table_24160 WHERE "Specialization" = 'Textile engineering'
### Instruction: CREATE TABLE table_14986292_1 ( population__2010_census_ VARCHAR, population_2000_census VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the population 2010 census for population 2000 census of 920599 ### Response:
SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599
### Instruction: CREATE TABLE table_73497 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Score" FROM table_73497 WHERE "Game" = '6'
### Instruction: CREATE TABLE table_41252 ( "Class" text, "Quantity" real, "Manufacturer" text, "Motor" text, "Seats" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which motor's quantity was more than 8, and a class of bs 1915? ### Response:
SELECT "Motor" FROM table_41252 WHERE "Quantity" > '8' AND "Class" = 'bs 1915'
### 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. -- Return a b...
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender DESC
### Instruction: CREATE TABLE table_26015 ( "Branding" text, "Callsign" text, "Ch. #" text, "Power kW" text, "Station Type" text, "Location (Transmitter site)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When dwhr-tv is the call sign how many...
SELECT COUNT("Station Type") FROM table_26015 WHERE "Callsign" = 'DWHR-TV'
### Instruction: CREATE TABLE table_57652 ( "CERCLIS ID" text, "Name" text, "County" text, "Proposed" text, "Listed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What county has a CERCLIS ID of scd037405362? ### Response:
SELECT "County" FROM table_57652 WHERE "CERCLIS ID" = 'scd037405362'
### Instruction: CREATE TABLE table_79985 ( "Coach" text, "Club" text, "Wins" real, "Loss" real, "PCT." real, "PTS." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of points when Bruce Arena has 21 wins? ### Response:
SELECT SUM("PTS.") FROM table_79985 WHERE "Wins" = '21' AND "Coach" = 'bruce arena'
### Instruction: CREATE TABLE table_204_862 ( id number, "rank" number, "bib" number, "athlete" text, "country" text, "run 1" text, "run 2" text, "total" text, "behind" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who finished at...
SELECT "athlete" FROM table_204_862 WHERE id = 1
### Instruction: CREATE TABLE table_25223 ( "Rnd" real, "Date" text, "Length" text, "Race Name" text, "Track" text, "Location" text, "Pole Position" text, "Winning Driver" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rounds did Ph...
SELECT "Rnd" FROM table_25223 WHERE "Track" = 'Phoenix International Raceway'
### Instruction: CREATE TABLE musical ( musical_id number, name text, year number, award text, category text, nominee text, result text ) CREATE TABLE actor ( actor_id number, name text, musical_id number, character text, duration text, age number ) -- Using valid ...
SELECT result FROM musical GROUP BY result ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_63303 ( "Season" text, "Div." text, "Pos." text, "Pld." text, "Pts." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season has 36 pld, a bbl div, and 6th position? ### Response:
SELECT "Season" FROM table_63303 WHERE "Pld." = '36' AND "Div." = 'bbl' AND "Pos." = '6th'
### Instruction: CREATE TABLE table_71766 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did Julie Still first win Wo...
SELECT MIN("Year") FROM table_71766 WHERE "Women's singles" = 'julie still'
### Instruction: CREATE TABLE table_203_138 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- where was the first friendly compe...
SELECT "venue" FROM table_203_138 WHERE "competition" = 'friendly' ORDER BY "#" LIMIT 1
### Instruction: CREATE TABLE table_51487 ( "Year" real, "Organisation" text, "Award" text, "Nominated Work Title" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the lowest year with the result is nominated for the work title ...
SELECT MIN("Year") FROM table_51487 WHERE "Result" = 'nominated' AND "Nominated Work Title" = 'love bites'
### Instruction: CREATE TABLE VOTING_RECORD ( CLASS_Senator_VOTE VARCHAR ) CREATE TABLE STUDENT ( Fname VARCHAR, StuID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the distinct first names of the students who have class senator votes. ### Respo...
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE
### Instruction: CREATE TABLE table_204_111 ( id number, "name" text, "animal type" text, "introduced" number, "reintroduced" text, "retired" number, "beanie baby resembled" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many monkey pill...
SELECT COUNT("name") FROM table_204_111 WHERE "animal type" = 'monkey'
### Instruction: CREATE TABLE table_14609 ( "Season" text, "Winner" text, "Runner-up" text, "Third" text, "Winner Men" text, "Winner Women" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the men's win in the 1992/93 season? ### Respons...
SELECT "Winner Men" FROM table_14609 WHERE "Season" = '1992/93'
### Instruction: CREATE TABLE table_204_870 ( id number, "product" text, "main functionality" text, "input format" text, "output format" text, "platform" text, "license and cost" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("platform") FROM table_204_870 WHERE "license and cost" = 'open source'
### Instruction: CREATE TABLE table_22053 ( "# s Dam and GNIS query Link" real, "# s Lake and GNIS query Link" real, "# s Reservoir and GNIS query Link" real, "Borough or Census area" text, "Comment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Comment" FROM table_22053 WHERE "Borough or Census area" = 'Denali'
### Instruction: CREATE TABLE table_1936678_1 ( class_1 VARCHAR, best_uk_team VARCHAR, class_1a VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the class 1-200 for university of hertfordshire for university of warwick ### Response:
SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick"
### Instruction: CREATE TABLE table_50910 ( "Name" text, "Years" text, "Regular season" real, "Playoffs" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- A total larger than 302 and playoffs of 35 also list the total of regular seasons a...
SELECT SUM("Regular season") FROM table_50910 WHERE "Playoffs" = '35' AND "Total" > '302'
### Instruction: CREATE TABLE table_1342256_6 ( party VARCHAR, candidates VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4% ### Response:
SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.4%"
### Instruction: CREATE TABLE table_71159 ( "Margin" real, "Score" text, "Opponent" text, "Venue" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the opponent for 1996 at the mt smart stadium venue ### Response:
SELECT "Opponent" FROM table_71159 WHERE "Venue" = 'mt smart stadium' AND "Year" = '1996'
### Instruction: CREATE TABLE table_46104 ( "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 average with a +1 lap time and more than 27 laps? ### Response:...
SELECT AVG("Grid") FROM table_46104 WHERE "Time/Retired" = '+1 lap' AND "Laps" > '27'
### Instruction: CREATE TABLE table_19865 ( "Stage" real, "Stage winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Malaysian rider classification" text, "Team classification" text ) -- Using valid SQLite, answer the following quest...
SELECT "Points classification" FROM table_19865 WHERE "Stage winner" = 'Li Fuyu'
### Instruction: CREATE TABLE table_203_84 ( id number, "rank" number, "name" text, "height\nft (m)" text, "floors" number, "year" text, "coordinates" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total floors is ...
SELECT "floors" FROM table_203_84 WHERE "name" = 'ordway building'
### Instruction: CREATE TABLE table_34496 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is position of the player with a pick number greater than 315 and a round o...
SELECT "Position" FROM table_34496 WHERE "Pick" > '315' AND "Round" = '30'
### Instruction: CREATE TABLE table_50580 ( "Team" text, "Make" text, "Drivers" text, "Tyre" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what rounds was the featured driver Tomonobu Fujii with a Tyre of Y? ### Response:
SELECT "Rounds" FROM table_50580 WHERE "Tyre" = 'y' AND "Drivers" = 'tomonobu fujii'
### Instruction: CREATE TABLE table_9071 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a week smaller than 15, and a Result of l 23-17? ### Response:
SELECT "Opponent" FROM table_9071 WHERE "Week" < '15' AND "Result" = 'l 23-17'
### Instruction: CREATE TABLE table_38467 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game in which Holt (4-4) took the...
SELECT "Date" FROM table_38467 WHERE "Loss" = 'holt (4-4)'
### Instruction: CREATE TABLE table_203_727 ( id number, "year" number, "miss northern ireland" text, "hometown" text, "placement at miss world" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of miss northe...
SELECT COUNT("miss northern ireland") FROM table_203_727 WHERE "hometown" = 'belfast'
### Instruction: CREATE TABLE table_name_45 ( final_year INTEGER, notes VARCHAR, first_year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most minimal Final year that has a Notes of replaced by i-75 and m-25, and a First year larger than 192...
SELECT MIN(final_year) FROM table_name_45 WHERE notes = "replaced by i-75 and m-25" AND first_year > 1926