instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_18787 ( "City of license/Market" text, "Station" text, "Channel TV ( DT )" text, "Years owned" text, "Current Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the current status of the KDAF ** Statio...
SELECT "Current Status" FROM table_18787 WHERE "Station" = 'KDAF **'
### Instruction: CREATE TABLE table_35008 ( "Rank" text, "Name" text, "Height feet(m)" text, "Floors" real, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- with name meridian condominiums what is number of floors? ### Response:
SELECT AVG("Floors") FROM table_35008 WHERE "Name" = 'meridian condominiums'
### Instruction: CREATE TABLE table_name_5 ( site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research? #...
SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research"
### Instruction: CREATE TABLE table_203_810 ( id number, "#" number, "title" text, "songwriters" text, "producer(s)" text, "performer (s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what track/title had the most songwriters ? ### Response:...
SELECT "title" FROM table_203_810 ORDER BY "songwriters" DESC LIMIT 1
### Instruction: CREATE TABLE table_name_44 ( week_8_oct_26 VARCHAR, week_7_oct_19 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Week 8 result of the team that lost to syarcuse (4-2) in Week 7? ### Response:
SELECT week_8_oct_26 FROM table_name_44 WHERE week_7_oct_19 = "syarcuse (4-2)"
### Instruction: CREATE TABLE table_28108 ( "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 wrote the episode with series number 56? ### Response:
SELECT "Writer(s)" FROM table_28108 WHERE "Series #" = '56'
### Instruction: CREATE TABLE table_27383390_4 ( outgoing_head_coach VARCHAR, incoming_head_coach VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the outgoing head coach when the incoming head coach is abdollah veysi? ### Response:
SELECT outgoing_head_coach FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
### Instruction: CREATE TABLE table_name_46 ( german_submarines_lost VARCHAR, sunk_by_mines INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of German submarines lost with more than 120958 sunk by mines? ### Response:
SELECT COUNT(german_submarines_lost) FROM table_name_46 WHERE sunk_by_mines > 120958
### Instruction: CREATE TABLE table_203_164 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what were the most points scored b...
SELECT MAX("score") FROM table_203_164
### Instruction: CREATE TABLE table_62858 ( "Athlete" text, "Class" text, "Horse" text, "Event" text, "Result" text, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What horse has a 66.452 result? ### Response:
SELECT "Horse" FROM table_62858 WHERE "Result" = '66.452'
### Instruction: CREATE TABLE table_33512 ( "Date" text, "Result" text, "Score" text, "Stadium" text, "City" text, "Crowd" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the stadium in Brisbane? ### Response:
SELECT "Stadium" FROM table_33512 WHERE "City" = 'brisbane'
### Instruction: CREATE TABLE table_42658 ( "Season" text, "Team" text, "Country" text, "Division" real, "Apps" real, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Apps, when Goals are greater than 5? ### Response:...
SELECT MAX("Apps") FROM table_42658 WHERE "Goals" > '5'
### Instruction: CREATE TABLE table_4914 ( "Date" text, "Round" text, "Circuit" text, "Winning driver" text, "Winning team" text, "Winning car" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What circuit saw Cabin Racing as the winning team? #...
SELECT "Circuit" FROM table_4914 WHERE "Winning team" = 'cabin racing'
### Instruction: CREATE TABLE table_name_17 ( date VARCHAR, opponent VARCHAR, result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was the opponent Ayr United, the result 1 0, and the attendance more than 668? ### ...
SELECT date FROM table_name_17 WHERE result = "1–0" AND attendance > 668 AND opponent = "ayr united"
### Instruction: CREATE TABLE table_name_87 ( year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was Aaron Tveit nominated in the Favorite Male Replacement category? ### Response:
SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit"
### Instruction: CREATE TABLE table_37396 ( "Years" text, "Competition" text, "Vehicle Name" text, "Original Vehicle" text, "Architecture" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What architecture type does the Ford Escort Wagon have? ### R...
SELECT "Architecture" FROM table_37396 WHERE "Original Vehicle" = 'ford escort wagon'
### Instruction: CREATE TABLE table_11177 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Competition with a Date with 6 december 2011? ### Response:
SELECT "Competition" FROM table_11177 WHERE "Date" = '6 december 2011'
### Instruction: CREATE TABLE table_name_54 ( 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 kansas city chiefs, with more than 26,469 in attendance? ### Response...
SELECT MAX(week) FROM table_name_54 WHERE opponent = "kansas city chiefs" AND attendance > 26 OFFSET 469
### Instruction: CREATE TABLE table_name_56 ( year INTEGER, points VARCHAR, team VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 point...
SELECT MAX(year) FROM table_name_56 WHERE team = "repsol honda" AND wins < 4 AND points < 162
### Instruction: CREATE TABLE table_203_512 ( id number, "release date" text, "album" text, "catalog number" text, "chart position" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many albums held a chart position of at least ...
SELECT COUNT("album") FROM table_203_512 WHERE "chart position" <= 10
### Instruction: CREATE TABLE table_52479 ( "Round" real, "Pick" real, "Player" text, "Position" text, "Team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest pick number for the Boston Celtics? ### Response:
SELECT MIN("Pick") FROM table_52479 WHERE "Team" = 'boston celtics'
### Instruction: CREATE TABLE table_34395 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the winners name at the western open? ### Respon...
SELECT "Winner" FROM table_34395 WHERE "Tournament" = 'western open'
### Instruction: CREATE TABLE table_44563 ( "Coach" text, "Years" text, "Win-Loss" text, "Win %" text, "Conference Titles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Conference Titles, when Win % is .667? ### Response:
SELECT "Conference Titles" FROM table_44563 WHERE "Win %" = '.667'
### Instruction: CREATE TABLE table_64991 ( "Rank" real, "Player" text, "County" text, "Tally" text, "Total" real, "Matches" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is cork's rank? ### Response:
SELECT "Rank" FROM table_64991 WHERE "County" = 'cork'
### Instruction: CREATE TABLE table_11585 ( "Name" text, "Election Year" real, "Party" text, "Birth State" text, "Resident State" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the resident state for the president elected in 1864? ### Resp...
SELECT "Resident State" FROM table_11585 WHERE "Election Year" = '1864'
### Instruction: CREATE TABLE table_18461 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the result for south carolina 4 ### Response:
SELECT "Result" FROM table_18461 WHERE "District" = 'South Carolina 4'
### Instruction: CREATE TABLE table_28932 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result for Pennsylvania 8? ### Response:...
SELECT "Result" FROM table_28932 WHERE "District" = 'Pennsylvania 8'
### Instruction: CREATE TABLE table_32390 ( "Player" text, "Home Town" text, "College/Prior" text, "Drafting Team" text, "Graduated" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year did Omar Gonzalez graduate? ### Response:
SELECT SUM("Graduated") FROM table_32390 WHERE "Player" = 'omar gonzalez'
### Instruction: CREATE TABLE table_26826304_1 ( us_viewers__millions_ VARCHAR, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many were the US viewers (in millions) of the episode that was written by Gordon C. Lonsdale? ### Response:
SELECT us_viewers__millions_ FROM table_26826304_1 WHERE directed_by = "Gordon C. Lonsdale"
### Instruction: CREATE TABLE table_52924 ( "Class" text, "Wheels" text, "Date" text, "No. built" real, "Loco Nos." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was the number of locomotives 421-6? ### Response:
SELECT "Date" FROM table_52924 WHERE "Loco Nos." = '421-6'
### Instruction: CREATE TABLE table_67889 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Try BP" text, "Losing BP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number drawn when 3 have been lost? ### Response:
SELECT "Drawn" FROM table_67889 WHERE "Lost" = '3'
### Instruction: CREATE TABLE table_name_75 ( hr_no VARCHAR, built VARCHAR, lms_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the HR Number when the LMS number is 14757 and has a built of 9/1915? ### Response:
SELECT hr_no FROM table_name_75 WHERE built = "9/1915" AND lms_no = 14757
### Instruction: CREATE TABLE table_66063 ( "Year" text, "Champions" text, "Score" text, "Runners-up" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score when TSV Siegen was the runner-up? ### Response:
SELECT "Score" FROM table_66063 WHERE "Runners-up" = 'tsv siegen'
### Instruction: CREATE TABLE table_64152 ( "Date" text, "Label" text, "Format" text, "Country" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the catalog with an LP Format and under the Simply Vinyl label? ### Response:
SELECT "Catalog" FROM table_64152 WHERE "Format" = 'lp' AND "Label" = 'simply vinyl'
### Instruction: CREATE TABLE table_40876 ( "Year" real, "Winning team" text, "Losing team" text, "Score" text, "Site" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score with a Winning team that is san antonio spurs? ### Response:
SELECT "Score" FROM table_40876 WHERE "Winning team" = 'san antonio spurs'
### Instruction: CREATE TABLE table_52314 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On November 19, 2008 what was the score? ### Response:
SELECT "Score" FROM table_52314 WHERE "Date" = 'november 19, 2008'
### Instruction: CREATE TABLE table_30099 ( "Branding" text, "Callsign" text, "Frequency" text, "Power kW" text, "Coverage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the callsign for davao mindanao region ### Response:
SELECT "Callsign" FROM table_30099 WHERE "Coverage" = 'Davao Mindanao Region'
### Instruction: CREATE TABLE table_24121 ( "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 episode had a run time of 23:38? ### Response:
SELECT "Episode" FROM table_24121 WHERE "Run time" = '23:38'
### Instruction: CREATE TABLE table_67045 ( "Ship" text, "Pennant number" text, "Laid down" text, "Launched" text, "Commissioned" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which ship has a Pennant number of h.69? ### Response:
SELECT "Ship" FROM table_67045 WHERE "Pennant number" = 'h.69'
### Instruction: CREATE TABLE table_43572 ( "Result" text, "TUF Competitor" text, "Opponent" text, "Method" text, "Event" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when is the opponent lyoto machida? ### Response:
SELECT "Date" FROM table_43572 WHERE "Opponent" = 'lyoto machida'
### Instruction: CREATE TABLE table_76231 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is average to par when Bud Holscher is the player? ### Resp...
SELECT AVG("To par") FROM table_76231 WHERE "Player" = 'bud holscher'
### Instruction: CREATE TABLE table_1883 ( "State (class)" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date of successors formal installation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Why did the change happened in Massa...
SELECT "Reason for change" FROM table_1883 WHERE "State (class)" = 'Massachusetts (2)'
### Instruction: CREATE TABLE dept_locations ( dnumber VARCHAR, dlocation VARCHAR ) CREATE TABLE department ( dname VARCHAR, dnumber VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names of departments that are located in Houston. ### Resp...
SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston'
### Instruction: CREATE TABLE table_59515 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average against of Murrayfield, Edinburgh? ### Response:
SELECT AVG("Against") FROM table_59515 WHERE "Venue" = 'murrayfield, edinburgh'
### Instruction: CREATE TABLE table_204_718 ( id number, "date" text, "opponent" text, "time" text, "score" text, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were scheduled from 10/9/2009 to 2/20/2010 ? ### Response:...
SELECT COUNT(*) FROM table_204_718
### Instruction: CREATE TABLE table_44978 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Attendance on November 7, 1999? ### Response:
SELECT "Attendance" FROM table_44978 WHERE "Date" = 'november 7, 1999'
### Instruction: CREATE TABLE table_203_372 ( id number, "from" number, "to" number, "name" text, "party" text, "position" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- other than daubin who else was as mayor for same time period of 7 years ...
SELECT "name" FROM table_203_372 WHERE "to" - "from" = 7
### Instruction: CREATE TABLE table_24144 ( "Season" text, "1st Place" text, "2nd Place" text, "3rd Place" text, "4th Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 1st place for limoges csp ### Response:
SELECT "1st Place" FROM table_24144 WHERE "3rd Place" = 'Limoges CSP'
### Instruction: CREATE TABLE table_203_775 ( id number, "week" number, "date" text, "opponent" text, "result" text, "game site" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which date had the highest attendance ? ##...
SELECT "date" FROM table_203_775 ORDER BY "attendance" DESC LIMIT 1
### Instruction: CREATE TABLE table_28634 ( "Channel" real, "Channel name" text, "Callsign" text, "Signal power" text, "Broadcast area" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the signal power for JOAB-DTV? ### Response:
SELECT "Signal power" FROM table_28634 WHERE "Callsign" = 'JOAB-DTV'
### Instruction: CREATE TABLE table_37711 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest round that Adam Wiesel was picked? ### Respo...
SELECT MIN("Round") FROM table_37711 WHERE "Player" = 'adam wiesel'
### Instruction: CREATE TABLE table_41620 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Paris-Charles de Gaulle airport is in which country? ### Response:
SELECT "Country" FROM table_41620 WHERE "Airport" = 'paris-charles de gaulle airport'
### Instruction: CREATE TABLE table_name_30 ( 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 for ronnie peterson with under 75 laps and a grid under 15? ### Response:...
SELECT time_retired FROM table_name_30 WHERE laps < 75 AND grid < 15 AND driver = "ronnie peterson"
### Instruction: CREATE TABLE table_39910 ( "Date" text, "Time" text, "Home" text, "Away" text, "Score" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What ist he Home with a Score that is 42-64? ### Response:
SELECT "Home" FROM table_39910 WHERE "Score" = '42-64'
### Instruction: CREATE TABLE table_33761 ( "Team" text, "Chassis" text, "Engine" text, "Driver(s)" text, "Sponsor(s)" text, "Rounds" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which rounds did the team Walther participate in? ### Response...
SELECT "Rounds" FROM table_33761 WHERE "Team" = 'walther'
### Instruction: CREATE TABLE table_203_710 ( id number, "genre" text, "year" number, "title" text, "episode" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many short film roles has he acted in ? ### Respons...
SELECT COUNT(*) FROM table_203_710 WHERE "genre" = 'short film'
### Instruction: CREATE TABLE table_name_55 ( team VARCHAR, position_in_table VARCHAR, outgoing_manager VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi? ### Res...
SELECT team FROM table_name_55 WHERE position_in_table = "15th (a)" AND outgoing_manager = "claudio borghi"
### Instruction: CREATE TABLE table_35433 ( "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 lowest pick # of John Ayres? ### Response:
SELECT MIN("Pick #") FROM table_35433 WHERE "Name" = 'john ayres'
### Instruction: CREATE TABLE table_61039 ( "Date" text, "Name" text, "Nationality" text, "Tonnage (GRT)" real, "Fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Nationality has a Date of 8 may 1942? ### Response:
SELECT "Nationality" FROM table_61039 WHERE "Date" = '8 may 1942'
### Instruction: CREATE TABLE table_51360 ( "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 stadium has a final score of 26 21? ### Response:
SELECT "Stadium" FROM table_51360 WHERE "Final Score" = '26–21'
### Instruction: CREATE TABLE table_name_81 ( week_5_sept_28 VARCHAR, week_10_nov_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the week 5 opponent for the year with a week 10 opponent of Maryland (6-2)? ### Response:
SELECT week_5_sept_28 FROM table_name_81 WHERE week_10_nov_2 = "maryland (6-2)"
### Instruction: CREATE TABLE table_20668268_1 ( name VARCHAR, starting_price VARCHAR, jockey VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the name that had a starting price of 11/1 and a jockey named Garrett Cotter? ### Response:
SELECT name FROM table_20668268_1 WHERE starting_price = "11/1" AND jockey = "Garrett Cotter"
### Instruction: CREATE TABLE table_1333612_1 ( s_mestizo VARCHAR, asians VARCHAR, whites VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the s mestizo with asians being 0.2% and whites being 74.8% ### Response:
SELECT s_mestizo FROM table_1333612_1 WHERE asians = "0.2%" AND whites = "74.8%"
### Instruction: CREATE TABLE table_name_44 ( bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bronze is the highest one that has a Rank larger than 1, and a Nation of dominican republic, and a ...
SELECT MAX(bronze) FROM table_name_44 WHERE rank > 1 AND nation = "dominican republic" AND total > 4
### Instruction: CREATE TABLE table_name_52 ( college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What College/Junior/Club Team (League) from Canada has a round smaller than 3? ### Respon...
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = "canada" AND round < 3
### Instruction: CREATE TABLE table_42017 ( "Name" text, "Total" text, "League" text, "Canadian Championship" text, "CONCACAF Champions League" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Canadian Championship has 84 (4) as the league? ###...
SELECT "Canadian Championship" FROM table_42017 WHERE "League" = '84 (4)'
### Instruction: CREATE TABLE table_203_701 ( id number, "#" number, "title" text, "featured guest(s)" text, "producer(s)" text, "length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many tracks were at least 3 minutes or more in length ? ...
SELECT COUNT("title") FROM table_203_701 WHERE "length" >= '3'
### Instruction: CREATE TABLE table_name_21 ( runner_s__up VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has the Winning score of 10 (66-71-62-71=270) ? ### Response:
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270)
### Instruction: CREATE TABLE table_1976898_1 ( english_name VARCHAR, chinese_name__simplified___traditional_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the English name of the county called / in Chinese? ### Response:
SELECT english_name FROM table_1976898_1 WHERE chinese_name__simplified___traditional_ = "太湖县 / 太湖縣"
### Instruction: CREATE TABLE table_204_891 ( id number, "name" text, "hanzi" text, "population (2005)" number, "area (km2)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total population for yanglin ? ### Response:
SELECT "population (2005)" FROM table_204_891 WHERE "name" = 'yanglin'
### Instruction: CREATE TABLE table_9130 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of surface was played at the tournament in berlin...
SELECT "Surface" FROM table_9130 WHERE "Tournament" = 'berlin'
### Instruction: CREATE TABLE table_60808 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average first elected for the district South Carolina 2? ### Re...
SELECT AVG("First elected") FROM table_60808 WHERE "District" = 'south carolina 2'
### Instruction: CREATE TABLE table_1182314_5 ( norwegian_americans__1980_ INTEGER, state VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the minimum norwegian americans (1980) where state is rhode island ### Response:
SELECT MIN(norwegian_americans__1980_) FROM table_1182314_5 WHERE state = "Rhode Island"
### Instruction: CREATE TABLE table_204_405 ( id number, "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. -- how many ties occurred in the second round ? ### Response:
SELECT COUNT(*) FROM table_204_405 WHERE "2nd leg" = "2nd leg"
### Instruction: CREATE TABLE table_35463 ( "Series" text, "Date" text, "Entrants" real, "Winner" text, "First Prize" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the game that had a first prize of $161,480? ### Response:
SELECT "Date" FROM table_35463 WHERE "First Prize" = '$161,480'
### 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. -- what is the average num...
SELECT AVG("employees") FROM table_204_614
### Instruction: CREATE TABLE table_name_39 ( moving_to VARCHAR, name VARCHAR, year VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Isma l Bangoura with a rank larger than 5 after the year 2005 was moving to what football club? ### Res...
SELECT moving_to FROM table_name_39 WHERE year > 2005 AND rank > 5 AND name = "ismaël bangoura"
### Instruction: CREATE TABLE table_66299 ( "School" text, "Location" text, "Mascot" text, "Size" real, "IHSAA Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which County has a Mascot of pacers? ### Response:
SELECT "County" FROM table_66299 WHERE "Mascot" = 'pacers'
### Instruction: CREATE TABLE table_72947 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the week 4 game? ### Re...
SELECT "Date" FROM table_72947 WHERE "Week" = '4'
### Instruction: CREATE TABLE table_204_212 ( id number, "wager" text, "winner" text, "loser" text, "location" text, "date" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which date was the wager not hair ? ### Response:
SELECT "date" FROM table_204_212 WHERE "wager" <> 'hair'
### Instruction: CREATE TABLE table_73245 ( "Round #" real, "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many NFL teams does Stevie Brown play for? ### Response:
SELECT COUNT("NFL Team") FROM table_73245 WHERE "Player" = 'Stevie Brown'
### Instruction: CREATE TABLE table_68759 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date has a Surface of carpet (i)? ### Response:
SELECT "Date" FROM table_68759 WHERE "Surface" = 'carpet (i)'
### Instruction: CREATE TABLE table_69807 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the game from 10 October 2009? ### Response:
SELECT "Result" FROM table_69807 WHERE "Date" = '10 october 2009'
### Instruction: CREATE TABLE table_41906 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Attendance when macclesfield town was the way team? ### Res...
SELECT SUM("Attendance") FROM table_41906 WHERE "Away team" = 'macclesfield town'
### Instruction: CREATE TABLE table_22078906_2 ( no_in_series VARCHAR, us_viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number episode in the series was watched by 15.89 million U.S. viewers? ### Response:
SELECT no_in_series FROM table_22078906_2 WHERE us_viewers__millions_ = "15.89"
### Instruction: CREATE TABLE table_204_944 ( id number, "mine" text, "province" text, "coordinates" text, "town" text, "dates" text, "comments" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many mines were in temagami ? ### Response:...
SELECT COUNT("mine") FROM table_204_944 WHERE "town" = 'temagami'
### Instruction: CREATE TABLE table_name_26 ( pole INTEGER, podium VARCHAR, race VARCHAR, flap VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11? ### Resp...
SELECT AVG(pole) FROM table_name_26 WHERE race < 16 AND flap > 8 AND podium > 11
### Instruction: CREATE TABLE table_37943 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Record of 36 61? ### Response:
SELECT "Score" FROM table_37943 WHERE "Record" = '36–61'
### Instruction: CREATE TABLE table_name_23 ( podiums INTEGER, series VARCHAR, poles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole? ### Res...
SELECT MIN(podiums) FROM table_name_23 WHERE series = "formula renault 2000 brazil" AND poles < 1
### Instruction: CREATE TABLE table_52910 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the height for 2008 club of trentino volley ### Response:
SELECT "Height" FROM table_52910 WHERE "2008 club" = 'trentino volley'
### Instruction: CREATE TABLE table_name_76 ( term_in_office VARCHAR, electorate VARCHAR, state VARCHAR, party VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which term in office has a qld state, a Party of labor, and an Electorate of fisher? ### R...
SELECT term_in_office FROM table_name_76 WHERE state = "qld" AND party = "labor" AND electorate = "fisher"
### Instruction: CREATE TABLE Products ( Product_Type_Code VARCHAR, Product_Price INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000. ### Re...
SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000
### Instruction: CREATE TABLE table_23441 ( "Episode" text, "First broadcast" text, "Rufus guest" text, "Marcus guest" text, "Winner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the episode 2x10 aired for the first time? ### Response:
SELECT "First broadcast" FROM table_23441 WHERE "Episode" = '2x10'
### Instruction: CREATE TABLE table_45492 ( "Company name" text, "Network brand name" text, "Country" text, "Accreditation type" text, "Accreditation level" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was Movistar accre...
SELECT "Date" FROM table_45492 WHERE "Network brand name" = 'movistar'
### Instruction: CREATE TABLE table_43117 ( "Team" text, "Country" text, "Home" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For what country is the skip Andy Kapp? ### Response:
SELECT "Country" FROM table_43117 WHERE "Skip" = 'andy kapp'
### Instruction: CREATE TABLE table_name_73 ( name VARCHAR, laid_down VARCHAR, commissioned VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939 ### Response:
SELECT name FROM table_name_73 WHERE laid_down = "22 september 1939" AND commissioned = "30 august 1941"
### Instruction: CREATE TABLE table_55989 ( "School's name" text, "School's namesake" text, "Year opened" text, "Principal" text, "Mascot" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What principal has a school mascot of the patriots? ### Respo...
SELECT "Principal" FROM table_55989 WHERE "Mascot" = 'patriots'
### Instruction: CREATE TABLE table_43799 ( "Event" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times is bronze 2 and gold more than 3? ### Response:
SELECT COUNT("Total") FROM table_43799 WHERE "Bronze" = '2' AND "Gold" > '3'
### Instruction: CREATE TABLE table_48356 ( "Date" text, "Opponent" text, "Site" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result on 10/06/1934? ### Response:
SELECT "Result" FROM table_48356 WHERE "Date" = '10/06/1934'
### Instruction: CREATE TABLE table_1336 ( "Week #" text, "Theme" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many themes have the original artist of Judy Garland?...
SELECT COUNT("Theme") FROM table_1336 WHERE "Original artist" = 'Judy Garland'