instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_name_73 ( qiangshu VARCHAR, jianshu VARCHAR, rank VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of Qiangshu when rank is less than 10, with a total of 18.97, and Jianshu is larger...
SELECT COUNT(qiangshu) FROM table_name_73 WHERE rank < 10 AND total = 18.97 AND jianshu > 9.51
### Instruction: CREATE TABLE table_42213 ( "Volume:Issue" text, "Issue Date(s)" text, "Weeks on Top" real, "Song" text, "Artist" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Weeks on Top for the Volume:Issue 34:9-12? ### Resp...
SELECT SUM("Weeks on Top") FROM table_42213 WHERE "Volume:Issue" = '34:9-12'
### Instruction: CREATE TABLE table_9701 ( "Year" real, "Association" text, "Category" text, "Nominee" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the association for Indonesian Idol after 2005 with a Nominated Result? #...
SELECT "Association" FROM table_9701 WHERE "Nominee" = 'indonesian idol' AND "Year" > '2005' AND "Result" = 'nominated'
### Instruction: CREATE TABLE table_39404 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Overall is the highest one that has a Name of daimon shelton, a...
SELECT MAX("Overall") FROM table_39404 WHERE "Name" = 'daimon shelton' AND "Round" > '6'
### Instruction: CREATE TABLE table_50532 ( "Year" text, "Winner" text, "Runner-up" text, "Score" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the score when the venue is athens olympic stadium on 30 april 2011? ### Respons...
SELECT "Score" FROM table_50532 WHERE "Venue" = 'athens olympic stadium' AND "Year" = '30 april 2011'
### Instruction: CREATE TABLE table_203_784 ( id number, "no. in\nseries" number, "no. in\nseason" number, "performer" text, "appearance" text, "air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many performers appeared on the air dat...
SELECT COUNT("performer") FROM table_203_784 WHERE "air date" = '21 january 2011'
### Instruction: CREATE TABLE table_203_518 ( id number, "institution" text, "location" text, "nickname" text, "founded" number, "type" text, "enrollment" number, "joined\nmac" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- name each i...
SELECT "institution" FROM table_203_518 WHERE "enrollment" > 4000
### Instruction: CREATE TABLE table_73915 ( "Outcome" text, "No." text, "Date" text, "Championship" 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. -- Marat Safin is the op...
SELECT "Championship" FROM table_73915 WHERE "Opponent in the final" = 'Marat Safin'
### Instruction: CREATE TABLE table_64382 ( "Rank" real, "Lane" real, "Athlete" text, "Nationality" text, "Time" real, "React" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest lane in the Czech Republic and a time larger than 21...
SELECT MIN("Lane") FROM table_64382 WHERE "Nationality" = 'czech republic' AND "Time" > '21.05'
### Instruction: CREATE TABLE table_203_874 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did it take to walk 50 km in the 2004 ol...
SELECT "notes" FROM table_203_874 WHERE "event" = '50 km walk' AND "year" = 2004
### Instruction: CREATE TABLE table_62841 ( "Tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the 2010 when they had a Q2 in 2009? ### Response:
SELECT "2010" FROM table_62841 WHERE "2009" = 'q2'
### Instruction: CREATE TABLE table_31249 ( "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. -- What is t...
SELECT "Original air date" FROM table_31249 WHERE "No. in series" = '31'
### Instruction: CREATE TABLE table_24189 ( "No in Series" 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 provided above. -- ...
SELECT COUNT("Original air date") FROM table_24189 WHERE "Title" = 'Out of Sight'
### Instruction: CREATE TABLE table_27868 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Settlement" FROM table_27868 WHERE "Cyrillic Name Other Names" = 'Александрово'
### Instruction: CREATE TABLE table_75912 ( "Rank" real, "Name" text, "Built" real, "Height" text, "Floors" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Floors, when Built is greater than 1970, and when Name is NV Building 3? ...
SELECT MIN("Floors") FROM table_75912 WHERE "Built" > '1970' AND "Name" = 'nv building 3'
### Instruction: CREATE TABLE table_74242 ( "No. in series" text, "No. in season" text, "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. -- the episo...
SELECT "No. in series" FROM table_74242 WHERE "Directed by" = 'Art Dielhenn'
### Instruction: CREATE TABLE acceptance ( submission_id number, workshop_id number, result text ) CREATE TABLE submission ( submission_id number, scores number, author text, college text ) CREATE TABLE workshop ( workshop_id number, date text, venue text, name text ) -- ...
SELECT author FROM submission WHERE NOT submission_id IN (SELECT submission_id FROM acceptance)
### Instruction: CREATE TABLE table_77789 ( "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. -- In the match where north melbou...
SELECT "Home team score" FROM table_77789 WHERE "Away team" = 'north melbourne'
### Instruction: CREATE TABLE table_23806 ( "BSE Code" text, "Company" text, "City" text, "GICS Sector" text, "Free float" text, "Index weighting (%" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every company with an index weighting % ...
SELECT "Company" FROM table_23806 WHERE "Index weighting (%" = '1' AND "City" = 'Dimitrovgrad'
### Instruction: CREATE TABLE table_53102 ( "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 "Date" FROM table_53102 WHERE "Winning driver" = 'rodger ward'
### Instruction: CREATE TABLE table_name_15 ( name VARCHAR, province VARCHAR, rank VARCHAR, type VARCHAR, capacity___mw__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name when the type is hydro, the capacity (mw) is less than 478, ...
SELECT name FROM table_name_15 WHERE type = "hydro" AND capacity___mw__ < 478 AND rank > 85 AND province = "quebec"
### Instruction: CREATE TABLE table_73064 ( "Parliament" text, "Name" text, "Period in office" text, "Birth and death years" text, "General election contested" real, "Constituency contested" text, "Political party" text ) -- Using valid SQLite, answer the following questions for the tables...
SELECT "Parliament" FROM table_73064 WHERE "General election contested" = '1997'
### Instruction: CREATE TABLE table_58975 ( "Provider" text, "Years" text, "Free or pay" text, "No. of channels" text, "Colour" text, "Digital" text, "Transmission" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years are listed for ana...
SELECT "Years" FROM table_58975 WHERE "Transmission" = 'analogue cable' AND "No. of channels" = '35'
### Instruction: CREATE TABLE table_203_356 ( id number, "type" text, "diagonal (mm)" text, "width (mm)" text, "height (mm)" text, "area (mm2)" text, "stops (area)" number, "crop factor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how...
SELECT COUNT("type") FROM table_203_356 WHERE "height (mm)" > 5
### Instruction: CREATE TABLE table_46403 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To par when the score was 72-67-68-71=278? ### Respo...
SELECT "To par" FROM table_46403 WHERE "Score" = '72-67-68-71=278'
### Instruction: CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text ) -- Using ...
SELECT reign FROM wrestler GROUP BY reign ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_28114 ( "Series #" real, "Season #" real, "Title" text, "Director" text, "Writer(s)" text, "Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the writer who wrote the episode that was aired on Se...
SELECT "Writer(s)" FROM table_28114 WHERE "Airdate" = 'September 11, 1972'
### Instruction: CREATE TABLE table_16737 ( "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 COUNT("Date") FROM table_16737 WHERE "Race" = 'Monaco Grand Prix'
### Instruction: CREATE TABLE table_58553 ( "Player" text, "Pos." text, "From" text, "School/Country" text, "Rebs" real, "Asts" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the high assist total for players from 2010 and under 76 rebou...
SELECT MAX("Asts") FROM table_58553 WHERE "From" = '2010' AND "Rebs" < '76'
### 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. -- What is av...
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY job
### Instruction: CREATE TABLE table_19031 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the the mens singles with mens...
SELECT "Mens singles" FROM table_19031 WHERE "Mens doubles" = 'Kaj Lindfors Kaj Osterberg'
### Instruction: CREATE TABLE table_name_67 ( canterbury VARCHAR, central_districts VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which of the Canterbury has a Central District of 276* M.D. Crowe & P.S. Briasco V (C) 1986/87? ### Response:
SELECT canterbury FROM table_name_67 WHERE central_districts = "276* m.d. crowe & p.s. briasco v (c) 1986/87"
### Instruction: CREATE TABLE table_203_758 ( id number, "no." number, "dub no." number, "english dubbed title / english subbed title\noriginal japanese title" text, "original air date" text, "english air date" text ) -- Using valid SQLite, answer the following questions for the tables provide...
SELECT COUNT("english dubbed title / english subbed title\noriginal japanese title") FROM table_203_758
### Instruction: CREATE TABLE table_71627 ( "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 average number of silver medals with more than 6 gold meals and...
SELECT AVG("Silver") FROM table_71627 WHERE "Gold" > '6' AND "Bronze" < '5'
### Instruction: CREATE TABLE table_9953 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ($)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To par of the Player with a Score of 71-74-72-72=289? #...
SELECT "To par" FROM table_9953 WHERE "Score" = '71-74-72-72=289'
### Instruction: CREATE TABLE table_13464 ( "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 Episode on TV Asahi Station has Rating of 12.0%? ### ...
SELECT "Episodes" FROM table_13464 WHERE "Average Ratings" = '12.0%' AND "TV Station" = 'tv asahi'
### Instruction: CREATE TABLE table_73322 ( "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 "#" FROM table_73322 WHERE "Directed by" = 'Craig Ross, Jr.'
### Instruction: CREATE TABLE table_35985 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the surface when the opponent was judith wiesner, and th...
SELECT "Surface" FROM table_35985 WHERE "Outcome" = 'winner' AND "Opponent" = 'judith wiesner'
### Instruction: CREATE TABLE table_11894 ( "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 the Home team was st kilda, ...
SELECT "Away team score" FROM table_11894 WHERE "Home team" = 'st kilda'
### Instruction: CREATE TABLE table_67757 ( "Rank" real, "Time" text, "Wind (m/s)" text, "Athlete" text, "Nation" text, "Date" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the athlete for bulgaria with rank less than ...
SELECT "Athlete" FROM table_67757 WHERE "Rank" < '22' AND "Nation" = 'bulgaria'
### Instruction: CREATE TABLE table_45044 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country did the player with the score line 73-74-72-64=283 fr...
SELECT "Country" FROM table_45044 WHERE "Score" = '73-74-72-64=283'
### Instruction: CREATE TABLE table_203_501 ( id number, "title" text, "genre" text, "sub\u00addivisions" text, "libretto" text, "premiere date" text, "place, theatre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are the number of tit...
SELECT COUNT(DISTINCT "title") FROM table_203_501 WHERE "premiere date" = 9
### Instruction: CREATE TABLE table_1878 ( "Episode" text, "Garfield Episode 1" text, "U.S. Acres Episode" text, "Garfield Episode 2" text, "Original Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Garfield episode 2 is the pie-eyed pi...
SELECT "Garfield Episode 2" FROM table_1878 WHERE "Garfield Episode 1" = 'The Pie-Eyed Piper'
### Instruction: CREATE TABLE table_14551 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "NFL Recap" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which week's game had an...
SELECT "Week" FROM table_14551 WHERE "Attendance" = '90,138'
### Instruction: CREATE TABLE table_10061 ( "Railway" text, "Builder" text, "Built" text, "Wheels" text, "Location" text, "ObjectNumber" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Builder when the wheels were 4-4-0 and the railwa...
SELECT "Builder" FROM table_10061 WHERE "Wheels" = '4-4-0' AND "Railway" = 'gcr'
### Instruction: CREATE TABLE table_31985 ( "Year" real, "Album" text, "Song" text, "Label" text, "Catalog#" text, "Format" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Album had a year less than 2005 with a Label by ...
SELECT "Album" FROM table_31985 WHERE "Year" < '2005' AND "Label" = 'ministry of sound'
### Instruction: CREATE TABLE table_34782 ( "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent from the final with a Partner n...
SELECT "Opponent in the final" FROM table_34782 WHERE "Partner" = 'jorgelina cravero'
### Instruction: CREATE TABLE table_79210 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has a rank smaller than 6, a time of 6:32.32 and notes of FB? ### Response:
SELECT "Country" FROM table_79210 WHERE "Rank" < '6' AND "Notes" = 'fb' AND "Time" = '6:32.32'
### Instruction: CREATE TABLE table_22446 ( "Position" real, "Team" text, "Played" real, "Wins" real, "Draws" real, "Losses" real, "Scored" real, "Conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins ...
SELECT MAX("Wins") FROM table_22446 WHERE "Conceded" = '18'
### Instruction: CREATE TABLE table_29713 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Table" text, "Incoming manager" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Outgoing manager" FROM table_29713 WHERE "Incoming manager" = 'Štefan Tarkovič'
### Instruction: CREATE TABLE table_4899 ( "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. -- Who played a home team that scor...
SELECT "Away team score" FROM table_4899 WHERE "Home team score" = '18.9 (117)'
### Instruction: CREATE TABLE table_74738 ( "Municipality" text, "Inhabitants" real, "Mayor" text, "Party" text, "Election" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many elections had more than 36,599 inhabitants when Mayor was giovanni ma...
SELECT COUNT("Election") FROM table_74738 WHERE "Inhabitants" > '36,599' AND "Mayor" = 'giovanni manildo'
### Instruction: CREATE TABLE table_203_595 ( id number, "year" number, "division" number, "league" text, "reg. season" text, "playoffs" text, "open cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did they not qualify for ...
SELECT COUNT(*) FROM table_203_595 WHERE "playoffs" = 'did not qualify' AND "open cup" = 'did not qualify'
### Instruction: CREATE TABLE table_53352 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which home team scored a 15.16 ...
SELECT "Home team" FROM table_53352 WHERE "Home team score" = '15.16 (106)'
### Instruction: CREATE TABLE table_83 ( "Particulars and Characteristics" text, "Shivalik Zone" text, "Mid-Hill Zone" text, "High hill zone" text, "Trance- n Himalaya Zone" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percentage of th...
SELECT "Trance- n Himalaya Zone" FROM table_83 WHERE "High hill zone" = '25%'
### Instruction: CREATE TABLE table_14247 ( "Elector" text, "Place of birth" text, "Cardinalatial title" text, "Elevated" text, "Elevator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed for the Elevator, that also has the Cardinalatia...
SELECT "Elevator" FROM table_14247 WHERE "Cardinalatial title" = 'deacon of s. maria in portico'
### Instruction: CREATE TABLE table_2830 ( "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_2830 WHERE "Record" = '50-26'
### Instruction: CREATE TABLE table_11457 ( "Year" real, "Boys' Singles" text, "Girls' Singles" text, "Boys' Doubles" text, "Girls' Doubles" text, "Mixed Doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the earliest year that had...
SELECT MIN("Year") FROM table_11457 WHERE "Mixed Doubles" = 'wang wei lu ying'
### Instruction: CREATE TABLE table_1531 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
SELECT "Lost" FROM table_1531 WHERE "Points for" = '539'
### Instruction: CREATE TABLE table_62812 ( "Club" text, "Winners" real, "Last final won" text, "Runners-up" real, "Last final lost" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the club when the runners-up is 1 and the last final won is 1...
SELECT "Club" FROM table_62812 WHERE "Runners-up" = '1' AND "Last final won" = '1999'
### Instruction: CREATE TABLE table_73456 ( "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 "Team" FROM table_73456 WHERE "Date" = 'February 27'
### Instruction: CREATE TABLE table_name_31 ( first_year INTEGER, notes VARCHAR, final_year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average First year that has a Notes of replaced by us 12 when i-94 replaced us 12, and a Final year lar...
SELECT AVG(first_year) FROM table_name_31 WHERE notes = "replaced by us 12 when i-94 replaced us 12" AND final_year > 1961
### Instruction: CREATE TABLE table_7580 ( "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 total having a bronze value over 1, silver under 5, and ranked 9...
SELECT "Total" FROM table_7580 WHERE "Bronze" > '1' AND "Silver" < '5' AND "Rank" = '9'
### Instruction: CREATE TABLE table_203_812 ( 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. -- which nation was not in the top 10 iran or germa...
SELECT "nation" FROM table_203_812 WHERE "nation" IN ('iran', 'germany') AND "rank" > 10
### Instruction: CREATE TABLE table_203_573 ( id number, "name" text, "rank - 2000" number, "number" number, "country of origin" text, "england - 2001" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what name is listed before davis ? ### Respo...
SELECT "name" FROM table_203_573 WHERE id = (SELECT id FROM table_203_573 WHERE "name" = 'davis') - 1
### Instruction: CREATE TABLE table_13828 ( "Date" real, "Ships sunk (Pola)" text, "Tonnage" text, "U-boats destroyed (KuK)" text, "U-boats destroyed (Pola)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the highest Date listed that has U-bo...
SELECT MAX("Date") FROM table_13828 WHERE "U-boats destroyed (Pola)" = '1'
### Instruction: CREATE TABLE table_36932 ( "Matches" real, "Innings" real, "Not out" real, "Runs" real, "High Score" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many runs were there when the high score was 55 and there we...
SELECT SUM("Runs") FROM table_36932 WHERE "High Score" = '55' AND "Innings" > '12'
### Instruction: CREATE TABLE table_21240 ( "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 "Team" FROM table_21240 WHERE "Date" = 'January 2'
### Instruction: CREATE TABLE table_5821 ( "Placing" real, "Team" text, "Players" text, "Seeding" text, "Playoffs W-L" text, "Matches W-L" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Players of judith wiesner and alex antonitsch had what matc...
SELECT "Matches W-L" FROM table_5821 WHERE "Players" = 'judith wiesner and alex antonitsch'
### Instruction: CREATE TABLE table_29566 ( "A\u00f1o" real, "Trabajo nominado" text, "Premio" text, "Categor\u00eda" text, "Country" text, "Resultado" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the a o was 2012, who was the county? #...
SELECT "Country" FROM table_29566 WHERE "A\u00f1o" = '2012'
### Instruction: CREATE TABLE table_40298 ( "Nation" text, "Sport" 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 total number of medals of the nation with less than 1 ...
SELECT MAX("Total") FROM table_40298 WHERE "Bronze" < '1' AND "Silver" < '0'
### Instruction: CREATE TABLE table_62461 ( "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. -- Of the 1978 winners, who had finish totals smaller than 292? ##...
SELECT "Finish" FROM table_62461 WHERE "Total" < '292' AND "Year(s) won" = '1978'
### Instruction: CREATE TABLE table_39683 ( "Storm name" text, "Dates active" text, "Max 1-min wind mph (km/h)" text, "Min. press. ( mbar )" text, "Damage (millions USD )" text, "Deaths" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what date d...
SELECT "Dates active" FROM table_39683 WHERE "Storm name" = 'irwin'
### Instruction: CREATE TABLE table_3412 ( "Nations" text, "Competition" text, "Teams" real, "Established" real, "Latest Year" text, "Winner" text, "Runner-Up" text, "Tier/Division" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which co...
SELECT "Competition" FROM table_3412 WHERE "Winner" = 'Toronto City Saints'
### Instruction: CREATE TABLE table_21389 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Language(s)" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What name was used for ...
SELECT "Film title used in nomination" FROM table_21389 WHERE "Original title" = 'The Black Tulip'
### Instruction: CREATE TABLE table_76397 ( "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 average top-5 when the cuts made is...
SELECT AVG("Top-5") FROM table_76397 WHERE "Cuts made" > '34'
### Instruction: CREATE TABLE table_38674 ( "Make" text, "Year placed in service" text, "Quantity" real, "Number of seats" real, "Wheelchair accessible? ()" text, "Current status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the curren...
SELECT "Current status" FROM table_38674 WHERE "Make" = 'gm advanced design' AND "Number of seats" > '41'
### Instruction: CREATE TABLE table_23915_4 ( translation VARCHAR, ipa___são_paulo__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original of the ipa ( s o paulo ) translation d t i t mad su m n ? ### Response:
SELECT translation FROM table_23915_4 WHERE ipa___são_paulo__ = "dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə"
### Instruction: CREATE TABLE table_58489 ( "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 for San Marino with less than 82 total and less than 3 golds? #...
SELECT MAX("Bronze") FROM table_58489 WHERE "Total" < '82' AND "Nation" = 'san marino' AND "Gold" < '3'
### Instruction: CREATE TABLE table_46343 ( "Title" text, "Release date" text, "Format" text, "Code" text, "UK Singles Chart" text, "US Modern Rock" text, "Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the UK singles chart ra...
SELECT "UK Singles Chart" FROM table_46343 WHERE "Release date" = '26 february 1990'
### Instruction: CREATE TABLE table_15433 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ? #...
SELECT MIN("Grid") FROM table_15433 WHERE "Rider" = 'sylvain guintoli' AND "Laps" > '32'
### Instruction: CREATE TABLE table_15811 ( "Department" text, "Head" text, "Full professors" real, "Honorary professors" real, "Lecturers" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many full professors work under Hartmut Kliemt with more t...
SELECT COUNT("Full professors") FROM table_15811 WHERE "Head" = 'hartmut kliemt' AND "Lecturers" > '0'
### Instruction: CREATE TABLE table_209 ( "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 "Report" FROM table_209 WHERE "Race" = 'United States Grand Prix West'
### Instruction: CREATE TABLE table_203_251 ( id number, "place" text, "player" text, "country" text, "score" text, "to par" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which players have the same score as ed sneed ? ### Response:
SELECT "player" FROM table_203_251 WHERE "player" <> 'ed sneed' AND "score" = (SELECT "score" FROM table_203_251 WHERE "player" = 'ed sneed')
### Instruction: CREATE TABLE table_38306 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "High assists" FROM table_38306 WHERE "Team" = 'milwaukee'
### Instruction: CREATE TABLE table_22039 ( "Team" text, "Average" text, "Points" real, "Played" real, "1991-92" text, "1992-93" text, "1993-94" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of points for newell's old ...
SELECT COUNT("Points") FROM table_22039 WHERE "Team" = 'Newell''s Old Boys'
### Instruction: CREATE TABLE table_42421 ( "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. -- What is the sum of the pick numbers for the player that went to San Miguel B...
SELECT SUM("Pick") FROM table_42421 WHERE "PBA team" = 'san miguel beermen' AND "College" = 'san sebastian'
### Instruction: CREATE TABLE table_33873 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number in attendance for the game after week 8 that was on November 2...
SELECT COUNT("Attendance") FROM table_33873 WHERE "Week" > '8' AND "Date" = 'november 25, 1979'
### Instruction: CREATE TABLE table_45553 ( "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in Final" text, "Score in Final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Partner of the match with a Score ...
SELECT "Partner" FROM table_45553 WHERE "Score in Final" = '5–7, 4–6'
### Instruction: CREATE TABLE table_name_80 ( land___sq_mi__ INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of land for ANSI code of 2390496 and population less than 7,284 ### Response:
SELECT SUM(land___sq_mi__) FROM table_name_80 WHERE ansi_code = 2390496 AND pop__2010_ < 7 OFFSET 284
### Instruction: CREATE TABLE table_56553 ( "Year" text, "Type" text, "Nos." text, "GSWR Class" real, "GSWR Nos." text, "GSR Class" text, "Inchicore Class" text, "Withdrawn" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which GSWR Class...
SELECT "GSWR Class" FROM table_56553 WHERE "Year" = '1893'
### Instruction: CREATE TABLE table_203_352 ( id number, "position" number, "swara" text, "short name" text, "notation" text, "mnemonic" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- list each pair of swaras that share the same position . ###...
SELECT "swara" FROM table_203_352 WHERE "position" IN (SELECT "position" FROM table_203_352 GROUP BY "position" HAVING COUNT(*) > 1)
### Instruction: CREATE TABLE table_17192 ( "DVD Name" text, "Released" text, "Audio" text, "Aspect Ratio" text, "Duration" text, "Number of Episodes" real, "Num of Discs" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of th...
SELECT "DVD Name" FROM table_17192 WHERE "Num of Discs" > '2.0'
### Instruction: CREATE TABLE table_73381 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the earlier round ...
SELECT MIN("Round") FROM table_73381 WHERE "Fastest Lap" = 'Takashi Kogure'
### Instruction: CREATE TABLE table_name_63 ( nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)? ### ...
SELECT nhl_team FROM table_name_63 WHERE college_junior_club_team__league_ = "shattuck-saint mary's school (midget major aaa)"
### Instruction: CREATE TABLE table_name_47 ( decile INTEGER, area VARCHAR, authority VARCHAR, roll VARCHAR, gender VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest decile with a Roll larger than 34, a Gender of coed, and an Aut...
SELECT MAX(decile) FROM table_name_47 WHERE roll > 34 AND gender = "coed" AND authority = "state integrated" AND area = "georgetown"
### Instruction: CREATE TABLE files ( duration INTEGER, f_id VARCHAR ) CREATE TABLE song ( languages VARCHAR, resolution INTEGER, f_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the maximum duration and resolution of songs grouped a...
SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages
### Instruction: CREATE TABLE table_48123 ( "Date" text, "Opponent" text, "Venue" text, "Score" text, "Attendance" text, "Scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score when the attendance shows TBC, and Sidley United ...
SELECT "Score" FROM table_48123 WHERE "Attendance" = 'tbc' AND "Opponent" = 'sidley united'
### Instruction: CREATE TABLE table_204_192 ( id number, "year" number, "team" text, "co-drivers" text, "car" text, "class" text, "laps" number, "pos." text, "class\npos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the f...
SELECT MIN("year") FROM table_204_192 WHERE "pos." <= 10
### Instruction: CREATE TABLE table_22732 ( "State and District of Columbia" text, "Obese adults" text, "Overweight (incl. obese) adults" text, "Obese children and adolescents" text, "Obesity rank" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
SELECT MIN("Obesity rank") FROM table_22732 WHERE "State and District of Columbia" = 'Utah'