instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_61544 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/junior/club team (league)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when College/Junior/Club Team (League) i...
SELECT "Player" FROM table_61544 WHERE "College/junior/club team (league)" = 'val d''or foreurs ( qmjhl )'
### Instruction: CREATE TABLE table_24973 ( "#" text, "Spacecraft" text, "Spacewalkers" text, "Start ( UTC )" text, "End (UTC)" text, "Duration" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the end (UTC) is January 31, 2007 23:09, what is t...
SELECT "Spacewalkers" FROM table_24973 WHERE "End (UTC)" = 'January 31, 2007 23:09'
### Instruction: CREATE TABLE table_16746 ( "Rnd" real, "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. ...
SELECT "Date" FROM table_16746 WHERE "Constructor" = 'Ferrari' AND "Location" = 'Anderstorp'
### Instruction: CREATE TABLE table_31002 ( "Movies" text, "December 25" text, "December 26" text, "December 27" text, "December 28" text, "December 25-28 total" text, "Total 2-week Gross" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How m...
SELECT COUNT("December 28") FROM table_31002 WHERE "Movies" = 'Rosario'
### Instruction: CREATE TABLE table_28596 ( "Location" text, "Date" real, "Denomination" text, "Coinage metal" text, "Mintage" real, "KM number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mintage for a location of Sion and a deno...
SELECT "Mintage" FROM table_28596 WHERE "Location" = 'Sion' AND "Denomination" = '00500 500 francs'
### Instruction: CREATE TABLE table_13643320_2 ( rnd VARCHAR, gtp_winning_team VARCHAR, gto_winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #...
SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = "#56 Blue Thunder Racing" AND gto_winning_team = "#38 Mandeville Auto Tech"
### Instruction: CREATE TABLE table_10151 ( "Player" text, "Span" text, "Start" real, "Tries" real, "Conv" real, "Pens" real, "Drop" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of tries for a player with conv smaller tha...
SELECT COUNT("Tries") FROM table_10151 WHERE "Conv" < '45' AND "Start" = '19' AND "Pens" < '22'
### Instruction: CREATE TABLE table_26763 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "No. in season" FROM table_26763 WHERE "Production code" = 'BCW410'
### Instruction: CREATE TABLE table_20532 ( "#" real, "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 the total number of v...
SELECT COUNT("Viewers") FROM table_20532 WHERE "Share" = '7' AND "Weekly Rank" = '64'
### Instruction: CREATE TABLE table_76662 ( "Season" text, "Series" text, "Team Name" text, "Races" text, "Wins" text, "Poles" text, "F.L." text, "Podiums" text, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "Podiums" FROM table_76662 WHERE "Wins" = '0' AND "Points" = '6'
### Instruction: CREATE TABLE table_204_341 ( id number, "name in english" text, "name in turkish" text, "area (km2)" text, "depth" text, "location (districts and/or provinces)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is deeper , la...
SELECT "name in english" FROM table_204_341 WHERE "name in english" IN ('lake tuz', 'lake palas tuzla') ORDER BY "depth" DESC LIMIT 1
### Instruction: CREATE TABLE table_25396 ( "Player" text, "Games Played" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real ) -- Using valid SQLite, answer the following questions fo...
SELECT MAX("Blocks") FROM table_25396 WHERE "Player" = 'Kendall Gill'
### Instruction: CREATE TABLE table_66414 ( "Year" real, "Finish position" text, "1st day" text, "2nd day" text, "3rd day" text, "4th Day" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for the first day in a year prior to 201...
SELECT "1st day" FROM table_66414 WHERE "Year" < '2011' AND "4th Day" = 'bumped girton'
### Instruction: CREATE TABLE table_15755 ( "Player" text, "League" real, "Scottish Cup" real, "League Cup" real, "Challenge Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Total with a League Cup greater th...
SELECT MAX("Total") FROM table_15755 WHERE "League Cup" > '0' AND "Player" = 'gary harkins' AND "Scottish Cup" > '0'
### Instruction: CREATE TABLE table_7167 ( "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 a...
SELECT "High points" FROM table_7167 WHERE "Location Attendance" = 'staples center 18,964'
### Instruction: CREATE TABLE table_74151 ( "Product Name" text, "Form Factor" text, "Storage Medium" text, "Max Usable Capacity (GB)" real, "Speed ( IOPS )" real, "Latency (microseconds)" real, "Bandwidth (GB/s)" text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT COUNT("Latency (microseconds)") FROM table_74151 WHERE "Product Name" = 'RamSan-810'
### Instruction: CREATE TABLE table_22313 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Canadian air date" text, "U.S. air date" text, "Production code" real, "Canadian viewers (million)" text ) -- Using valid SQLite, answer the following questions f...
SELECT "Directed by" FROM table_22313 WHERE "Production code" = '301'
### Instruction: CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) -- Using valid SQLite, answer the following ...
SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) DESC
### Instruction: CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, ...
SELECT Year, COUNT(Year) FROM exhibition GROUP BY Theme
### Instruction: CREATE TABLE table_58133 ( "Pilot car No." real, "Colour" text, "Serial No." text, "Engine No." real, "Registration No." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the serial number of the pilot car that is black, has a ...
SELECT "Serial No." FROM table_58133 WHERE "Colour" = 'black' AND "Pilot car No." > '2' AND "Engine No." = '1008'
### Instruction: CREATE TABLE table_name_60 ( her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest figure for her age when the year of marriage is before 1853, ...
SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = "eliza maria partridge"
### Instruction: CREATE TABLE table_59150 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date is the match played on Cla...
SELECT "Date" FROM table_59150 WHERE "Surface" = 'clay' AND "Score in the final" = '6–2, 7–5'
### Instruction: CREATE TABLE table_45395 ( "Rank" text, "Name" text, "Height (m)" real, "Height (ft)" real, "Floors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Height (m) of the 32= Rank Building with 18 Floors and Height (ft) great...
SELECT AVG("Height (m)") FROM table_45395 WHERE "Floors" = '18' AND "Height (ft)" > '171' AND "Rank" = '32='
### Instruction: CREATE TABLE table_2763 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for...
SELECT "Year" FROM table_2763 WHERE "Starts" = '15'
### Instruction: CREATE TABLE table_30349 ( "Season" text, "Games" real, "Won" real, "Lost" real, "Tied" real, "Points" real, "Goals for" real, "Goals against" real, "Standing" text, "Head coaches" text ) -- Using valid SQLite, answer the following questions for the tables prov...
SELECT "Season" FROM table_30349 WHERE "Goals against" = '254'
### Instruction: CREATE TABLE table_9436 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Lions' Points" text, "Opponents' Points" text, "Record" text, "Streak" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "Attendance" FROM table_9436 WHERE "Date" = '11/11/01'
### Instruction: CREATE TABLE table_2017 ( "Pos" real, "No" real, "Driver" text, "Constructor" text, "Q1 order" real, "Q1 time" text, "Q1 pos" real, "Q1+Q2 time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when the q1+q2 time was 2.34...
SELECT COUNT("Pos") FROM table_2017 WHERE "Q1+Q2 time" = '2.34.736'
### Instruction: CREATE TABLE table_203_563 ( id number, "#" number, "judge" text, "state" text, "born/died" text, "active" text, "chief" text, "senior" text, "appointed by" text, "reason for\ntermination" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "judge" FROM table_203_563 WHERE "appointed by" = 'mckinley'
### Instruction: CREATE TABLE table_67638 ( "Episode" text, "First aired" text, "Entrepreneur(s)" text, "Company or product name" text, "Money requested (\u00a3)" text, "Investing Dragon(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which E...
SELECT "Entrepreneur(s)" FROM table_67638 WHERE "First aired" = '24 august 2006'
### Instruction: CREATE TABLE table_15796 ( "Tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 2006 when the 2010 is 27 ### Re...
SELECT "2006" FROM table_15796 WHERE "2010" = '27'
### Instruction: CREATE TABLE table_64299 ( "World record" text, "Snatch" text, "Sergey Filimonov ( KAZ )" text, "173kg" text, "Almaty , Kazakhstan" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Almaty, Kazakhstan when Sergey Filimonov ...
SELECT "Almaty , Kazakhstan" FROM table_64299 WHERE "Sergey Filimonov ( KAZ )" = '210kg'
### Instruction: CREATE TABLE table_16427 ( "Location" text, "Monday" text, "Tuesday" text, "Wednesday" text, "Thursday" text, "Friday" text, "Saturday" text, "Sunday" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the monday time...
SELECT "Monday" FROM table_16427 WHERE "Tuesday" = '9:00-6:00'
### Instruction: CREATE TABLE people ( people_id number, name text, age number, height number, hometown text ) CREATE TABLE gymnast ( gymnast_id number, floor_exercise_points number, pommel_horse_points number, rings_points number, vault_points number, parallel_bars_points n...
SELECT name FROM people ORDER BY name
### Instruction: CREATE TABLE table_21760 ( "Year" real, "Network" text, "Play-by-play" text, "Color commentator" text, "Sideline reporters" text, "Pregame host" text, "Pregame analysts" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is...
SELECT MAX("Year") FROM table_21760 WHERE "Sideline reporters" = 'Rob Stone and Monica Gonzalez'
### Instruction: CREATE TABLE table_55241 ( "Player" text, "Date of birth (age when delisted)" text, "Draft details" text, "Rookie list" text, "Senior list" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed under Senior List for Date of ...
SELECT "Senior list" FROM table_55241 WHERE "Date of birth (age when delisted)" = '5 june 1984 (aged 23)'
### Instruction: CREATE TABLE table_204_523 ( id number, "week" number, "date" text, "opponent" text, "score" text, "result" text, "attendance" number, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference betwee...
SELECT ABS((SELECT COUNT(*) FROM table_204_523 WHERE "result" = 'win') - (SELECT COUNT(*) FROM table_204_523 WHERE "result" = 'loss'))
### Instruction: CREATE TABLE trained_in ( physician VARCHAR, treatment VARCHAR ) CREATE TABLE physician ( employeeid VARCHAR, name VARCHAR ) CREATE TABLE procedures ( cost INTEGER, code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What i...
SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
### Instruction: CREATE TABLE table_59450 ( "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. -- Who had the oppone...
SELECT "Partner" FROM table_59450 WHERE "Opponents in the final" = 'lenka cenková kateřina šišková'
### Instruction: CREATE TABLE table_73615 ( "World record" text, "Denis Nizhegorodov ( RUS )" text, "3:34:14" text, "Cheboksary , Russia" text, "11 May 2008" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When north american record is the world reco...
SELECT "Denis Nizhegorodov ( RUS )" FROM table_73615 WHERE "World record" = 'North American record'
### Instruction: CREATE TABLE table_72187 ( "Rank" real, "Gymnast" text, "Floor Exercise" text, "Pommel Horse" text, "Rings" text, "Vault" text, "Parallel Bars" text, "Horizontal Bar" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT "Vault" FROM table_72187 WHERE "Total" = '56.635'
### Instruction: CREATE TABLE table_71849 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What show comes on at 9:00 on the channel that shows the Insider...
SELECT "9:00" FROM table_71849 WHERE "7:00" = 'the insider'
### Instruction: CREATE TABLE table_11503 ( "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 average earnings of the player from the United States...
SELECT AVG("Earnings ( $ )") FROM table_11503 WHERE "Country" = 'united states' AND "Wins" < '2' AND "Rank" > '3'
### Instruction: CREATE TABLE table_23073 ( "Region" text, "Wing" text, "Inspection" real, "Standard" real, "Indoor" real, "Outdoor" real, "Written" real, "Panel Quiz" real, "Mile Run" real, "Points" real, "Overall" text ) -- Using valid SQLite, answer the following questio...
SELECT COUNT("Points") FROM table_23073 WHERE "Mile Run" = '3'
### Instruction: CREATE TABLE table_name_36 ( year INTEGER, score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Year(s), when Championship is 'Australian Open', when Outcome is 'Runn...
SELECT SUM(year) FROM table_name_36 WHERE championship = "australian open" AND outcome = "runner-up" AND score_in_final = "3-6, 6-3, 6-2"
### Instruction: CREATE TABLE table_train_266 ( "id" int, "active_infection" bool, "hemoglobin_a1c_hba1c" float, "heart_disease" bool, "neuropathy" bool, "severe_diabetic_complication" bool, "hba1c" float, "active_malignancy" bool, "NOUSE" float ) -- Using valid SQLite, answer the ...
SELECT * FROM table_train_266 WHERE active_malignancy = 1
### Instruction: CREATE TABLE table_23443 ( "Season" real, "Timeslot ( EDT )" text, "Season Premiere" text, "Season Finale" text, "TV Season" text, "Rank ( Spanish language )" real, "Viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT COUNT("Timeslot ( EDT )") FROM table_23443 WHERE "Season Finale" = 'August 9, 2007'
### Instruction: CREATE TABLE table_44652 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Opponents In...
SELECT "Date" FROM table_44652 WHERE "Opponents in the final" = 'maria-fernanda alves stéphanie dubois'
### Instruction: CREATE TABLE table_56622 ( "Season" text, "Games" real, "Lost" real, "Tied" real, "Points" real, "Pct %" real, "Goals for" real, "Goals against" real, "Standing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When th...
SELECT AVG("Points") FROM table_56622 WHERE "Pct %" > '0.685'
### Instruction: CREATE TABLE table_104858_1 ( admits_boys_girls VARCHAR, year_member_organization_was_founded VARCHAR, name_of_member_organization VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Does the Ghana Scout Association (founded in 1912) admit bo...
SELECT admits_boys_girls FROM table_104858_1 WHERE year_member_organization_was_founded = "1912" AND name_of_member_organization = "The Ghana Scout Association"
### Instruction: CREATE TABLE table_67505 ( "Season" real, "Cars Entered" real, "Winning Driver" text, "Second Driver" text, "Third Driver" text, "Race Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the largest Cars Entered with...
SELECT MAX("Cars Entered") FROM table_67505 WHERE "Winning Driver" = 'rodger ward' AND "Season" < '1959'
### Instruction: CREATE TABLE table_30978 ( "Season no." real, "Series no." 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 tables...
SELECT "U.S. viewers (millions)" FROM table_30978 WHERE "Title" = 'Cadaver'
### Instruction: CREATE TABLE table_62181 ( "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 total overall for the pick that went before round 4, who ...
SELECT SUM("Overall") FROM table_62181 WHERE "Round" < '4' AND "College" = 'tennessee' AND "Pick #" > '9'
### Instruction: CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) -- Using valid SQLite, answer the following ...
SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) DESC
### Instruction: CREATE TABLE table_28150 ( "Date" text, "Location" text, "Fight" text, "Division" text, "Titles" text, "Rematch" text, "TV" text, "Promoter" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the t...
SELECT "Titles" FROM table_28150 WHERE "Date" = 'November 9' AND "Division" = 'Super Bantamweight'
### Instruction: CREATE TABLE table_11440 ( "NGC number" real, "Object type" text, "Constellation" text, "Right ascension ( J2000 )" text, "Declination ( J2000 )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Constellation has a 20h56m40s Righ...
SELECT "Constellation" FROM table_11440 WHERE "Right ascension ( J2000 )" = '20h56m40s'
### Instruction: CREATE TABLE table_21025 ( "Rnd" real, "Race Name" text, "Circuit" text, "City/Location" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Winning team" text, "Report" text ) -- Using valid SQLite, answer the following questio...
SELECT MAX("Rnd") FROM table_21025 WHERE "Date" = 'August 13'
### Instruction: CREATE TABLE table_1112 ( "Rank" real, "Country" text, "UNWTO Region" text, "International tourist arrivals (2012)" text, "International tourist arrivals (2011)" text, "Change (2011 to 2012)" text, "Change (2010 to 2011)" text ) -- Using valid SQLite, answer the following ...
SELECT MAX("Rank") FROM table_1112 WHERE "Country" = 'Germany'
### Instruction: CREATE TABLE table_28052 ( "Episode no." real, "Airdate" text, "Dave Viewers" real, "Dave Rank" real, "Rank (cable)" real, "Dave ja vu Viewers" real, "Total viewers" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the...
SELECT MIN("Rank (cable)") FROM table_28052 WHERE "Total viewers" = '1464000'
### Instruction: CREATE TABLE table_76193 ( "Team" text, "Sets+" real, "Sets\u2013" real, "Points+" real, "Points\u2013" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Sets+ number for Valeriano All s Menorca when the Sets- numbe...
SELECT MAX("Sets+") FROM table_76193 WHERE "Team" = 'valeriano allès menorca' AND "Sets\u2013" > '31'
### Instruction: CREATE TABLE table_1563 ( "No. in series" text, "No. in season" text, "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 t...
SELECT "Written by" FROM table_1563 WHERE "U.S. viewers (millions)" = '7.56'
### Instruction: CREATE TABLE table_20285 ( "Kansas State vs." text, "Games played" real, "Overall Record" text, "Last 5 Meetings" text, "Last 10 Meetings" text, "Current Streak" text, "Last Meeting" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "Kansas State vs." FROM table_20285 WHERE "Last Meeting" = '11/26/1988'
### Instruction: CREATE TABLE table_10002 ( "Line name" text, "Opened" real, "Last extension" real, "Stations served" real, "Length" text, "Average Interstation" text, "Journeys made (per annum)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT AVG("Opened") FROM table_10002 WHERE "Line name" = 'line e' AND "Last extension" < '2003'
### Instruction: CREATE TABLE table_42946 ( "Year" text, "Venue" text, "Champion" text, "Country" text, "Score" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score of the match played in England where Peter McEvoy ...
SELECT "Score" FROM table_42946 WHERE "Country" = 'england' AND "Champion" = 'peter mcevoy' AND "Runner-up" = 'paul mckellar'
### Instruction: CREATE TABLE table_37925 ( "Rank" real, "Province" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average rank for team with more than 44 gold, more and 76 br...
SELECT AVG("Rank") FROM table_37925 WHERE "Total" > '73' AND "Gold" > '44' AND "Bronze" > '76'
### Instruction: CREATE TABLE table_24456 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("Production code") FROM table_24456 WHERE "Written by" = 'Steve Cohen & Andrew Dettman'
### Instruction: CREATE TABLE table_1936 ( "Athlete" text, "Class" text, "Event" text, "Round 1" text, "Round 2" text, "Round 3" text, "1/8 Finals" text, "Quarterfinals" text, "Semifinals" text, "Final/ Bronze medal contest" text ) -- Using valid SQLite, answer the following qu...
SELECT "Round 1" FROM table_1936 WHERE "Event" = 'Team'
### Instruction: CREATE TABLE table_68178 ( "Name" text, "Population (2011)" real, "Population (2006)" real, "Change (%)" real, "Area (km\u00b2)" real, "Population density" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population de...
SELECT COUNT("Population density") FROM table_68178 WHERE "Name" = 'siglunes' AND "Change (%)" < '-8.1'
### Instruction: CREATE TABLE table_204_27 ( id number, "name" text, "position" text, "year" text, "league\napps" number, "league\ngoals" number, "total\napps" number, "total\ngoals" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT "name" FROM table_204_27 WHERE "total\ngoals" = "total\napps"
### Instruction: CREATE TABLE table_12383 ( "School" text, "Location (Population)" text, "Nickname(s)" text, "Colors" text, "Years Member" text, "Enrollment (2013/14)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nickname with an e...
SELECT "Nickname(s)" FROM table_12383 WHERE "Enrollment (2013/14)" = '160'
### Instruction: CREATE TABLE table_67378 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT COUNT("Wins") FROM table_67378 WHERE "Goals against" < '32'
### Instruction: CREATE TABLE table_16268 ( "Year" real, "Network" text, "Host" text, "Pre-race analyst" text, "Lap-by-lap" text, "Color commentator(s)" text, "Pit reporters" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which network has M...
SELECT "Network" FROM table_16268 WHERE "Lap-by-lap" = 'Marty Reid' AND "Host" = 'Marty Reid'
### Instruction: CREATE TABLE table_37441 ( "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. -- Name the class A with class AAAA of longview pine ...
SELECT "Class A" FROM table_37441 WHERE "Class AAAA" = 'longview pine tree' AND "School Year" = '1995-96'
### Instruction: CREATE TABLE table_46793 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite, answer the foll...
SELECT "Points" FROM table_46793 WHERE "Try bonus" = '2'
### Instruction: CREATE TABLE table_52187 ( "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 was the home team in the February 22 game th...
SELECT "Home" FROM table_52187 WHERE "Decision" = 'legace' AND "Visitor" = 'st. louis' AND "Date" = 'february 22'
### Instruction: CREATE TABLE table_69193 ( "Round" real, "Circuit" text, "Date" text, "Fastest lap" text, "Winning driver" text, "Winning team" text, "Winning manufacturer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of...
SELECT "Date" FROM table_69193 WHERE "Circuit" = 'hockenheimring' AND "Winning manufacturer" = 'mercedes-benz'
### Instruction: CREATE TABLE table_name_97 ( rd_7 INTEGER, rd_8 VARCHAR, team VARCHAR, position VARCHAR, rd_6 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of values of Rd 7 with RD 6 less than 48 and Rd 8 less than 4 for TC Mot...
SELECT SUM(rd_7) FROM table_name_97 WHERE position > 1 AND rd_6 < 48 AND team = "tc motorsport" AND rd_8 < 4
### Instruction: CREATE TABLE table_21669 ( "Season in Tamil" text, "English Transliteration" text, "English Translation" text, "Season in Sanskrit" text, "Season in English" text, "Tamil Months" text, "Gregorian Months" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT "English Translation" FROM table_21669 WHERE "Tamil Months" = 'mārkazhi, tai'
### Instruction: CREATE TABLE table_60887 ( "Team" text, "Club home city" text, "2006\u201307 Season" text, "Stadium" text, "Stadium capacity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 2006-07 Season, when Stadium Capacity is '0 2,500'?...
SELECT "2006\u201307 Season" FROM table_60887 WHERE "Stadium capacity" = '0 2,500'
### Instruction: CREATE TABLE table_7511 ( "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is airing at 9:00 on the channel that airs Chuck at 8:30 and Medium at 10:00? ### Response:
SELECT "9:00" FROM table_7511 WHERE "10:00" = 'medium' AND "8:30" = 'chuck'
### Instruction: CREATE TABLE Addresses ( zip_postcode VARCHAR, address_id VARCHAR ) CREATE TABLE Staff ( staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the zip code of staff with f...
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
### Instruction: CREATE TABLE table_46188 ( "Fin. Pos" text, "Car No." text, "Driver" text, "Team" text, "Laps" text, "Time/Retired" text, "Grid" text, "Laps Led" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many...
SELECT "Points" FROM table_46188 WHERE "Time/Retired" = 'collision' AND "Car No." = '10'
### Instruction: CREATE TABLE table_60989 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT COUNT("Goals For") FROM table_60989 WHERE "Points 1" = '41'
### Instruction: CREATE TABLE table_dev_61 ( "id" int, "pregnancy_or_lactation" bool, "allergy_to_gadolinium" bool, "renal_disease" bool, "creatinine_clearance_cl" float, "cardiogenic_shock" bool, "hypertension" bool, "NOUSE" float ) -- Using valid SQLite, answer the following question...
SELECT * FROM table_dev_61 WHERE hypertension = 1
### Instruction: CREATE TABLE table_50646 ( "Center" text, "North East" text, "South East" text, "South West" text, "North West" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is in the south-west next to Vishnu on the east, Durga on the west, a...
SELECT "South West" FROM table_50646 WHERE "North East" = 'vishnu' AND "North West" = 'durga' AND "Center" = 'ganapati'
### Instruction: CREATE TABLE table_80053 ( "Matches" real, "Wickets" real, "Runs" real, "Average" real, "10WM" real, "Best in Innings" text, "Best in Match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of wickets ...
SELECT SUM("Wickets") FROM table_80053 WHERE "Runs" < '4600' AND "Matches" < '44'
### Instruction: CREATE TABLE table_7243 ( "Conference" text, "# of Bids" real, "Record" text, "Win %" text, "Round of 32" text, "Sweet Sixteen" text, "Elite Eight" text, "Final Four" text, "Championship Game" text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT "Round of 32" FROM table_7243 WHERE "# of Bids" < '2'
### Instruction: CREATE TABLE table_12444 ( "Mininera DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which byes are high when losses are larger than 7, wins smaller than...
SELECT MAX("Byes") FROM table_12444 WHERE "Losses" > '7' AND "Wins" < '6' AND "Draws" < '0'
### Instruction: CREATE TABLE table_21744 ( "No. in series" text, "No. in season" text, "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 "No. in season" FROM table_21744 WHERE "Directed by" = 'Gene Stupnitsky'
### Instruction: CREATE TABLE table_9537 ( "Tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What 2009 has statistics by surface in 2012...
SELECT "2009" FROM table_9537 WHERE "2012" = 'statistics by surface'
### Instruction: CREATE TABLE table_15698 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest numb...
SELECT MAX("Played") FROM table_15698 WHERE "Goals Conceded" = '21' AND "Draw" > '3'
### Instruction: CREATE TABLE table_30297 ( "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 (million)" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "Production code" FROM table_30297 WHERE "Title" = 'Chuck Versus the Balcony'
### Instruction: CREATE TABLE table_42478 ( "Year" real, "Winner (Male)" text, "Winner (Female)" text, "Talent (Male)" text, "Talent (Female)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the male winner the year after 1998 with Marleen Ren...
SELECT "Winner (Male)" FROM table_42478 WHERE "Winner (Female)" = 'marleen renders' AND "Year" > '1998'
### Instruction: CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join...
SELECT Year, COUNT(Year) FROM exhibition GROUP BY Year
### Instruction: CREATE TABLE table_520 ( "Frame size" text, "Width" real, "Height" real, "Mpix" text, "Aspect Ratio" text, "Maximum fps" real, "Maximum fps HDRx" real, "least compression at 24 fps" text, "least compression at maximum fps" text ) -- Using valid SQLite, answer the f...
SELECT "Frame size" FROM table_520 WHERE "Maximum fps" = '30'
### Instruction: CREATE TABLE table_79026 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the table...
SELECT MIN("Goals for") FROM table_79026 WHERE "Played" > '30'
### Instruction: CREATE TABLE table_48333 ( "Model Number" text, "Clock Speed" text, "L2 Cache" text, "FSB Speed" text, "Clock Multiplier" text, "Voltage Range" text, "Socket" text, "Release Date" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Clock Multiplier" FROM table_48333 WHERE "Model Number" = 'c7-m 764'
### Instruction: CREATE TABLE table_74860 ( "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. -- How many top 10s associated with 3 top 5s and u...
SELECT MAX("Top-10") FROM table_74860 WHERE "Top-5" = '3' AND "Cuts made" < '22'
### Instruction: CREATE TABLE table_13911 ( "Rank" real, "Airport" text, "City" text, "Code (IATA/ICAO)" text, "2009" real, "2010" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value in 2010 for an airport ranked higher than 3 locat...
SELECT COUNT("2010") FROM table_13911 WHERE "City" = 'cluj-napoca' AND "Rank" > '3'
### Instruction: CREATE TABLE table_name_88 ( surplus_deficit_ VARCHAR, _percentage_gdp VARCHAR, expenditure VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller t...
SELECT surplus_deficit_ FROM table_name_88 WHERE expenditure > 45.8 AND year < 2011 AND _percentage_gdp = "(0.9%)"
### Instruction: CREATE TABLE table_27649 ( "Letters" text, "Organization" text, "Nickname" text, "Founding Date" text, "Founding University" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the founding date if the nickname i...
SELECT "Founding Date" FROM table_27649 WHERE "Nickname" = 'Canes", "K-PSIs", "Diamonds", or "Angels'