instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_57766 ( "Heat." real, "Race Title" text, "Circuit" text, "Location / State" text, "Date" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest heat of the Lakeside r...
SELECT MIN("Heat.") FROM table_57766 WHERE "Race Title" = 'lakeside'
### Instruction: CREATE TABLE table_68175 ( "Party" text, "Party List votes" real, "Vote percentage" text, "Total Seats" text, "Seat percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of seats of the Christian Democr...
SELECT "Total Seats" FROM table_68175 WHERE "Party" = 'christian democratic union (cdu)'
### Instruction: CREATE TABLE table_40936 ( "Pilot" text, "Original Airdate" text, "Musical Guest/Song performed" text, "YouTube Hero" text, "MySpace Band" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Musical Guest/Song with a pilot of...
SELECT "Musical Guest/Song performed" FROM table_40936 WHERE "Pilot" = '3'
### Instruction: CREATE TABLE table_27121 ( "Name" text, "Team(s)" text, "Matches" real, "Balls bowled" real, "Wickets taken" real, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the maximum wickets taken by players named Bill L...
SELECT MAX("Wickets taken") FROM table_27121 WHERE "Name" = 'Bill Lockwood'
### Instruction: CREATE TABLE table_52495 ( "Block A" text, "BLACK BUSHI" text, "BUSHI" text, "Kaz Hayashi" text, "Kenny Omega" text, "Minoru" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the minoru for block A being koji kanemoto ### R...
SELECT "Minoru" FROM table_52495 WHERE "Block A" = 'koji kanemoto'
### Instruction: CREATE TABLE table_name_72 ( accreditation_type VARCHAR, accreditation_level VARCHAR, hardware_model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Accreditation Type, when the Accreditation Level is Joyn, and when the Hardwa...
SELECT accreditation_type FROM table_name_72 WHERE accreditation_level = "joyn" AND hardware_model = "nokia 700"
### Instruction: CREATE TABLE table_8897 ( "Heat" real, "Lane" real, "Name" text, "Country" text, "Mark" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average heat that has 52.83 sb mark and lane less than 4? ### Response:
SELECT AVG("Heat") FROM table_8897 WHERE "Mark" = '52.83 sb' AND "Lane" < '4'
### Instruction: CREATE TABLE table_51704 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the grid total for david coulthard with over 45 laps? ### Response:
SELECT COUNT("Grid") FROM table_51704 WHERE "Driver" = 'david coulthard' AND "Laps" > '45'
### Instruction: CREATE TABLE table_203_76 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many...
SELECT COUNT("driver") FROM table_203_76 WHERE NOT "points" IS NULL
### Instruction: CREATE TABLE table_name_27 ( total INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Ra...
SELECT AVG(total) FROM table_name_27 WHERE bronze > 2 AND gold < 16 AND silver = 0 AND rank = "13"
### Instruction: CREATE TABLE table_49377 ( "Result" text, "Race" text, "Distance" text, "Weight" real, "Winner or 2nd" text, "Pos'n" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the ajc craven plate (wfa) race? ### Res...
SELECT "Result" FROM table_49377 WHERE "Race" = 'ajc craven plate (wfa)'
### Instruction: CREATE TABLE table_name_68 ( wins__total_ INTEGER, rank VARCHAR, wins__indoor_ VARCHAR, wins__outdoor_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less...
SELECT MAX(wins__total_) FROM table_name_68 WHERE wins__indoor_ = 0 AND wins__outdoor_ = 1 AND rank < 7
### Instruction: CREATE TABLE employees ( first_name VARCHAR, last_name VARCHAR, id VARCHAR ) CREATE TABLE customers ( support_rep_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the full name of employee who supported the most number of cust...
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_name_17 ( game INTEGER, october VARCHAR, opponent VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greate...
SELECT AVG(game) FROM table_name_17 WHERE opponent = "@ florida panthers" AND record = "0-1-2" AND october > 8
### Instruction: CREATE TABLE table_57988 ( "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 home team at Victori...
SELECT "Home team" FROM table_57988 WHERE "Venue" = 'victoria park'
### Instruction: CREATE TABLE table_204_538 ( id number, "pos." number, "driver" text, "co-driver" text, "car" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who finished sooner , freitas or camacho ? ### Response:
SELECT "driver" FROM table_204_538 WHERE "driver" IN ('filipe freitas', 'jose camacho') ORDER BY "pos." LIMIT 1
### Instruction: CREATE TABLE table_69831 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 1971, how many total points did the entrant stp march have? ### Response:
SELECT COUNT("Points") FROM table_69831 WHERE "Entrant" = 'stp march' AND "Year" > '1971'
### Instruction: CREATE TABLE table_43758 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Drawn has a Position of 2, and a Lost larger than 2? ### Response...
SELECT MIN("Drawn") FROM table_43758 WHERE "Position" = '2' AND "Lost" > '2'
### Instruction: CREATE TABLE table_79874 ( "Pick #" text, "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. -- Which NHL team has a Player of steve durban...
SELECT "NHL team" FROM table_79874 WHERE "Player" = 'steve durbano'
### Instruction: CREATE TABLE table_63377 ( "Model" text, "Years" text, "Engine code" text, "Power" text, "Torque" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the torque on the model with power of hp (kw; ps)@5800? ### Response:
SELECT "Torque" FROM table_63377 WHERE "Power" = 'hp (kw; ps)@5800'
### Instruction: CREATE TABLE table_train_90 ( "id" int, "gender" string, "alzheimer" bool, "breast_cancer" bool, "smoking" bool, "heart_rate" int, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- female who are smoke...
SELECT * FROM table_train_90 WHERE gender = 'female' AND smoking = 1
### Instruction: CREATE TABLE table_5441 ( "Driver" text, "Seasons" text, "Entries" real, "3rd places" real, "Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many entries have 3rd places greater than 19, and alain prost as the driver?...
SELECT COUNT("Entries") FROM table_5441 WHERE "3rd places" > '19' AND "Driver" = 'alain prost'
### Instruction: CREATE TABLE table_20457 ( "S No" real, "Team (A)" text, "Team (B)" text, "Winner" text, "Margin" text, "Match Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the winner for date of nov 5, 1987 ### Response:
SELECT "Winner" FROM table_20457 WHERE "Match Date" = 'Nov 5, 1987'
### Instruction: CREATE TABLE table_30568 ( "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 Robert Dirk's team? ### Response:...
SELECT "College/junior/club team" FROM table_30568 WHERE "Player" = 'Robert Dirk'
### Instruction: CREATE TABLE table_43894 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Date" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Ground, when Away Team ...
SELECT "Ground" FROM table_43894 WHERE "Away team" = 'sydney'
### Instruction: CREATE TABLE table_49691 ( "Product" text, "Vendor" text, "Edition" text, "Release date" text, "Java EE compatibility" text, "License" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Java EE compatibility of the 5.2.4...
SELECT "Java EE compatibility" FROM table_49691 WHERE "Edition" = '5.2.4'
### Instruction: CREATE TABLE table_32312 ( "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 faced Geelong at home? ##...
SELECT "Away team score" FROM table_32312 WHERE "Home team" = 'geelong'
### Instruction: CREATE TABLE table_30059 ( "Dates" text, "Race Name" text, "Location" text, "UCI Rating" text, "Winner" text, "Team" text, "Series Leader" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what race name had a uci rating of cn?...
SELECT "Race Name" FROM table_30059 WHERE "UCI Rating" = 'CN'
### Instruction: CREATE TABLE table_203_229 ( id number, "pick #" number, "nfl team" text, "player" text, "position" text, "college" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total number of linebackers chosen in round 17 of th...
SELECT COUNT(*) FROM table_203_229 WHERE "position" = 'linebacker'
### Instruction: CREATE TABLE table_1799 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the results of the elections in which Ted Stri...
SELECT "Results" FROM table_1799 WHERE "Incumbent" = 'Ted Strickland'
### Instruction: CREATE TABLE table_61679 ( "Year" real, "Manufacturer" text, "Start" real, "Finish" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Year, when Finish is '29', and when Start is less than 24? ### Resp...
SELECT MIN("Year") FROM table_61679 WHERE "Finish" = '29' AND "Start" < '24'
### Instruction: CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) CREATE TABLE tags ( index number, id number, tag text ) -- Using valid SQLite, answer the following questions for the tab...
SELECT groupname FROM torrents ORDER BY totalsnatched DESC LIMIT 100
### Instruction: CREATE TABLE table_56357 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the attendance at the Dallas home game on may 12? ### Resp...
SELECT COUNT("Attendance") FROM table_56357 WHERE "Home" = 'dallas' AND "Date" = 'may 12'
### Instruction: CREATE TABLE table_19839391_3 ( no_decisions INTEGER, winning__percentage VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many 'no decisions' are there with 3 wins and a win percentage of 1.000? ### Response:
SELECT MIN(no_decisions) FROM table_19839391_3 WHERE winning__percentage = "1.000" AND wins = 3
### Instruction: CREATE TABLE table_54167 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "Team from" text, "League from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What pick # has a team from Rimouski Oc anic? ### Res...
SELECT AVG("Pick #") FROM table_54167 WHERE "Team from" = 'rimouski océanic'
### Instruction: CREATE TABLE table_1005 ( "Player" text, "Position" text, "Games started" text, "Hometown" text, "Height" text, "Weight" real, "Class" text, "Prior experience" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Game...
SELECT "Games started" FROM table_1005 WHERE "Player" = 'Hugh White'
### Instruction: CREATE TABLE table_33384 ( "Name" text, "Pos." text, "Height" text, "Weight" text, "2012 club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2012 club for the Billy Miller Category:Articles with hcards (Name)? ### Res...
SELECT "2012 club" FROM table_33384 WHERE "Name" = 'billy miller category:articles with hcards'
### Instruction: CREATE TABLE table_52165 ( "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 was Richmond's away team op...
SELECT "Away team" FROM table_52165 WHERE "Home team" = 'richmond'
### Instruction: CREATE TABLE table_51313 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the surface when the partner is carlos ...
SELECT "Surface" FROM table_51313 WHERE "Partner" = 'carlos berlocq'
### Instruction: CREATE TABLE table_49863 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date were Perth Wildcats the away team...
SELECT "Date" FROM table_49863 WHERE "Away team" = 'perth wildcats'
### Instruction: CREATE TABLE table_12077 ( "Round" real, "Overall" text, "Player" text, "Position" text, "Nationality" text, "Club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Round has a Club team of brandon wheat kings (whl)? ...
SELECT "Round" FROM table_12077 WHERE "Club team" = 'brandon wheat kings (whl)'
### Instruction: CREATE TABLE table_23707 ( "Rank by average" real, "Place" real, "Couple" text, "Total points" real, "Number of dances" real, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different numbers of total dances ar...
SELECT COUNT("Number of dances") FROM table_23707 WHERE "Place" = '6'
### Instruction: CREATE TABLE table_204_190 ( id number, "rank" number, "city" text, "county" text, "state" text, "percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of cities in new jersey on the top ten list ? ### ...
SELECT COUNT("city") FROM table_204_190 WHERE "state" = 'new jersey' AND "rank" <= 10
### Instruction: CREATE TABLE table_36394 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Attendances have a Score of 4 5? Questio...
SELECT MAX("Attendance") FROM table_36394 WHERE "Score" = '4 – 5'
### Instruction: CREATE TABLE table_72197 ( "Target" text, "Target Code (Allied)" text, "Luftwaffe unit (wing)" text, "Allied forces" text, "Effect on Allied Squadrons (according to official figures)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
SELECT "Allied forces" FROM table_72197 WHERE "Target" = 'Woensdrecht'
### Instruction: CREATE TABLE table_name_3 ( stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stage (winner) has thor hushovd as a general classification, and trent low...
SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe"
### Instruction: CREATE TABLE table_16026 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many matches where played with Jim Pug...
SELECT COUNT("Opponents") FROM table_16026 WHERE "Partner" = 'Jim Pugh'
### Instruction: CREATE TABLE table_name_76 ( gender VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which gender has an Authority of state, Years of 1 8, and a Decile smaller than 10...
SELECT gender FROM table_name_76 WHERE authority = "state" AND years = "1–8" AND decile < 10 AND roll = 36
### Instruction: CREATE TABLE table_15523 ( "Character" text, "Original West End Cast" text, "Original Broadway Cast" text, "First UK Tour Cast" text, "First US Tour Cast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was in the Original West E...
SELECT "Original West End Cast" FROM table_15523 WHERE "Original Broadway Cast" = 'audrie neenan'
### Instruction: CREATE TABLE table_5808 ( "Date" text, "Venue" text, "Opponent" text, "Score" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which competition had an opponent of Police at the Selayang Stadium? ### Response:
SELECT "Competition" FROM table_5808 WHERE "Opponent" = 'police' AND "Venue" = 'selayang stadium'
### Instruction: CREATE TABLE table_70095 ( "Value" text, "Khmer" real, "Word Form" text, "UNGEGN" text, "ALA-LC" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Word Form, when the Notes are literally 'one hundred thous...
SELECT "Word Form" FROM table_70095 WHERE "Notes" = 'literally "one hundred thousand'
### Instruction: CREATE TABLE table_76173 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner against finalist Lina Krasnoroutskaya? ...
SELECT "Winner" FROM table_76173 WHERE "Finalist" = 'lina krasnoroutskaya'
### Instruction: CREATE TABLE table_30128 ( "Year(s)" real, "Television commentator" text, "Dual Television commentator" text, "Radio commentator" text, "Spokesperson" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who made the comments for radio br...
SELECT "Radio commentator" FROM table_30128 WHERE "Television commentator" = 'Jan Gabrielsson'
### Instruction: CREATE TABLE table_7979 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result when the method...
SELECT "Res." FROM table_7979 WHERE "Method" = 'submission (kimura)'
### Instruction: CREATE TABLE table_70487 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total laps for the year 2011? ### Resp...
SELECT SUM("Laps") FROM table_70487 WHERE "Year" = '2011'
### Instruction: CREATE TABLE table_8189 ( "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 score did Seve Ballesteros have when he was in T3 place? ###...
SELECT "Score" FROM table_8189 WHERE "Place" = 't3' AND "Player" = 'seve ballesteros'
### Instruction: CREATE TABLE table_62988 ( "Year" real, "Winner" text, "Jockey" text, "Trainer" text, "Owner" text, "Distance" text, "Time" text, "Purse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the distance in 2006? ###...
SELECT "Distance" FROM table_62988 WHERE "Year" = '2006'
### Instruction: CREATE TABLE table_54957 ( "Rank" real, "Player" text, "Country" text, "Earnings( $ )" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the highest ranked player that has earnings below 395,386? ### Response:
SELECT MAX("Rank") FROM table_54957 WHERE "Earnings( $ )" < '395,386'
### Instruction: CREATE TABLE table_204_346 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "result" text, "competition" text, "scored" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times were goals score...
SELECT COUNT(*) FROM table_204_346 WHERE "competition" = 'friendly'
### Instruction: CREATE TABLE table_30406 ( "Season" text, "Host" text, "Mens Singles" text, "Womens Singles" text, "Mens Doubles" text, "Womens Doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are all hosts when men's singles is Ma W...
SELECT "Host" FROM table_30406 WHERE "Mens Singles" = 'Ma Wenge'
### Instruction: CREATE TABLE table_name_33 ( winner VARCHAR, result VARCHAR, loser VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and ...
SELECT winner FROM table_name_33 WHERE loser = "baltimore colts" AND location = "schaefer stadium" AND result = "42-3"
### Instruction: CREATE TABLE table_23388 ( "Team & Boat name" text, "Sail no." text, "Flag" text, "Design Firm" text, "Builder" text, "Skipper" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Farr Yacht Design designed boats for how many country...
SELECT COUNT("Flag") FROM table_23388 WHERE "Design Firm" = 'Farr Yacht Design'
### Instruction: CREATE TABLE table_32140 ( "Player" text, "Career" text, "Goals" real, "Caps" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of the averages when there are 68 caps and less than 9 goals? ### Respons...
SELECT SUM("Average") FROM table_32140 WHERE "Caps" = '68' AND "Goals" < '9'
### Instruction: CREATE TABLE table_41694 ( "Team #1" text, "Agg." text, "Team #2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1st leg that has akasvayu girona as team #2? ### Response:
SELECT "1st leg" FROM table_41694 WHERE "Team #2" = 'akasvayu girona'
### Instruction: CREATE TABLE table_9316 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- A Pick # larger than 339 and the College that has a Round of 14 is what? ### Response:...
SELECT "College" FROM table_9316 WHERE "Round" = '14' AND "Pick #" > '339'
### Instruction: CREATE TABLE table_47704 ( "Date" text, "Flight" text, "Aircraft" text, "Registration" text, "Location" text, "Fatalities" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which flight had an aircraft of vickers viscount type 794?...
SELECT "Flight" FROM table_47704 WHERE "Aircraft" = 'vickers viscount type 794'
### Instruction: CREATE TABLE table_76161 ( "Season" text, "Winner" text, "Winning Song" text, "Winning Song (English Title)" text, "Debut Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which winning song was sung by aku tetap milikmu? ### ...
SELECT "Winning Song (English Title)" FROM table_76161 WHERE "Winning Song" = 'aku tetap milikmu'
### Instruction: CREATE TABLE table_204_951 ( id number, "candidate" text, "votes" number, "percentage" text, "counties" number, "delegates" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many candidates received at least 100,000 votes ? ...
SELECT COUNT("candidate") FROM table_204_951 WHERE "votes" >= 100000
### Instruction: CREATE TABLE table_53675 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year they finished 5th in santiago, chile? ### Response:
SELECT AVG("Year") FROM table_53675 WHERE "Position" = '5th' AND "Venue" = 'santiago, chile'
### Instruction: CREATE TABLE table_61233 ( "Ship" text, "Hull Number" text, "Laid down" text, "Launched" text, "Commissioned" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Launched, when Commissioned is '25 July 1998'? ### Response:
SELECT "Launched" FROM table_61233 WHERE "Commissioned" = '25 july 1998'
### Instruction: CREATE TABLE table_2621 ( "Office" text, "Type" text, "Location" text, "Elected" text, "Term began" text, "Term ended" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What branch of government was the term that ended on January 3...
SELECT "Type" FROM table_2621 WHERE "Term ended" = 'January 3, 2001'
### Instruction: CREATE TABLE table_204_121 ( id number, "year" text, "game" text, "developer" text, "setting" text, "platform" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what year was the last year in which the zx plaform ...
SELECT MAX("year") FROM table_204_121 WHERE "platform" = 'zx'
### Instruction: CREATE TABLE table_55373 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average long that Ramon Richardson played and an average greater than 5.5? ### Res...
SELECT AVG("Long") FROM table_55373 WHERE "Player" = 'ramon richardson' AND "Avg." > '5.5'
### Instruction: CREATE TABLE table_204_974 ( id number, "season" number, "level" text, "division" text, "section" text, "administration" text, "position" text, "movements" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many consecut...
SELECT COUNT(*) FROM table_204_974 WHERE "level" = 'tier 4'
### Instruction: CREATE TABLE table_203_79 ( id number, "year" number, "film" text, "publisher" text, "director" text, "distributor" text, "worldwide gross" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which film made the...
SELECT "film" FROM table_203_79 ORDER BY "worldwide gross" DESC LIMIT 1
### Instruction: CREATE TABLE table_44710 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the best time from patrick carpentier from the forsythe racing team? ### Response:
SELECT "Best" FROM table_44710 WHERE "Team" = 'forsythe racing' AND "Name" = 'patrick carpentier'
### Instruction: CREATE TABLE table_18464 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of party with the incubent james willia...
SELECT COUNT("Party") FROM table_18464 WHERE "Incumbent" = 'James William Trimble'
### Instruction: CREATE TABLE table_17566 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, answer the following questions for the ...
SELECT COUNT("General classification") FROM table_17566 WHERE "Stage" = '15'
### Instruction: CREATE TABLE table_204_595 ( 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. -- what is the average number of gold medals won by...
SELECT AVG("gold") FROM table_204_595 WHERE "rank" <= 5
### Instruction: CREATE TABLE table_10766 ( "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 did Geelong play as the ho...
SELECT "Date" FROM table_10766 WHERE "Home team" = 'geelong'
### Instruction: CREATE TABLE table_72428 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the district with incumbent being richard j. wel...
SELECT "District" FROM table_72428 WHERE "Incumbent" = 'Richard J. Welch'
### Instruction: CREATE TABLE table_28428 ( "Club" text, "Wins" real, "Losses" real, "Points For" real, "Points Against" real, "Percentage" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percentage listed for the t...
SELECT "Percentage" FROM table_28428 WHERE "Points For" = '63'
### Instruction: CREATE TABLE table_20537 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the date of a...
SELECT "Date of appointment" FROM table_20537 WHERE "Team" = 'St. Johnstone'
### Instruction: CREATE TABLE table_name_96 ( delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , ri...
SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal"
### Instruction: CREATE TABLE table_204_344 ( id number, "player" text, "games played" number, "field goals" number, "free throws" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who had the most points scored for the 191617 il...
SELECT "player" FROM table_204_344 ORDER BY "points" DESC LIMIT 1
### Instruction: CREATE TABLE table_2180 ( "Pitcher" text, "Starts" real, "Wins" real, "Losses" real, "No decisions" real, "Winning %" text, "Seasons" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of starts in 1977 ### ...
SELECT "Starts" FROM table_2180 WHERE "Seasons" = '1977'
### Instruction: CREATE TABLE table_36067 ( "Place" text, "Player" text, "Nation" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in a place of t5 in the United States? ### Res...
SELECT "Score" FROM table_36067 WHERE "Place" = 't5' AND "Nation" = 'united states'
### Instruction: CREATE TABLE table_37197 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the Visitor of the Toronto Maple Leafs Home game on December 22? ### Response:
SELECT "Visitor" FROM table_37197 WHERE "Home" = 'toronto maple leafs' AND "Date" = 'december 22'
### Instruction: CREATE TABLE table_36702 ( "Conference" text, "Division" text, "Team" text, "City" text, "Home Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Home Stadium has American as its Conference as well as nashville, tennessee...
SELECT "Home Stadium" FROM table_36702 WHERE "Conference" = 'american' AND "City" = 'nashville, tennessee'
### Instruction: CREATE TABLE table_204_691 ( id number, "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" number, "scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many goals did durrant sc...
SELECT COUNT(*) FROM table_204_691 WHERE "scorers" = 'durrant'
### Instruction: CREATE TABLE table_74236 ( "Song title" text, "Artist" text, "Show" text, "Difficulty" real, "Effort" real, "Year" real, "Dancers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many shows were in 1994? ### Response:
SELECT COUNT("Difficulty") FROM table_74236 WHERE "Year" = '1994'
### Instruction: CREATE TABLE table_45306 ( "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 was the To par for United States golfer fred couples? ### R...
SELECT "To par" FROM table_45306 WHERE "Country" = 'united states' AND "Player" = 'fred couples'
### Instruction: CREATE TABLE table_11305 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did the player from the saskatchewan roughriders (via toronto) play? ...
SELECT "Position" FROM table_11305 WHERE "CFL Team" = 'saskatchewan roughriders (via toronto)'
### Instruction: CREATE TABLE table_23216 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the type of the school whose stu...
SELECT "Type" FROM table_23216 WHERE "Nickname" = 'Spirits'
### Instruction: CREATE TABLE table_68411 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which round did the bout against Jonatas Novaes end ...
SELECT "Round" FROM table_68411 WHERE "Opponent" = 'jonatas novaes'
### Instruction: CREATE TABLE song ( artist_name VARCHAR, rating VARCHAR ) CREATE TABLE artist ( artist_name VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names and countries of origin for the artists who produced the ...
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3
### Instruction: CREATE TABLE table_23285 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When pennsylvania 3 is the district who is the incumben...
SELECT "Incumbent" FROM table_23285 WHERE "District" = 'Pennsylvania 3'
### Instruction: CREATE TABLE table_2911 ( "Episode" text, "First broadcast" text, "Davids team" text, "Lees team" text, "Scores" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the lees team is Clare Balding and Miranda Hart, what is the first br...
SELECT COUNT("First broadcast") FROM table_2911 WHERE "Lees team" = 'Clare Balding and Miranda Hart'
### Instruction: CREATE TABLE table_79764 ( "Tournament" text, "Wins" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many cuts did he make at the PGA championship in 3 events? ### Response:
SELECT MAX("Cuts made") FROM table_79764 WHERE "Tournament" = 'pga championship' AND "Events" > '3'
### Instruction: CREATE TABLE table_23942 ( "Type of Fare" text, "Cash Fare" text, "Day Pass" text, "31-Day Pass" text, "Monthly Pass" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When fixed route is the type of fare how much is the 31-day pass? ...
SELECT "31-Day Pass" FROM table_23942 WHERE "Type of Fare" = 'Fixed Route'