instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_204_480 ( id number, "title" text, "alternate title(s)" text, "year" number, "manufacturer" text, "genre(s)" text, "max. players" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the first title on this chart ? ### Response:
SELECT "title" FROM table_204_480 WHERE id = 1
### Instruction: CREATE TABLE table_68646 ( "Rank" real, "Population" real, "Name" text, "Former Name" text, "Municipality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the population for the place with a Former Name of bluie west-1? ### Response:
SELECT MIN("Population") FROM table_68646 WHERE "Former Name" = 'bluie west-1'
### Instruction: CREATE TABLE table_9495 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position does a Keith Shologan, who was picked higher than 6, play? ### Response:
SELECT "Position" FROM table_9495 WHERE "Pick #" < '6' AND "Player" = 'keith shologan'
### Instruction: CREATE TABLE table_35163 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Outcome of the Melbourne Tournament? ### Response:
SELECT "Outcome" FROM table_35163 WHERE "Tournament" = 'melbourne'
### Instruction: CREATE TABLE table_76149 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which College has Player Mark Brown and a Pick # greater than 195? ### Response:
SELECT "College" FROM table_76149 WHERE "Pick #" > '195' AND "Player" = 'mark brown'
### Instruction: CREATE TABLE table_60067 ( "Club" text, "Head Coach" text, "City" text, "Stadium" text, "2003\u20132004 season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the head coach for the club from Estoril? ### Response:
SELECT "Head Coach" FROM table_60067 WHERE "City" = 'estoril'
### Instruction: CREATE TABLE table_name_91 ( points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did Team Rothmans International have after 1975 when their Chassis was a March 771? ### Response:
SELECT points FROM table_name_91 WHERE year > 1975 AND entrant = "team rothmans international" AND chassis = "march 771"
### Instruction: CREATE TABLE table_78032 ( "Source" text, "Date" text, "Cardwell" text, "Jones" text, "Knight" text, "Lanier" text, "Martin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Lanier has a Cardwell of 20%? ### Response:
SELECT "Lanier" FROM table_78032 WHERE "Cardwell" = '20%'
### Instruction: CREATE TABLE table_66542 ( "Elimination" text, "Wrestler" text, "Team" text, "Eliminated by" text, "Elimination move" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who's the wrestler with an elimination of 1? ### Response:
SELECT "Wrestler" FROM table_66542 WHERE "Elimination" = '1'
### Instruction: CREATE TABLE table_64593 ( "Version" text, "Standard name" text, "Common name" text, "Downstream rate" text, "Upstream rate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the version of Itu g.992.3 Annex J? ### Response:
SELECT "Version" FROM table_64593 WHERE "Standard name" = 'itu g.992.3 annex j'
### Instruction: CREATE TABLE table_18533 ( "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. -- Who is the candidate wehre district is louisiana 1? ### Response:
SELECT "Candidates" FROM table_18533 WHERE "District" = 'Louisiana 1'
### Instruction: CREATE TABLE table_12915 ( "Club" text, "City" text, "Founded" real, "Stadium" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest founded that has bizerte athletic f.c. as the club? ### Response:
SELECT MIN("Founded") FROM table_12915 WHERE "Club" = 'bizerte athletic f.c.'
### Instruction: CREATE TABLE table_56077 ( "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. -- Who is the player from Sweden from a round after 3? ### Response:
SELECT "Player" FROM table_56077 WHERE "Nationality" = 'sweden' AND "Round" > '3'
### Instruction: CREATE TABLE table_name_89 ( sellouts INTEGER, year VARCHAR, total_for_year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the maximum sellouts for the 2008 year, with less than 161,369 total for year? ### Response:
SELECT MAX(sellouts) FROM table_name_89 WHERE year = 2008 AND total_for_year < 161 OFFSET 369
### Instruction: CREATE TABLE table_1133844_4 ( candidates_winning_candidate_in_bold VARCHAR, state__linked_to_summaries_below_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who were the winners in west virginia ### Response:
SELECT candidates_winning_candidate_in_bold FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "West Virginia"
### Instruction: CREATE TABLE table_name_58 ( total INTEGER, finish VARCHAR, year_s__won VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the year won is 1981, 1987, and the finish is t46, what is the lowest total? ### Response:
SELECT MIN(total) FROM table_name_58 WHERE finish = "t46" AND year_s__won = "1981, 1987"
### Instruction: CREATE TABLE table_18399 ( "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 district who had their first elected in 1966? ### Response:
SELECT "District" FROM table_18399 WHERE "First elected" = '1966'
### Instruction: CREATE TABLE table_10218 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who led the score on April 9? ### Response:
SELECT "Leading scorer" FROM table_10218 WHERE "Date" = 'april 9'
### Instruction: CREATE TABLE table_26664 ( "Episode" real, "Broadcast Date" real, "BBC One Presenter(s)" text, "Starring" text, "Radio 1 Presenter" text, "Viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who starred in episode 3? ### Response:
SELECT "Starring" FROM table_26664 WHERE "Episode" = '3'
### Instruction: CREATE TABLE table_17919342_1 ( year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years was the film The Blossoming of Maximo Oliveros entered? ### Response:
SELECT COUNT(year__ceremony_) FROM table_17919342_1 WHERE film_title_used_in_nomination = "The Blossoming of Maximo Oliveros"
### Instruction: CREATE TABLE table_name_75 ( goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals were conceded by teams with 32 points, more than 2 losses and more than 22 goals scored? ### Response:
SELECT COUNT(goals_conceded) FROM table_name_75 WHERE points = 32 AND lost > 2 AND goals_scored > 22
### Instruction: CREATE TABLE table_5286 ( "Player" text, "Car." real, "Yards" real, "Avg." real, "TD's" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many TDs have a Car of 88 and an Avg smaller than 3? ### Response:
SELECT SUM("TD's") FROM table_5286 WHERE "Car." = '88' AND "Avg." < '3'
### Instruction: CREATE TABLE table_name_29 ( league_cup_goals VARCHAR, club VARCHAR, total VARCHAR, fa_cup_goals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield? ### Response:
SELECT league_cup_goals FROM table_name_29 WHERE total > 15 AND fa_cup_goals = 3 AND club = "chesterfield"
### Instruction: CREATE TABLE table_73365 ( "Piano" text, "Conductor" text, "Orchestra" text, "Record Company" text, "Year of Recording" real, "Format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which orchestra has a recording year of 1951? ### Response:
SELECT "Orchestra" FROM table_73365 WHERE "Year of Recording" = '1951'
### Instruction: CREATE TABLE table_60184 ( "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 place of the player with a 71-66-64=201 score? ### Response:
SELECT "Place" FROM table_60184 WHERE "Score" = '71-66-64=201'
### Instruction: CREATE TABLE table_65714 ( "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 average number of silver medals won among nations that won 9 medals total? ### Response:
SELECT AVG("Silver") FROM table_65714 WHERE "Total" = '9'
### Instruction: CREATE TABLE table_55522 ( "Country" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average of the contestant with a swimsuit less than 9.32? ### Response:
SELECT SUM("Average") FROM table_55522 WHERE "Swimsuit" < '9.32'
### Instruction: CREATE TABLE table_3663 ( "Series #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote 'pocket pussy'? ### Response:
SELECT "Written by" FROM table_3663 WHERE "Title" = 'Pocket Pussy'
### Instruction: CREATE TABLE table_65130 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Great Britain's lane with a heat less than 3? ### Response:
SELECT AVG("Lane") FROM table_65130 WHERE "Nationality" = 'great britain' AND "Heat" < '3'
### Instruction: CREATE TABLE table_12934 ( "Percentage Range" text, "Grade" text, "Points for Higher" real, "Points for Ordinary" real, "Points for Foundation" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With 10 as the points for foundation, what is the maximum points for ordinary? ### Response:
SELECT MAX("Points for Ordinary") FROM table_12934 WHERE "Points for Foundation" = '10'
### Instruction: CREATE TABLE table_42790 ( "Name" text, "Innings" real, "Runs Scored" real, "Balls Faced" real, "Average" real, "S.R." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name has an Average of 48.83? ### Response:
SELECT "Name" FROM table_42790 WHERE "Average" = '48.83'
### Instruction: CREATE TABLE table_18272 ( "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 result of the election in the Florida 18 district? ### Response:
SELECT "Result" FROM table_18272 WHERE "District" = 'Florida 18'
### Instruction: CREATE TABLE table_18418 ( "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. -- In which district is the incumbent Carl W. Rich? ### Response:
SELECT "District" FROM table_18418 WHERE "Incumbent" = 'Carl W. Rich'
### Instruction: CREATE TABLE table_204_602 ( id number, "name" text, "position" text, "height" text, "weight" number, "date of birth" text, "current/last known team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many players weighed more than 210 ? ### Response:
SELECT COUNT("name") FROM table_204_602 WHERE "weight" > 210
### Instruction: CREATE TABLE table_58828 ( "Year" real, "Artist" text, "Title" text, "Format" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year had a title of Die Shaolin Affen EP and EP as the type? ### Response:
SELECT AVG("Year") FROM table_58828 WHERE "Type" = 'ep' AND "Title" = 'die shaolin affen ep'
### Instruction: CREATE TABLE table_25566 ( "R" real, "Player" text, "Position" text, "League" real, "Champions League" real, "Copa del Rey" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the total is 6, what is the maximum R? ### Response:
SELECT MAX("R") FROM table_25566 WHERE "Total" = '6'
### Instruction: CREATE TABLE table_27600 ( "#" real, "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text, "Last School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of home town for number being 32 ### Response:
SELECT COUNT("Home Town") FROM table_27600 WHERE "#" = '32'
### Instruction: CREATE TABLE table_40096 ( "Year" real, "Team" text, "Co-Drivers" text, "Class" text, "Laps" real, "Pos." text, "Class Pos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position for years under 1999? ### Response:
SELECT "Pos." FROM table_40096 WHERE "Year" < '1999'
### Instruction: CREATE TABLE table_16051 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many original titles did Marriage Italian-Style have? ### Response:
SELECT COUNT("Original title") FROM table_16051 WHERE "Film title used in nomination" = 'Marriage Italian-Style'
### Instruction: CREATE TABLE table_78270 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the fewest laps for somone who finished +18.445? ### Response:
SELECT MIN("Laps") FROM table_78270 WHERE "Time/Retired" = '+18.445'
### Instruction: CREATE TABLE table_18098 ( "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. -- Who were the candidates when Barney Frank was the incumbent? ### Response:
SELECT "Candidates" FROM table_18098 WHERE "Incumbent" = 'Barney Frank'
### Instruction: CREATE TABLE table_name_69 ( division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0? ### Response:
SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0
### Instruction: CREATE TABLE table_26369 ( "Week #" text, "Theme" text, "Song Choice" text, "Original Artist" text, "Order #" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the song for safe result #8. ### Response:
SELECT "Song Choice" FROM table_26369 WHERE "Result" = 'Safe' AND "Order #" = '8'
### Instruction: CREATE TABLE table_66498 ( "Draw" real, "Artist" text, "Song" text, "Televote/SMS" text, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the artist when the televote/sms is 3.20%? ### Response:
SELECT "Artist" FROM table_66498 WHERE "Televote/SMS" = '3.20%'
### Instruction: CREATE TABLE table_5132 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the Final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Date of january 11, 1998 has what surface? ### Response:
SELECT "Surface" FROM table_5132 WHERE "Date" = 'january 11, 1998'
### Instruction: CREATE TABLE table_77349 ( "Name" text, "GP-GS" text, "Effic" real, "Cmp-Att-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total avg/g of McCrary, Greg? ### Response:
SELECT COUNT("Avg/G") FROM table_77349 WHERE "Name" = 'mccrary, greg'
### Instruction: CREATE TABLE table_50663 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC? ### Response:
SELECT "1st leg" FROM table_50663 WHERE "Team 2" = 'athletic'
### Instruction: CREATE TABLE table_37580 ( "Pick" real, "Player" text, "Team" text, "Position" text, "School" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position has a pick less than 25 for the university of california? ### Response:
SELECT "Position" FROM table_37580 WHERE "Pick" < '25' AND "School" = 'university of california'
### Instruction: CREATE TABLE table_name_11 ( car__number INTEGER, current_car VARCHAR, year_started VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT WAS THE LOWEST CAR # WITH SON-E-WA, AND 2012 START YEAR? ### Response:
SELECT MIN(car__number) FROM table_name_11 WHERE current_car = "son-e-wa" AND year_started < 2012
### Instruction: CREATE TABLE table_6026 ( "Rank" real, "Name" text, "Nation" text, "Points" real, "Places" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the rank for karen frohner with under 1266 points? ### Response:
SELECT AVG("Rank") FROM table_6026 WHERE "Name" = 'karen frohner' AND "Points" < '1266'
### Instruction: CREATE TABLE table_61561 ( "Election" real, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 1st member has Thomas Grimsditch as a 2nd member? ### Response:
SELECT "1st Member" FROM table_61561 WHERE "2nd Member" = 'thomas grimsditch'
### Instruction: CREATE TABLE table_3530 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Nickname" text, "Joined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every institution with a nickname of Ravens? ### Response:
SELECT "Institution" FROM table_3530 WHERE "Nickname" = 'Ravens'
### Instruction: CREATE TABLE table_59169 ( "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 To Par that has a 69-69-73=211 score? ### Response:
SELECT "To par" FROM table_59169 WHERE "Score" = '69-69-73=211'
### Instruction: CREATE TABLE table_203_439 ( id number, "pos." number, "rider" text, "semi-final points" number, "final points" number, "final heats" text, "total points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the least number of points belongs to whom ? ### Response:
SELECT "rider" FROM table_203_439 ORDER BY "total points" LIMIT 1
### Instruction: CREATE TABLE table_45969 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average oveall pick for players from the college of Miami (FL)? ### Response:
SELECT AVG("Overall") FROM table_45969 WHERE "College" = 'miami (fl)'
### Instruction: CREATE TABLE table_6425 ( "Make/ Model" text, "length" text, "Year" real, "Numbers (Quantity Ordered)" text, "Fuel Propulsion" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have a Make/ Model of new flyer c40lfr? ### Response:
SELECT COUNT("Year") FROM table_6425 WHERE "Make/ Model" = 'new flyer c40lfr'
### Instruction: CREATE TABLE table_32030 ( "Rank" real, "Heat & Lane" text, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Heat & Lane is the person who has a time of 1:01.12? ### Response:
SELECT "Heat & Lane" FROM table_32030 WHERE "Time" = '1:01.12'
### Instruction: CREATE TABLE table_11780179_1 ( gdp_per_capita__nominal_ VARCHAR, gdp__nominal_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many countries has a gdp (nominal) of $29.9 billion? ### Response:
SELECT COUNT(gdp_per_capita__nominal_) FROM table_11780179_1 WHERE gdp__nominal_ = "$29.9 billion"
### Instruction: CREATE TABLE table_69072 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance at the game when the record was 74-77? ### Response:
SELECT "Attendance" FROM table_69072 WHERE "Record" = '74-77'
### Instruction: CREATE TABLE table_name_25 ( swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number for swimsuit when the evening gown number is larger than 9.257 and the interview number is 9.357? ### Response:
SELECT SUM(swimsuit) FROM table_name_25 WHERE evening_gown > 9.257 AND interview = 9.357
### Instruction: CREATE TABLE table_204_574 ( id number, "year" number, "title" text, "peak chart positions\nswe" number, "peak chart positions\nswi" number, "peak chart positions\nuk" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many singles did she release in all ? ### Response:
SELECT COUNT("title") FROM table_204_574
### Instruction: CREATE TABLE table_42128 ( "Year" real, "Country" text, "Team" text, "Individual" text, "Location" text, "Runners-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the earliest year that the tournament was played in Cape Town, South Africa? ### Response:
SELECT MIN("Year") FROM table_42128 WHERE "Location" = 'cape town, south africa'
### Instruction: CREATE TABLE table_name_10 ( attendance INTEGER, scorers VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson? ### Response:
SELECT AVG(attendance) FROM table_name_10 WHERE scorers = "steven, johnston, walters, mccoist, i.ferguson"
### Instruction: CREATE TABLE table_21975 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the broadcast date of the episode with run time 25:12? ### Response:
SELECT "Broadcast date" FROM table_21975 WHERE "Run time" = '25:12'
### Instruction: CREATE TABLE table_201_25 ( id number, "party" text, "leader" text, "from" text, "to" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of years gordon wallace and robert cunning spent in office . ### Response:
SELECT SUM("to" - "from") FROM table_201_25 WHERE "leader" IN ('gordon wallace', 'robert cunning')
### Instruction: CREATE TABLE table_name_52 ( date VARCHAR, venue VARCHAR, competition VARCHAR, opponents VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Competition of pl group b, and Opponents of police, and a Venue of selayang municipal council stadium? ### Response:
SELECT date FROM table_name_52 WHERE competition = "pl group b" AND opponents = "police" AND venue = "selayang municipal council stadium"
### Instruction: CREATE TABLE table_77869 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the constructor when there were 95 laps and a grid less than 15? ### Response:
SELECT "Constructor" FROM table_77869 WHERE "Grid" < '15' AND "Laps" = '95'
### Instruction: CREATE TABLE table_56150 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the home team when the away team was Melbourne? ### Response:
SELECT "Home team" FROM table_56150 WHERE "Away team" = 'melbourne'
### Instruction: CREATE TABLE table_67487 ( "Film" text, "Director(s)" text, "Writer(s)" text, "Recipient" text, "Date" text, "Award" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the award for candida scott knight ### Response:
SELECT "Award" FROM table_67487 WHERE "Director(s)" = 'candida scott knight'
### Instruction: CREATE TABLE table_204_614 ( id number, "date announced" text, "plant name" text, "location" text, "date of closing" text, "products" text, "employees" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which plant had the least amount of employees laid off ? ### Response:
SELECT "plant name" FROM table_204_614 ORDER BY "employees" LIMIT 1
### Instruction: CREATE TABLE table_76694 ( "Position" text, "Team #1" text, "Agg." text, "Team #2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the team #1 with an 11th place position? ### Response:
SELECT "Team #1" FROM table_76694 WHERE "Position" = '11th place'
### Instruction: CREATE TABLE table_4319 ( "Year" real, "Event" text, "Venue" text, "Driver" text, "Result" text, "Category" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year has a result of 3 in the venue of Jarama. ### Response:
SELECT MIN("Year") FROM table_4319 WHERE "Result" = '3' AND "Venue" = 'jarama'
### Instruction: CREATE TABLE table_73992 ( "Edition" text, "Year" real, "Host city" text, "Host country" text, "Date" text, "No. of athletes" text, "Nations" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the host country when Bar was the host city? ### Response:
SELECT "Host country" FROM table_73992 WHERE "Host city" = 'Bar'
### Instruction: CREATE TABLE table_72949 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the district when the first elected was in 1986? ### Response:
SELECT "District" FROM table_72949 WHERE "First elected" = '1986'
### Instruction: CREATE TABLE table_7375 ( "Cartridge" text, "Bullet weight" text, "Muzzle velocity" text, "Muzzle energy" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Source, when Cartridge is .375 remington ultra magnum? ### Response:
SELECT "Source" FROM table_7375 WHERE "Cartridge" = '.375 remington ultra magnum'
### Instruction: CREATE TABLE table_58386 ( "Ship" text, "Pennant number" text, "Laid down" text, "Launched" text, "Completed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the launched date of the destroyer completed 25 February 1936? ### Response:
SELECT "Launched" FROM table_58386 WHERE "Completed" = '25 february 1936'
### Instruction: CREATE TABLE scientists ( ssn number, name text ) CREATE TABLE assignedto ( scientist number, project text ) CREATE TABLE projects ( code text, name text, hours number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the names of scientists who are assigned to any project? ### Response:
SELECT T2.name FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn
### Instruction: CREATE TABLE table_41434 ( "Date" text, "Location" text, "Country" text, "Event" text, "Winner" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Location, when Date is December 8-December 20? ### Response:
SELECT "Location" FROM table_41434 WHERE "Date" = 'december 8-december 20'
### Instruction: CREATE TABLE table_18271 ( "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 party does incumbent Charles Edward Bennett belong to? ### Response:
SELECT "Party" FROM table_18271 WHERE "Incumbent" = 'Charles Edward Bennett'
### Instruction: CREATE TABLE table_35504 ( "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. -- What method has randy couture as the opponent? ### Response:
SELECT "Method" FROM table_35504 WHERE "Opponent" = 'randy couture'
### Instruction: CREATE TABLE table_30939 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team was the away team when home team was essendon? ### Response:
SELECT "Away team" FROM table_30939 WHERE "Home team" = 'Essendon'
### Instruction: CREATE TABLE table_3802 ( "Stage" real, "Winner" text, "General classification" text, "Mountains Classification" text, "Points classification" text, "Sprints Classification" text, "Team Classification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different people had a General Classification on Stage 5? ### Response:
SELECT COUNT("General classification") FROM table_3802 WHERE "Stage" = '5'
### Instruction: CREATE TABLE table_name_7 ( what VARCHAR, coconut VARCHAR, person VARCHAR, three VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 'what', when 'person' is 'tawo', when 'three' is 'tuyo', and when 'coconut' is 'niyog'? ### Response:
SELECT what FROM table_name_7 WHERE person = "tawo" AND three = "tuyo" AND coconut = "niyog"
### Instruction: CREATE TABLE table_41877 ( "First District" text, "Second District" text, "Third District" text, "Fourth District" text, "Fifth District" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who's the Fifth District with a Second District of paul leidig? ### Response:
SELECT "Fifth District" FROM table_41877 WHERE "Second District" = 'paul leidig'
### Instruction: CREATE TABLE table_47846 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What method had a record 12-2-3? ### Response:
SELECT "Method" FROM table_47846 WHERE "Record" = '12-2-3'
### Instruction: CREATE TABLE table_1303 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the centerfold model when interview subject is steve jobs ### Response:
SELECT "Centerfold model" FROM table_1303 WHERE "Interview subject" = 'Steve Jobs'
### Instruction: CREATE TABLE table_8615 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Ravens' record on December 5, 1999? ### Response:
SELECT "Record" FROM table_8615 WHERE "Date" = 'december 5, 1999'
### Instruction: CREATE TABLE table_788 ( "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 year was incumbent william f. stevenson first elected? ### Response:
SELECT "First elected" FROM table_788 WHERE "Incumbent" = 'William F. Stevenson'
### Instruction: CREATE TABLE table_26636 ( "Episode #" text, "Segment 1" text, "Segment 2" text, "Original airdate" text, "Lessons taught" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the lessons taught for episode # 2/205 ### Response:
SELECT "Lessons taught" FROM table_26636 WHERE "Episode #" = '2/205'
### Instruction: CREATE TABLE table_name_87 ( to_par VARCHAR, country VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To par for the place in the United States and a score of 74-69-71-74=288? ### Response:
SELECT to_par FROM table_name_87 WHERE country = "united states" AND score = 74 - 69 - 71 - 74 = 288
### Instruction: CREATE TABLE table_name_69 ( stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification? ### Response:
SELECT stage__winner_ FROM table_name_69 WHERE team_classification = "quick step" AND young_rider_classification = "trent lowe"
### Instruction: CREATE TABLE table_55997 ( "Name" text, "Period" text, "Starts" real, "Wins" real, "Losses" real, "Ties" real, "Win %" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the win % for the QB with 3 starts? ### Response:
SELECT "Win %" FROM table_55997 WHERE "Starts" = '3'
### Instruction: CREATE TABLE table_29242 ( "Train No." real, "Train Name" text, "Arrival" text, "Departure" text, "Days" text, "Platform No." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many trains depart at 17:30? ### Response:
SELECT COUNT("Train No.") FROM table_29242 WHERE "Departure" = '17:30'
### Instruction: CREATE TABLE table_44480 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of the tournament with carlos moy as the opponent? ### Response:
SELECT "Date" FROM table_44480 WHERE "Opponent" = 'carlos moyà'
### Instruction: CREATE TABLE table_19043 ( "Episode" text, "Original Air Date" text, "Viewers (millions)" text, "Presenter" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much audience did the 7th Pride of Britain Awards ceremony have? ### Response:
SELECT COUNT("Viewers (millions)") FROM table_19043 WHERE "Episode" = '7th Pride of Britain Awards'
### Instruction: CREATE TABLE table_5966 ( "Callsign" text, "Area served" text, "Frequency" text, "Band" text, "On-air ID" text, "Purpose" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Frequency of 0 864 has what callsign? ### Response:
SELECT "Callsign" FROM table_5966 WHERE "Frequency" = '0 864'
### Instruction: CREATE TABLE table_11944 ( "Year" real, "Award" text, "Category" text, "Nominee" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was there a Tony award category of Best Revival of a Musical? ### Response:
SELECT "Year" FROM table_11944 WHERE "Award" = 'tony award' AND "Category" = 'best revival of a musical'
### Instruction: CREATE TABLE body_builder ( People_ID VARCHAR, Total INTEGER ) CREATE TABLE people ( Height VARCHAR, People_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the heights of body builders with total score smaller than 315? ### Response:
SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315
### Instruction: CREATE TABLE table_14244 ( "Title" text, "Label" text, "Year of Release" real, "Country of Release" text, "Peaches:" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the label for Shake Your Groove Thing in USA? ### Response:
SELECT "Label" FROM table_14244 WHERE "Country of Release" = 'usa' AND "Title" = 'shake your groove thing'
### Instruction: CREATE TABLE table_76622 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record during the event, UFC 27? ### Response:
SELECT "Record" FROM table_76622 WHERE "Event" = 'ufc 27'