instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_57320 ( "Rank" real, "Name" text, "Nation" text, "Placings" text, "Figures" real, "Free" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of the figure skating scores whose tota...
SELECT SUM("Figures") FROM table_57320 WHERE "Total" < '117.78'
### Instruction: CREATE TABLE table_2170 ( "English Name" text, "Simplified Chinese" text, "Traditional Chinese" text, "Pinyin" text, "Area" real, "Population" real, "Density" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tradit...
SELECT "Traditional Chinese" FROM table_2170 WHERE "Area" = '181'
### Instruction: CREATE TABLE table_name_31 ( english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the english name of the ministry of defense with an abbreviation of nda b ei-da...
SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(防衛大)"
### Instruction: CREATE TABLE table_2597876_2 ( top_10 VARCHAR, team_s_ VARCHAR, avg_finish VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9? ### Response:
SELECT top_10 FROM table_2597876_2 WHERE team_s_ = "#10 Phil Parsons Racing" AND avg_finish = "22.9"
### Instruction: CREATE TABLE table_name_6 ( floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and ...
SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue"
### Instruction: CREATE TABLE table_name_78 ( league INTEGER, venue VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lio...
SELECT MIN(league) AS championships FROM table_name_78 WHERE venue = "penn state ice pavilion" AND club = "penn state nittany lions men's ice hockey"
### Instruction: CREATE TABLE table_40582 ( "City" text, "2011 Estimate" real, "2010 Census" real, "2000 Census" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the 2010 census when the 2011 estimate was 410? ### Response:
SELECT SUM("2010 Census") FROM table_40582 WHERE "2011 Estimate" = '410'
### Instruction: CREATE TABLE table_65865 ( "Rank" real, "Player" text, "County" text, "Tally" text, "Total" real, "Opposition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average rank of the match where offaly was the opposition ...
SELECT AVG("Rank") FROM table_65865 WHERE "Opposition" = 'offaly' AND "Total" > '9'
### Instruction: CREATE TABLE table_name_89 ( total INTEGER, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest total that has draws less than 2 and wins less than 1, los...
SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1
### Instruction: CREATE TABLE table_64490 ( "Japanese Title" text, "Romaji Title" text, "TV Station" text, "Episodes" real, "Average Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the Japanese title that had 11 episodes, what is the ave...
SELECT "Average Ratings" FROM table_64490 WHERE "Episodes" = '11' AND "Japanese Title" = 'サプリ'
### Instruction: CREATE TABLE table_4966 ( "Round" text, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which College/Junior/Club Team (League) did the player in...
SELECT "College/Junior/Club Team (League)" FROM table_4966 WHERE "Round" = '6'
### Instruction: CREATE TABLE table_51644 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the crowd when the awa...
SELECT MIN("Crowd") FROM table_51644 WHERE "Away team" = 'hawthorn'
### Instruction: CREATE TABLE table_204_884 ( id number, "medal" text, "name" text, "sport" text, "event" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- was there more gold medals won than silver ? ### Response:
SELECT (SELECT COUNT(*) FROM table_204_884 WHERE "medal" = 'gold') > (SELECT COUNT(*) FROM table_204_884 WHERE "medal" = 'silver')
### Instruction: CREATE TABLE table_57990 ( "Player" text, "Car." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many carries for the RB averaging 4.7, and a long of over 30 yards? ### R...
SELECT SUM("Car.") FROM table_57990 WHERE "Avg." = '4.7' AND "Long" > '30'
### Instruction: CREATE TABLE table_63244 ( "Country/Territory" text, "Established" real, "Degree" text, "Regional/Offshore" text, "IMED/Avicenna Listed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year that the medical school...
SELECT AVG("Established") FROM table_63244 WHERE "Country/Territory" = 'dominican republic'
### Instruction: CREATE TABLE table_35346 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Picks have a Position of defensive end, and an Overall small...
SELECT COUNT("Pick #") FROM table_35346 WHERE "Position" = 'defensive end' AND "Overall" < '33'
### Instruction: CREATE TABLE table_69569 ( "Arena/Venue" text, "Home Campus" text, "Location" text, "Province/Region" text, "Maximum Seating Capacity" text, "Year Opened" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is the Cagayan de Or...
SELECT "Province/Region" FROM table_69569 WHERE "Location" = 'cagayan de oro city'
### Instruction: CREATE TABLE table_54009 ( "Year" text, "TCKL" real, "SACK" real, "P/KO RET" real, "YARDS" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest YARDS with a TCKL more than 51 and less than 2 SACK? ### Response:
SELECT MAX("YARDS") FROM table_54009 WHERE "TCKL" > '51' AND "SACK" < '2'
### Instruction: CREATE TABLE table_3568 ( "District" real, "Incumbent" text, "Party" text, "Elected" text, "Status" text, "2010 Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest numbred district that has brian w. th...
SELECT MAX("District") FROM table_3568 WHERE "Incumbent" = 'Brian W. Thomas'
### Instruction: CREATE TABLE table_67735 ( "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's the overall average that has a round less than 7, and a Pick #...
SELECT AVG("Overall") FROM table_67735 WHERE "Round" < '7' AND "Pick #" = '4'
### Instruction: CREATE TABLE table_4184 ( "#" text, "Project" text, "Shipyard" text, "Laid down" text, "Launched" text, "Commissioned" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which vessel area was called for on novembe...
SELECT "Shipyard" FROM table_4184 WHERE "Commissioned" = 'November 30, 1970'
### Instruction: CREATE TABLE table_72868 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT "Date" FROM table_72868 WHERE "Team" = 'Memphis'
### Instruction: CREATE TABLE table_203_663 ( id number, "country" text, "zone" text, "national federation" text, "#gm" number, "#fide" number, "national championship" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which country has the most...
SELECT "country" FROM table_203_663 WHERE "country" <> 'germany' ORDER BY "#fide" DESC LIMIT 1
### Instruction: CREATE TABLE table_14651 ( "City" text, "Province/Region" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which airport is in Tokyo and has an ICAO of rjtt? ### Response...
SELECT "Airport" FROM table_14651 WHERE "City" = 'tokyo' AND "ICAO" = 'rjtt'
### Instruction: CREATE TABLE table_2914 ( "Artist" text, "Song (English translation)" text, "Songwriter(s)" text, "Position" real, "Date Eliminated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of 'k rleken v nder allt' (the ...
SELECT "Position" FROM table_2914 WHERE "Song (English translation)" = 'Kärleken vänder allt" (The love turns everything)'
### Instruction: CREATE TABLE table_22625 ( "Country" text, "TV Network(s)" text, "Series Premiere" text, "Weekly Schedule" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every status with a weekly schedule of Monday to Thursd...
SELECT "Status" FROM table_22625 WHERE "Weekly Schedule" = 'Monday to Thursday @ 11:00 pm'
### Instruction: CREATE TABLE table_1728 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
SELECT COUNT("Series") FROM table_1728 WHERE "Date" = 'April 26'
### Instruction: CREATE TABLE table_67095 ( "Name" text, "Years" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total decile in the area of Normanby with a roller smaller tha...
SELECT SUM("Decile") FROM table_67095 WHERE "Area" = 'normanby' AND "Roll" < '157'
### Instruction: CREATE TABLE table_33018 ( "Incident No." text, "Date" text, "Place" text, "Killed" real, "Injured" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed? ...
SELECT MIN("Injured") FROM table_33018 WHERE "Place" = 'mayurbhanj, odisha' AND "Killed" < '1'
### Instruction: CREATE TABLE table_9451 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Home Team, when Date is 18 February 1956, and when Tie No is 3? ### Response:...
SELECT "Home team" FROM table_9451 WHERE "Date" = '18 february 1956' AND "Tie no" = '3'
### Instruction: CREATE TABLE table_161591_2 ( operating_profit__s$m_ VARCHAR, expenditure__s$m_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8? ### Response:
SELECT operating_profit__s$m_ FROM table_161591_2 WHERE expenditure__s$m_ = "12,127.8"
### Instruction: CREATE TABLE table_16696 ( "Year" real, "Winners" text, "Grand Finalist" text, "Scores" text, "Venue" text, "Crowd" real, "Margin" real, "Season Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the winners w...
SELECT "Winners" FROM table_16696 WHERE "Season Result" = '7th'
### Instruction: CREATE TABLE table_38403 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many bronze medals did Chinese Taipei win with less than 0 gold? ### ...
SELECT COUNT("Bronze") FROM table_38403 WHERE "Nation" = 'chinese taipei' AND "Gold" < '0'
### Instruction: CREATE TABLE table_15195 ( "Name" text, "Hair Color:" text, "Eye Color:" text, "Release Date" text, "Retired?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the hair color of Kool Kayla with release date of January 2009? ...
SELECT "Hair Color:" FROM table_15195 WHERE "Release Date" = 'january 2009' AND "Name" = 'kool kayla'
### Instruction: CREATE TABLE table_53041 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mean pick when the play is Marc Lewis (lhp) and the round is less than 20? ...
SELECT AVG("Pick") FROM table_53041 WHERE "Player" = 'marc lewis (lhp)' AND "Round" < '20'
### Instruction: CREATE TABLE table_57619 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How large was the crowd at the ...
SELECT SUM("Crowd") FROM table_57619 WHERE "Venue" = 'kardinia park'
### Instruction: CREATE TABLE table_66694 ( "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 number of Gold medals for the Nation with a Total of 5 and Rank...
SELECT MIN("Gold") FROM table_66694 WHERE "Total" = '5' AND "Rank" > '1'
### Instruction: CREATE TABLE member ( member_id number, name text, country text, college_id number ) CREATE TABLE round ( round_id number, member_id number, decoration_theme text, rank_in_round number ) CREATE TABLE college ( college_id number, name text, leader_name text,...
SELECT name, country FROM member
### Instruction: CREATE TABLE table_66632 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Drawn has a Name of erc lechbruck, and Points smaller than 17? ...
SELECT COUNT("Drawn") FROM table_66632 WHERE "Name" = 'erc lechbruck' AND "Points" < '17'
### Instruction: CREATE TABLE table_5851 ( "Designation" text, "Car numbers" text, "Manufacturer" text, "Model No." text, "First used" text, "Quantity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Designation has a Manufacturer of siemen...
SELECT "Designation" FROM table_5851 WHERE "Manufacturer" = 'siemens' AND "Quantity" = '52'
### Instruction: CREATE TABLE table_6012 ( "Type" text, "wheelbase" text, "M39 series" text, "M809 series" text, "M939 series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the M809 seris with M939 series of M931/932 ### Response:
SELECT "M809 series" FROM table_6012 WHERE "M939 series" = 'm931/932'
### Instruction: CREATE TABLE table_12889 ( "Engine" text, "Cyl." text, "Power" text, "Torque" text, "Engine code" text, "0\u2013100km/h (sec.)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Engine 2.3 16v has how many cylinders? ### Response...
SELECT "Cyl." FROM table_12889 WHERE "Engine" = '2.3 16v'
### Instruction: CREATE TABLE table_24190 ( "Season" real, "Season premiere" text, "Season finale" text, "TV Season" text, "Rank" text, "Viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the rank that premiered september...
SELECT "Rank" FROM table_24190 WHERE "Season premiere" = 'September 25, 2001'
### Instruction: CREATE TABLE table_30186 ( "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. -- Name the ...
SELECT COUNT("No. in season") FROM table_30186 WHERE "Title" = 'The Battle of Evermore'
### Instruction: CREATE TABLE table_13003460_1 ( the_icelandic_of_the_glossary VARCHAR, the_basque_of_the_glossary VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the iclandic of the glossary for presenta for mi locaria ### Response:
SELECT the_icelandic_of_the_glossary FROM table_13003460_1 WHERE the_basque_of_the_glossary = "presenta for mi locaria"
### Instruction: CREATE TABLE table_58468 ( "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 highest rank for a nation with 26 golds and over 17 silvers? ...
SELECT MAX("Rank") FROM table_58468 WHERE "Gold" = '26' AND "Silver" > '17'
### Instruction: CREATE TABLE table_78996 ( "Time" text, "Show Name" text, "Local/Networked" text, "Ad Freq" text, "News Freq" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Ad Freq has a News Freq of 60 minutes, and a Local/Networked of local?...
SELECT "Ad Freq" FROM table_78996 WHERE "News Freq" = '60 minutes' AND "Local/Networked" = 'local'
### Instruction: CREATE TABLE table_34040 ( "Game #" real, "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Points of 31, and a Score of 1 - 5 is what home? ### ...
SELECT "Home" FROM table_34040 WHERE "Points" = '31' AND "Score" = '1 - 5'
### Instruction: CREATE TABLE table_70847 ( "Rider" text, "Matches" real, "Rides" real, "Bonus Pts" real, "Total Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rides did it take to get less than 3 bonus pts in no more than 7 matches...
SELECT MIN("Rides") FROM table_70847 WHERE "Bonus Pts" < '3' AND "Matches" < '7'
### Instruction: CREATE TABLE table_16645 ( "Edition" real, "Zone" text, "Round" text, "Date" text, "Against" text, "Surface" text, "Opponent" text, "Outcome" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rou...
SELECT COUNT("Result") FROM table_16645 WHERE "Round" = '2R'
### Instruction: CREATE TABLE table_57724 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the away te...
SELECT "Away team score" FROM table_57724 WHERE "Venue" = 'arden street oval'
### Instruction: CREATE TABLE table_name_41 ( green_party INTEGER, town VARCHAR, fine_gael VARCHAR, fianna_fáil VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many are in the Green Party with a Fine Gael of less than 4 and a Fianna Fail of less t...
SELECT SUM(green_party) FROM table_name_41 WHERE fine_gael < 4 AND fianna_fáil < 2 AND town = "athy"
### Instruction: CREATE TABLE table_name_50 ( no_result INTEGER, year VARCHAR, _percentage_win VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of No Result has a % Win of 100.00% and a Played larger than 4 in 2012? ### Resp...
SELECT MIN(no_result) FROM table_name_50 WHERE _percentage_win = "100.00%" AND played > 4 AND year = "2012"
### Instruction: CREATE TABLE table_10129 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was total size of the crow...
SELECT SUM("Crowd") FROM table_10129 WHERE "Home team" = 'north melbourne'
### Instruction: CREATE TABLE table_36872 ( "Club" text, "Sport" text, "League" text, "Venue" text, "Established" real, "Championships" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- During the Apple Bowl having 0 championships, what was the est...
SELECT MAX("Established") FROM table_36872 WHERE "Championships" = '0' AND "Venue" = 'apple bowl'
### Instruction: CREATE TABLE table_18820 ( "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 "Game" FROM table_18820 WHERE "Date" = 'March 7'
### Instruction: CREATE TABLE table_18926 ( "Date" text, "Winning Team" text, "Score" text, "Winning Pitcher" text, "Losing Pitcher" text, "Attendance" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the losing pitche...
SELECT "Losing Pitcher" FROM table_18926 WHERE "Attendance" = '40583'
### Instruction: CREATE TABLE table_name_77 ( bike_no INTEGER, equipment VARCHAR, position VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most noteworthy Bike No that has a Position bigger than 1, and a Points bigger than ...
SELECT MAX(bike_no) FROM table_name_77 WHERE position > 1 AND points > 369 AND equipment = "zabel-wsp"
### Instruction: CREATE TABLE table_47591 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Nelson Philippe drove with a grid larger than 16, what was the ti...
SELECT "Time/Retired" FROM table_47591 WHERE "Grid" > '16' AND "Driver" = 'nelson philippe'
### Instruction: CREATE TABLE table_19199 ( "Chassis Manufacturer" text, "Chassis Model" text, "Body Model" text, "Number in Fleet" real, "Fleet Numbers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Chassis model Scania K360ua has what minimum num...
SELECT MIN("Number in Fleet") FROM table_19199 WHERE "Chassis Model" = 'Scania K360UA'
### Instruction: CREATE TABLE table_10951 ( "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 away team was geelong,...
SELECT "Away team score" FROM table_10951 WHERE "Away team" = 'geelong'
### Instruction: CREATE TABLE table_203_576 ( 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 country got at least one of each medal ? ...
SELECT "nation" FROM table_203_576 WHERE "gold" >= 1 AND "silver" >= 1 AND "bronze" >= 1
### Instruction: CREATE TABLE table_1377 ( "No. in series" 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. -- W...
SELECT "Title" FROM table_1377 WHERE "Production code" = '109'
### Instruction: CREATE TABLE table_70170 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Podiums" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Podiums with 0 as wins, and a season later than 1985? ...
SELECT MAX("Podiums") FROM table_70170 WHERE "Wins" = '0' AND "Season" > '1985'
### Instruction: CREATE TABLE table_79812 ( "Dish" text, "Callsign" text, "Network" text, "Resolution" text, "City of License" text, "Official Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the dish for resolution of sd 480i and ne...
SELECT "Dish" FROM table_79812 WHERE "Resolution" = 'sd 480i' AND "Network" = 'bvb'
### Instruction: CREATE TABLE table_6161 ( "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 overall pick number that Derrick Harvey was when he was pi...
SELECT MIN("Overall") FROM table_6161 WHERE "Name" = 'derrick harvey' AND "Round" > '1'
### Instruction: CREATE TABLE table_52820 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people in total have a...
SELECT COUNT("Crowd") FROM table_52820 WHERE "Away team" = 'carlton'
### Instruction: CREATE TABLE table_29779 ( "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 points" FROM table_29779 WHERE "Date" = 'April 8'
### Instruction: CREATE TABLE table_204_379 ( id number, "year" text, "title" text, "hangul" text, "network" text, "further info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- is year 2008 or 2009 viewed on network mnet ? ### Response:
SELECT "year" FROM table_204_379 WHERE "year" IN (2008, 2009) AND "network" = 'mnet'
### Instruction: CREATE TABLE table_15677 ( "Artist" text, "Country of origin" text, "Period active" text, "Release-year of first charted record" real, "Genre" text, "Claimed sales" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the ear...
SELECT MIN("Release-year of first charted record") FROM table_15677 WHERE "Artist" = 'abba'
### Instruction: CREATE TABLE table_72179 ( "Route Name" text, "Direction" text, "Termini" text, "Junctions" text, "Length" text, "Population Area" text, "Remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which routes have 'replaced by...
SELECT "Route Name" FROM table_72179 WHERE "Remarks" = 'Replaced by US 81'
### Instruction: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- A bar char...
SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) DESC
### Instruction: CREATE TABLE table_72863 ( "Fin. Pos" real, "Car No." real, "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Laps Led" real, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the...
SELECT "Laps" FROM table_72863 WHERE "Points" = '18'
### Instruction: CREATE TABLE table_74204 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the college/junior/club team name of ...
SELECT "College/junior/club team" FROM table_74204 WHERE "Player" = 'Mats Lindgren'
### Instruction: CREATE TABLE table_21391 ( "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. -- Who was the director of...
SELECT "Director" FROM table_21391 WHERE "Original title" = '16 Days in Afghanistan'
### Instruction: CREATE TABLE table_name_90 ( cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR, top_5 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11 ### Resp...
SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6
### Instruction: CREATE TABLE user_profiles ( uid number, name text, email text, partitionid number, followers number ) CREATE TABLE tweets ( id number, uid number, text text, createdate time ) CREATE TABLE follows ( f1 number, f2 number ) -- Using valid SQLite, answer th...
SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1
### Instruction: CREATE TABLE table_60603 ( "Host city" text, "Year" real, "Winner" text, "1st runner up" text, "2nd runner up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won after 2007 when deyra cimen was the 1st runner up? ### Response:...
SELECT "Winner" FROM table_60603 WHERE "Year" > '2007' AND "1st runner up" = 'deyra cimen'
### Instruction: CREATE TABLE table_59503 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Nation of china (chn), and a Bronze smaller than 4? ### ...
SELECT MAX("Rank") FROM table_59503 WHERE "Nation" = 'china (chn)' AND "Bronze" < '4'
### Instruction: CREATE TABLE table_74663 ( "Player" text, "Tries" text, "Conv" text, "Pens" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did Josh Taumalolo play at Nuku'alofa? ### Response:
SELECT "Date" FROM table_74663 WHERE "Venue" = 'nuku''alofa' AND "Player" = 'josh taumalolo'
### Instruction: CREATE TABLE table_204_530 ( id number, "type" text, "stage" number, "cyclist" text, "team" text, "reason" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what cyclist is listed next after matteo ? ### Response:
SELECT "cyclist" FROM table_204_530 WHERE id = (SELECT id FROM table_204_530 WHERE "cyclist" = 'matteo bono') + 1
### Instruction: CREATE TABLE table_30798 ( "Player" text, "Matches" real, "Overs" text, "Wickets" real, "Average" text, "Economy" text, "BBI" text, "4wi" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the player when the economy ...
SELECT "Player" FROM table_30798 WHERE "Economy" = '5.29'
### Instruction: CREATE TABLE table_48883 ( "Team" text, "Make" text, "Drivers" text, "Tyre" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the tyre of real racing with leon team member koudai tsukakoshi? ### Response:
SELECT "Tyre" FROM table_48883 WHERE "Team" = 'real racing with leon' AND "Drivers" = 'koudai tsukakoshi'
### Instruction: CREATE TABLE table_203_293 ( id number, "years of appearance" text, "title" text, "network" text, "character name" text, "actor" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the first made for televi...
SELECT "title" FROM table_203_293 WHERE "notes" = 'the first made-for-television film to address people with aids'
### Instruction: CREATE TABLE table_name_5 ( manufacturer VARCHAR, finish VARCHAR, team VARCHAR, year VARCHAR, start VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED ...
SELECT manufacturer FROM table_name_5 WHERE year > 1966 AND start < 5 AND team = "wood" AND finish = 35
### Instruction: CREATE TABLE table_32300 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the away team's score ...
SELECT "Away team score" FROM table_32300 WHERE "Venue" = 'victoria park'
### Instruction: CREATE TABLE table_7094 ( "Episode" real, "Title" text, "Story" text, "Adapted by" text, "Director" text, "Airdate" text, "Exists?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for Exists when the airdate was 20...
SELECT "Exists?" FROM table_7094 WHERE "Airdate" = '20 december 1965'
### Instruction: CREATE TABLE table_61176 ( "Club" text, "Nickname" text, "Location" text, "Home Ground" text, "GFL Premierships" text, "Years in GFL" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the GFL Premiership when the home ground...
SELECT "GFL Premierships" FROM table_61176 WHERE "Home Ground" = 'leopold memorial park'
### Instruction: CREATE TABLE table_203_271 ( id number, "date" text, "series" text, "circuit" text, "city / state" text, "winner" text, "team" text, "car" text, "report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many races ...
SELECT COUNT(*) FROM table_203_271 WHERE "city / state" = 'new south wales'
### Instruction: CREATE TABLE table_42480 ( "Name" text, "GP-GS" text, "Effic" real, "Att-Cmp-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest avg/g that has 2-9-0 for the att-cmp-int? ### Response:
SELECT MIN("Avg/G") FROM table_42480 WHERE "Att-Cmp-Int" = '2-9-0'
### Instruction: CREATE TABLE table_203_42 ( id number, "model" text, "class" text, "length" text, "fuel" text, "starting price" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- is the vista more than the aspect ? ### Response:
SELECT (SELECT "starting price" FROM table_203_42 WHERE "model" = 'vista') > (SELECT "starting price" FROM table_203_42 WHERE "model" = 'aspect')
### Instruction: CREATE TABLE table_76820 ( "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 to par is located in the united states and has the player by ...
SELECT "To par" FROM table_76820 WHERE "Country" = 'united states' AND "Player" = 'hale irwin'
### Instruction: CREATE TABLE table_3417 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
SELECT "Series" FROM table_3417 WHERE "Position" = 'NC'
### Instruction: CREATE TABLE table_204_131 ( id number, "tops design code" text, "electrical system" text, "max speed" text, "weight" text, "brakes" text, "route availability" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT COUNT("tops design code") FROM table_204_131 WHERE "weight" >= 45
### Instruction: CREATE TABLE table_52299 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the driver with Laps larger than 16 with a ferrari and grid less than 15 ...
SELECT "Driver" FROM table_52299 WHERE "Laps" > '16' AND "Constructor" = 'ferrari' AND "Grid" < '15'
### Instruction: CREATE TABLE table_366 ( "Date of Issue" text, "Theme" text, "Denomination" text, "Design" text, "Illustration" text, "Printing Process" text, "Paper Type" text, "First Day Cover Cancellation" text ) -- Using valid SQLite, answer the following questions for the tables ...
SELECT "Theme" FROM table_366 WHERE "Design" = 'Isabelle Toussaint'
### Instruction: CREATE TABLE table_79611 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number for a total when the nation is netherlands and sil...
SELECT COUNT("Total") FROM table_79611 WHERE "Nation" = 'netherlands' AND "Silver" > '0'
### Instruction: CREATE TABLE table_46675 ( "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 was the average rank for south africa when they had more than 8 silver...
SELECT AVG("Rank") FROM table_46675 WHERE "Nation" = 'south africa' AND "Silver" > '8'
### Instruction: CREATE TABLE table_62445 ( "Elected" text, "Assembled" text, "Dissolved" text, "1st member" text, "2nd member" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the 1st member of the parliament that was dissolved 23 february 15...
SELECT "1st member" FROM table_62445 WHERE "Dissolved" = '23 february 1510'
### Instruction: CREATE TABLE table_15983 ( "State (class)" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date of successors formal installation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the succesor that was forma...
SELECT "Successor" FROM table_15983 WHERE "Date of successors formal installation" = 'November 8, 1978'