instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_59822 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Label has a Region of united states, and a Format of cassette? ### Response:
SELECT "Label" FROM table_59822 WHERE "Region" = 'united states' AND "Format" = 'cassette'
### Instruction: CREATE TABLE table_13044 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week was the December 24, 1994 game? ### Response:
SELECT SUM("Week") FROM table_13044 WHERE "Date" = 'december 24, 1994'
### Instruction: CREATE TABLE table_15176 ( "Goal" real, "Date" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the result for 2000 afc asian cup qualification ### Response:
SELECT "Result" FROM table_15176 WHERE "Competition" = '2000 afc asian cup qualification'
### Instruction: CREATE TABLE table_68127 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year had a Cosworth V8 engine and 12 points? ### Response:
SELECT "Year" FROM table_68127 WHERE "Points" = '12' AND "Engine" = 'cosworth v8'
### Instruction: CREATE TABLE table_27110 ( "Name" text, "Nationality" text, "Position" text, "Appearances" real, "Starts" real, "Minutes" real, "Goals" real, "Assists" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest g...
SELECT MIN("Goals") FROM table_27110
### Instruction: CREATE TABLE table_76 ( "Stadium" text, "Capacity" real, "City" text, "Country" text, "Tenant" text, "Opening" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the maximum capacity of the Otkrytie Arena stadium? ### Resp...
SELECT MAX("Capacity") FROM table_76 WHERE "Stadium" = 'Otkrytie Arena'
### Instruction: CREATE TABLE table_25355501_2 ( march_27_29 VARCHAR, june_10_11 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- march 27-29 where june 10-11 is 127? ### Response:
SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = "127"
### Instruction: CREATE TABLE table_34426 ( "Player" text, "Hometown" text, "Occupation" text, "Education" text, "Game Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed under occupation for someone from Santa Monica, California? ...
SELECT "Occupation" FROM table_34426 WHERE "Hometown" = 'santa monica, california'
### Instruction: CREATE TABLE table_4472 ( "Year" real, "Leader" text, "Team" text, "League" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner-up in 1887 competition for 'Articles with HCards'? ### Response:
SELECT "Runner-up" FROM table_4472 WHERE "Year" = '1887'
### Instruction: CREATE TABLE table_203_429 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how what listed year was a distance of only 53.30 m reached ? ###...
SELECT "year" FROM table_203_429 WHERE "notes" = 53.3
### Instruction: CREATE TABLE table_name_88 ( time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Time/Retired with more Laps than 34, a Grid smaller than 15, and Driver Damon Hill? ##...
SELECT time_retired FROM table_name_88 WHERE laps > 34 AND grid < 15 AND driver = "damon hill"
### Instruction: CREATE TABLE table_45431 ( "Date" text, "H/A/N" text, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is H/A/N, when Date is October 31? ### Response:
SELECT "H/A/N" FROM table_45431 WHERE "Date" = 'october 31'
### Instruction: CREATE TABLE table_203_509 ( id number, "year" number, "laetare medalist" text, "position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who won the medal after thomas e. murray in 1952 ? ### Response:
SELECT "laetare medalist" FROM table_203_509 WHERE "year" > 1952 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_204_479 ( id number, "defendant" text, "arrested" text, "charge" text, "result" text, "sentence" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many years was gordon larsen convicted to ? ### Response:
SELECT "sentence" FROM table_204_479 WHERE "defendant" = 'gordon larsen'
### Instruction: CREATE TABLE table_39659 ( "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result with a record of 58 11? ### Response:
SELECT "Result" FROM table_39659 WHERE "Record" = '58–11'
### Instruction: CREATE TABLE table_name_63 ( country_name VARCHAR, numeric_code VARCHAR, latin_3_letter_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv? ...
SELECT country_name FROM table_name_63 WHERE numeric_code < 246 AND latin_3_letter_code = "slv"
### Instruction: CREATE TABLE table_39351 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game on week 7? ###...
SELECT "Date" FROM table_39351 WHERE "Week" = '7'
### Instruction: CREATE TABLE table_12668 ( "Rank" real, "Result" text, "Wind" text, "Athlete" text, "Date" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of Wind has a Result of 21.69? ### Response:
SELECT "Wind" FROM table_12668 WHERE "Result" = '21.69'
### Instruction: CREATE TABLE table_47760 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Result of the game on September 1, 1996? ### Response:
SELECT "Result" FROM table_47760 WHERE "Date" = 'september 1, 1996'
### Instruction: CREATE TABLE table_204_298 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did the runner finish below 10th...
SELECT COUNT(*) FROM table_204_298 WHERE "position" > 10
### Instruction: CREATE TABLE table_12722302_2 ( original_air_date VARCHAR, us_viewers__million_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the original air date for the episode with 3.90 u.s. viewers (millions)? ### Response:
SELECT original_air_date FROM table_12722302_2 WHERE us_viewers__million_ = "3.90"
### Instruction: CREATE TABLE table_name_39 ( rochester VARCHAR, syracuse VARCHAR, albany VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Rochester, when Syracuse is Cardiff Dark Gray Shale, and when Albany is (Mt. Marion Fm.)? ### Response:
SELECT rochester FROM table_name_39 WHERE syracuse = "cardiff dark gray shale" AND albany = "(mt. marion fm.)"
### Instruction: CREATE TABLE table_70683 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the final score when the Buffalo Bills were the visiting team? #...
SELECT "Final Score" FROM table_70683 WHERE "Visiting Team" = 'buffalo bills'
### Instruction: CREATE TABLE table_9258 ( "City" text, "Round 1" real, "Round 2" text, "Round 3" text, "Round 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Round 3 with less than 54 for Round 4? ### Response:
SELECT "Round 3" FROM table_9258 WHERE "Round 4" = '54'
### Instruction: CREATE TABLE table_7325 ( "Year" real, "Number" real, "Team" text, "Co-driver" text, "Position" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the total number of Laps that has the Team of wps racing...
SELECT COUNT("Laps") FROM table_7325 WHERE "Team" = 'wps racing'
### Instruction: CREATE TABLE table_name_7 ( total_area VARCHAR, in_state_area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With an in-state area of 053 1,654km 2 639mi 2, what is the total area? ### Response:
SELECT total_area FROM table_name_7 WHERE in_state_area = "053 1,654km 2 639mi 2"
### Instruction: CREATE TABLE table_8534 ( "Discipline" text, "Championship" text, "Circuit" text, "Event" text, "Session" text, "Cause" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of motorsport has a session of pre-race test? ###...
SELECT "Discipline" FROM table_8534 WHERE "Session" = 'pre-race test'
### Instruction: CREATE TABLE table_76844 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Venue" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the week 6 game played on? ### Res...
SELECT "Date" FROM table_76844 WHERE "Week" = '6'
### Instruction: CREATE TABLE table_44300 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record on December 11? ### Response...
SELECT "Record" FROM table_44300 WHERE "Date" = 'december 11'
### Instruction: CREATE TABLE table_70258 ( "Institution" text, "Main Campus Location" text, "Founded" real, "Mascot" text, "School Colors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total Founded with a Main Campus Location of liber...
SELECT COUNT("Founded") FROM table_70258 WHERE "Main Campus Location" = 'liberal'
### Instruction: CREATE TABLE table_203_872 ( id number, "year" number, "location(s)" text, "number of contestants" number, "ladies winner" text, "men's winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the location list...
SELECT "location(s)" FROM table_203_872 WHERE id = 1
### Instruction: CREATE TABLE table_63403 ( "Callsign" text, "Network" text, "City of License" text, "D ERP" text, "Owner / Operator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the network in Pachuca, Hidalgo? ### Response:
SELECT "Network" FROM table_63403 WHERE "City of License" = 'pachuca, hidalgo'
### Instruction: CREATE TABLE table_52400 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the constructor for brakes and grid less than 14 ### Response:
SELECT "Constructor" FROM table_52400 WHERE "Time/Retired" = 'brakes' AND "Grid" < '14'
### Instruction: CREATE TABLE table_19888 ( "Series Ep." text, "Episode" real, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the segment a for 162 ### Response:
SELECT "Segment A" FROM table_19888 WHERE "Episode" = '162'
### Instruction: CREATE TABLE table_46492 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "TV Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- October 28, 2001 was what week of the season? ### Response:
SELECT "Week" FROM table_46492 WHERE "Date" = 'october 28, 2001'
### Instruction: CREATE TABLE table_77477 ( "Country" text, "Builder" text, "Location" text, "Ship" text, "Class / type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Cargo Ship located at Birkenhead? ### Response:
SELECT "Ship" FROM table_77477 WHERE "Class / type" = 'cargo ship' AND "Location" = 'birkenhead'
### Instruction: CREATE TABLE table_52735 ( "Number" real, "Name" text, "Builder" text, "Type" text, "Date" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the train numbered less than 6 before 1993? ### Response:
SELECT "Name" FROM table_52735 WHERE "Number" < '6' AND "Date" < '1993'
### Instruction: CREATE TABLE table_204_761 ( 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 number countries received gold medals ? #...
SELECT COUNT("nation") FROM table_204_761 WHERE "gold" > 0
### Instruction: CREATE TABLE products ( code number, name text, price number, manufacturer number ) CREATE TABLE manufacturers ( code number, name text, headquarter text, founder text, revenue number ) -- Using valid SQLite, answer the following questions for the tables provided ...
SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC
### Instruction: CREATE TABLE table_191323_2 ( alt_name VARCHAR, nssdc_id_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the alternative name/s of those satellites whose nssdc id number is 1970-054a? ### Response:
SELECT alt_name FROM table_191323_2 WHERE nssdc_id_no = "1970-054A"
### Instruction: CREATE TABLE table_770 ( "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 ran for the House in the 1924 election? ### Respons...
SELECT "Candidates" FROM table_770 WHERE "First elected" = '1924'
### Instruction: CREATE TABLE table_name_41 ( year_born__age_ VARCHAR, current_club VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf? ### Respon...
SELECT year_born__age_ FROM table_name_41 WHERE current_club = "sporting al riyadi beirut" AND position = "pf"
### Instruction: CREATE TABLE table_69236 ( "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 first leg with an agg of 10-2? ### Response:
SELECT "1st leg" FROM table_69236 WHERE "Agg." = '10-2'
### Instruction: CREATE TABLE table_58354 ( "Position" text, "Game 1" text, "Game 2" text, "Game 3" text, "Game 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For which Game 4, did David Boyle play in Game 3? ### Response:
SELECT "Game 4" FROM table_58354 WHERE "Game 3" = 'david boyle'
### Instruction: CREATE TABLE table_60552 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What 2nd Party has an Election of 1885? ### Response:
SELECT "2nd Party" FROM table_60552 WHERE "Election" = '1885'
### Instruction: CREATE TABLE table_28115 ( "Series #" real, "Season #" real, "Title" text, "Director" text, "Writer(s)" text, "Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed episode number 626 in the series? ### Response...
SELECT "Director" FROM table_28115 WHERE "Series #" = '626'
### Instruction: CREATE TABLE table_8238 ( "ISLAND" text, "CITY / TOWN" text, "ICAO" text, "IATA" text, "AIRPORTNAME" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On which island is Esperadinha airport located? ### Response:
SELECT "ISLAND" FROM table_8238 WHERE "AIRPORTNAME" = 'esperadinha airport'
### Instruction: CREATE TABLE table_14154271_2 ( rnd VARCHAR, lmp2_winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Jos verstappen jeroen bleekemolen is on Imp2 winning team where all are rnd. ### Response:
SELECT rnd FROM table_14154271_2 WHERE lmp2_winning_team = "Jos Verstappen Jeroen Bleekemolen"
### Instruction: CREATE TABLE table_2562572_39 ( largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ethnic group is ? ### Response:
SELECT largest_ethnic_group__2002_ FROM table_2562572_39 WHERE cyrillic_name_other_names = "Конак"
### Instruction: CREATE TABLE table_64210 ( "Rank" real, "Player" text, "County" text, "Tally" text, "Total" real, "Opposition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Tally of an Opposition of westmeath? ### Response:
SELECT "Tally" FROM table_64210 WHERE "Opposition" = 'westmeath'
### Instruction: CREATE TABLE table_30869 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player is pick 64? ### Response:
SELECT "Player" FROM table_30869 WHERE "Pick #" = '64'
### Instruction: CREATE TABLE table_18625 ( "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 in the Tennessee 6 district electio...
SELECT "Result" FROM table_18625 WHERE "District" = 'Tennessee 6'
### Instruction: CREATE TABLE table_name_2 ( winners INTEGER, first_title VARCHAR, wins VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004? ### R...
SELECT AVG(winners) FROM table_name_2 WHERE wins = 1 AND country = "fiji" AND first_title < 2004
### Instruction: CREATE TABLE table_66080 ( "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 lowest week that has 51,499 as the attendance? ### Response:
SELECT MIN("Week") FROM table_66080 WHERE "Attendance" = '51,499'
### Instruction: CREATE TABLE table_name_93 ( week INTEGER, opponent VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Week when the opponent was the los angeles rams, with more than 37,382 in Attendance? ### Respon...
SELECT MAX(week) FROM table_name_93 WHERE opponent = "los angeles rams" AND attendance > 37 OFFSET 382
### Instruction: CREATE TABLE table_name_61 ( grid VARCHAR, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement...
SELECT grid FROM table_name_61 WHERE laps > 8 AND manufacturer = "honda" AND time_retired = "retirement"
### Instruction: CREATE TABLE table_44288 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has 104-113 as the score? ### Response:
SELECT "Date" FROM table_44288 WHERE "Score" = '104-113'
### Instruction: CREATE TABLE table_65701 ( "Club" text, "Wins" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least amount of wins when against is 1314? ### Response:
SELECT MIN("Wins") FROM table_65701 WHERE "Against" = '1314'
### Instruction: CREATE TABLE table_57028 ( "Country" text, "Release Date" real, "Music Label" text, "Media" text, "Catalogue Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the music label with the catalogue number enocd 10? ### Re...
SELECT "Music Label" FROM table_57028 WHERE "Catalogue Number" = 'enocd 10'
### Instruction: CREATE TABLE table_204_865 ( id number, "date" text, "tournament" text, "winner" text, "purse ($)" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which month hosts the most tournaments ? ### Response:
SELECT "date" FROM table_204_865 GROUP BY "date" ORDER BY COUNT("tournament") DESC LIMIT 1
### Instruction: CREATE TABLE table_204_310 ( id number, "month" text, "year" number, "player" text, "county" text, "club" text, "position" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many players won in 2006 ? ### Response:
SELECT COUNT("player") FROM table_204_310 WHERE "year" = 2006
### Instruction: CREATE TABLE table_65146 ( "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. -- COunt the average Enrollment in hope? ### Response:
SELECT AVG("Enrollment") FROM table_65146 WHERE "Location" = 'hope'
### Instruction: CREATE TABLE table_27303975_3 ( title VARCHAR, catalog_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title when the catalog number is cal01 / 0091037137319? ### Response:
SELECT title FROM table_27303975_3 WHERE catalog_number = "CAL01 / 0091037137319"
### Instruction: CREATE TABLE table_name_82 ( clean_ VARCHAR, _jerk VARCHAR, snatch VARCHAR, bodyweight VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18? ### Response:
SELECT clean_ & _jerk FROM table_name_82 WHERE snatch < 150 AND bodyweight = 76.18
### Instruction: CREATE TABLE table_204_562 ( id number, "no." number, "date" text, "location" text, "surface" text, "opponent in final" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many matches were played on a hard surf...
SELECT COUNT(*) FROM table_204_562 WHERE "surface" = 'hard'
### Instruction: CREATE TABLE table_24176 ( "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. -- Name the broadcast date of 6.9 million viewers ### Response:...
SELECT "Broadcast date" FROM table_24176 WHERE "Viewers (in millions)" = '6.9'
### Instruction: CREATE TABLE table_21032 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Enrollment" real, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of nicknames for andrew college ...
SELECT COUNT("Nickname") FROM table_21032 WHERE "Institution" = 'Andrew College'
### Instruction: CREATE TABLE table_name_81 ( line VARCHAR, location VARCHAR, current_status VARCHAR, closed VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the line of the station in Toolamba that is currently demolished and closed in the lat...
SELECT line FROM table_name_81 WHERE current_status = "demolished" AND closed = "late 1970s" AND location = "toolamba"
### Instruction: CREATE TABLE table_38923 ( "Year (Ceremony)" real, "Original title" text, "English title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Director with a Ceremony of 2001? ### Response:
SELECT "Director" FROM table_38923 WHERE "Year (Ceremony)" = '2001'
### Instruction: CREATE TABLE table_204_77 ( id number, "number" text, "builder" text, "type" text, "date" text, "works number" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total trains were build in 1949 ? ### R...
SELECT COUNT("number") FROM table_204_77 WHERE "date" = 1949
### Instruction: CREATE TABLE table_203_223 ( id number, "name" text, "gauge" text, "builder" text, "type" text, "date" number, "works number" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many locomotives are on dis...
SELECT COUNT(*) FROM table_203_223
### Instruction: CREATE TABLE table_47593 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest grid number that a race took place doing more than 21 laps? #...
SELECT MIN("Grid") FROM table_47593 WHERE "Laps" > '21'
### Instruction: CREATE TABLE table_72492 ( "City" text, "Station" text, "Year acquired" real, "Primary programming source" text, "Other programming sources" text, "Current status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many channels...
SELECT COUNT("Other programming sources") FROM table_72492 WHERE "Year acquired" = '1997'
### Instruction: CREATE TABLE table_name_10 ( best_finish VARCHAR, top_10s VARCHAR, scoring_average VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the Top 10s is larger than 0 and the scoring average 73.04, what is the best finish? ### Response:
SELECT best_finish FROM table_name_10 WHERE top_10s > 0 AND scoring_average = 73.04
### Instruction: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How old is...
SELECT gender, AVG(age) FROM Person GROUP BY gender
### Instruction: CREATE TABLE table_32151 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is Team Suzuki's rider and ranks higher than 6? ### Response:
SELECT "Rider" FROM table_32151 WHERE "Rank" > '6' AND "Team" = 'suzuki'
### Instruction: CREATE TABLE table_31932 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the record for kazuhiro nakamura ### Response:
SELECT "Record" FROM table_31932 WHERE "Opponent" = 'kazuhiro nakamura'
### Instruction: CREATE TABLE table_name_22 ( constructor VARCHAR, driver VARCHAR, time_retired VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which constructor had a Time/Retired of collision, where the grid number was less than 18 and...
SELECT constructor FROM table_name_22 WHERE time_retired = "collision" AND grid < 18 AND driver = "nick heidfeld"
### Instruction: CREATE TABLE table_68827 ( "Date" text, "Location" text, "Nature of incident" text, "Circumstances" text, "Casualties" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nature of the incident that's a bomb attack? ### Res...
SELECT "Nature of incident" FROM table_68827 WHERE "Circumstances" = 'bomb attack'
### Instruction: CREATE TABLE table_22132 ( "Standard order" real, "English translation" text, "Transcription (based on Pinyin)" text, "Traditional Chinese" text, "Simplified Chinese" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Englis...
SELECT "English translation" FROM table_22132 WHERE "Traditional Chinese" = '哀郢'
### Instruction: CREATE TABLE table_name_17 ( points VARCHAR, goals_for VARCHAR, draws VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is '35'? ##...
SELECT points FROM table_name_17 WHERE draws < 7 AND wins < 16 AND goals_for = 35
### Instruction: CREATE TABLE table_204_521 ( id number, "rank" number, "name" text, "nationality" text, "time (hand)" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only competitor to come from great britain ? ### Re...
SELECT "name" FROM table_204_521 WHERE "nationality" = 'great britain'
### Instruction: CREATE TABLE table_66942 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which of the two teams has 1st leg of 2-0? ### Response:
SELECT "Team 2" FROM table_66942 WHERE "1st leg" = '2-0'
### Instruction: CREATE TABLE table_name_22 ( goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points? ### R...
SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40
### Instruction: CREATE TABLE MEMBER_OF ( DNO VARCHAR ) CREATE TABLE DEPARTMENT ( DName VARCHAR, DNO VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of the department that has the fewest members. ### Response:
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1
### Instruction: CREATE TABLE table_26642 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the vacator for georgia 2nd? ### Response:
SELECT "Vacator" FROM table_26642 WHERE "District" = 'Georgia 2nd'
### Instruction: CREATE TABLE table_75487 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Total is the lowest one that has a Rank smaller than 1? ### Respons...
SELECT MIN("Total") FROM table_75487 WHERE "Rank" < '1'
### Instruction: CREATE TABLE table_36662 ( "Season" real, "Driver" text, "Team" text, "Tyre" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the driver for team Coll Racing with more than 206 points? ### Response:
SELECT "Driver" FROM table_36662 WHERE "Team" = 'collé racing' AND "Points" > '206'
### Instruction: CREATE TABLE table_74009 ( "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. -- Name the distrct for thomas wilson ### Response:
SELECT "District" FROM table_74009 WHERE "Incumbent" = 'Thomas Wilson'
### Instruction: CREATE TABLE head ( age VARCHAR, head_id VARCHAR ) CREATE TABLE management ( head_id VARCHAR, temporary_acting VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the distinct ages of the heads who are acting? ### Response:
SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes'
### Instruction: CREATE TABLE table_4693 ( "Played" real, "Lost" real, "Drawn" real, "Tries" real, "Points" real, "% Won" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of tries for the player who is larger than 16? ### Resp...
SELECT SUM("Tries") FROM table_4693 WHERE "Played" > '16'
### Instruction: CREATE TABLE table_11340 ( "Round" text, "Pick" text, "Player" text, "Position" text, "Nationality" text, "Team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round did the College of Minnesota pick? ...
SELECT "Round" FROM table_11340 WHERE "College" = 'minnesota'
### Instruction: CREATE TABLE table_43421 ( "Background" text, "Original Team" text, "Hometown" text, "Result" text, "Raised" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Original Team of the contestant from Wrightsville, Georgia ? #...
SELECT "Original Team" FROM table_43421 WHERE "Hometown" = 'wrightsville, georgia'
### Instruction: CREATE TABLE table_38902 ( "Pos." real, "Car #" real, "Driver" text, "Make" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Car # has a Make of toyota, and a Pos of 7? ### Response:
SELECT MAX("Car #") FROM table_38902 WHERE "Make" = 'toyota' AND "Pos." = '7'
### Instruction: CREATE TABLE table_55139 ( "Competition" text, "Current position / round" text, "Final position / round" text, "First match" text, "Last match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the final position/round is group st...
SELECT "Last match" FROM table_55139 WHERE "Final position / round" = 'group stage'
### Instruction: CREATE TABLE table_69739 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game in which the series was 1-4? ### Resp...
SELECT "Date" FROM table_69739 WHERE "Series" = '1-4'
### Instruction: CREATE TABLE table_6507 ( "Position" text, "Player" text, "Premiership" text, "Norwegian Cup" text, "UEFA" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Total with a Player named robbie winters? ### ...
SELECT "Total" FROM table_6507 WHERE "Player" = 'robbie winters'
### Instruction: CREATE TABLE table_name_96 ( time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the time/retired with grid less than 22 and Laps less than 33 for john surtees ### Response...
SELECT time_retired FROM table_name_96 WHERE grid < 22 AND laps < 33 AND driver = "john surtees"
### Instruction: CREATE TABLE table_31506 ( "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. -- Which townland has a 213 acre area? ### Response:
SELECT "Townland" FROM table_31506 WHERE "Area( acres )" = '213'
### Instruction: CREATE TABLE table_204_114 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many riders do not have points ? ### ...
SELECT COUNT("rider") FROM table_204_114 WHERE "points" IS NULL