instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_204_667 ( id number, "year" number, "film title" text, "genre" text, "cast" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the name of the first love story this director made ? ### Response:
SELECT "film title" FROM table_204_667 WHERE "genre" = 'love story' ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_21764 ( "Number" real, "Name" text, "Kilometer" real, "Location" text, "Length (in m)" real, "Average climb (%)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which race had an average climb of 40%? ### Response:
SELECT "Location" FROM table_21764 WHERE "Average climb (%)" = '40'
### Instruction: CREATE TABLE table_22913 ( "Fiscal year" real, "2-car sets" real, "3-car sets" real, "4-car sets" real, "6-car sets" real, "8-car sets" real, "Total vehicles" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most 3 car sets ### Response:
SELECT MAX("3-car sets") FROM table_22913
### Instruction: CREATE TABLE table_33765 ( "Chapter" text, "Chartered" text, "School" text, "State" text, "Status" text, "Charter Range" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years were the inactive Idaho chapter active? ### Response:
SELECT "Charter Range" FROM table_33765 WHERE "Status" = 'inactive' AND "State" = 'idaho'
### Instruction: CREATE TABLE table_25151 ( "Year" real, "Championship" text, "54 holes" text, "Winning score" text, "Margin" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least year for walter hagen ### Response:
SELECT MIN("Year") FROM table_25151 WHERE "Runner(s)-up" = 'Walter Hagen'
### Instruction: CREATE TABLE table_77205 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the highest draw with over 60 points for paul duffy? ### Response:
SELECT MAX("Draw") FROM table_77205 WHERE "Points" > '60' AND "Artist" = 'paul duffy'
### Instruction: CREATE TABLE table_71994 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue was finished in 2nd position in 1985? ### Response:
SELECT "Venue" FROM table_71994 WHERE "Position" = '2nd' AND "Year" = '1985'
### Instruction: CREATE TABLE table_57364 ( "No. in series" real, "No. in 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. -- Who was the number 24 series written by? ### Response:
SELECT "Written By" FROM table_57364 WHERE "No. in series" = '24'
### Instruction: CREATE TABLE WINE ( Appelation VARCHAR ) CREATE TABLE APPELLATIONS ( County VARCHAR, Appelation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the country of all appelations who have at most three wines. ### Response:
SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING COUNT(*) <= 3
### Instruction: CREATE TABLE entrepreneur ( entrepreneur_id number, people_id number, company text, money_requested number, investor text ) CREATE TABLE people ( people_id number, name text, height number, weight number, date_of_birth text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the companies and the investors of entrepreneurs. ### Response:
SELECT company, investor FROM entrepreneur
### Instruction: CREATE TABLE table_203_545 ( id number, "single/ep" text, "release date" text, "label" text, "format(s)" text, "uk singles chart position" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what label was appears the most ? ### Response:
SELECT "label" FROM table_203_545 GROUP BY "label" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_15356 ( "Date" text, "City" text, "Event" text, "Winner" text, "Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner of the prize z 1,226,711? ### Response:
SELECT "Winner" FROM table_15356 WHERE "Prize" = 'zł 1,226,711'
### Instruction: CREATE TABLE table_8459 ( "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 Score that has a To standard of 3, and a Player of Jim Furyk? ### Response:
SELECT "Score" FROM table_8459 WHERE "To par" = '–3' AND "Player" = 'jim furyk'
### Instruction: CREATE TABLE table_55769 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the school that has a player named Michael Dunigan? ### Response:
SELECT "School" FROM table_55769 WHERE "Player" = 'michael dunigan'
### Instruction: CREATE TABLE table_204_52 ( 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. -- what are the total number of competitions held in march ? ### Response:
SELECT COUNT("date") FROM table_204_52 WHERE "date" = 3
### Instruction: CREATE TABLE track ( track_id number, name text, location text, seating number, year_opened number ) CREATE TABLE race ( race_id number, name text, class text, date text, track_id text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Return the names of tracks that have no had any races. ### Response:
SELECT name FROM track WHERE NOT track_id IN (SELECT track_id FROM race)
### Instruction: CREATE TABLE table_203_215 ( 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. -- which competition came in last position out of all of the competitions shown ? ### Response:
SELECT "competition" FROM table_203_215 ORDER BY "position" DESC LIMIT 1
### Instruction: CREATE TABLE table_22339 ( "City of license /Market" text, "Station" text, "Channel ( TV / RF )" text, "Owned Since" real, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many stations have been owned since wfts-tv? ### Response:
SELECT "Owned Since" FROM table_22339 WHERE "Station" = 'WFTS-TV'
### Instruction: CREATE TABLE table_name_9 ( position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which position is the highest to have less than 54 goals, a loss of 7 and a goal difference higher than 23? ### Response:
SELECT MAX(position) FROM table_name_9 WHERE goals_against < 54 AND losses = 7 AND goal_difference > 23
### Instruction: CREATE TABLE table_47509 ( "Team A" text, "Team C" text, "Team D" text, "Team E" text, "Team F" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is Team A when wilma hofschneider-david is team C? ### Response:
SELECT "Team A" FROM table_47509 WHERE "Team C" = 'wilma hofschneider-david'
### Instruction: CREATE TABLE table_69667 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game held that was played on 2002-03-07? ### Response:
SELECT "Venue" FROM table_69667 WHERE "Date" = '2002-03-07'
### Instruction: CREATE TABLE table_31315 ( "Date" real, "Competition" text, "Location" text, "Home Team" text, "Result" text, "Away Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the home match against FK Rudar Ugljevik played? ### Response:
SELECT "Location" FROM table_31315 WHERE "Away Team" = 'FK Rudar Ugljevik'
### Instruction: CREATE TABLE table_name_63 ( wins INTEGER, draws VARCHAR, season VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of wins for the team, Central District, who had less than 0 draws and took place during a season before 1995? ### Response:
SELECT MAX(wins) FROM table_name_63 WHERE season < 1995 AND team = "central district" AND draws < 0
### Instruction: CREATE TABLE table_204_248 ( 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 number of countries that had no gold medals ? ### Response:
SELECT COUNT("nation") FROM table_204_248 WHERE "gold" = 0
### Instruction: CREATE TABLE table_49849 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the method of resolution when Mikhail Ilyukhin's record was 4-0? ### Response:
SELECT "Method" FROM table_49849 WHERE "Record" = '4-0'
### Instruction: CREATE TABLE table_name_35 ( points_2 INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points 2 has Drawn of 15, a Position larger than 20, and a Goals For smaller than 45? ### Response:
SELECT SUM(points_2) FROM table_name_35 WHERE drawn = 15 AND position > 20 AND goals_for < 45
### Instruction: CREATE TABLE table_66499 ( "Draw" real, "Artist" text, "Song" text, "Televote/SMS" text, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the place when the televote/sms is 2.39%? ### Response:
SELECT SUM("Place") FROM table_66499 WHERE "Televote/SMS" = '2.39%'
### Instruction: CREATE TABLE table_1569 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season had the 'grumpy old bees' episodes? ### Response:
SELECT COUNT("Season #") FROM table_1569 WHERE "Title" = 'Grumpy Old Bees'
### Instruction: CREATE TABLE table_75630 ( "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 week of the game played on November 28, 1974? ### Response:
SELECT MIN("Week") FROM table_75630 WHERE "Date" = 'november 28, 1974'
### Instruction: CREATE TABLE table_16014 ( "Nomination" text, "Actors Name" text, "Film Name" text, "Director" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the number of nominations for natalia raskokoha? ### Response:
SELECT COUNT("Nomination") FROM table_16014 WHERE "Actors Name" = 'Natalia Raskokoha'
### Instruction: CREATE TABLE table_63141 ( "Elector" text, "Nationality" text, "Faction" text, "Elevated" text, "Elevator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Prato Elector with a faction of Italian? ### Response:
SELECT "Elector" FROM table_63141 WHERE "Faction" = 'italian' AND "Nationality" = 'prato'
### Instruction: CREATE TABLE table_203_305 ( id number, "round" number, "#" number, "player" text, "nationality" text, "college/junior/club team (league)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many players are from the united states ? ### Response:
SELECT COUNT("player") FROM table_203_305 WHERE "nationality" = 'united states'
### Instruction: CREATE TABLE table_18170 ( "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. -- Who's the incumbent of district Wisconsin 5? ### Response:
SELECT "Incumbent" FROM table_18170 WHERE "District" = 'Wisconsin 5'
### Instruction: CREATE TABLE table_17535 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won the mens singles in 2009? ### Response:
SELECT "Mens singles" FROM table_17535 WHERE "Year" = '2009'
### Instruction: CREATE TABLE table_75014 ( "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 Type of game has a Results of 10:1? ### Response:
SELECT "Type of game" FROM table_75014 WHERE "Results\u00b9" = '10:1'
### Instruction: CREATE TABLE table_31639 ( "Aircraft" text, "Origin" text, "Type" text, "Versions" text, "In service" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many C-95 aircrafts originating in Brazil are currently in service? ### Response:
SELECT "In service" FROM table_31639 WHERE "Origin" = 'brazil' AND "Versions" = 'c-95'
### Instruction: CREATE TABLE table_31265 ( "Season" real, "Apocalypstix" text, "Denim Demons" text, "Sake Tuyas" text, "Toxic Shocks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many seasons did Apocalypstix place 2nd? ### Response:
SELECT COUNT("Season") FROM table_31265 WHERE "Apocalypstix" = '2nd'
### Instruction: CREATE TABLE table_69728 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of people that went when the record was 16-22 ### Response:
SELECT COUNT("Attendance") FROM table_69728 WHERE "Record" = '16-22'
### Instruction: CREATE TABLE table_28492 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the original artist of the chosen song when the theme was The Rolling Stones? ### Response:
SELECT "Original artist" FROM table_28492 WHERE "Theme" = 'The Rolling Stones'
### Instruction: CREATE TABLE table_28558 ( "Film Festival" text, "Date of ceremony" text, "Category" text, "Participants/Recipients" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the participant or recipient for the Best Female Actor? ### Response:
SELECT "Participants/Recipients" FROM table_28558 WHERE "Category" = 'Best Female Actor'
### Instruction: CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names of captains, sorted by age descending? ### Response:
SELECT name FROM captain ORDER BY age DESC
### Instruction: CREATE TABLE table_204_293 ( id number, "district" number, "name" text, "party" text, "district office" text, "first elected" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only louisiana state senator first elected in 2005 ? ### Response:
SELECT "name" FROM table_204_293 WHERE "first elected" = 2005
### Instruction: CREATE TABLE table_62892 ( "Driver" text, "Entrant" text, "Constructor" text, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What constructor has a grid less than 21, and time/retired of engine? ### Response:
SELECT "Constructor" FROM table_62892 WHERE "Grid" < '21' AND "Time/Retired" = 'engine'
### Instruction: CREATE TABLE table_name_87 ( bush_number INTEGER, bush_percentage VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of Bush with a 32.40% Bush % and a total less than 5,126? ### Response:
SELECT MAX(bush_number) FROM table_name_87 WHERE bush_percentage = "32.40%" AND total < 5 OFFSET 126
### Instruction: CREATE TABLE table_63164 ( "Game" text, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent when the record was 31-24? ### Response:
SELECT "Opponent" FROM table_63164 WHERE "Record" = '31-24'
### Instruction: CREATE TABLE table_189598_7 ( population__2011_ INTEGER, land_area__km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 6.00 is the land area in kilometers squared what is the highest population of 2011? ### Response:
SELECT MAX(population__2011_) FROM table_189598_7 WHERE land_area__km²_ = "6.00"
### Instruction: CREATE TABLE table_name_54 ( total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the fewest number of viewers for the episode production number of 109 5-22? ### Response:
SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-22"
### Instruction: CREATE TABLE table_15343 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the Cosworth v8 engine get in 1972? ### Response:
SELECT "Points" FROM table_15343 WHERE "Year" = '1972' AND "Engine" = 'cosworth v8'
### Instruction: CREATE TABLE table_51538 ( "Pick" real, "Player" text, "Country of origin*" text, "PBA team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which pick was the lowest from Manila College in Philippines? ### Response:
SELECT MIN("Pick") FROM table_51538 WHERE "Country of origin*" = 'philippines' AND "College" = 'manila'
### Instruction: CREATE TABLE table_19974 ( "Region" real, "Group A" text, "Group B" text, "Group C" text, "Group D" text, "Group E" text, "Group F" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is in group c when iowa is in group e? ### Response:
SELECT "Group C" FROM table_19974 WHERE "Group E" = 'Iowa'
### Instruction: CREATE TABLE table_2150068_1 ( launch_date__utc_ VARCHAR, nssdc_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the launch date for the sattelite with a nssdc id of 1960-009a? ### Response:
SELECT launch_date__utc_ FROM table_2150068_1 WHERE nssdc_id = "1960-009A"
### Instruction: CREATE TABLE table_57355 ( "engine name" text, "engine configuration" text, "displacement" text, "max. power at rpm" text, "max. torque at rpm" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the engine configuration of the 1.2 mpi engine? ### Response:
SELECT "engine configuration" FROM table_57355 WHERE "engine name" = '1.2 mpi'
### Instruction: CREATE TABLE table_204_130 ( 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. -- who is the first opponent listed on this chart ? ### Response:
SELECT "opponent" FROM table_204_130 WHERE id = 1
### Instruction: CREATE TABLE table_12635 ( "Golden Rivers" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the highest losses for a byes larger than 2? ### Response:
SELECT MAX("Losses") FROM table_12635 WHERE "Byes" > '2'
### Instruction: CREATE TABLE table_203_549 ( id number, "player" text, "team" text, "date" text, "opponent" text, "venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the player for the new york yankees in 1936 ? ### Response:
SELECT "player" FROM table_203_549 WHERE "date" = 1936
### Instruction: CREATE TABLE table_31129 ( "#" real, "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Former school" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year is the player whose number is 31? ### Response:
SELECT "Year" FROM table_31129 WHERE "#" = '31'
### Instruction: CREATE TABLE table_18384 ( "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 was the party of the first elected candidate in 1954? ### Response:
SELECT "Party" FROM table_18384 WHERE "First elected" = '1954'
### Instruction: CREATE TABLE table_7797 ( "Name" text, "Gain" real, "Loss" real, "Long" real, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Rock Cartwright's highest long with more than 11 losses? ### Response:
SELECT AVG("Long") FROM table_7797 WHERE "Name" = 'rock cartwright' AND "Loss" > '11'
### Instruction: CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text ) CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the different classes of races, and how many races correspond to each. Show the proportion. ### Response:
SELECT Class, COUNT(*) FROM race GROUP BY Class
### Instruction: CREATE TABLE table_77012 ( "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. -- The player from Alief Elsik Hs has what as a nationality? ### Response:
SELECT "Nationality" FROM table_77012 WHERE "From" = 'alief elsik hs'
### Instruction: CREATE TABLE table_34372 ( "Place" text, "Code" real, "Area (km 2 )" real, "Population" real, "Most spoken language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which place has more area (km 2) than 34.42? ### Response:
SELECT "Place" FROM table_34372 WHERE "Area (km 2 )" > '34.42'
### Instruction: CREATE TABLE table_64939 ( "Player" text, "Int'l Debut" text, "Year" text, "Cross Code Debut" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Player with a Cross Code Debut of RL Test GB v France? ### Response:
SELECT "Player" FROM table_64939 WHERE "Cross Code Debut" = 'rl test gb v france'
### Instruction: CREATE TABLE table_41378 ( "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 was the team 1 for the tie that had a first leg score of 2-3? ### Response:
SELECT "Team 1" FROM table_41378 WHERE "1st leg" = '2-3'
### Instruction: CREATE TABLE table_73182 ( "Date" text, "Team #1" text, "Res." text, "Team #2" text, "Competition" text, "Attendance" real, "Remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the res for the game against Payam? ### Response:
SELECT "Res." FROM table_73182 WHERE "Team #2" = 'Payam'
### Instruction: CREATE TABLE table_14436 ( "Date" text, "Label" text, "Region" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the 12' maxi in September 1990? ### Response:
SELECT "Region" FROM table_14436 WHERE "Format" = '12" maxi' AND "Date" = 'september 1990'
### Instruction: CREATE TABLE table_18423 ( "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. -- How many districts represented Edwin E. Willis? ### Response:
SELECT COUNT("District") FROM table_18423 WHERE "Incumbent" = 'Edwin E. Willis'
### Instruction: CREATE TABLE table_43897 ( "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. -- What is the highest year for the US Open? ### Response:
SELECT MAX("Year") FROM table_43897 WHERE "Championship" = 'us open'
### Instruction: CREATE TABLE table_18712423_3 ( original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin? ### Response:
SELECT original_air_date FROM table_18712423_3 WHERE directed_by = "Ian Barry" AND written_by = "Philip Dalkin"
### Instruction: CREATE TABLE table_204_459 ( id number, "date" text, "time" text, "opponent" text, "site" text, "tv" text, "result" text, "attendance" number, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were played in the regular season ? ### Response:
SELECT COUNT("time") FROM table_204_459
### Instruction: CREATE TABLE table_39128 ( "Position" real, "Channel" text, "Owner" text, "Share (%)" real, "Rating (%)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of rating % for cctv and position more than 7 ### Response:
SELECT SUM("Rating (%)") FROM table_39128 WHERE "Owner" = 'cctv' AND "Position" > '7'
### Instruction: CREATE TABLE table_64206 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Lane of the swimmer from Uzbekistan in Heat 1? ### Response:
SELECT COUNT("Lane") FROM table_64206 WHERE "Heat" = '1' AND "Nationality" = 'uzbekistan'
### Instruction: CREATE TABLE table_25361570_2 ( team VARCHAR, position_in_table VARCHAR, date_of_appointment VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of teams for 11th position september 10 ### Response:
SELECT COUNT(team) FROM table_25361570_2 WHERE position_in_table = "11th" AND date_of_appointment = "September 10"
### Instruction: CREATE TABLE table_69756 ( "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 all attendance on November 17, 1961? ### Response:
SELECT SUM("Attendance") FROM table_69756 WHERE "Date" = 'november 17, 1961'
### Instruction: CREATE TABLE table_2624098_1 ( latin_day_name_meaning VARCHAR, glossed_from_latin_day_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the meaning of the latin day name 'dies saturni'? ### Response:
SELECT latin_day_name_meaning FROM table_2624098_1 WHERE glossed_from_latin_day_name = "Dies Saturni"
### Instruction: CREATE TABLE table_65730 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the earliest round that Purdue had a pick larger than 10? ### Response:
SELECT MIN("Round") FROM table_65730 WHERE "College" = 'purdue' AND "Pick" > '10'
### Instruction: CREATE TABLE table_58018 ( "Election" real, "Candidate" text, "Number of votes" text, "Share of votes" text, "Outcome of election" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of votes did the candidate win in the election of 1969? ### Response:
SELECT "Share of votes" FROM table_58018 WHERE "Election" = '1969'
### Instruction: CREATE TABLE table_203_391 ( id number, "season" text, "greek league" text, "greek cup" text, "europe" text, "coach" text, "roster" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the last appearance in the greek league ? ### Response:
SELECT MAX("season") FROM table_203_391 WHERE NOT "greek league" IS NULL
### Instruction: CREATE TABLE table_9523 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS AVERAGE SCORE WITH T3 PLACE, FOR DOUG SANDERS? ### Response:
SELECT AVG("Score") FROM table_9523 WHERE "Place" = 't3' AND "Player" = 'doug sanders'
### Instruction: CREATE TABLE table_35357 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the points total when points against was points against? ### Response:
SELECT "Points for" FROM table_35357 WHERE "Points against" = 'points against'
### Instruction: CREATE TABLE table_64735 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the game with a score of 35-14? ### Response:
SELECT "Opponent" FROM table_64735 WHERE "Score" = '35-14'
### Instruction: CREATE TABLE table_203_149 ( id number, "pick" number, "player" text, "team" text, "position" text, "school" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the only player in the top 26 picks that was from louisiana state university ? ### Response:
SELECT "player" FROM table_203_149 WHERE "school" = 'louisiana state university'
### Instruction: CREATE TABLE table_80077 ( "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. -- What is the Whakamaru school's authority? ### Response:
SELECT "Authority" FROM table_80077 WHERE "Name" = 'whakamaru school'
### Instruction: CREATE TABLE table_9934 ( "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 are the Semifinalists, when the Week is May 12? ### Response:
SELECT "Semifinalists" FROM table_9934 WHERE "Week" = 'may 12'
### Instruction: CREATE TABLE table_204_626 ( id number, "image" number, "name" text, "birth date" text, "death date" text, "brief biography" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of children born after 1675 ? ### Response:
SELECT COUNT("name") FROM table_204_626 WHERE "death date" > 1675
### Instruction: CREATE TABLE table_65890 ( "Year" real, "Class" text, "Team" text, "Machine" text, "Points" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 1992, what class has higher wins than 0? ### Response:
SELECT "Class" FROM table_65890 WHERE "Wins" > '0' AND "Year" = '1992'
### Instruction: CREATE TABLE table_80321 ( "Source" text, "Dates Administered" text, "Terry McAuliffe" text, "Brian Moran" text, "Creigh Deeds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Source has Terry McAuliffe of 36% ### Response:
SELECT "Source" FROM table_80321 WHERE "Terry McAuliffe" = '36%'
### Instruction: CREATE TABLE table_61442 ( "S.no." real, "Power Plant" text, "State" text, "Total Capacity (MW)" real, "Completion Schedule" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the 2013 completion schedule, what is the total S.no.? ### Response:
SELECT SUM("S.no.") FROM table_61442 WHERE "Completion Schedule" = '2013'
### Instruction: CREATE TABLE table_30704 ( "Track no." real, "Track" text, "Original Artist" text, "Soloist(s)" text, "Vocal Percussionist" text, "Arranger(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many track numbers were called song 2? ### Response:
SELECT COUNT("Track no.") FROM table_30704 WHERE "Track" = 'Song 2'
### Instruction: CREATE TABLE table_12389 ( "Year" real, "Gold" text, "Silver" text, "Bronze" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Silver, when Notes is '6.24km, 23controls'? ### Response:
SELECT "Silver" FROM table_12389 WHERE "Notes" = '6.24km, 23controls'
### Instruction: CREATE TABLE table_8152 ( "Year" real, "Chassis" text, "Engine" text, "Start" real, "Finish" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team had a finish of 25 in a smaller than 28? ### Response:
SELECT "Team" FROM table_8152 WHERE "Start" < '28' AND "Finish" = '25'
### Instruction: CREATE TABLE table_1248 ( "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. -- Who wrote the episode 'Forever In A Day'? ### Response:
SELECT "Written by" FROM table_1248 WHERE "Title" = 'Forever in a Day'
### Instruction: CREATE TABLE table_4052 ( "Year" real, "Host Nation(s)" text, "Final Venue" text, "Winner" text, "Result" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most recent year in which the winner record is Ireland 4 points? ### Response:
SELECT MAX("Year") FROM table_4052 WHERE "Winner" = 'Ireland 4 points'
### Instruction: CREATE TABLE table_name_2 ( gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3 ### Response:
SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = "wushu" AND silver > 3
### Instruction: CREATE TABLE table_27155243_3 ( total__number VARCHAR, written_by VARCHAR, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different episode numbers does the episode written by Sheri Elwood and directed by Jim Allodi have? ### Response:
SELECT COUNT(total__number) FROM table_27155243_3 WHERE written_by = "Sheri Elwood" AND directed_by = "Jim Allodi"
### 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. -- how many gold medals did russia earn ? ### Response:
SELECT "gold" FROM table_203_608 WHERE "nation" = 'russia'
### Instruction: CREATE TABLE table_name_58 ( played INTEGER, lost VARCHAR, position VARCHAR, goals_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest played that has a position greater than 6, 61 as the goals against, with a loss less than 16? ### Response:
SELECT MIN(played) FROM table_name_58 WHERE position > 6 AND goals_against = 61 AND lost < 16
### Instruction: CREATE TABLE table_23614702_2 ( warship VARCHAR, main_artillery VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the ship with 1x115-2x70-2x12-pounders for primary artillery. ### Response:
SELECT warship FROM table_23614702_2 WHERE main_artillery = "1x115-2x70-2x12-pounders"
### Instruction: CREATE TABLE table_58178 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyre" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the entrant for chassis of gh1 ### Response:
SELECT "Entrant" FROM table_58178 WHERE "Chassis" = 'gh1'
### Instruction: CREATE TABLE table_75166 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank for the team with a Time of 1:12.40.28? ### Response:
SELECT SUM("Rank") FROM table_75166 WHERE "Time" = '1:12.40.28'
### Instruction: CREATE TABLE table_name_90 ( gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the per-capita GDP for the country with an overall GDP of 156.640? ### Response:
SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = "156.640"