instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_21226 ( "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("Record") FROM table_21226 WHERE "Team" = 'Charlotte'
### Instruction: CREATE TABLE table_53679 ( "Pick" real, "Player" text, "Country of origin*" text, "PBA team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which United States player for Air21 Express had a pick smaller than 9? ##...
SELECT "Player" FROM table_53679 WHERE "Pick" < '9' AND "Country of origin*" = 'united states' AND "PBA team" = 'air21 express'
### Instruction: CREATE TABLE table_train_91 ( "id" int, "mini_mental_state_examination_mmse" int, "stroke" bool, "rosen_modified_hachinski_ischemic_score" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- modified hachinski _ rosen score...
SELECT * FROM table_train_91 WHERE rosen_modified_hachinski_ischemic_score < 5
### Instruction: CREATE TABLE table_name_34 ( unfavorable INTEGER, no_opinion VARCHAR, favorable VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most unfavorable that is favorable of 34 during 1953 August and has a no opinion...
SELECT MAX(unfavorable) FROM table_name_34 WHERE favorable = 34 AND date = "1953 august" AND no_opinion > 24
### Instruction: CREATE TABLE song ( f_id VARCHAR, resolution INTEGER ) CREATE TABLE files ( file_size VARCHAR, formats VARCHAR, f_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the file size and format for all songs that have resolution...
SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800
### Instruction: CREATE TABLE table_24034 ( "Ep." real, "Season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Prod. Code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 5a06 is the production cod...
SELECT MAX("Ep.") FROM table_24034 WHERE "Prod. Code" = '5A06'
### Instruction: CREATE TABLE table_26335424_86 ( round_of_32 VARCHAR, quarterfinals VARCHAR, event VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32? ...
SELECT round_of_32 FROM table_26335424_86 WHERE quarterfinals = "Did not advance" AND event = "Bantamweight (-63kg)"
### Instruction: CREATE TABLE table_28612 ( "Round" real, "Location" text, "Country" text, "Date" text, "Fastest Qualifying" text, "Winning Pilot" text, "Winning Aircraft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When united arab emira...
SELECT "Winning Aircraft" FROM table_28612 WHERE "Country" = 'United Arab Emirates'
### Instruction: CREATE TABLE table_26394 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was t...
SELECT "Title" FROM table_26394 WHERE "Directed by" = 'Rowan Woods'
### Instruction: CREATE TABLE table_204_838 ( id number, "year" number, "award" text, "category" text, "nominated work" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many awards did this actor win for his work in my girlfrien...
SELECT COUNT("award") FROM table_204_838 WHERE "result" = 'won' AND "nominated work" = 'my girlfriend is an agent'
### Instruction: CREATE TABLE table_name_90 ( react INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time l...
SELECT MIN(react) FROM table_name_90 WHERE lane > 3 AND time < 20.3 AND nationality = "zimbabwe" AND rank > 1
### Instruction: CREATE TABLE table_30429 ( "Emperor" text, "Heir" text, "Relationship to emperor and status" text, "Became heir" text, "Ceased to be heir" text, "Next in line" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many next in line...
SELECT COUNT("Next in line") FROM table_30429 WHERE "Heir" = 'Archduke Karl'
### Instruction: CREATE TABLE checking ( custid number, balance number ) CREATE TABLE savings ( custid number, balance number ) CREATE TABLE accounts ( custid number, name text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total balanc...
SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
### Instruction: CREATE TABLE table_77810 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record when the leading scorer ...
SELECT "Record" FROM table_77810 WHERE "Leading scorer" = 'antawn jamison (14)'
### Instruction: CREATE TABLE table_53612 ( "Round" real, "Date" text, "Home Team" text, "Score" text, "Away Team" text, "Crowd" real, "Stadium" text, "Match Details" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team was hosted a...
SELECT "Away Team" FROM table_53612 WHERE "Stadium" = 'adelaide oval'
### Instruction: CREATE TABLE table_63932 ( "Club" text, "League/Division" text, "Home Ground" text, "Location" text, "Position in 2012-13" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location for the first division, Sun Pegasus Club?...
SELECT "Location" FROM table_63932 WHERE "League/Division" = 'first division' AND "Club" = 'sun pegasus'
### Instruction: CREATE TABLE table_6921 ( "Rank" real, "Gold" text, "Silver" text, "Bronze" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1? ### Response...
SELECT "Gold" FROM table_6921 WHERE "Total" < '4' AND "Silver" = '1' AND "Bronze" = '1'
### Instruction: CREATE TABLE table_19430 ( "School Year" text, "Class A" text, "Class AA" text, "Class AAA" text, "Class AAAA" text, "Class AAAAA" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Class AAAA winners where in 2002-03? ##...
SELECT COUNT("Class AAAA") FROM table_19430 WHERE "School Year" = '2002-03'
### Instruction: CREATE TABLE table_11466 ( "Team" text, "Chassis" text, "Engine" text, "Tyre" text, "Drivers" text, "Races" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which person drove a Reynard 2ki with a Honda Hrk engine? ### Response:...
SELECT "Races" FROM table_11466 WHERE "Chassis" = 'reynard 2ki' AND "Engine" = 'honda hrk'
### Instruction: CREATE TABLE table_33005 ( "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 that...
SELECT MIN("Crowd") FROM table_33005 WHERE "Away team" = 'footscray'
### Instruction: CREATE TABLE table_70871 ( "Name" text, "Population (2009 estimate)" text, "Largest City" text, "Largest Metropolitan Area" text, "Number of States" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many states has a 2009 estimate ...
SELECT "Number of States" FROM table_70871 WHERE "Population (2009 estimate)" = '27,3 million'
### Instruction: CREATE TABLE table_204_236 ( id number, "title" text, "release date" text, "developer(s)" text, "publisher(s)" text, "genre(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- number of gangster games released by developers ubiso...
SELECT COUNT("title") FROM table_204_236 WHERE "developer(s)" IN ('ubisoft', 'hothouse creations')
### Instruction: CREATE TABLE table_29286 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the manner of ...
SELECT "Manner of departure" FROM table_29286 WHERE "Replaced by" = 'Bahman Hasanov'
### Instruction: CREATE TABLE table_33527 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was CTE Racing-hvm's Best with a Qual 2 of 50.312? ### Response:
SELECT "Best" FROM table_33527 WHERE "Team" = 'cte racing-hvm' AND "Qual 2" = '50.312'
### Instruction: CREATE TABLE table_69085 ( "Name" text, "Creator" text, "Latest stable version" text, "Standard cost (USD)" text, "Software license" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Creator that has a version of 0.5.2 (part...
SELECT "Creator" FROM table_69085 WHERE "Latest stable version" = '0.5.2 (part of compiz fusion release)'
### Instruction: CREATE TABLE table_32270 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the VFL played Junction Ov...
SELECT "Home team score" FROM table_32270 WHERE "Venue" = 'junction oval'
### Instruction: CREATE TABLE table_26129 ( "Election Year" real, "Assembly" text, "Winning Party/Coalition" text, "Chief Minister" text, "Speaker" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the speaker is Munu Adhi (2) K. Rajaram, what is th...
SELECT MAX("Election Year") FROM table_26129 WHERE "Speaker" = 'Munu Adhi (2) K. Rajaram'
### Instruction: CREATE TABLE table_203_160 ( id number, "rank" number, "heat" number, "nation" text, "competitors" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many teams finished below 3 minutes and 3 secon...
SELECT COUNT("nation") FROM table_203_160 WHERE "time" < 3 OR ("time" = 3 AND "time" < 3)
### Instruction: CREATE TABLE table_55497 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the score on january 5 with a hasek decisi...
SELECT "Score" FROM table_55497 WHERE "Decision" = 'hasek' AND "Date" = 'january 5'
### Instruction: CREATE TABLE table_41011 ( "Bowl Game" text, "Date" text, "Stadium" text, "City" text, "Television" text, "Conference Matchups" text, "Payout ( US$ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stadium was the Fiest...
SELECT "Stadium" FROM table_41011 WHERE "Bowl Game" = 'fiesta bowl'
### Instruction: CREATE TABLE table_45470 ( "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 PLAYER WITH A TO PAR OF E, AND SCORE OF 68-72=140? ### Response:
SELECT "Player" FROM table_45470 WHERE "To par" = 'e' AND "Score" = '68-72=140'
### Instruction: CREATE TABLE table_43326 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest number of cuts when there ...
SELECT MIN("Cuts made") FROM table_43326 WHERE "Wins" > '0'
### Instruction: CREATE TABLE table_57864 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the match with Columbus as ...
SELECT "Record" FROM table_57864 WHERE "Home" = 'columbus' AND "Date" = 'march 7'
### Instruction: CREATE TABLE table_64905 ( "School" text, "City" text, "Team Name" text, "County" text, "Year Joined" text, "Year Left" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city has a school of North Vernon and a county of 40 Je...
SELECT "City" FROM table_64905 WHERE "County" = '40 jennings' AND "School" = 'north vernon'
### Instruction: CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE has_allergy ( stuid number, allergy text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) -- U...
SELECT major, COUNT(*) FROM student GROUP BY major
### Instruction: CREATE TABLE table_53559 ( "Year" real, "Venue" text, "Location" text, "Winning team" text, "Score" text, "U.S. Captain" text, "International Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the highest year t...
SELECT MAX("Year") FROM table_53559 WHERE "U.S. Captain" = 'ken venturi'
### Instruction: CREATE TABLE table_30661 ( "Stage" text, "Unit Number" real, "Installed Capacity ( MW )" text, "Date of Commissioning" text, "Status" text, "TG set Provider" text, "Boiler Provider" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT COUNT("Date of Commissioning") FROM table_30661 WHERE "Unit Number" = '2'
### Instruction: CREATE TABLE table_73626 ( "Year" real, "Tournament" text, "Winner" text, "Margin of victory" text, "Winners share ( $ )" real, "Par" real, "Course length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When hale irwin is th...
SELECT "Margin of victory" FROM table_73626 WHERE "Winner" = 'Hale Irwin'
### Instruction: CREATE TABLE table_204_793 ( id number, "call-sign" text, "location" text, "rf" number, "psip" number, "programming" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- is the rf for wivm ld 39 or 29 ? ### Response:
SELECT "rf" FROM table_204_793 WHERE "rf" IN (39, 29) AND "call-sign" = 'wivm-ld'
### Instruction: CREATE TABLE table_17931 ( "Club" text, "Australian Marquee" text, "International Marquee" text, "Junior Marquee player" text, "Captain" text, "Vice-Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the international ...
SELECT "International Marquee" FROM table_17931 WHERE "Vice-Captain" = 'Shane Stefanutto'
### Instruction: CREATE TABLE table_61093 ( "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. -- Which player had a score of 71-73-68-75=287? ### Response:
SELECT "Player" FROM table_61093 WHERE "Score" = '71-73-68-75=287'
### Instruction: CREATE TABLE table_67237 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date with a hard surface and tournament of usa f5, brown...
SELECT "Date" FROM table_67237 WHERE "Surface" = 'hard' AND "Tournament" = 'usa f5, brownsville'
### Instruction: CREATE TABLE table_76310 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Overall, when Name is 'Tim Smiley', and when Round i...
SELECT SUM("Overall") FROM table_76310 WHERE "Name" = 'tim smiley' AND "Round" < '5'
### Instruction: CREATE TABLE table_6701 ( "Tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2012 has a 2010 of 0 0? ### Response:
SELECT "2012" FROM table_6701 WHERE "2010" = '0–0'
### Instruction: CREATE TABLE table_45273 ( "Year" real, "Tournaments played" real, "Cuts made" real, "Wins" real, "Best finish" text, "Earnings ( $ )" real, "Money list rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the earlie...
SELECT MIN("Year") FROM table_45273 WHERE "Best finish" = 't-65'
### Instruction: CREATE TABLE table_204_188 ( id number, "rank" number, "player" text, "points" number, "points defending" number, "points won" number, "new points" number, "withdrew due to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT COUNT("player") FROM table_204_188 WHERE "new points" > 2000
### Instruction: CREATE TABLE table_11794 ( "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 away team that play...
SELECT "Away team score" FROM table_11794 WHERE "Venue" = 'punt road oval'
### Instruction: CREATE TABLE table_202_50 ( id number, "no." number, "ritu" text, "season" text, "hindu lunar months" text, "gregorian month" text, "characteristics" text, "seasonal festivals" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT "ritu" FROM table_202_50 ORDER BY "seasonal festivals" DESC LIMIT 1
### Instruction: CREATE TABLE table_30181 ( "No. in series" real, "No. in season" 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. -- Who wrote...
SELECT "Written by" FROM table_30181 WHERE "Title" = 'Red''s Birthday'
### Instruction: CREATE TABLE table_24864 ( "No. in series" 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. -- Who wrote when the original airdate...
SELECT "Written by" FROM table_24864 WHERE "Original air date" = 'April 5, 1987'
### Instruction: CREATE TABLE has_allergy ( stuid number, allergy text ) CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) -- U...
SELECT COUNT(DISTINCT advisor) FROM student
### Instruction: CREATE TABLE table_10004 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent" text, "Rank" real, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Average Year, when Round is R128 (Firs...
SELECT AVG("Year") FROM table_10004 WHERE "Round" = 'r128 (first round)'
### Instruction: CREATE TABLE table_62665 ( "County" text, "Per capita income" text, "Median household income" text, "Median family income" text, "Population" real, "Number of households" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Numbe...
SELECT "Number of households" FROM table_62665 WHERE "Median family income" = '$58,491'
### Instruction: CREATE TABLE table_38284 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent for game number less than 47 and a record of 24-13-4? ### Response...
SELECT "Opponent" FROM table_38284 WHERE "Game" < '47' AND "Record" = '24-13-4'
### Instruction: CREATE TABLE table_name_42 ( share INTEGER, viewers__millions_ VARCHAR, rating VARCHAR, rank__timeslot_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of share with a rating larger than 1.2, a 3 rank timeslot, and 6.0...
SELECT SUM(share) FROM table_name_42 WHERE rating > 1.2 AND rank__timeslot_ = 3 AND viewers__millions_ = 6.07
### Instruction: CREATE TABLE table_203_548 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many more bronze medals were awarded than si...
SELECT (SELECT SUM("bronze") FROM table_203_548) - (SELECT SUM("silver") FROM table_203_548)
### Instruction: CREATE TABLE table_74657 ( "Party" text, "Seats" text, "Net gain/loss" text, "% of seats" text, "% of votes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the Swedish People's Party had a net gain/loss of 0, how many seats did...
SELECT "Seats" FROM table_74657 WHERE "Net gain/loss" = '0' AND "Party" = 'swedish people''s party'
### Instruction: CREATE TABLE table_56880 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Pole position" FROM table_56880 WHERE "Date" = '8 september'
### Instruction: CREATE TABLE table_43035 ( "Season" text, "Team" text, "Country" text, "League" text, "Level" real, "Apps" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Apps for the team Kairat with level ...
SELECT AVG("Apps") FROM table_43035 WHERE "Team" = 'kairat' AND "Level" > '1'
### Instruction: CREATE TABLE table_62607 ( "Year" real, "Network" text, "Play-by-play" text, "Colour commentator(s)" text, "Pregame host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For which network was Chris Walby the color commentator after 1...
SELECT "Network" FROM table_62607 WHERE "Year" > '1990' AND "Colour commentator(s)" = 'chris walby'
### Instruction: CREATE TABLE table_45147 ( "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 method of resolution f...
SELECT "Method" FROM table_45147 WHERE "Opponent" = 'akihiro gono'
### Instruction: CREATE TABLE book ( Book_ID int, Title text, Issues real, Writer text ) CREATE TABLE publication ( Publication_ID int, Book_ID int, Publisher text, Publication_Date text, Price real ) -- Using valid SQLite, answer the following questions for the tables provided ab...
SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY Price DESC
### Instruction: CREATE TABLE reviewer ( rid number, name text ) CREATE TABLE movie ( mid number, title text, year number, director text ) CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time ) -- Using valid SQLite, answer the following questions for t...
SELECT title FROM movie WHERE year > (SELECT MAX(year) FROM movie WHERE director = "Steven Spielberg")
### Instruction: CREATE TABLE table_14932 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people attended the game against athletics with the record o...
SELECT COUNT("Attendance") FROM table_14932 WHERE "Opponent" = 'athletics' AND "Record" = '9-12'
### Instruction: CREATE TABLE table_56347 ( "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What race ha...
SELECT "Race" FROM table_56347 WHERE "Pole Position" = 'jody scheckter'
### Instruction: CREATE TABLE table_75557 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Height m ( ft )" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of Frequency MHz in wo...
SELECT SUM("Frequency MHz") FROM table_75557 WHERE "City of license" = 'woodstock, georgia'
### Instruction: CREATE TABLE table_204_778 ( id number, "code" number, "county" text, "former province" text, "area (km2)" number, "population\ncensus 2009" number, "capital" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which county has t...
SELECT "county" FROM table_204_778 ORDER BY "population\ncensus 2009" DESC LIMIT 1
### Instruction: CREATE TABLE table_45939 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Bronze, when Total is less than 3, and when Silver is l...
SELECT MAX("Bronze") FROM table_45939 WHERE "Total" < '3' AND "Silver" < '0'
### Instruction: CREATE TABLE table_42727 ( "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To par when fredrik andersson he...
SELECT "To par" FROM table_42727 WHERE "Runner(s)-up" = 'fredrik andersson hed'
### Instruction: CREATE TABLE table_42237 ( "AIRLINE" text, "AIRLINE (in Arabic)" text, "ICAO" text, "CALLSIGN" text, "COMMENCED OPERATIONS" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What callsign has commenced operations in 2011? ### Respons...
SELECT "CALLSIGN" FROM table_42237 WHERE "COMMENCED OPERATIONS" = '2011'
### Instruction: CREATE TABLE table_3634 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original U.S. air date" text, "Prod. code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes have the title 're...
SELECT COUNT("Original U.S. air date") FROM table_3634 WHERE "Title" = 'Revenge of the Mummy'
### Instruction: CREATE TABLE table_52174 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the venue where the away team ended in a...
SELECT "Venue" FROM table_52174 WHERE "Away team score" = '6.8 (44)'
### Instruction: CREATE TABLE table_name_92 ( name VARCHAR, maglia_rosa VARCHAR, young_rider VARCHAR, country VARCHAR, giro_wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is from italy has 0 giro wins, 0 young rider and less than 3 magli...
SELECT name FROM table_name_92 WHERE country = "italy" AND giro_wins = 0 AND young_rider = 0 AND maglia_rosa < 3
### Instruction: CREATE TABLE table_204_268 ( id number, "album/single" text, "performer" text, "year" number, "variant" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who appeared on more albums , maccoll or kornog ? ### Respons...
SELECT "performer" FROM table_204_268 WHERE "performer" IN ('ewan maccoll', 'kornog') GROUP BY "performer" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_31280 ( "Episode Number" real, "Title & Link to Episode on YouTube" text, "Origin" text, "Object Date" text, "Description" text, "Te Papas Collections Online link" text, "Host & Additional contributors" text ) -- Using valid SQLite, answer the following ...
SELECT COUNT("Object Date") FROM table_31280 WHERE "Origin" = 'Samoa'
### Instruction: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ...
SELECT Name, MIN(Price) FROM Products GROUP BY Name
### Instruction: CREATE TABLE table_35363 ( "Year" real, "Pick" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have a Pick of 12, and a Position of dt, and a College of penn state? ###...
SELECT COUNT("Year") FROM table_35363 WHERE "Pick" = '12' AND "Position" = 'dt' AND "College" = 'penn state'
### Instruction: CREATE TABLE table_51846 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many grids have 102 laps and a Time/Retired of + 6.18? ### Response:
SELECT COUNT("Grid") FROM table_51846 WHERE "Laps" > '102' AND "Time/Retired" = '+ 6.18'
### Instruction: CREATE TABLE table_64069 ( "Rank" text, "Gold" real, "Silver" real, "Bronze" real, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the gold when the bronze is 1, total is 6 and silver is less than 3? ### Response:
SELECT SUM("Gold") FROM table_64069 WHERE "Bronze" = '1' AND "Total" = '6' AND "Silver" < '3'
### Instruction: CREATE TABLE table_204_465 ( id number, "#" number, "temple name" text, "hangul" text, "hanja" text, "period of reign" text, "personal name" text, "relationship" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "temple name" FROM table_204_465 ORDER BY "period of reign" LIMIT 1
### Instruction: CREATE TABLE table_203_151 ( id number, "no." number, "date" text, "tournament" text, "winning score" text, "margin of\nvictory" text, "runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who had the top score in th...
SELECT "runner(s)-up" FROM table_203_151 WHERE "tournament" = 'pga championship'
### Instruction: CREATE TABLE table_203_244 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the manufacturer for loris capirossi and ralf waldmann ...
SELECT "manufacturer" FROM table_203_244 WHERE "rider" IN ('loris capirossi', 'ralf waldmann')
### Instruction: CREATE TABLE table_204_388 ( id number, "#" number, "date" text, "visitor" text, "score" text, "home" text, "record" text, "pts" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is was the difference in score in the...
SELECT ABS("score" - "score") FROM table_204_388 WHERE "date" = 'december 19'
### Instruction: CREATE TABLE table_name_28 ( earnings__ VARCHAR, rank VARCHAR, player VARCHAR, country VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In total, how much did the United States player George Archer earn with Wins lowe...
SELECT COUNT(earnings__) AS $__ FROM table_name_28 WHERE country = "united states" AND wins < 24 AND player = "george archer" AND rank > 5
### Instruction: CREATE TABLE table_62144 ( "Phase" text, "Round" text, "Draw date" text, "First leg" text, "Second leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the round for the qualifying phase with a draw date on 16 July 2010? ##...
SELECT "Round" FROM table_62144 WHERE "Phase" = 'qualifying' AND "Draw date" = '16 july 2010'
### Instruction: CREATE TABLE table_203_252 ( 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_252 WHERE "language" = 'french'
### Instruction: CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE college ( cname text, state text, enr number ) -- Using valid SQLite, answer the following question...
SELECT cname, state, MIN(enr) FROM college GROUP BY state
### Instruction: CREATE TABLE mission ( mission_id number, ship_id number, code text, launched_year number, location text, speed_knots number, fate text ) CREATE TABLE ship ( ship_id number, name text, type text, nationality text, tonnage number ) -- Using valid SQLite...
SELECT name FROM ship WHERE nationality <> "United States"
### Instruction: CREATE TABLE table_26959 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the period for appearances being 380 ...
SELECT "Period" FROM table_26959 WHERE "Appearances\u00b9" = '380'
### Instruction: CREATE TABLE table_13779 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" text, "Average Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Japanese show on NHK had average ratings of 9.2%? ###...
SELECT "Japanese Title" FROM table_13779 WHERE "TV Station" = 'nhk' AND "Average Ratings" = '9.2%'
### Instruction: CREATE TABLE table_39020 ( "Station" text, "City of license" text, "Channels TV / RF" text, "First air date" text, "HAAT" text, "Facility ID" real, "Public license information" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
SELECT "HAAT" FROM table_39020 WHERE "Facility ID" = '65944'
### Instruction: CREATE TABLE table_59671 ( "Class" text, "Quantity" real, "Type" text, "Delivered" text, "K.B.Sts.B. Class" text, "Retired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the type of the locomotive which was delivered in...
SELECT "Type" FROM table_59671 WHERE "Delivered" = '1857-59'
### Instruction: CREATE TABLE postseason ( wins INTEGER, team_id_winner VARCHAR ) CREATE TABLE team ( team_id_br VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the maximum scores of the team Boston Red Stockings when the team won ...
SELECT MAX(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
### Instruction: CREATE TABLE table_36447 ( "Building" text, "Height [m]" real, "Floors" real, "Built" real, "City" text, "Architect" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the architect of the 10 floor building with a height of ...
SELECT "Architect" FROM table_36447 WHERE "Height [m]" = '42' AND "Floors" = '10'
### Instruction: CREATE TABLE table_6882 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Set 2, when Date is May 31? ### ...
SELECT "Set 2" FROM table_6882 WHERE "Date" = 'may 31'
### Instruction: CREATE TABLE table_6434 ( "Year" real, "Class" text, "Vehicle" text, "Position" text, "Stages won" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What class is associated with 0 stages won, a hummer, and before 2009? ### Response:...
SELECT "Class" FROM table_6434 WHERE "Stages won" = '0' AND "Vehicle" = 'hummer' AND "Year" < '2009'
### Instruction: CREATE TABLE table_221653_1 ( platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the platelet count when partial thromboplastin time and bleeding time are una...
SELECT platelet_count FROM table_221653_1 WHERE partial_thromboplastin_time = "Unaffected" AND bleeding_time = "Unaffected"
### Instruction: CREATE TABLE table_64946 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won in 1988 with a total less than 287? ### Response:
SELECT "Player" FROM table_64946 WHERE "Total" < '287' AND "Year(s) won" = '1988'
### Instruction: CREATE TABLE table_76932 ( "Rider" text, "Bike" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of laps run by the driver with a grid under 17 and a time of +5.088? ### Respo...
SELECT SUM("Laps") FROM table_76932 WHERE "Time" = '+5.088' AND "Grid" < '17'
### Instruction: CREATE TABLE table_name_23 ( age_as_of_1_february_2014 VARCHAR, province_or_country_of_birth VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average age as of February 1, 2014 for the supercentenarians born in the United States? ...
SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = "united states"