instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_name_73 ( rank VARCHAR, qual VARCHAR, grid VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92 ### Response:
SELECT COUNT(rank) FROM table_name_73 WHERE grid < 20 AND driver = "dick rathmann" AND qual > 130.92
### Instruction: CREATE TABLE table_6135 ( "Year" real, "Winner" text, "Jockey" text, "Trainer" text, "Owner" text, "Time" text, "Purse" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the trainer in 2013? ### Response:
SELECT "Trainer" FROM table_6135 WHERE "Year" = '2013'
### Instruction: CREATE TABLE table_14079 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "# / County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the enrollment for the school Highland? ### Response:
SELECT SUM("Enrollment") FROM table_14079 WHERE "School" = 'highland'
### Instruction: CREATE TABLE table_44754 ( "Lane" real, "Name" text, "Country" text, "Mark" text, "React" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Mark, when Lane is greater than 2, and when Country is Bahamas? ### Response:
SELECT "Mark" FROM table_44754 WHERE "Lane" > '2' AND "Country" = 'bahamas'
### Instruction: CREATE TABLE table_79211 ( "Actor" text, "Character" text, "Soap Opera" text, "Years" text, "Duration" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which actor played on Home and Away for 20 years? ### Response:
SELECT "Actor" FROM table_79211 WHERE "Duration" = '20 years' AND "Soap Opera" = 'home and away'
### Instruction: CREATE TABLE table_71921 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the qual 141.471? ### Response:
SELECT "Rank" FROM table_71921 WHERE "Qual" = '141.471'
### Instruction: CREATE TABLE table_203_577 ( id number, "tenure" text, "coach" text, "years" number, "record" text, "pct." number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what were the total number of years wallace wade was a coach ? ### Response:
SELECT "years" FROM table_203_577 WHERE "coach" = 'wallace wade'
### Instruction: CREATE TABLE table_204_929 ( id number, "location" text, "name of mill and\ngrid reference" text, "type" text, "maps" text, "first mention\nor built" text, "last mention\nor demise" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how man c windmills have there been ? ### Response:
SELECT COUNT(*) FROM table_204_929
### Instruction: CREATE TABLE table_23265 ( "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 total party for north carolina 7 ### Response:
SELECT COUNT("Party") FROM table_23265 WHERE "District" = 'North Carolina 7'
### 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_18520 ( "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. -- What was the result of the election in the Texas 3 district? ### Response:
SELECT "Result" FROM table_18520 WHERE "District" = 'Texas 3'
### Instruction: CREATE TABLE table_930 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Stadium" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the stadium with record being 1 1 ### Response:
SELECT "Stadium" FROM table_930 WHERE "Record" = '1–1'
### Instruction: CREATE TABLE table_204_804 ( id number, "version" text, "length" text, "album" text, "remixed by" text, "year" number, "comment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long is the song remixed by y front ? ### Response:
SELECT "length" FROM table_204_804 WHERE "remixed by" = 'y-front'
### Instruction: CREATE TABLE table_40098 ( "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. -- Which team had a class position of 5th? ### Response:
SELECT "Team" FROM table_40098 WHERE "Class Pos." = '5th'
### Instruction: CREATE TABLE table_76777 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Nationality" text, "College/Junior Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of the pick of the lw position player? ### Response:
SELECT SUM("Pick") FROM table_76777 WHERE "Position" = 'lw'
### Instruction: CREATE TABLE table_22102 ( "Player" text, "Alma Mater" text, "National Lacrosse League" text, "Major League Lacrosse" text, "International Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all of the NLL Toronto Rock players. ### Response:
SELECT "Player" FROM table_22102 WHERE "National Lacrosse League" = 'Toronto Rock'
### Instruction: CREATE TABLE table_11490 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did someone play from 1982-84? ### Response:
SELECT "Position" FROM table_11490 WHERE "Years for Jazz" = '1982-84'
### Instruction: CREATE TABLE table_42583 ( "Ship size" text, "Cargo" text, "2004" text, "2005" text, "2006" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the cargo value in 2004 for ship size? ### Response:
SELECT "2004" FROM table_42583 WHERE "Ship size" = 'ship size'
### Instruction: CREATE TABLE table_13256 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest amount of gold for more than 16 silver? ### Response:
SELECT MIN("Gold") FROM table_13256 WHERE "Silver" > '16'
### Instruction: CREATE TABLE table_204_807 ( id number, "date" text, "winner" text, "runner-up" text, "result" text, "site" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the first team to be champion of the tournament ? ### Response:
SELECT "winner" FROM table_204_807 ORDER BY "date" LIMIT 1
### Instruction: CREATE TABLE table_8414 ( "School" text, "Locality" text, "Ages" text, "Report" text, "Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the Ages of the Seashell Trust School with Ofsted Report? ### Response:
SELECT "Ages" FROM table_8414 WHERE "Report" = 'ofsted' AND "School" = 'seashell trust'
### Instruction: CREATE TABLE table_2562 ( "Series #" real, "Season #" 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 date did episode 258 in the series originally air? ### Response:
SELECT "Original air date" FROM table_2562 WHERE "Series #" = '258'
### Instruction: CREATE TABLE table_204_727 ( 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 countries won the more than five silver medals ? ### Response:
SELECT "nation" FROM table_204_727 WHERE "silver" > 5
### Instruction: CREATE TABLE table_44099 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Country has a Score of 69, and a Player of mick soli? ### Response:
SELECT "Country" FROM table_44099 WHERE "Score" = '69' AND "Player" = 'mick soli'
### Instruction: CREATE TABLE table_203_521 ( id number, "year" number, "division" number, "league" text, "regular season" text, "playoffs" text, "open cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the result of the last playoffs ? ### Response:
SELECT "playoffs" FROM table_203_521 ORDER BY "year" DESC LIMIT 1
### Instruction: CREATE TABLE table_31952 ( "Season" text, "Level" text, "Division" text, "Section" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the section for position of 8th and season of 2003 ### Response:
SELECT "Section" FROM table_31952 WHERE "Position" = '8th' AND "Season" = '2003'
### Instruction: CREATE TABLE table_name_68 ( draws INTEGER, south_west_dfl VARCHAR, byes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest value for Draws, when South West DFL is 'Tyrendarra', and when Byes is greater than 0? ### Response:
SELECT MIN(draws) FROM table_name_68 WHERE south_west_dfl = "tyrendarra" AND byes > 0
### Instruction: CREATE TABLE table_30120761_1 ( area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the acreage of the Maghereen in the civil parish of Macroom? ### Response:
SELECT COUNT(area__acres__) FROM table_30120761_1 WHERE civil_parish = "Macroom" AND townland = "Maghereen"
### Instruction: CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Return a bar chart on how old is the youngest person for each job? ### Response:
SELECT job, MIN(age) FROM Person GROUP BY job
### 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 2nd positions were there ? ### Response:
SELECT COUNT(*) FROM table_204_974 WHERE "position" = 2
### Instruction: CREATE TABLE table_51303 ( "Outcome" text, "Year" real, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the outcome for the 1887? ### Response:
SELECT "Outcome" FROM table_51303 WHERE "Year" = '1887'
### Instruction: CREATE TABLE table_7361 ( "University" text, "Men's" real, "Women's" real, "Junior's" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total of the university with more than 3 junior's championships? ### Response:
SELECT AVG("Total") FROM table_7361 WHERE "Junior's" > '3'
### Instruction: CREATE TABLE table_61325 ( "Episode" text, "18-49" text, "Viewers (m)" real, "Rating" text, "Share" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Rating has Viewers (m) of 2.73? ### Response:
SELECT "Rating" FROM table_61325 WHERE "Viewers (m)" = '2.73'
### Instruction: CREATE TABLE table_18204 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Status" text, "Opponent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the opponents in Massachusetts5 district? ### Response:
SELECT "Opponent" FROM table_18204 WHERE "District" = 'Massachusetts5'
### Instruction: CREATE TABLE table_203_8 ( id number, "player" text, "rec." number, "yards" number, "avg." number, "td's" number, "long" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference between the highest average and the lowest avaerage ? ### Response:
SELECT MAX("avg.") - MIN("avg.") FROM table_203_8
### Instruction: CREATE TABLE table_62714 ( "Year" real, "Class" text, "Team" text, "Machine" text, "Points" real, "Rank" text, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins were there in 1994? ### Response:
SELECT SUM("Wins") FROM table_62714 WHERE "Year" = '1994'
### Instruction: CREATE TABLE table_9913 ( "Rank" text, "Name" text, "Sprint Points" text, "Extra Laps" text, "Total Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is at rank 13 with 23 total points? ### Response:
SELECT "Name" FROM table_9913 WHERE "Total Points" = '23' AND "Rank" = '13'
### Instruction: CREATE TABLE table_52925 ( "Class" text, "Wheels" text, "Date" text, "No. built" real, "Loco Nos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many were built with a locomotive number of 11-20? ### Response:
SELECT "No. built" FROM table_52925 WHERE "Loco Nos." = '11-20'
### Instruction: CREATE TABLE table_31511 ( "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. -- How many baronies is Maulnagrough a part of? ### Response:
SELECT COUNT("Barony") FROM table_31511 WHERE "Townland" = 'Maulnagrough'
### Instruction: CREATE TABLE table_34996 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What home has February 10 as the date? ### Response:
SELECT "Home" FROM table_34996 WHERE "Date" = 'february 10'
### Instruction: CREATE TABLE table_203_777 ( id number, "years" text, "building" text, "city" text, "height (ctbuh)" text, "floors" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the only to hold the record for a year ? ### Response:
SELECT "building" FROM table_203_777 WHERE "years" - "years" = 0
### Instruction: CREATE TABLE table_31620 ( "Year" text, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who played men's singles in 1951? ### Response:
SELECT "Men's singles" FROM table_31620 WHERE "Year" = '1951'
### Instruction: CREATE TABLE table_17156199_1 ( year__ceremony_ VARCHAR, original_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years was the original title was (swopnodanay)? ### Response:
SELECT COUNT(year__ceremony_) FROM table_17156199_1 WHERE original_title = "স্বপ্নডানায় (Swopnodanay)"
### Instruction: CREATE TABLE table_203_583 ( id number, "title" text, "release" number, "6th gen" text, "handheld" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the first non volume game released in 2004 ? ### Response:
SELECT "title" FROM table_203_583 WHERE "release" = 2004 LIMIT 1
### 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'? ### Response:
SELECT to_par FROM table_name_96 WHERE country = "united states" AND place = "t4" AND player = "arnold palmer"
### Instruction: CREATE TABLE table_26683 ( "Region/Country" text, "Local name" text, "Main presenter" text, "Network" text, "Year premiered" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest year premiered when Benjamin Castaldi is main presenter? ### Response:
SELECT MAX("Year premiered") FROM table_26683 WHERE "Main presenter" = 'Benjamin Castaldi'
### Instruction: CREATE TABLE table_14325808_1 ( area__km²_ VARCHAR, population__2007_estimation_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many places of whatever size have a 2007 population estimation of 7996? ### Response:
SELECT COUNT(area__km²_) FROM table_14325808_1 WHERE population__2007_estimation_ = 7996
### 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_39676 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of the Euro '64 qualifying game? ### Response:
SELECT "Date" FROM table_39676 WHERE "Type of game" = 'euro ''64 qualifying'
### Instruction: CREATE TABLE table_203_655 ( id number, "goal" 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. -- how many different venues were played at ? ### Response:
SELECT COUNT(DISTINCT "venue") FROM table_203_655
### Instruction: CREATE TABLE table_76465 ( "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 was the Opponent when the Cavaliers had a Record of 3-9? ### Response:
SELECT "Opponent" FROM table_76465 WHERE "Record" = '3-9'
### Instruction: CREATE TABLE table_77944 ( "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 score of the match on July 29, 1990? ### Response:
SELECT "Score" FROM table_77944 WHERE "Date" = 'july 29, 1990'
### Instruction: CREATE TABLE table_60770 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the 1998 FIFA World Cup qualification competition? ### Response:
SELECT "Score" FROM table_60770 WHERE "Competition" = '1998 fifa world cup qualification'
### Instruction: CREATE TABLE airlines ( name VARCHAR, alid VARCHAR ) CREATE TABLE routes ( alid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names of the top 10 airlines that operate the most number of routes. ### Response:
SELECT T1.name, T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY COUNT(*) DESC LIMIT 10
### Instruction: CREATE TABLE table_33211 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who in Qual 2 had the best time of 1:31.327? ### Response:
SELECT "Qual 2" FROM table_33211 WHERE "Best" = '1:31.327'
### Instruction: CREATE TABLE table_203_70 ( 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. -- how many bronze medals does togo have ? ### Response:
SELECT "bronze" FROM table_203_70 WHERE "nation" = 'togo'
### Instruction: CREATE TABLE table_55947 ( "Year" real, "Title" text, "Role" text, "Studio" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What title was directed by Raoul Walsh later than 1945? ### Response:
SELECT "Title" FROM table_55947 WHERE "Director" = 'raoul walsh' AND "Year" > '1945'
### Instruction: CREATE TABLE table_71486 ( "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. -- Who was the Team 1 for a 2nd leg of 1-4? ### Response:
SELECT "Team 1" FROM table_71486 WHERE "2nd leg" = '1-4'
### Instruction: CREATE TABLE table_49200 ( "Player" text, "Nationality" text, "Jersey Number(s)" text, "Position" text, "Years" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years did jersey number 55 play? ### Response:
SELECT "Years" FROM table_49200 WHERE "Jersey Number(s)" = '55'
### 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 , including those classified as dsq & dnf ? ### Response:
SELECT COUNT("athlete") FROM table_204_712
### Instruction: CREATE TABLE table_204_144 ( id number, "represent" number, "contestant" text, "age" number, "height" text, "hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many contestants were below 1.75 mts ? ### Response:
SELECT COUNT("contestant") FROM table_204_144 WHERE "height" < 1.75
### Instruction: CREATE TABLE table_204_448 ( id number, "team" text, "winners" number, "runners-up" number, "years won" text, "years runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many teams have been winners at least 5 times ? ### Response:
SELECT COUNT("team") FROM table_204_448 WHERE "winners" >= 5
### Instruction: CREATE TABLE table_204_811 ( id number, "year" number, "ring name\n(birth name)" text, "inducted by" text, "inducted for" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many members were inducted for announcing ? ### Response:
SELECT COUNT(*) FROM table_204_811 WHERE "inducted for" = 'announcing'
### Instruction: CREATE TABLE table_7713 ( "Year" text, "Regular Season" text, "Playoffs" text, "Canadian Championship" text, "CONCACAF Champions League" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Canadian Championship had CONCACAF Champions League of semifinals? ### Response:
SELECT "Canadian Championship" FROM table_7713 WHERE "CONCACAF Champions League" = 'semifinals'
### Instruction: CREATE TABLE table_203_496 ( id number, "pos" number, "country" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many countries have more than 5 medals in total ? ### Response:
SELECT COUNT("country") FROM table_203_496 WHERE "total" > 5
### Instruction: CREATE TABLE table_204_117 ( id number, "season" number, "level" text, "division" text, "section" text, "position" text, "movements" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times is division 2 listed as the division ? ### Response:
SELECT COUNT(*) FROM table_204_117 WHERE "division" = 'division 2'
### 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_66564 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of the player with a pick less than 3 from team san diego? ### Response:
SELECT "Position" FROM table_66564 WHERE "Pick" < '3' AND "Team" = 'san diego'
### Instruction: CREATE TABLE table_name_75 ( set_1 VARCHAR, set_3 VARCHAR, set_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Set 1 game score when Set 3 game score was 15 4, and a Set 2 game score was 15 7? ### Response:
SELECT set_1 FROM table_name_75 WHERE set_3 = "15–4" AND set_2 = "15–7"
### Instruction: CREATE TABLE table_76232 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the golfer that has the score of 73-65=138? ### Response:
SELECT "Player" FROM table_76232 WHERE "Score" = '73-65=138'
### Instruction: CREATE TABLE table_204_753 ( id number, "no." number, "name" text, "position" text, "date of birth (age)" text, "signed from" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many players are reserve team players ? ### Response:
SELECT COUNT("name") FROM table_204_753 WHERE "notes" = 'reserve team player'
### Instruction: CREATE TABLE table_203_416 ( id number, "school name" text, "city" text, "grades" text, "establishment" number, "charter" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the first public middle school established in hawaii ? ### Response:
SELECT "school name" FROM table_203_416 ORDER BY "establishment" LIMIT 1
### Instruction: CREATE TABLE table_204_195 ( id number, "team" text, "home city" text, "stadium" text, "capacity" number, "last season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- name a home city that has at least two teams . ### Response:
SELECT "home city" FROM table_204_195 GROUP BY "home city" HAVING COUNT("team") >= 2
### Instruction: CREATE TABLE table_204_374 ( id number, "event" text, "gold" number, "silver" number, "bronze" number, "total" number, "ranking" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- only year in which switzerland earned 9 silver medals ### Response:
SELECT "event" FROM table_204_374 WHERE "silver" = 9
### Instruction: CREATE TABLE table_name_65 ( date_sent VARCHAR, constellation VARCHAR, designation_hd VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date sent has cygnus as a constellation, and hd 190360 as a designation HD? ### Response:
SELECT date_sent FROM table_name_65 WHERE constellation = "cygnus" AND designation_hd = "hd 190360"
### Instruction: CREATE TABLE table_29108 ( "Series #" real, "Season #" real, "Title" text, "Director" text, "Writer" text, "Original Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first series episode number for 'the christmas watch'? ### Response:
SELECT MIN("Series #") FROM table_29108 WHERE "Title" = 'The Christmas Watch'
### Instruction: CREATE TABLE table_34181 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Record of 15 12 2? ### Response:
SELECT "Score" FROM table_34181 WHERE "Record" = '15–12–2'
### Instruction: CREATE TABLE table_34205 ( "Year" text, "Flagship Station" text, "Play-by-play" text, "Color commentator(s)" text, "Studio host" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Year of 2006-07 had what studio host? ### Response:
SELECT "Studio host" FROM table_34205 WHERE "Year" = '2006-07'
### Instruction: CREATE TABLE table_49308 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Opponent, when Attendance is 58,836? ### Response:
SELECT "Opponent" FROM table_49308 WHERE "Attendance" = '58,836'
### Instruction: CREATE TABLE table_40076 ( "Ring name" text, "Current rank" text, "Debut" text, "Stable" text, "Birthplace" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Current Rank, when Ring Name is Kimurayama Mamoru? ### Response:
SELECT "Current rank" FROM table_40076 WHERE "Ring name" = 'kimurayama mamoru'
### Instruction: CREATE TABLE employees ( employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, department_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a T . ### Response:
SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%')
### Instruction: CREATE TABLE table_58443 ( "Date of Issue" text, "Denomination" text, "Design" text, "Paper Type" text, "First Day Cover Cancellation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stamp design has a denomination of $1.18? ### Response:
SELECT "Design" FROM table_58443 WHERE "Denomination" = '$1.18'
### Instruction: CREATE TABLE table_70615 ( "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 attendance number for December 2, 1979? ### Response:
SELECT SUM("Attendance") FROM table_70615 WHERE "Date" = 'december 2, 1979'
### Instruction: CREATE TABLE table_2095 ( "Season" text, "Final Venue" text, "Champion" text, "Result" text, "Finalist" text, "MVP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the finalist when the MVP was Romain Sato? ### Response:
SELECT "Finalist" FROM table_2095 WHERE "MVP" = 'Romain Sato'
### Instruction: CREATE TABLE table_17204 ( "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. -- What club team did JArrod Maidens play for? ### Response:
SELECT "Club team" FROM table_17204 WHERE "Player" = 'Jarrod Maidens'
### Instruction: CREATE TABLE table_204_796 ( id number, "network name" text, "flagship" text, "programming type" text, "owner" text, "affiliates" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- tell me the number of stations tv azteca owns . ### Response:
SELECT COUNT("network name") FROM table_204_796 WHERE "owner" = 'tv azteca'
### Instruction: CREATE TABLE table_64729 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many places have an Artist of august , and a Draw smaller than 6? ### Response:
SELECT COUNT("Place") FROM table_64729 WHERE "Artist" = 'augustė' AND "Draw" < '6'
### Instruction: CREATE TABLE table_54515 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what grid did Richard Robarts make 36 laps? ### Response:
SELECT SUM("Grid") FROM table_54515 WHERE "Driver" = 'richard robarts' AND "Laps" < '36'
### Instruction: CREATE TABLE table_68420 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score for the game that had an attendance of 41,087? ### Response:
SELECT "Score" FROM table_68420 WHERE "Attendance" = '41,087'
### Instruction: CREATE TABLE table_43511 ( "Season" text, "Competition" text, "Round" text, "Opponent" text, "Home" text, "Away" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which round has an opponent of Freiburg? ### Response:
SELECT "Round" FROM table_43511 WHERE "Opponent" = 'freiburg'
### Instruction: CREATE TABLE table_5620 ( "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. -- On what date was the record 4 0 0? ### Response:
SELECT "Date" FROM table_5620 WHERE "Record" = '4–0–0'
### Instruction: CREATE TABLE table_47393 ( "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 the score for the match that had a home team of Kidderminster Harriers? ### Response:
SELECT "Score" FROM table_47393 WHERE "Home team" = 'kidderminster harriers'
### Instruction: CREATE TABLE table_name_67 ( played VARCHAR, goals_for VARCHAR, points VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35 ### Response:
SELECT COUNT(played) FROM table_name_67 WHERE points = "31-7" AND position = 16 AND goals_for < 35
### Instruction: CREATE TABLE table_204_557 ( id number, "#" number, "date" text, "visitor" text, "score" text, "home" text, "record" text, "pts" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of first visitor on this chart ? ### Response:
SELECT "visitor" FROM table_204_557 WHERE id = 1
### Instruction: CREATE TABLE table_36909 ( "Club" text, "Sport" text, "Founded" real, "League" text, "Venue" text, "Head Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Venue of Pepsi arena involved what club? ### Response:
SELECT "Club" FROM table_36909 WHERE "Venue" = 'pepsi arena'
### Instruction: CREATE TABLE table_72254 ( "Series #" real, "Season #" 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 season features writer Michael Poryes? ### Response:
SELECT "Season #" FROM table_72254 WHERE "Written by" = 'Michael Poryes'
### Instruction: CREATE TABLE table_203_409 ( id number, "rank" number, "representative" text, "party" text, "district" text, "seniority date" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- does each congressman have a party listed ? ### Response:
SELECT COUNT(*) = 0 FROM table_203_409 WHERE "party" IS NULL
### Instruction: CREATE TABLE table_204_772 ( id number, "team" text, "county" text, "wins" number, "years won" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team comes before confey ### Response:
SELECT "team" FROM table_204_772 WHERE id = (SELECT id FROM table_204_772 WHERE "team" = 'confey') - 1
### Instruction: CREATE TABLE table_15053 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the loss for the record of 42-36? ### Response:
SELECT "Loss" FROM table_15053 WHERE "Record" = '42-36'
### Instruction: CREATE TABLE table_name_52 ( directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the episode written by Dan Serafin and aired on July 23, 2008? ### Response:
SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008"