instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_74340 ( "LGA Name" text, "Area (km 2 )" real, "Census 2006 population" real, "Administrative capital" text, "Postal Code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the postal code when the administrative capital in Bori? ### Response:
SELECT MAX("Postal Code") FROM table_74340 WHERE "Administrative capital" = 'Bori'
### Instruction: CREATE TABLE table_61791 ( "Sign" text, "Domicile" text, "Detriment" text, "Exaltation" text, "Fall" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which detriment has a domicile of mercury and Virgo as a sign? ### Response:
SELECT "Detriment" FROM table_61791 WHERE "Domicile" = 'mercury' AND "Sign" = 'virgo'
### Instruction: CREATE TABLE table_203_367 ( id number, "year" text, "driver" text, "constructor" text, "location" text, "report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who won the year before alain prost ? ### Response:
SELECT "driver" FROM table_203_367 WHERE id = (SELECT id FROM table_203_367 WHERE "driver" = 'alain prost') - 1
### Instruction: CREATE TABLE table_204_48 ( id number, "date" text, "race name" text, "location" text, "uci rating" text, "winner" text, "team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which race did nathan brown receive his victory during 2013 ? ### Response:
SELECT "race name" FROM table_204_48 WHERE "winner" = 'nathan brown'
### Instruction: CREATE TABLE table_54743 ( "Station" text, "Japanese" text, "Distance (km)" real, "Rapid" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What location is less than 7.1 km away, and has a Rapid of ? ### Response:
SELECT "Location" FROM table_54743 WHERE "Distance (km)" < '7.1' AND "Rapid" = '●'
### Instruction: CREATE TABLE table_13363 ( "Player" text, "Games" real, "Comp" real, "Yards" real, "Rating" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the games average with less than 3.8 in rating and less than 9 yards? ### Response:
SELECT AVG("Games") FROM table_13363 WHERE "Rating" < '3.8' AND "Yards" < '9'
### Instruction: CREATE TABLE table_43694 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/junior/club team (league)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY? ### Response:
SELECT COUNT("Round") FROM table_43694 WHERE "Player" = 'nicholas tremblay'
### Instruction: CREATE TABLE table_55980 ( "Name" text, "Current version" text, "System" text, "Platform" text, "License" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name when the License is gpl and the Current Version is 1.72? ### Response:
SELECT "Name" FROM table_55980 WHERE "License" = 'gpl' AND "Current version" = '1.72'
### Instruction: CREATE TABLE table_name_45 ( city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which City of license has a Frequency MHz smaller than 100.9, and a ERP W larger than 100? ### Response:
SELECT city_of_license FROM table_name_45 WHERE frequency_mhz < 100.9 AND erp_w > 100
### Instruction: CREATE TABLE table_24038 ( "Episode #" real, "Episode" real, "Title" text, "Director" text, "Writer" text, "Original airdate" text, "U.S. airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles were directed by Alex Chapple? ### Response:
SELECT COUNT("Title") FROM table_24038 WHERE "Director" = 'Alex Chapple'
### Instruction: CREATE TABLE table_204_332 ( id number, "administrative\narea" text, "area\nkm2" number, "area\nsq mi" number, "population" number, "administrative\ncentre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many administrative center is there ? ### Response:
SELECT COUNT(DISTINCT "administrative\ncentre") FROM table_204_332
### Instruction: CREATE TABLE table_45285 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least total that had more Bronzes than 1 and more silvers than 2? ### Response:
SELECT MIN("Total") FROM table_45285 WHERE "Bronze" > '1' AND "Silver" > '2'
### Instruction: CREATE TABLE table_18400 ( "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 was the candidate when the incumbent was Richard C. White? ### Response:
SELECT "Candidates" FROM table_18400 WHERE "Incumbent" = 'Richard C. White'
### Instruction: CREATE TABLE table_18928 ( "Date" text, "Winning Team" text, "Score" text, "Winning Pitcher" text, "Losing Pitcher" text, "Attendance" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game played on may 20? ### Response:
SELECT "Location" FROM table_18928 WHERE "Date" = 'May 20'
### Instruction: CREATE TABLE table_204_539 ( id number, "date" text, "name" text, "moving from" text, "moving to" text, "fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team was silvestre varela a member of before moving to porto ? ### Response:
SELECT "moving from" FROM table_204_539 WHERE "name" = 'silvestre varela'
### Instruction: CREATE TABLE table_55403 ( "Ship's name" text, "Date entered service" text, "Date withdrawn" text, "Tonnage" real, "Type of Ship" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the tonnage of the ship koningin juliana? ### Response:
SELECT "Tonnage" FROM table_55403 WHERE "Ship's name" = 'koningin juliana'
### Instruction: CREATE TABLE table_23987 ( "Model Type" text, "Model Designation" text, "Engine" text, "Wheelbase (mm/inch)" text, "GVW (kg/ton)" text, "Axle Ratio" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Engine for model CF350. ### Response:
SELECT "Engine" FROM table_23987 WHERE "Model Type" = 'CF350'
### Instruction: CREATE TABLE table_24135 ( "Rank" real, "Average" text, "Player" text, "Runs" real, "Innings" real, "Not Out" real, "Period" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What period was there a career average of 48.15? ### Response:
SELECT "Period" FROM table_24135 WHERE "Average" = '48.15'
### Instruction: CREATE TABLE table_204_853 ( id number, "pos" number, "grid" number, "no." number, "driver" text, "team" text, "manufacturer" text, "laps" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who had the most points ? ### Response:
SELECT "driver" FROM table_204_853 ORDER BY "points" DESC LIMIT 1
### Instruction: CREATE TABLE table_63185 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the RECNet when the identifier is cbf-fm-20? ### Response:
SELECT "RECNet" FROM table_63185 WHERE "Identifier" = 'cbf-fm-20'
### Instruction: CREATE TABLE table_24534 ( "No. in total" text, "No. in series" text, "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 directed 'A Tale of Two Hitmen'? ### Response:
SELECT "Directed by" FROM table_24534 WHERE "Title" = 'A Tale of Two Hitmen'
### Instruction: CREATE TABLE table_35020 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the game with a loss of Sele (0-1)? ### Response:
SELECT "Opponent" FROM table_35020 WHERE "Loss" = 'sele (0-1)'
### Instruction: CREATE TABLE table_78451 ( "Rank" text, "Games" text, "Player" text, "Nationality" text, "Career Span" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Nationality of Mike Gatting, who played 551 games? ### Response:
SELECT "Nationality" FROM table_78451 WHERE "Games" = '551' AND "Player" = 'mike gatting'
### Instruction: CREATE TABLE table_28319 ( "City / Municipality" text, "Date of Creation" text, "Area (km 2 )" text, "Population (2010)" real, "Income Classification ( DOF )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What day was kibawe created? ### Response:
SELECT "Date of Creation" FROM table_28319 WHERE "City / Municipality" = 'Kibawe'
### Instruction: CREATE TABLE table_204_516 ( id number, "date" text, "opponents" text, "h / a" text, "result\nf - a" text, "scorers" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was manchester 's first defeat on the list ? ### Response:
SELECT "opponents" FROM table_204_516 WHERE id = 1
### Instruction: CREATE TABLE table_18615 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the result with dbeingtrict being california 10 ### Response:
SELECT "Result" FROM table_18615 WHERE "District" = 'California 10'
### Instruction: CREATE TABLE table_19438 ( "Season" text, "Coach" text, "Overall" text, "Conference" text, "Standing" text, "Postseason" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How far into the postseason did the Rams go when their record was 29-7? ### Response:
SELECT "Postseason" FROM table_19438 WHERE "Overall" = '29-7'
### Instruction: CREATE TABLE table_77576 ( "Superlative" text, "Actor" text, "Record Set" text, "Year" real, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record was set by walter brennan before 1941? ### Response:
SELECT "Record Set" FROM table_77576 WHERE "Actor" = 'walter brennan' AND "Year" < '1941'
### Instruction: CREATE TABLE table_71686 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What qual had a finish of 16 in 1968? ### Response:
SELECT "Qual" FROM table_71686 WHERE "Finish" = '16' AND "Year" = '1968'
### Instruction: CREATE TABLE employees ( job_id VARCHAR, hire_date INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009. ### Response:
SELECT job_id, hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'
### Instruction: CREATE TABLE table_73865 ( "Constituency" text, "Candidate" text, "Affiliation" text, "Result - votes" real, "Result - %" text, "Loss/gain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every candidate for the Cardiff Central constituency? ### Response:
SELECT "Candidate" FROM table_73865 WHERE "Constituency" = 'Cardiff Central'
### Instruction: CREATE TABLE table_45680 ( "Wicket" text, "Runs" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which wicket had 580 runs? ### Response:
SELECT "Wicket" FROM table_45680 WHERE "Runs" = '580'
### Instruction: CREATE TABLE table_18997 ( "Position" real, "Artist" text, "Song title" text, "Highest position" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the the artbeingt with song title being ' a steel guitar and a glass of wine ### Response:
SELECT "Artist" FROM table_18997 WHERE "Song title" = ' A Steel Guitar And A Glass Of Wine '
### Instruction: CREATE TABLE table_20683381_3 ( total_poll___percentage_ VARCHAR, against___percentage_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 13,895 (27.3) is the percentage against what is the toll poll percentage? ### Response:
SELECT total_poll___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "13,895 (27.3)"
### Instruction: CREATE TABLE table_44641 ( "Rank" real, "Name" text, "Years" text, "League" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which league has total smaller than 284, with Sandro Mazzola league? ### Response:
SELECT MIN("League") FROM table_44641 WHERE "Total" < '284' AND "Name" = 'sandro mazzola'
### Instruction: CREATE TABLE table_43054 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Assists" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Assists for the Player with a Rank greater than 3 in less than 25 Games? ### Response:
SELECT AVG("Assists") FROM table_43054 WHERE "Rank" > '3' AND "Games" < '25'
### Instruction: CREATE TABLE table_80290 ( "NBR number" real, "Year" real, "Original operator" text, "Class" text, "Wheel arrangement" text, "Road number" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many road numbers are before 1922? ### Response:
SELECT COUNT("Road number") FROM table_80290 WHERE "Year" < '1922'
### Instruction: CREATE TABLE table_49199 ( "Player" text, "Nationality" text, "Jersey Number(s)" text, "Position" text, "Years" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of the PG position from VCU? ### Response:
SELECT "Nationality" FROM table_49199 WHERE "Position" = 'pg' AND "From" = 'vcu'
### Instruction: CREATE TABLE table_31910 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of total for 3 gold and rank less than 3 ### Response:
SELECT COUNT("Total") FROM table_31910 WHERE "Gold" = '3' AND "Rank" < '3'
### Instruction: CREATE TABLE table_204_244 ( id number, "year" number, "album" text, "peak\nus" number, "peak\nus\nholiday" number, "certifications\n(sales threshold)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the first michael w smith album ? ### Response:
SELECT "album" FROM table_204_244 ORDER BY "year" LIMIT 1
### Instruction: CREATE TABLE table_5394 ( "Frequency" real, "Callsign" text, "Brand" text, "Format" text, "City of License" text, "Website" text, "Webcast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the format for Digital 94.9? ### Response:
SELECT "Format" FROM table_5394 WHERE "Brand" = 'digital 94.9'
### Instruction: CREATE TABLE table_44020 ( "Team" text, "Driver" text, "Class" text, "Chassis" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the chassis for Augusto Scalbi on Team RP Motorsport? ### Response:
SELECT "Chassis" FROM table_44020 WHERE "Team" = 'rp motorsport' AND "Driver" = 'augusto scalbi'
### Instruction: CREATE TABLE table_11497980_1 ( model VARCHAR, transmission_make_type_speed VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which model possesses a transmission make/type/speed of eaton fs-6306 a manual synchromesh 6 speed? ### Response:
SELECT model FROM table_11497980_1 WHERE transmission_make_type_speed = "Eaton FS-6306 A Manual Synchromesh 6 Speed"
### Instruction: CREATE TABLE table_9905 ( "Generation" text, "Birthday" text, "Birthplace" text, "Blood Type" text, "Agency" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What generation is the member born on 1996.04.17 in? ### Response:
SELECT "Generation" FROM table_9905 WHERE "Birthday" = '1996.04.17'
### Instruction: CREATE TABLE table_25513 ( "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. -- How many writers were there for episode named 'embassy'? ### Response:
SELECT COUNT("Written by") FROM table_25513 WHERE "Title" = 'Embassy'
### Instruction: CREATE TABLE torrents ( groupname text, totalsnatched number, artist text, groupyear number, releasetype text, groupid number, id number ) CREATE TABLE tags ( index number, id number, tag text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Whose CDs sells best? ### Response:
SELECT artist FROM torrents GROUP BY artist ORDER BY SUM(totalsnatched) DESC LIMIT 1
### Instruction: CREATE TABLE table_55425 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did the Mariners play when they had a record of 33-45? ### Response:
SELECT "Opponent" FROM table_55425 WHERE "Record" = '33-45'
### Instruction: CREATE TABLE table_30838 ( "By-election" real, "Electorate" text, "Date" text, "Incumbent" text, "Reason" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When peninsula is the electorate what is the reason? ### Response:
SELECT "Reason" FROM table_30838 WHERE "Electorate" = 'Peninsula'
### Instruction: CREATE TABLE table_44966 ( "Pollutant" text, "Type" text, "Standard" text, "Averaging Time" text, "Regulatory Citation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the regulatory citation when the standard is 15 g/m ? ### Response:
SELECT "Regulatory Citation" FROM table_44966 WHERE "Standard" = '15 μg/m³'
### Instruction: CREATE TABLE table_11853 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time/retired for the car with over 9 laps and a grid of 6? ### Response:
SELECT "Time/Retired" FROM table_11853 WHERE "Laps" > '9' AND "Grid" = '6'
### Instruction: CREATE TABLE table_24106 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Black Knights points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of black knights points for 3 game ### Response:
SELECT COUNT("Black Knights points") FROM table_24106 WHERE "Game" = '3'
### Instruction: CREATE TABLE table_27437601_2 ( no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the season above 241.0 that was handled by brad tanenbaum. ### Response:
SELECT no_in_season FROM table_27437601_2 WHERE directed_by = "Brad Tanenbaum" AND no_in_series > 241.0
### Instruction: CREATE TABLE table_43078 ( "Club" text, "Winners" real, "Runners-up" real, "Winning Years" text, "Runner-up Years" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the runners-up for the FC Viktoria Plze club? ### Response:
SELECT "Runners-up" FROM table_43078 WHERE "Club" = 'fc viktoria plzeň'
### Instruction: CREATE TABLE table_32847 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What away team did Carlton play? ### Response:
SELECT "Away team" FROM table_32847 WHERE "Home team" = 'carlton'
### Instruction: CREATE TABLE body_builder ( body_builder_id number, people_id number, snatch number, clean_jerk number, total number ) CREATE TABLE people ( people_id number, name text, height number, weight number, birth_date text, birth_place text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many distinct birth places are there? ### Response:
SELECT COUNT(DISTINCT birth_place) FROM people
### Instruction: CREATE TABLE table_5903 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Total has a Set 2 of 19 25? ### Response:
SELECT "Total" FROM table_5903 WHERE "Set 2" = '19–25'
### Instruction: CREATE TABLE table_name_19 ( withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923? ### Response:
SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923
### Instruction: CREATE TABLE table_74592 ( "Club" text, "Played" real, "Lost" real, "Drawn" real, "Against" real, "Diff." real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of losses for teams with less than 4 games played? ### Response:
SELECT SUM("Lost") FROM table_74592 WHERE "Played" < '4'
### Instruction: CREATE TABLE table_61776 ( "Date(s)" text, "City, state" text, "Ticket price(s)" text, "Ticket sold / available" text, "Ticket grossing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much were tickets for the show in Hartford, Connecticut? ### Response:
SELECT "Ticket price(s)" FROM table_61776 WHERE "City, state" = 'hartford, connecticut'
### Instruction: CREATE TABLE table_24063 ( "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 date was an episode broadcasted on that had a run time of 24:40? ### Response:
SELECT "Broadcast date" FROM table_24063 WHERE "Run time" = '24:40'
### Instruction: CREATE TABLE table_25568 ( "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 position is FB, what is the Copa Del Rey? ### Response:
SELECT "Copa del Rey" FROM table_25568 WHERE "Position" = 'FB'
### Instruction: CREATE TABLE table_49847 ( "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 round did the fight last when Mikhail Ilyukhin's record was 15-5? ### Response:
SELECT "Round" FROM table_49847 WHERE "Record" = '15-5'
### Instruction: CREATE TABLE table_217 ( "Race Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many winners did I Dessau Autobahnspinne have? ### Response:
SELECT COUNT("Winning driver") FROM table_217 WHERE "Race Name" = 'I Dessau Autobahnspinne'
### Instruction: CREATE TABLE table_61810 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 2012, when 2009 is 'A'? ### Response:
SELECT "2012" FROM table_61810 WHERE "2009" = 'a'
### Instruction: CREATE TABLE table_49872 ( "Series Sorted" text, "Title" text, "Author" text, "Featuring" text, "Released" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the title when the featuring is leela and series sorted is 4s/b? ### Response:
SELECT "Title" FROM table_49872 WHERE "Featuring" = 'leela' AND "Series Sorted" = '4s/b'
### Instruction: CREATE TABLE table_56115 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed the car that has a Time/Retired of engine, and over 50 laps? ### Response:
SELECT "Constructor" FROM table_56115 WHERE "Time/Retired" = 'engine' AND "Laps" > '50'
### Instruction: CREATE TABLE table_68973 ( "Year" real, "Opponent" text, "Competition" text, "Score" text, "Venue" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have less than 28,505 attendance? ### Response:
SELECT AVG("Year") FROM table_68973 WHERE "Attendance" < '28,505'
### Instruction: CREATE TABLE TRACK ( GenreId VARCHAR ) CREATE TABLE GENRE ( GenreId VARCHAR, Name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average duration in milliseconds of tracks that belong to Latin or Pop genre? ### Response:
SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop"
### Instruction: CREATE TABLE loan ( branch_id VARCHAR, amount INTEGER ) CREATE TABLE bank ( bname VARCHAR, branch_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of bank branch that provided the greatest total amount of loans. ### Response:
SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY SUM(T2.amount) DESC LIMIT 1
### Instruction: CREATE TABLE table_203_405 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games did the eagles win after december 1 , 1968 ? ### Response:
SELECT COUNT(*) FROM table_203_405 WHERE "result" = 'w' AND "date" >= 12
### Instruction: CREATE TABLE table_203_392 ( id number, "rank" text, "belt alternate 1" text, "belt alternate 2" text, "belt alternate 3" text, "belt alternate 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which kyu levels have only one color belt ? ### Response:
SELECT "rank" FROM table_203_392 WHERE "belt alternate 2" IS NULL
### Instruction: CREATE TABLE table_70064 ( "Value" text, "Khmer" real, "Word Form" text, "UNGEGN" text, "ALA-LC" text, "Other" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number value has the Other transliteration of muoy roy? ### Response:
SELECT "Value" FROM table_70064 WHERE "Other" = 'muoy roy'
### Instruction: CREATE TABLE table_21626 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles are given for the episode directed by Joanna Kerns? ### Response:
SELECT COUNT("Title") FROM table_21626 WHERE "Directed by" = 'Joanna Kerns'
### Instruction: CREATE TABLE table_42820 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the game that was played on 3,4,5 Jul 1902? ### Response:
SELECT "Result" FROM table_42820 WHERE "Date" = '3,4,5 jul 1902'
### Instruction: CREATE TABLE table_72813 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Year named" real, "Name origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the diameter in km of the feature named Colette Patera? ### Response:
SELECT "Diameter (km)" FROM table_72813 WHERE "Name" = 'Colette Patera'
### Instruction: CREATE TABLE table_67523 ( "Driver" text, "Constructor" text, "Laps" text, "Time/Retired" text, "Grid" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso? ### Response:
SELECT "Laps" FROM table_67523 WHERE "Constructor" = 'renault' AND "Driver" = 'fernando alonso'
### Instruction: CREATE TABLE table_79137 ( "Date" text, "Result" text, "Score" text, "Opponent" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record has w as the result, with January 2 as the date? ### Response:
SELECT "Record" FROM table_79137 WHERE "Result" = 'w' AND "Date" = 'january 2'
### Instruction: CREATE TABLE table_4890 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who faced Collingwood as an away team? ### Response:
SELECT "Away team" FROM table_4890 WHERE "Home team" = 'collingwood'
### Instruction: CREATE TABLE table_77078 ( "Player" text, "Nationality" text, "Jersey Number(s)" real, "Position" text, "Years" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years did the player with the jersey number bigger than 20 play? ### Response:
SELECT "Years" FROM table_77078 WHERE "Jersey Number(s)" > '20'
### Instruction: CREATE TABLE table_10751 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyres" text, "Driver" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds have a chassis of thl2? ### Response:
SELECT "Rounds" FROM table_10751 WHERE "Chassis" = 'thl2'
### Instruction: CREATE TABLE table_18227 ( "District" text, "Incumbent" text, "Party" text, "Elected" text, "Status" text, "Opponent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the incumbents elected in 1974? ### Response:
SELECT "Incumbent" FROM table_18227 WHERE "Elected" = '1974'
### Instruction: CREATE TABLE table_15808 ( "Name" text, "Starting Point" text, "Terminus" text, "Operates" text, "Direction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the starting point of the route that has its terminus at Ecat/Rosa Park Transit Center? ### Response:
SELECT "Starting Point" FROM table_15808 WHERE "Terminus" = 'ecat/rosa park transit center'
### Instruction: CREATE TABLE table_27210 ( "Player" text, "Minutes" real, "Field Goals" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player has 17 blocks? ### Response:
SELECT "Player" FROM table_27210 WHERE "Blocks" = '17'
### Instruction: CREATE TABLE table_12326 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the to par for the game with a score of 74-69-66=209? ### Response:
SELECT "To par" FROM table_12326 WHERE "Score" = '74-69-66=209'
### Instruction: CREATE TABLE table_53843 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the team 2 when the team 1 is sestese(e16)? ### Response:
SELECT "Team 2" FROM table_53843 WHERE "Team 1" = 'sestese(e16)'
### Instruction: CREATE TABLE table_203_409 ( id number, "rank" number, "representative" text, "party" text, "district" text, "seniority date" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the congressman with the greatest seniority ? ### Response:
SELECT "representative" FROM table_203_409 ORDER BY "seniority date" LIMIT 1
### Instruction: CREATE TABLE table_50591 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record when they played game 58? ### Response:
SELECT "Record" FROM table_50591 WHERE "Game" = '58'
### Instruction: CREATE TABLE table_48015 ( "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 type of surface did Thomaz Bellucci play against tommy robredo? ### Response:
SELECT "Surface" FROM table_48015 WHERE "Opponent" = 'tommy robredo'
### Instruction: CREATE TABLE table_41957 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average amount of gold medals for a country with more than 12 total medals? ### Response:
SELECT AVG("Gold") FROM table_41957 WHERE "Total" > '12'
### Instruction: CREATE TABLE table_28543 ( "Round" text, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In Round 6, who is the winning team? ### Response:
SELECT "Winning Team" FROM table_28543 WHERE "Round" = '6'
### Instruction: CREATE TABLE table_19302 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the candidates in the election where John Beatty was the incumbent? ### Response:
SELECT "Candidates" FROM table_19302 WHERE "Incumbent" = 'John Beatty'
### Instruction: CREATE TABLE table_24754 ( "Year (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Languages" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the director of the original title perl oder pica? ### Response:
SELECT "Director" FROM table_24754 WHERE "Original title" = 'Perl oder Pica'
### Instruction: CREATE TABLE table_70793 ( "Player" text, "Height" real, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the player born before 1985 who is less than 2.02 tall? ### Response:
SELECT "Player" FROM table_70793 WHERE "Year born" < '1985' AND "Height" < '2.02'
### Instruction: CREATE TABLE table_19846 ( "No." real, "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The tournament Buick Classic occured on what dates? ### Response:
SELECT "Date" FROM table_19846 WHERE "Tournament" = 'Buick Classic'
### Instruction: CREATE TABLE table_203_622 ( id number, "date" text, "team" text, "name" text, "position" text, "years in nba" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many years in the nba did mark madsen play ? ### Response:
SELECT "years in nba" FROM table_203_622 WHERE "name" = 'mark madsen'
### Instruction: CREATE TABLE table_76573 ( "Tournament" text, "Surface" text, "Week" text, "Winner and score" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the semifinalist for the Key Biscane tournament? ### Response:
SELECT "Semifinalists" FROM table_76573 WHERE "Tournament" = 'key biscane'
### Instruction: CREATE TABLE table_71943 ( "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 date of the game that had a loss of Geisel (0-1)? ### Response:
SELECT "Date" FROM table_71943 WHERE "Loss" = 'geisel (0-1)'
### Instruction: CREATE TABLE table_72912 ( "Country" text, "Preliminary" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country had a swimsuit score of 8.788? ### Response:
SELECT "Country" FROM table_72912 WHERE "Swimsuit" = '8.788'
### Instruction: CREATE TABLE table_8661 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game site" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent on april 26, 2003? ### Response:
SELECT "Opponent" FROM table_8661 WHERE "Date" = 'april 26, 2003'
### Instruction: CREATE TABLE table_46658 ( "Player" text, "Country" text, "Year(s) won" text, "Total" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when Country is 'United States', and when Total is '154'? ### Response:
SELECT "Player" FROM table_46658 WHERE "Country" = 'united states' AND "Total" = '154'