instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_18786 ( "City of license/Market" text, "Station" text, "Channel TV ( DT )" text, "Years owned" text, "Current Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which station has a license in Fort Collins, Col...
SELECT "Station" FROM table_18786 WHERE "City of license/Market" = 'Fort Collins, Colorado'
### Instruction: CREATE TABLE table_44797 ( "Date" text, "Venue" text, "Opponents" text, "Score" text, "Comp" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Venue of idrottsparken? ### Response:
SELECT "Score" FROM table_44797 WHERE "Venue" = 'idrottsparken'
### Instruction: CREATE TABLE table_14474 ( "Season" text, "Champion" text, "Runner-up" text, "Series Result" text, "Finals MVP" text, "Champion's Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season was Manresa the champion? ###...
SELECT "Season" FROM table_14474 WHERE "Champion" = 'manresa'
### Instruction: CREATE TABLE table_name_49 ( attendance INTEGER, game VARCHAR, location VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance? ...
SELECT SUM(attendance) FROM table_name_49 WHERE location = "ebbets field" AND time = "2:56" AND game > 6
### Instruction: CREATE TABLE table_47784 ( "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 is the Money ($) player Loren Roberts has made? ### Respons...
SELECT MAX("Money ( $ )") FROM table_47784 WHERE "Player" = 'loren roberts'
### Instruction: CREATE TABLE table_12877 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Player who won in 1931? ### Response:
SELECT "Player" FROM table_12877 WHERE "Year(s) won" = '1931'
### Instruction: CREATE TABLE table_51498 ( "Pick" real, "Round" text, "Player" text, "Position" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the lowest pick for a defensive back at Drake? ### Response:
SELECT MIN("Pick") FROM table_51498 WHERE "Position" = 'defensive back' AND "School" = 'drake'
### Instruction: CREATE TABLE table_51441 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game when Atlanta was th...
SELECT "Date" FROM table_51441 WHERE "Home" = 'atlanta'
### Instruction: CREATE TABLE table_31508 ( "Townland" text, "Area( acres )" real, "Barony" text, "Civil parish" text, "Poor law union" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Ballymurphy North's civil parish? ### Response:
SELECT "Civil parish" FROM table_31508 WHERE "Townland" = 'Ballymurphy North'
### Instruction: CREATE TABLE table_27714985_1 ( no_s__in_season INTEGER, production_code_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the episode number of the episode whose production code is 226407? ### Response:
SELECT MIN(no_s__in_season) FROM table_27714985_1 WHERE production_code_s_ = 226407
### Instruction: CREATE TABLE table_619 ( "Ensemble" text, "Gold Medals" real, "Silver Medals" real, "Bronze Medals" real, "Total Medals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many gold medals does each school who has a total of 1 medal...
SELECT "Gold Medals" FROM table_619 WHERE "Total Medals" = '1'
### Instruction: CREATE TABLE table_66982 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the name with area of eketahuna ### Response:...
SELECT "Name" FROM table_66982 WHERE "Area" = 'eketahuna'
### Instruction: CREATE TABLE table_78354 ( "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 record has a time of 0:13? ### Response:
SELECT "Record" FROM table_78354 WHERE "Time" = '0:13'
### Instruction: CREATE TABLE table_203_734 ( 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. -- what was the only year that a competition was hel...
SELECT "year" FROM table_203_734 WHERE "venue" = 'china'
### Instruction: CREATE TABLE table_62090 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much money was there when the to par was 15? ### Response:
SELECT SUM("Money ( $ )") FROM table_62090 WHERE "To par" = '15'
### Instruction: CREATE TABLE table_name_74 ( connection_with_australia VARCHAR, connection_with_america VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the connection with Australia when the connection with America shows born in the u.s.; mother is u...
SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = "born in the u.s.; mother is u.s. citizen"
### Instruction: CREATE TABLE table_53629 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team scored more than 572 points and had more than 29 games? ### Response:
SELECT "Team" FROM table_53629 WHERE "Points" > '572' AND "Games" > '29'
### Instruction: CREATE TABLE table_33402 ( "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 gold medal total for a total of 44 medals? ### Response:
SELECT MIN("Gold") FROM table_33402 WHERE "Total" > '44'
### Instruction: CREATE TABLE table_203_436 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the only year mr. wu competed in the olympic games ? ###...
SELECT "year" FROM table_203_436 WHERE "competition" = 'olympic games'
### Instruction: CREATE TABLE table_name_96 ( to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is To Par, when Country is 'United States', when Place is 'T4', and when Player is 'Arnold Palmer...
SELECT to_par FROM table_name_96 WHERE country = "united states" AND place = "t4" AND player = "arnold palmer"
### Instruction: CREATE TABLE table_12998 ( "Club" text, "City" text, "Stadium" text, "2006\u201307 result" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total capacity for the city of Trogir? ### Response:
SELECT SUM("Capacity") FROM table_12998 WHERE "City" = 'trogir'
### Instruction: CREATE TABLE table_23547 ( "#" text, "Original title" text, "Directed by" text, "Written by" text, "Original airdate" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the original title of 3.19? ...
SELECT "Original title" FROM table_23547 WHERE "Production code" = '3.19'
### Instruction: CREATE TABLE table_204_712 ( id number, "rank" number, "athlete" text, "nationality" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total count of athletes included in the rankings chart , ...
SELECT COUNT("athlete") FROM table_204_712
### Instruction: CREATE TABLE table_1247 ( "No. in season" real, "No. disc" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title for episode number 7 in t...
SELECT COUNT("Title") FROM table_1247 WHERE "No. in season" = '7'
### Instruction: CREATE TABLE table_5669 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent when Hoeft (19-14) took the loss? ### Response:
SELECT "Opponent" FROM table_5669 WHERE "Loss" = 'hoeft (19-14)'
### Instruction: CREATE TABLE table_train_216 ( "id" int, "gender" string, "hba1c" float, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- age less than 6 years or greater than 25 years. ### Res...
SELECT * FROM table_train_216 WHERE age <= 6 AND age >= 25
### Instruction: CREATE TABLE table_24607 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What location was the game on October 6? ...
SELECT "Location" FROM table_24607 WHERE "Date" = 'October 6'
### Instruction: CREATE TABLE table_name_39 ( points INTEGER, club VARCHAR, goals_conceded VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of the points of club nev is-2 k dainiai, which has more than 35 goals conceded? ### Response:
SELECT SUM(points) FROM table_name_39 WHERE club = "nevėžis-2 kėdainiai" AND goals_conceded > 35
### Instruction: CREATE TABLE table_203_853 ( id number, "date" text, "opponent" text, "home/away" text, "field" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total amount of wins that the bridgeport barrage had in 2...
SELECT COUNT(*) FROM table_203_853 WHERE "result" = 'w'
### Instruction: CREATE TABLE table_3620 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was running where the winner is daniel montgomery ...
SELECT "Candidates" FROM table_3620 WHERE "Incumbent" = 'Daniel Montgomery'
### Instruction: CREATE TABLE table_63344 ( "Title" text, "Series" text, "Director" text, "Production Number" text, "Release date" text, "reissue?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Series with a Title of elmer's pet rabbit...
SELECT "Series" FROM table_63344 WHERE "Title" = 'elmer''s pet rabbit'
### Instruction: CREATE TABLE table_203_593 ( id number, "tenure" text, "coach" text, "years" number, "record" text, "pct." number, "ncaa tournament" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which head coach had the most losses ? #...
SELECT "coach" FROM table_203_593 ORDER BY "record" DESC LIMIT 1
### Instruction: CREATE TABLE table_46629 ( "Nominative" text, "Ergative" text, "Dative" text, "Genitive" text, "Instrumental" text, "Adverbial" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the genitive for the ergative shen? ### Res...
SELECT "Genitive" FROM table_46629 WHERE "Ergative" = 'shen'
### Instruction: CREATE TABLE table_16129 ( "No." real, "#" real, "Title" text, "Director" text, "Writer" text, "US air date" text, "Storyteller" text, "Villains" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote Episode #3? ###...
SELECT "Writer" FROM table_16129 WHERE "#" = '3'
### Instruction: CREATE TABLE table_name_46 ( round INTEGER, draft VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Round, when Draft is greater than 1980, and when Player is 'Shane Doan Category:Articles with hCards'? ...
SELECT MAX(round) FROM table_name_46 WHERE draft > 1980 AND player = "shane doan category:articles with hcards"
### Instruction: CREATE TABLE table_61092 ( "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 place did the player that took won $350 finish in? ### Resp...
SELECT "Place" FROM table_61092 WHERE "Money ( $ )" = '350'
### Instruction: CREATE TABLE table_204_128 ( id number, "region" text, "date" text, "label" text, "format" text, "catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the date of the first vinyl lp release ? ### Response:
SELECT "date" FROM table_204_128 WHERE "format" = 'vinyl lp' ORDER BY "date" LIMIT 1
### Instruction: CREATE TABLE table_2263152_1 ( version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With the distribution mechanism of Microsoft website and the security issues of 98-004, what i...
SELECT version FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website"
### Instruction: CREATE TABLE table_46691 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which method took place against Chris Herring? ##...
SELECT "Method" FROM table_46691 WHERE "Opponent" = 'chris herring'
### Instruction: CREATE TABLE table_73760 ( "Branding" text, "Callsign" text, "Channel" text, "Power (kW)" text, "Coverage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which area did estrella tv 62 provide coverage for? ### Response:
SELECT "Coverage" FROM table_73760 WHERE "Branding" = 'Estrella TV 62'
### Instruction: CREATE TABLE table_11715 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Attendance has a Date of november 18, 1951? ### Response:
SELECT "Attendance" FROM table_11715 WHERE "Date" = 'november 18, 1951'
### Instruction: CREATE TABLE table_42390 ( "Year" real, "Result" real, "World Rank" text, "Location" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was Steve Williams in Zurich and his result was 10.07? ### Response:
SELECT "Date" FROM table_42390 WHERE "Location" = 'zurich' AND "Result" = '10.07'
### Instruction: CREATE TABLE table_55329 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Ryan McCay's speed that has a rank better than 8? ### Response:
SELECT "Speed" FROM table_55329 WHERE "Rank" > '8' AND "Rider" = 'ryan mccay'
### Instruction: CREATE TABLE table_203_206 ( 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 won the most silver medals ? ###...
SELECT "nation" FROM table_203_206 ORDER BY "silver" DESC LIMIT 1
### Instruction: CREATE TABLE table_46982 ( "Position" real, "Pilot" text, "Glider" text, "Speed" text, "Distance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Position, when Speed is '143.5km/h'? ### Response:
SELECT AVG("Position") FROM table_46982 WHERE "Speed" = '143.5km/h'
### Instruction: CREATE TABLE table_77939 ( "Player" text, "Date of Birth" text, "Batting Style" text, "Bowling Style" text, "First Class Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What first class team does sanath jayasuriya play for? #...
SELECT "First Class Team" FROM table_77939 WHERE "Player" = 'sanath jayasuriya'
### Instruction: CREATE TABLE table_838 ( "District" text, "Incumbent" text, "Party" text, "Elected" real, "Status" text, "2007 Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what district was the incumbent Charles Hawkins? ### Resp...
SELECT "District" FROM table_838 WHERE "Incumbent" = 'Charles Hawkins'
### Instruction: CREATE TABLE table_name_70 ( character VARCHAR, french_voice_actor VARCHAR, german_voice_actor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which character has a French voice actor of Marc Saez and a German voice actor of Dirk Fenselau...
SELECT character FROM table_name_70 WHERE french_voice_actor = "marc saez" AND german_voice_actor = "dirk fenselau"
### Instruction: CREATE TABLE table_18416 ( "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. -- To which party does Frank T. Bow belong? ### Response...
SELECT "Party" FROM table_18416 WHERE "Incumbent" = 'Frank T. Bow'
### Instruction: CREATE TABLE table_name_45 ( surface VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Surface, when Date is less than 1979, and when Opponent in the Final is 'Bill Scanlon'? ### Respon...
SELECT surface FROM table_name_45 WHERE date < 1979 AND opponent_in_the_final = "bill scanlon"
### Instruction: CREATE TABLE table_26858 ( "Name of Award" text, "Name of Film" text, "Language" text, "Awardee(s)" text, "Cash Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of awardees for best cinematography ### Response...
SELECT COUNT("Awardee(s)") FROM table_26858 WHERE "Name of Award" = 'Best Cinematography'
### Instruction: CREATE TABLE table_76500 ( "Minister" text, "Party" text, "Start date" text, "End date" text, "Prime Minister" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the minister for the CSV party with a present day end date? ### ...
SELECT "Minister" FROM table_76500 WHERE "Party" = 'csv' AND "End date" = 'present day'
### Instruction: CREATE TABLE table_name_88 ( opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did they play at lincoln financial field at 8:30 (ET) after week 14? ### Response:
SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = "lincoln financial field" AND time__et_ = "8:30"
### Instruction: CREATE TABLE table_name_4 ( date VARCHAR, venue VARCHAR, competition VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did a Competition of friendly, and a Score of 2 1, and a Venue of philadelphia , pennsylvania occ...
SELECT date FROM table_name_4 WHERE competition = "friendly" AND score = "2–1" AND venue = "philadelphia , pennsylvania"
### Instruction: CREATE TABLE table_17057 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the school for the player who's hometown was Irvine, CA? ### Response:
SELECT "School" FROM table_17057 WHERE "Hometown" = 'Irvine, CA'
### Instruction: CREATE TABLE table_name_97 ( school_club_team VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie...
SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = "reggie mckenzie"
### Instruction: CREATE TABLE table_203_754 ( id number, "no." number, "player" text, "position" text, "career" text, "date no. retired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long was gretzky 's career ? ### Response:
SELECT "career" - "career" FROM table_203_754 WHERE "player" = 'wayne gretzky'
### Instruction: CREATE TABLE table_73108 ( "C_{low}" text, "C_{high}" text, "I_{low}" real, "I_{high}" real, "Category" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In how many different categories is the value of C_{low} 35.5? ### Response:
SELECT COUNT("Category") FROM table_73108 WHERE "C_{low}" = '35.5'
### Instruction: CREATE TABLE table_51442 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the decision of the game when Montreal w...
SELECT "Decision" FROM table_51442 WHERE "Home" = 'montreal'
### Instruction: CREATE TABLE table_222771_1 ( iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ISO for South Sudan? ### Response:
SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "South Sudan"
### Instruction: CREATE TABLE table_204_482 ( id number, "date" text, "position" text, "name" text, "from" text, "fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- andy huges and adrian whitbread both tranfered on which date ? ### Response:
SELECT "date" FROM table_204_482 WHERE "name" = 'andy hughes'
### Instruction: CREATE TABLE table_5375 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points have a Record of 21 20 6? ### Response:
SELECT SUM("Points") FROM table_5375 WHERE "Record" = '21–20–6'
### Instruction: CREATE TABLE table_45341 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the competition when the date is 16 january 1996? ### Response:
SELECT "Competition" FROM table_45341 WHERE "Date" = '16 january 1996'
### Instruction: CREATE TABLE table_34570 ( "Episode No." text, "Episode Title" text, "UK Broadcast Date" text, "Presenter" text, "Countries Visited" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the UK broadcast date of the episode with Be...
SELECT "UK Broadcast Date" FROM table_34570 WHERE "Presenter" = 'ben okri'
### Instruction: CREATE TABLE table_48198 ( "Player" text, "Nationality" text, "Jersey Number(s)" real, "Position" text, "Years" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Nationality, when Years is 1979? ### Response:...
SELECT "Nationality" FROM table_48198 WHERE "Years" = '1979'
### Instruction: CREATE TABLE table_203_750 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- number of different teams listed o...
SELECT COUNT(DISTINCT "opponent") FROM table_203_750
### Instruction: CREATE TABLE table_34816 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Att has a Time of 2:14? ### Response:
SELECT "Att." FROM table_34816 WHERE "Time" = '2:14'
### Instruction: CREATE TABLE table_203_612 ( 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 holds the top gold metals ? ### ...
SELECT "nation" FROM table_203_612 ORDER BY "gold" DESC LIMIT 1
### Instruction: CREATE TABLE table_10030 ( "Date" text, "H/A/N" text, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is H/A/N, when Record is 20-48? ### Response:
SELECT "H/A/N" FROM table_10030 WHERE "Record" = '20-48'
### Instruction: CREATE TABLE table_55628 ( "Year" real, "Network" text, "Play-by-play" text, "Colour commentator(s)" text, "Studio host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which network has a play-by-play announcer of John Wells? ### ...
SELECT "Network" FROM table_55628 WHERE "Play-by-play" = 'john wells'
### Instruction: CREATE TABLE table_23294081_11 ( performer_1 VARCHAR, performer_2 VARCHAR, _number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2? ### Response:
SELECT performer_1 FROM table_23294081_11 WHERE performer_2 = "Heather Anne Campbell" AND _number = 7
### Instruction: CREATE TABLE table_204_489 ( id number, "rank" number, "name" text, "height" text, "floors" number, "year" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which building has the most floors according to this c...
SELECT "name" FROM table_204_489 ORDER BY "floors" DESC LIMIT 1
### Instruction: CREATE TABLE table_45294 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Event, when Record is '3-0'? ### Response...
SELECT "Event" FROM table_45294 WHERE "Record" = '3-0'
### Instruction: CREATE TABLE employees ( id VARCHAR, first_name VARCHAR, last_name VARCHAR ) CREATE TABLE customers ( support_rep_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many customers does Steve Johnson support? ### Response:
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson"
### Instruction: CREATE TABLE table_50793 ( "Event" text, "Long Course/Short Course" text, "Year Set" real, "Time" text, "Meet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the latest year that had a 100m freestyle? ### Response:
SELECT MAX("Year Set") FROM table_50793 WHERE "Event" = '100m freestyle'
### Instruction: CREATE TABLE table_203_608 ( 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 country ranks first in total medals won ? ...
SELECT "nation" FROM table_203_608 ORDER BY "total" DESC LIMIT 1
### Instruction: CREATE TABLE table_55804 ( "Year" real, "Record" text, "Finish" text, "Manager" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least year for gene hassell manager and 6th finish ### Response:
SELECT MIN("Year") FROM table_55804 WHERE "Manager" = 'gene hassell' AND "Finish" = '6th'
### Instruction: CREATE TABLE table_1855 ( "Province, Community" text, "Contestant" text, "Age" real, "Height" text, "Hometown" text, "Geographical Regions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How tall is the contestant from Hato Mayo...
SELECT "Height" FROM table_1855 WHERE "Province, Community" = 'Hato Mayor'
### Instruction: CREATE TABLE table_48629 ( "Team" text, "Head coach" text, "Team captain" text, "Kitmaker" text, "Shirt sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the shirt sponsor for the team Daniel Thioune captains? ### Res...
SELECT "Shirt sponsor" FROM table_48629 WHERE "Team captain" = 'daniel thioune'
### Instruction: CREATE TABLE table_56254 ( "Played in" text, "Matches" text, "Lost" text, "Drawn" text, "Points for" text, "Points against" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the match that had 119 points for played? ###...
SELECT "Played in" FROM table_56254 WHERE "Points for" = '119'
### Instruction: CREATE TABLE table_1473672_2 ( nhl_team VARCHAR, college_junior_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team? ### Response:
SELECT nhl_team FROM table_1473672_2 WHERE college_junior_club_team = "Oshawa Generals (OMJHL)"
### Instruction: CREATE TABLE table_203_173 ( id number, "year(s)" text, "serial name" text, "role" text, "co-star" text, "note(s)" text, "channel" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did kelkar play himself ? ###...
SELECT COUNT(*) FROM table_203_173 WHERE "role" = 'himself'
### Instruction: CREATE TABLE table_42541 ( "Result" text, "Opponent" text, "Type" text, "Round" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When has a Type of tko, and a Round of 1 (6) ### Response:
SELECT "Date" FROM table_42541 WHERE "Type" = 'tko' AND "Round" = '1 (6)'
### Instruction: CREATE TABLE table_46631 ( "Nominative" text, "Ergative" text, "Dative" text, "Genitive" text, "Instrumental" text, "Adverbial" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the adverbial for the nominative me? ### Re...
SELECT "Adverbial" FROM table_46631 WHERE "Nominative" = 'me'
### Instruction: CREATE TABLE table_74351 ( "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 nationality is keith carney? ### Res...
SELECT "Nationality" FROM table_74351 WHERE "Player" = 'Keith Carney'
### Instruction: CREATE TABLE table_14860 ( "Round" text, "Track" text, "Race 1" text, "Race 2" text, "Race 3" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Round has the Track Clipsal 500 Support? ### Response:
SELECT "Round" FROM table_14860 WHERE "Track" = 'clipsal 500 support'
### Instruction: CREATE TABLE table_name_11 ( grid VARCHAR, laps VARCHAR, manufacturer VARCHAR, rider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps? ### Response:...
SELECT COUNT(grid) FROM table_name_11 WHERE manufacturer = "ducati" AND rider = "casey stoner" AND laps < 27
### Instruction: CREATE TABLE table_41692 ( "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. -- Which 2nd leg has pamesa valencia for team #2? ### Response:
SELECT "2nd leg" FROM table_41692 WHERE "Team #2" = 'pamesa valencia'
### Instruction: CREATE TABLE table_53860 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the competition that took place on October 1, 1994? ### Response:
SELECT "Competition" FROM table_53860 WHERE "Date" = 'october 1, 1994'
### Instruction: CREATE TABLE table_name_79 ( year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Resul...
SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
### Instruction: CREATE TABLE table_37652 ( "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 of a nation with fewer than 0 silver medals? ###...
SELECT MAX("Rank") FROM table_37652 WHERE "Silver" < '0'
### Instruction: CREATE TABLE table_55306 ( "Year" real, "Animal" text, "Artist" text, "Finish" text, "Mintage" real, "Issue Price" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the downy woodpecker coin created? ### Response:
SELECT SUM("Year") FROM table_55306 WHERE "Animal" = 'downy woodpecker'
### Instruction: CREATE TABLE table_38009 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player from New Mexico plays the WR position? ### Response:
SELECT "Player" FROM table_38009 WHERE "Position" = 'wr' AND "School/Club Team" = 'new mexico'
### Instruction: CREATE TABLE table_204_882 ( id number, "number" number, "builder" text, "entered service" text, "withdrawn" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what year was number 445 and 446 entered into service ? ...
SELECT "entered service" FROM table_204_882 WHERE "number" = 445
### Instruction: CREATE TABLE table_32570 ( "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 sum of week(s) with an attendance of 30,751? ### Response:
SELECT SUM("Week") FROM table_32570 WHERE "Attendance" = '30,751'
### Instruction: CREATE TABLE table_34833 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has a score less than 68, and paul casey as the player? ### Response:
SELECT "Country" FROM table_34833 WHERE "Score" < '68' AND "Player" = 'paul casey'
### Instruction: CREATE TABLE table_13137 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest to par with a place of t8 and West Germany as the country? ### Respo...
SELECT MAX("To par") FROM table_13137 WHERE "Place" = 't8' AND "Country" = 'west germany'
### Instruction: CREATE TABLE table_44586 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the class for trafen in part 3? ### Response:
SELECT "Class" FROM table_44586 WHERE "Part 3" = 'trafen'
### Instruction: CREATE TABLE table_name_99 ( attendance INTEGER, venue VARCHAR, scorers VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers? ### Respon...
SELECT SUM(attendance) FROM table_name_99 WHERE venue = "a" AND scorers = "di matteo, m. hughes"
### Instruction: CREATE TABLE table_37459 ( "Team" text, "Car(s)" text, "Driver(s)" text, "Primary Sponsor(s)" text, "Crew Chief" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team has Peak Fitness as the primary sponsor? ### Response:
SELECT "Team" FROM table_37459 WHERE "Primary Sponsor(s)" = 'peak fitness'