instruction
stringlengths
212
6.3k
output
stringlengths
6
2.03k
### Instruction: CREATE TABLE table_204_871 ( id number, "ano" text, "title" text, "role" text, "channel" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the oldest , kachorra or sos mi vida ? ### Response:
SELECT "title" FROM table_204_871 WHERE "title" IN ('kachorra', 'sos mi vida') ORDER BY "ano" LIMIT 1
### Instruction: CREATE TABLE table_28022 ( "Episode #" text, "Original Air Date (UK)" text, "Episode Title" text, "Director" text, "Writer" text, "Cast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original air date of the episode...
SELECT "Original Air Date (UK)" FROM table_28022 WHERE "Episode Title" = 'Another Happy Day'
### Instruction: CREATE TABLE table_25994 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Orangemen points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the Orangemen score ...
SELECT MAX("Orangemen points") FROM table_25994 WHERE "Game" = '1'
### Instruction: CREATE TABLE table_204_269 ( id number, "week" number, "room" text, "winning couple" text, "2nd couple" text, "3rd couple" text, "chumps" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- total number of times kyal and kara wer...
SELECT COUNT(*) FROM table_204_269 WHERE "winning couple" = 'kyal and kara'
### Instruction: CREATE TABLE WINE ( Name VARCHAR, Appelation VARCHAR ) CREATE TABLE APPELLATIONs ( Appelation VARCHAR, Area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names of all distinct wines that have appellations in North Coast ar...
SELECT DISTINCT T2.Name FROM APPELLATIONs AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "North Coast"
### Instruction: CREATE TABLE table_8804 ( "Runs" text, "Wicket" 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. -- Where did the west indies battin...
SELECT "Venue" FROM table_8804 WHERE "Batting team" = 'west indies'
### Instruction: CREATE TABLE table_204_191 ( id number, "title" text, "artist" text, "year" text, "location/gps coordinates" text, "material" text, "dimensions" text, "owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many are o...
SELECT COUNT(*) FROM table_204_191 WHERE "owner" = 'national park service'
### Instruction: CREATE TABLE table_30948 ( "Episode" real, "Broadcast date" text, "Guest(s)" text, "Singer(s)" text, "Comedian" text, "Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the guest for 1.64m ratings ### Response:
SELECT "Guest(s)" FROM table_30948 WHERE "Ratings" = '1.64m'
### Instruction: CREATE TABLE table_17615 ( "Rank" real, "Fastest time (s)" text, "Wind (m/s)" text, "Athlete" text, "Nation" text, "Date" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which athlete is from Mexico City? #...
SELECT "Athlete" FROM table_17615 WHERE "Location" = 'Mexico City'
### Instruction: CREATE TABLE table_7110 ( "Year" real, "Conventional plans" text, "HMOs" text, "PPOs" text, "POS plans" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have HMOs been 27% and POS plans 18%? ### Response:
SELECT COUNT("Year") FROM table_7110 WHERE "HMOs" = '27%' AND "POS plans" = '18%'
### Instruction: CREATE TABLE table_name_82 ( name_of_the_song VARCHAR, kind_of_the_song VARCHAR, drama VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the song that is part of the opening theme and has a drama of the revolving doors o...
SELECT name_of_the_song FROM table_name_82 WHERE kind_of_the_song = "opening theme" AND drama = "revolving doors of vengeance"
### Instruction: CREATE TABLE table_27580 ( "Player" text, "Games Played" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every value for rebounds when stea...
SELECT "Rebounds" FROM table_27580 WHERE "Steals" = '19'
### Instruction: CREATE TABLE table_53755 ( "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 uncaf nations cup 2009 and 6 goal ### Response:
SELECT "Result" FROM table_53755 WHERE "Competition" = 'uncaf nations cup 2009' AND "Goal" = '6'
### Instruction: CREATE TABLE table_67764 ( "Film" text, "Director(s)" text, "Producer(s)" text, "Recipient" text, "Date" text, "Award" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the recipient of an award of 4,203? ### Response:
SELECT "Recipient" FROM table_67764 WHERE "Award" = '£4,203'
### Instruction: CREATE TABLE table_204_100 ( id number, "date" text, "name of ship" text, "nationality" text, "tonnage" number, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many ships were from the united kingdom that were attacked...
SELECT COUNT("name of ship") FROM table_204_100 WHERE "nationality" = 'united kingdom'
### Instruction: CREATE TABLE table_44661 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record in the game where the opponent was the c...
SELECT "Record" FROM table_44661 WHERE "Opponent" = 'cincinnati royals'
### Instruction: CREATE TABLE table_74591 ( "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. -- Where did Geelong play a home g...
SELECT "Venue" FROM table_74591 WHERE "Home team" = 'geelong'
### Instruction: CREATE TABLE table_23199 ( "Name" text, "Nation" text, "Position" text, "FA Cup Apps" real, "FA Cup Goals" real, "Total Apps" real, "Total Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the nation where jeff bark...
SELECT "Nation" FROM table_23199 WHERE "Name" = 'Jeff Barker'
### Instruction: CREATE TABLE table_73560 ( "Seed" real, "Rank" real, "Player" text, "Points" real, "Points defending" text, "Points won" real, "New points" real, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the points wo...
SELECT "Points won" FROM table_73560 WHERE "Points" = '1230'
### Instruction: CREATE TABLE table_36436 ( "Rank" real, "Highway" text, "Elevation" text, "Surface" text, "Route" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Route larger than 24, and a Highway of trail ridge road had what elevation? ### Respo...
SELECT "Elevation" FROM table_36436 WHERE "Route" > '24' AND "Highway" = 'trail ridge road'
### Instruction: CREATE TABLE table_57415 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has an away team score of 2.2 (14)? ### Res...
SELECT "Home team" FROM table_57415 WHERE "Away team score" = '2.2 (14)'
### Instruction: CREATE TABLE table_203_595 ( id number, "year" number, "division" number, "league" text, "reg. season" text, "playoffs" text, "open cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the last year the last usl secon...
SELECT MAX("year") FROM table_203_595 WHERE "league" = 'usl second division'
### Instruction: CREATE TABLE table_3091 ( "Season" real, "Regular Season" text, "Playoffs" text, "U.S. Open Cup" text, "CONCACAF" text, "MLS Regular Season Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the concacaf for 2010 season...
SELECT "CONCACAF" FROM table_3091 WHERE "Season" = '2010'
### Instruction: CREATE TABLE table_59057 ( "Parish (Prestegjeld)" text, "Sub-Parish (Sokn)" text, "Church Name" text, "Year Built" text, "Location of the Church" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the church in Arnafjord built?...
SELECT "Year Built" FROM table_59057 WHERE "Location of the Church" = 'arnafjord'
### Instruction: CREATE TABLE table_47880 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of laps associated with 8 points and a grid u...
SELECT COUNT("Laps") FROM table_47880 WHERE "Points" = '8' AND "Grid" < '8'
### Instruction: CREATE TABLE table_203_364 ( id number, "year" number, "driver" text, "nation of citizenship" text, "racing series" text, "type of vehicle" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- besides nascar , what other racing series...
SELECT DISTINCT "racing series" FROM table_203_364 WHERE "racing series" <> 'nascar'
### Instruction: CREATE TABLE table_23195 ( "Name" text, "Nation" text, "Position" text, "FA Cup Apps" real, "FA Cup Goals" real, "Total Apps" real, "Total Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total apps for eddie c...
SELECT MAX("Total Apps") FROM table_23195 WHERE "Name" = 'Eddie Carr'
### Instruction: CREATE TABLE table_30540 ( "#" text, "Player" text, "Country" text, "Score" text, "To par" text, "Winnings ($)" real, "After" real, "Before" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times is the player vau...
SELECT COUNT("Before") FROM table_30540 WHERE "Player" = 'Vaughn Taylor'
### Instruction: CREATE TABLE campuses ( campus VARCHAR, id VARCHAR ) CREATE TABLE faculty ( campus VARCHAR, year VARCHAR, faculty VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which campus has the most faculties in year 2003? ### Response:
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2003 ORDER BY T2.faculty DESC LIMIT 1
### Instruction: CREATE TABLE table_12930 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which To par has a Player of jack nicklaus, and a Total smaller than 146? ### Resp...
SELECT AVG("To par") FROM table_12930 WHERE "Player" = 'jack nicklaus' AND "Total" < '146'
### Instruction: CREATE TABLE table_65182 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the tie number was a replay and the home team was mansfield to...
SELECT "Score" FROM table_65182 WHERE "Tie no" = 'replay' AND "Home team" = 'mansfield town'
### Instruction: CREATE TABLE table_64365 ( "Club" text, "Wins" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the least against number for Cobden with draws more than 0? ### Response:
SELECT MIN("Against") FROM table_64365 WHERE "Club" = 'cobden' AND "Draws" > '0'
### Instruction: CREATE TABLE table_40175 ( "Candidate" text, "Votes" real, "Percentage" text, "Counties" real, "Delegates" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of votes when Ron Paul is the candidate with less than 0 co...
SELECT COUNT("Votes") FROM table_40175 WHERE "Candidate" = 'ron paul' AND "Counties" < '0'
### Instruction: CREATE TABLE table_79535 ( "Year" real, "Event" text, "Venue" text, "Place" text, "Weight class (kg)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest weight class (kg) that has sofia, bulgaria as the venue? ### R...
SELECT MIN("Weight class (kg)") FROM table_79535 WHERE "Venue" = 'sofia, bulgaria'
### Instruction: CREATE TABLE table_22 ( "Equivalent NATO Rank Code" text, "Rank in Spanish" text, "Rank in English" text, "Commonwealth equivalent" text, "US Air Force equivalent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If you get a ranking ...
SELECT "Rank in Spanish" FROM table_22 WHERE "Rank in English" = 'Major'
### 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. -- which divisions had a population below 15,000 in 2005 ? ### Response:
SELECT "name" FROM table_204_891 WHERE "population (2005)" < 15000
### Instruction: CREATE TABLE table_49551 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the report when the home team is new z...
SELECT "Report" FROM table_49551 WHERE "Home team" = 'new zealand breakers'
### Instruction: CREATE TABLE table_3567 ( "Contestant" text, "Place" real, "Age" real, "Country" text, "Federal state" text, "City" text, "Height" text, "Measurements (in cm)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who are the p...
SELECT "Contestant" FROM table_3567 WHERE "City" = 'Hanover'
### Instruction: CREATE TABLE table_65301 ( "Human Gene (Protein)" text, "Mouse Ortholog" text, "Yeast Ortholog" text, "Subpathway" text, "GeneCards Entry" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the yeast ortholog of mouse ortholog M...
SELECT "Yeast Ortholog" FROM table_65301 WHERE "Mouse Ortholog" = 'mms19'
### Instruction: CREATE TABLE authors ( authid number, lname text, fname text ) CREATE TABLE authorship ( authid number, instid number, paperid number, authorder number ) CREATE TABLE papers ( paperid number, title text ) CREATE TABLE inst ( instid number, name text, c...
SELECT COUNT(*) FROM authors
### Instruction: CREATE TABLE table_1965650_9 ( nationality VARCHAR, college_junior_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When sault ste. marie greyhounds (oha) is the college, junior, or club team how many nationalities are there? ### R...
SELECT COUNT(nationality) FROM table_1965650_9 WHERE college_junior_club_team = "Sault Ste. Marie Greyhounds (OHA)"
### Instruction: CREATE TABLE table_10826 ( "Date" text, "Stadium" text, "Winners" text, "Runners-up" text, "Score" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner when the runner-up was Chemnitzer FC II? #...
SELECT "Winners" FROM table_10826 WHERE "Runners-up" = 'chemnitzer fc ii'
### Instruction: CREATE TABLE table_203_93 ( id number, "incumbent" text, "reason for vacancy" text, "appointed successor" text, "date of appointment" text, "elected successor" text, "date of election" text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
SELECT "appointed successor" FROM table_203_93 ORDER BY "date of appointment" LIMIT 1
### Instruction: CREATE TABLE table_49539 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the smallest amount of laps that suzuki ran with a grid value of 8? ### Response:...
SELECT MIN("Laps") FROM table_49539 WHERE "Manufacturer" = 'suzuki' AND "Grid" = '8'
### Instruction: CREATE TABLE table_21655290_1 ( film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which film title used in nomination has the year (ceremony) 1990 (63rd)? ### Response:
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)"
### Instruction: CREATE TABLE table_67263 ( "Name" text, "City/State" text, "Country" text, "Status" text, "Status Date" text, "Episode Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status of the city/state of Indor, Madhya ...
SELECT "Status Date" FROM table_67263 WHERE "City/State" = 'indor, madhya pradesh'
### Instruction: CREATE TABLE table_name_26 ( total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 1...
SELECT SUM(total__kg_) FROM table_name_26 WHERE snatch < 110 AND clean_ & _jerk > 120
### Instruction: CREATE TABLE table_43827 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number ga...
SELECT MAX("Game") FROM table_43827 WHERE "Date" = 'november 19'
### Instruction: CREATE TABLE table_58258 ( "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. -- Which team is Lake Oval home to...
SELECT "Home team" FROM table_58258 WHERE "Venue" = 'lake oval'
### Instruction: CREATE TABLE table_204_215 ( id number, "airline" text, "destination(s)" text, "aircraft scheduled" text, "service date(s)" text, "comments" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- does air florida have more or less than ...
SELECT (SELECT "aircraft scheduled" FROM table_204_215 WHERE "airline" = 'air florida') > 4
### Instruction: CREATE TABLE table_name_20 ( finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferre...
SELECT finalist FROM table_name_20 WHERE surface = "clay" AND semifinalists = "yevgeny kafelnikov juan carlos ferrero (2)"
### Instruction: CREATE TABLE table_15244 ( "Name" text, "Years" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which school has a decile of 8 and a roll of 705? ### Response:
SELECT "Name" FROM table_15244 WHERE "Decile" = '8' AND "Roll" = '705'
### Instruction: CREATE TABLE table_23617 ( "Divisions" text, "Prize (EUR)" text, "Odds of winning (1in)" text, "Number of winning tickets" real, "In order to win" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the prize (eur) for the 6th di...
SELECT "Prize (EUR)" FROM table_23617 WHERE "Divisions" = '6th'
### Instruction: CREATE TABLE table_18800 ( "Programme" text, "Date(s) of original removal" text, "Original channel" text, "Date(s) of return" text, "New channel(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What show is coming back on in July ...
SELECT "Programme" FROM table_18800 WHERE "Date(s) of return" = 'July 2008'
### Instruction: CREATE TABLE table_27484208_1 ( world_rank_by_arwu_ VARCHAR, _2013 VARCHAR, members VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the world rank by ARWU in 2013 of the University of T bingen? ### Response:
SELECT world_rank_by_arwu_, _2013 FROM table_27484208_1 WHERE members = "University of Tübingen"
### Instruction: CREATE TABLE table_276 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the purse value for the New Yo...
SELECT "Purse( $ )" FROM table_276 WHERE "Location" = 'New York'
### Instruction: CREATE TABLE table_50668 ( "Character" text, "Code" text, "Name" text, "Version" real, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What character was the version 5.1 and had a Greek capital letter Archaic Sampi? ### Resp...
SELECT "Character" FROM table_50668 WHERE "Version" = '5.1' AND "Name" = 'greek capital letter archaic sampi'
### Instruction: CREATE TABLE table_21160 ( "Municipality" text, "Income Class" text, "District" text, "Population (2010)" real, "Area (km\u00b2)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the income class for area 75? ### Response:
SELECT "Income Class" FROM table_21160 WHERE "Area (km\u00b2)" = '75'
### Instruction: CREATE TABLE table_203_486 ( id number, "place" number, "team" text, "matches" number, "won" number, "drawn" number, "lost" number, "difference" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how man...
SELECT COUNT("team") FROM table_203_486 WHERE "won" = 1
### Instruction: CREATE TABLE table_50912 ( "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. -- Who is the lw position player from a round greater than ...
SELECT "Player" FROM table_50912 WHERE "Position" = 'lw' AND "Round" > '10'
### Instruction: CREATE TABLE table_204_837 ( id number, "match" text, "team" text, "result points" number, "match status" number, "opposition strength" number, "regional strength" number, "ranking points" number ) -- Using valid SQLite, answer the following questions for the tables pr...
SELECT "team" FROM table_204_837 ORDER BY "opposition strength" LIMIT 1
### Instruction: CREATE TABLE table_23905 ( "School" text, "Location(s)" text, "Control" text, "Type" text, "Accreditation" text, "Founded" text, "Enrollment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the control type which was ...
SELECT "Control" FROM table_23905 WHERE "Founded" = '1991'
### Instruction: CREATE TABLE table_18435 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many candidates represent the district of kenneth a...
SELECT COUNT("Candidates") FROM table_18435 WHERE "Incumbent" = 'Kenneth A. Roberts'
### Instruction: CREATE TABLE table_17616 ( "Rank" real, "Fastest time (s)" text, "Wind (m/s)" text, "Athlete" text, "Nation" text, "Date" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the athlete from Edwardsville?...
SELECT "Athlete" FROM table_17616 WHERE "Location" = 'Edwardsville'
### Instruction: CREATE TABLE table_51756 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the competition for the event team all-round in the year before 1913? ### Re...
SELECT "Competition" FROM table_51756 WHERE "Event" = 'team all-round' AND "Year" < '1913'
### Instruction: CREATE TABLE table_19646 ( "Distance" text, "Event" text, "Record" text, "Athletes" text, "Nationality" text, "Year" real, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the records when Elzbieta Urbanczi...
SELECT "Record" FROM table_19646 WHERE "Athletes" = 'Elzbieta Urbanczik'
### Instruction: CREATE TABLE table_58494 ( "Name" text, "Years" text, "Area" text, "Authority" text, "Decile" text, "Roll" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the roll number of Poroti school, which has a 6 decile? ### Resp...
SELECT "Roll" FROM table_58494 WHERE "Decile" = '6' AND "Name" = 'poroti school'
### Instruction: CREATE TABLE table_66761 ( "Rank" real, "Company" text, "Headquarters" text, "Industry" text, "Employees" real, "Reference date" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many employees at nokia, ranked under 3? ### R...
SELECT MAX("Employees") FROM table_66761 WHERE "Company" = 'nokia' AND "Rank" < '3'
### Instruction: CREATE TABLE table_54287 ( "Name" text, "Model" text, "Park" text, "Country" text, "Opened" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the roller coaster that opened in 2000 in Brighton Pier? ### Response:
SELECT "Name" FROM table_54287 WHERE "Opened" = '2000' AND "Park" = 'brighton pier'
### Instruction: CREATE TABLE table_75784 ( "Stage" text, "Shooter" text, "Time" real, "Avg. Run" real, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total amount of time for years prior to 2013 when speed option is the stage? ...
SELECT SUM("Time") FROM table_75784 WHERE "Stage" = 'speed option' AND "Year" < '2013'
### Instruction: CREATE TABLE table_62483 ( "Name" text, "Score" text, "Balls" real, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Venue is 'Taunton', and when Name is 'SC Ganguly'? ### Response:
SELECT "Date" FROM table_62483 WHERE "Venue" = 'taunton' AND "Name" = 'sc ganguly'
### Instruction: CREATE TABLE table_9305 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total attendance of games against the New York Giants after week 13? ### Re...
SELECT COUNT("Attendance") FROM table_9305 WHERE "Week" > '13' AND "Opponent" = 'new york giants'
### Instruction: CREATE TABLE table_204_772 ( id number, "team" text, "county" text, "wins" number, "years won" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which team was the previous winner before ballyroan abbey in 2008 ? ### Response:
SELECT "team" FROM table_204_772 WHERE "years won" < 2008 ORDER BY "years won" DESC LIMIT 1
### Instruction: CREATE TABLE table_name_28 ( minimum_age_at_1st_dose VARCHAR, number_of_doses VARCHAR, dose VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least age for the 1st dose for 3 doses of 2-3 drops ### Response:
SELECT minimum_age_at_1st_dose FROM table_name_28 WHERE number_of_doses = "3 doses" AND dose = "2-3 drops"
### Instruction: CREATE TABLE table_name_21 ( revenue__ VARCHAR, operating_income__$m_ VARCHAR, country VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of revenue for italy with team of internazionale with operating...
SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = "italy" AND team = "internazionale" AND operating_income__$m_ < 27
### Instruction: CREATE TABLE table_15965 ( "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. -- What positions do the hartford whalers nhl te...
SELECT "Position" FROM table_15965 WHERE "NHL team" = 'Hartford Whalers'
### Instruction: CREATE TABLE table_10715 ( "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 is the home team of South M...
SELECT "Away team" FROM table_10715 WHERE "Home team" = 'south melbourne'
### Instruction: CREATE TABLE table_77952 ( "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 played at wester...
SELECT "Away team" FROM table_77952 WHERE "Venue" = 'western oval'
### Instruction: CREATE TABLE table_5990 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Bronze smaller than 5, and a Silver larger than 0 is which nation? ### Res...
SELECT "Nation" FROM table_5990 WHERE "Bronze" < '5' AND "Silver" > '0'
### Instruction: CREATE TABLE table_13779832_1 ( judges VARCHAR, seasons_and_winners VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the the judges with seasons and winners being season 1, 2013 2014: upcoming season ### Response:
SELECT judges FROM table_13779832_1 WHERE seasons_and_winners = "Season 1, 2013–2014: Upcoming season"
### Instruction: CREATE TABLE table_20852 ( "Player" text, "No." text, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nationality is the player who went to ...
SELECT "Nationality" FROM table_20852 WHERE "School/Club Team" = 'South Florida'
### Instruction: CREATE TABLE table_203_47 ( id number, "game" number, "date" text, "opponent" text, "location" text, "score" text, "ot" text, "attendance" number, "record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many home...
SELECT COUNT("game") FROM table_203_47 WHERE "opponent" = 'home'
### Instruction: CREATE TABLE table_72568 ( "Rank" real, "Country" text, "Overall" text, "Justice" text, "Health" text, "Education" text, "Economics" text, "Politics" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the rank for ice...
SELECT "Rank" FROM table_72568 WHERE "Country" = 'Iceland'
### Instruction: CREATE TABLE table_name_21 ( value__ VARCHAR, team VARCHAR, revenue__$m_ VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of value for revenue more than 193 and rank less than 12 for manchester unite...
SELECT COUNT(value__) AS $m_ FROM table_name_21 WHERE revenue__$m_ > 193 AND rank < 12 AND team = "manchester united"
### Instruction: CREATE TABLE table_31360 ( "Subject" text, "No. Sat" real, "No. Passed" real, "% Pass" real, "Highest mark" real, "Lowest mark" real, "Mean" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the subject when the highest...
SELECT "Subject" FROM table_31360 WHERE "Highest mark" = '79'
### Instruction: CREATE TABLE people ( person_id VARCHAR, email_address VARCHAR ) CREATE TABLE candidates ( candidate_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find id of the candidate whose email is stanley.monahan@example.org? ### Response:
SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org"
### Instruction: CREATE TABLE CUSTOMER ( LastName VARCHAR ) CREATE TABLE Invoice ( CustomerId VARCHAR, total INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find all the customer last names that do not have invoice totals larger than 20. ### Response:
SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20
### Instruction: CREATE TABLE table_51755 ( "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. -- Which home team plays at victor...
SELECT "Home team" FROM table_51755 WHERE "Venue" = 'victoria park'
### Instruction: CREATE TABLE table_32916 ( "Player" text, "Span" text, "Start" real, "Tries" real, "Conv" real, "Pens" real, "Drop" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the player fero lasagavibau who has the lowest start? #...
SELECT MIN("Start") FROM table_32916 WHERE "Player" = 'fero lasagavibau'
### Instruction: CREATE TABLE table_204_968 ( id number, "squad #" number, "position" text, "player" text, "transferred to" text, "fee" text, "date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total players were transferred to su...
SELECT COUNT("player") FROM table_204_968 WHERE "transferred to" = 'sun pegasus'
### Instruction: CREATE TABLE table_7035 ( "Season" real, "Overall" text, "Slalom" text, "Giant Slalom" text, "Super G" text, "Downhill" text, "Combined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Giant Slalom has a Slalom of 45? ...
SELECT "Giant Slalom" FROM table_7035 WHERE "Slalom" = '45'
### Instruction: CREATE TABLE table_46854 ( "School" text, "Locality" text, "Description" text, "Ofsted" real, "Website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What website has an Ofsted less than 106478 in Atherton? ### Response:
SELECT "Website" FROM table_46854 WHERE "Ofsted" < '106478' AND "Locality" = 'atherton'
### Instruction: CREATE TABLE table_26867 ( "Week" real, "Date" text, "Kickoff" text, "Opponent" text, "Final score" text, "Team record" text, "Game site" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the gam...
SELECT "Team record" FROM table_26867 WHERE "Week" = '7'
### Instruction: CREATE TABLE table_38997 ( "Jyutping" text, "Character" text, "Portuguese" text, "Relative value" text, "Metric value" text, "Imperial value" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the imperial that contains a jyu...
SELECT "Imperial value" FROM table_38997 WHERE "Jyutping" = 'cin4'
### Instruction: CREATE TABLE table_76432 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "TV Time" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE RESULT WHEN THE OPPONENT WAS CHICAGO BEARS? ### Respo...
SELECT "Result" FROM table_76432 WHERE "Opponent" = 'chicago bears'
### Instruction: CREATE TABLE table_203_838 ( id number, "year" number, "world car of the year" text, "world performance car" text, "world green car" text, "world car design of the year" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many wo...
SELECT SUM("world green car") FROM table_203_838 WHERE "year" < 2007
### Instruction: CREATE TABLE table_16840 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number for years 1985-88 ### Respo...
SELECT MIN("No.") FROM table_16840 WHERE "Years for Jazz" = '1985-88'
### Instruction: CREATE TABLE table_55528 ( "Month" text, "Week" real, "Overall" text, "Offensive" text, "Defensive" text, "Transition" text, "Rookie" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the first week that had a transiti...
SELECT MIN("Week") FROM table_55528 WHERE "Transition" = 'pat mccready'
### Instruction: CREATE TABLE table_1154 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the result for november 14, 1965 ### Res...
SELECT "Result" FROM table_1154 WHERE "Date" = 'November 14, 1965'
### Instruction: CREATE TABLE table_28425 ( "Club" text, "Wins" real, "Losses" real, "Points For" real, "Points Against" real, "Percentage" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points were scored against the...
SELECT MAX("Points Against") FROM table_28425 WHERE "Club" = 'Toronto Rebels'