instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_66197 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Churai has what as the fewest n... | SELECT MIN("Number of electorates (2009)") FROM table_66197 WHERE "Name" = 'churai' |
### Instruction:
CREATE TABLE table_22245 (
"Commune" text,
"Area (km 2 )" text,
"2002 population" real,
"Pop. density (km 2 )" text,
"Municipality website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What commune had a 2002 population of 130394?... | SELECT "Commune" FROM table_22245 WHERE "2002 population" = '130394' |
### Instruction:
CREATE TABLE table_24624 (
"Round" real,
"Date" text,
"City and venue" text,
"Winner" text,
"Runner-up" text,
"3rd placed" text,
"4th placed" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who placed four... | SELECT "4th placed" FROM table_24624 WHERE "Winner" = 'Greg Hancock' |
### Instruction:
CREATE TABLE table_204_748 (
id number,
"composer" text,
"born" number,
"died" number,
"nationality" text,
"notable works for piano" text,
"remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how od was alberto ginastera... | SELECT "died" - "born" FROM table_204_748 WHERE "composer" = 'alberto ginastera' |
### Instruction:
CREATE TABLE table_26792 (
"Contestant" text,
"Starting Weight (kg)" text,
"Final Weight (kg)" text,
"Weight Lost (kg)" text,
"Percentage Lost" text,
"Position (out of Eliminated Contestants)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Final Weight (kg)" FROM table_26792 WHERE "Contestant" = 'Chris' |
### Instruction:
CREATE TABLE table_15484 (
"Name" text,
"Tenure" text,
"Courtesy title" text,
"Court Rank" text,
"revenues" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the courtesy title of the person whose tenure goes from 1766 1794?
... | SELECT "Courtesy title" FROM table_15484 WHERE "Tenure" = '1766–1794' |
### Instruction:
CREATE TABLE table_203_518 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined\nmac" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many ar... | SELECT SUM("enrollment") FROM table_203_518 WHERE "type" = 'private/catholic' |
### Instruction:
CREATE TABLE table_name_19 (
population INTEGER,
region VARCHAR,
regional_county_municipality VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average population when the regional county municipality is le dom... | SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2 |
### Instruction:
CREATE TABLE table_65548 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the A Score when the B Score was 9.05, and position was larger than 6?
###... | SELECT AVG("A Score") FROM table_65548 WHERE "B Score" = '9.05' AND "Position" > '6' |
### Instruction:
CREATE TABLE table_10501 (
"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.
-- If the Home team of collingwood... | SELECT "Away team" FROM table_10501 WHERE "Home team" = 'collingwood' |
### Instruction:
CREATE TABLE table_62639 (
"Club" text,
"Head Coach" text,
"City" text,
"Stadium" text,
"2002-2003 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place is listed in the 2002-2003 season for the City of Aveiro?
### Res... | SELECT "2002-2003 season" FROM table_62639 WHERE "City" = 'aveiro' |
### Instruction:
CREATE TABLE table_2330 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (fall 2010)" real,
"Founded" real,
"Accreditation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the accrediation... | SELECT "Accreditation" FROM table_2330 WHERE "School" = 'United Tribes Technical College' |
### Instruction:
CREATE TABLE table_33631 (
"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 was the home team that scor... | SELECT "Home team" FROM table_33631 WHERE "Home team score" = '8.7 (55)' |
### Instruction:
CREATE TABLE table_22941 (
"School" text,
"Year Founded" text,
"Denomination" text,
"Language" text,
"Grades" text,
"Gender" text,
"Private/Public" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the gender of the stud... | SELECT "Gender" FROM table_22941 WHERE "Year Founded" = '1894' |
### Instruction:
CREATE TABLE table_27392 (
"Language" text,
"Padilla Municipality" real,
"Tomina Municipality" real,
"Sopachuy Municipality" real,
"Villa Alcal\u00e1 Municipality" real,
"El Villar Municipality" real
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Language" FROM table_27392 WHERE "Sopachuy Municipality" = '10' |
### Instruction:
CREATE TABLE table_72705 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the name for when overs bowled is 3... | SELECT "Name" FROM table_72705 WHERE "Overs Bowled" = '31.2' |
### Instruction:
CREATE TABLE table_27294107_11 (
round_of_32 VARCHAR,
round_of_16 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round of 32 if the round of 16 is drenovak ( srb ) w 20 11?
### Response:
| SELECT round_of_32 FROM table_27294107_11 WHERE round_of_16 = "Drenovak ( SRB ) W 20–11" |
### Instruction:
CREATE TABLE table_61844 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2013 of the grand slam tournaments?
### Response:
| SELECT "2013" FROM table_61844 WHERE "Tournament" = 'grand slam tournaments' |
### Instruction:
CREATE TABLE table_203_839 (
id number,
"station" text,
"type" text,
"latitude" text,
"longitude" text,
"el. (m)" number,
"opened" number,
"closed" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "station" FROM table_203_839 WHERE "closed" - "opened" = 37 |
### Instruction:
CREATE TABLE table_1578 (
"Constituency" text,
"Electorate" real,
"Votes" real,
"Turnout" text,
"Yes" real,
"No" real,
"Spoilt" real,
"Percent Yes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least votes for ... | SELECT MIN("Votes") FROM table_1578 WHERE "Percent Yes" = '57.2' |
### Instruction:
CREATE TABLE player_college (
college_id VARCHAR
)
CREATE TABLE college (
name_full VARCHAR,
college_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the full name and id of the college with the largest number of baseball playe... | SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_57992 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many yards for the player with over 0 TDs and an average of 2.9?
### Resp... | SELECT MIN("Yards") FROM table_57992 WHERE "TD's" > '0' AND "Avg." = '2.9' |
### Instruction:
CREATE TABLE table_21087 (
"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.
-- Name the diameter for likho , east slavic deity of ... | SELECT "Diameter (km)" FROM table_21087 WHERE "Name origin" = 'Likho , East Slavic deity of bad fate.' |
### Instruction:
CREATE TABLE table_15268 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is a Decision of osgood, and a Score of 6 7?... | SELECT "Date" FROM table_15268 WHERE "Decision" = 'osgood' AND "Score" = '6 – 7' |
### Instruction:
CREATE TABLE table_32912 (
"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.
-- When Fitzroy are the away team,... | SELECT AVG("Crowd") FROM table_32912 WHERE "Away team" = 'fitzroy' |
### Instruction:
CREATE TABLE table_23944 (
"Type of Fare" text,
"Cash Fare" text,
"Day Pass" text,
"31-Day Pass" text,
"Monthly Pass" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When mega pass* (senior/disabled) is the type of fare what is the d... | SELECT "Day Pass" FROM table_23944 WHERE "Type of Fare" = 'Mega Pass* (Senior/Disabled)' |
### Instruction:
CREATE TABLE table_4036 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which junior team is associated with an NHL ... | SELECT "College/junior/club team" FROM table_4036 WHERE "NHL team" = 'Buffalo Sabres' |
### Instruction:
CREATE TABLE table_13133 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Total has a Player of todd hamilton, and a To par smalle... | SELECT COUNT("Total") FROM table_13133 WHERE "Player" = 'todd hamilton' AND "To par" < '15' |
### Instruction:
CREATE TABLE table_36697 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text,
"TV Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the TV time for the road game against Phoenix where the sc... | SELECT "TV Time" FROM table_36697 WHERE "Home Team" = 'phoenix' AND "Result" = '98-99' |
### Instruction:
CREATE TABLE table_25885 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Series" FROM table_25885 WHERE "Date" = 'April 18' |
### Instruction:
CREATE TABLE table_204_236 (
id number,
"title" text,
"release date" text,
"developer(s)" text,
"publisher(s)" text,
"genre(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which game is older , mob rule or 25 to life ?
### ... | SELECT "title" FROM table_204_236 WHERE "title" IN ('mob rule', '25 to life') ORDER BY "release date" LIMIT 1 |
### Instruction:
CREATE TABLE table_31497 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what barony are both the townland Dawstown and the civil parish... | SELECT "Barony" FROM table_31497 WHERE "Townland" = 'Dawstown' AND "Civil parish" = 'Matehy' |
### Instruction:
CREATE TABLE table_train_90 (
"id" int,
"gender" string,
"alzheimer" bool,
"breast_cancer" bool,
"smoking" bool,
"heart_rate" int,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- heart rate < 45 or >... | SELECT * FROM table_train_90 WHERE heart_rate < 45 OR heart_rate > 100 |
### Instruction:
CREATE TABLE table_60297 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the driver from Audi Sport North America finish in the ra... | SELECT "Pos." FROM table_60297 WHERE "Team" = 'audi sport north america' AND "Year" > '2008' |
### Instruction:
CREATE TABLE table_50212 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the round for 29 January 1949, when the against was 1?
### Response:
| SELECT "Round" FROM table_50212 WHERE "Against" = '1' AND "Date" = '29 january 1949' |
### Instruction:
CREATE TABLE table_name_69 (
last_5_meetings VARCHAR,
current_streak VARCHAR,
last_meeting VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last 5 meetings that has w 5 as the current streak, and 3/18/2010 as the last meeting?
... | SELECT last_5_meetings FROM table_name_69 WHERE current_streak = "w 5" AND last_meeting = "3/18/2010" |
### Instruction:
CREATE TABLE table_25660 (
"Week" real,
"Room(s)" text,
"John and Neisha" text,
"Mark and Duncan" text,
"Erin and Jake" text,
"Chez and Brenton" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the erin and... | SELECT "Erin and Jake" FROM table_25660 WHERE "Week" = '4' |
### Instruction:
CREATE TABLE table_55844 (
"ATHLETE" text,
"FINAL" real,
"LANE" real,
"SEMI" real,
"QUART" real,
"HEAT" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lane did the athlete swim in who had a semi-final time of 49.19?
### ... | SELECT MIN("LANE") FROM table_55844 WHERE "SEMI" = '49.19' |
### Instruction:
CREATE TABLE table_203_262 (
id number,
"year" number,
"team" text,
"co-drivers" text,
"car" text,
"class" text,
"laps" number,
"pos." text,
"class\npos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what model car... | SELECT "car" FROM table_203_262 GROUP BY "car" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_8863 (
"Wrestler" text,
"Reign" real,
"Date" text,
"Days held" text,
"Location" text,
"Event" text,
"Successful defenses" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest reign on march 10... | SELECT MAX("Reign") FROM table_8863 WHERE "Date" = 'march 10, 2007' |
### Instruction:
CREATE TABLE table_203_249 (
id number,
"position" number,
"song title" text,
"artist" text,
"sales" number,
"highest position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the other song title by michael jackson bes... | SELECT "song title" FROM table_203_249 WHERE "song title" <> 'you are not alone' AND "artist" = 'michael jackson' |
### Instruction:
CREATE TABLE table_name_2 (
drivers VARCHAR,
team VARCHAR,
tyre VARCHAR,
rounds VARCHAR,
make VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petr... | SELECT drivers FROM table_name_2 WHERE rounds = "all" AND make = "lexus" AND tyre = "b" AND team = "petronas toyota team tom's" |
### Instruction:
CREATE TABLE table_47680 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?
### Response:
| SELECT "Time/Retired" FROM table_47680 WHERE "Manufacturer" = 'honda' AND "Grid" = '8' |
### Instruction:
CREATE TABLE table_69479 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponents for may 18, 1997
### Re... | SELECT "Opponents" FROM table_69479 WHERE "Date" = 'may 18, 1997' |
### Instruction:
CREATE TABLE table_38233 (
"Nation" text,
"T Score" real,
"A Score" real,
"E Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average T score when the E score was larger than 9.6 and the team was from... | SELECT AVG("T Score") FROM table_38233 WHERE "Nation" = 'spain' AND "E Score" > '9.6' |
### Instruction:
CREATE TABLE table_53625 (
"Year" real,
"Competition Description" text,
"Location" text,
"Apparatus" text,
"Score-Final" real,
"Score-Qualifying" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of qualifying score... | SELECT COUNT("Score-Qualifying") FROM table_53625 WHERE "Score-Final" = '16.625' |
### Instruction:
CREATE TABLE table_35885 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What start has a year later than 2010, and chip ganassi racing as the team... | SELECT "Start" FROM table_35885 WHERE "Year" > '2010' AND "Team" = 'chip ganassi racing' |
### Instruction:
CREATE TABLE table_75401 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Road Team of utah jazz, and a Result of 81-83 (3-2) involved what game?
### Response:... | SELECT "Game" FROM table_75401 WHERE "Road Team" = 'utah jazz' AND "Result" = '81-83 (3-2)' |
### Instruction:
CREATE TABLE table_45023 (
"Antibody" text,
"Brand name" text,
"Approval date" real,
"Type" text,
"Target" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the type for the brand herceptin with an approval date of before 2006?
... | SELECT "Type" FROM table_45023 WHERE "Approval date" < '2006' AND "Brand name" = 'herceptin' |
### Instruction:
CREATE TABLE table_22169 (
"Greek Designation" text,
"Collegiate Institution" text,
"Charter Date" text,
"Status" text,
"City" text,
"U.S. State/District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which city was charter ... | SELECT "City" FROM table_22169 WHERE "Charter Date" = 'December 4, 2011' |
### Instruction:
CREATE TABLE table_3208 (
"Region" text,
"Median income ( Intl.$ )" real,
"Below 40% of median income" text,
"Below 50% of median income" text,
"Below 60% of median income" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... | SELECT MIN("Median income ( Intl.$ )") FROM table_3208 WHERE "Region" = 'Maule' |
### Instruction:
CREATE TABLE table_36871 (
"Club" text,
"Sport" text,
"League" text,
"Venue" text,
"Established" real,
"Championships" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the West Coast League established than the champ... | SELECT "Established" FROM table_36871 WHERE "Championships" > '0' AND "League" = 'west coast league' |
### Instruction:
CREATE TABLE table_71370 (
"Name" text,
"Period" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has 1 win, 1 loss, and has played 2 matches?
### Response:
| SELECT "Name" FROM table_71370 WHERE "Wins" = '1' AND "Losses" = '1' AND "Matches" = '2' |
### Instruction:
CREATE TABLE table_70984 (
"Sydney" text,
"Gold Coast" text,
"Adelaide" text,
"Melbourne" text,
"Perth" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Adelaide has Perth no, Gold Coast no, and Sydney yes?
### Response:
| SELECT "Adelaide" FROM table_70984 WHERE "Perth" = 'no' AND "Gold Coast" = 'yes' AND "Sydney" = 'yes' |
### Instruction:
CREATE TABLE table_59438 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer window when moving to alianza atl tico by the name of v. zapat... | SELECT "Transfer window" FROM table_59438 WHERE "Moving to" = 'alianza atlético' AND "Name" = 'v. zapata' |
### Instruction:
CREATE TABLE table_2853 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "High points" FROM table_2853 WHERE "Record" = '30-23' |
### Instruction:
CREATE TABLE table_20911 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Production code" FROM table_20911 WHERE "No. in season" = '15' |
### Instruction:
CREATE TABLE table_18876 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("High points") FROM table_18876 WHERE "Game" = '66' |
### Instruction:
CREATE TABLE table_61836 (
"Air Date" text,
"Rating" text,
"18-49" text,
"Viewers" text,
"Weekly Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Weekly Winner, when Air Date is 'July 4, 2008'?
### Response:
| SELECT "Weekly Winner" FROM table_61836 WHERE "Air Date" = 'july 4, 2008' |
### Instruction:
CREATE TABLE table_37815 (
"Week of" text,
"Tournament" text,
"Champions" text,
"Runners-up" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Semifinalists has a Champions of michael chang 6-0 6-4?
### Re... | SELECT "Semifinalists" FROM table_37815 WHERE "Champions" = 'michael chang 6-0 6-4' |
### Instruction:
CREATE TABLE table_45307 (
"Date" text,
"Ship" text,
"Type" text,
"Nationality" text,
"Tonnage GRT" real,
"Fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the fate when the nationality is french and the ship is pier... | SELECT "Fate" FROM table_45307 WHERE "Nationality" = 'french' AND "Ship" = 'pierre lott' |
### Instruction:
CREATE TABLE table_1064 (
"Pos" real,
"Member Association" text,
"Points (total 500)" real,
"Clubs" real,
"Group stage" real,
"Play-off" real,
"AFC Cup" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times has the p... | SELECT COUNT("AFC Cup") FROM table_1064 WHERE "Play-off" = '1' |
### Instruction:
CREATE TABLE table_55343 (
"Name" text,
"Date of Birth (Age)" text,
"Club" text,
"Caps" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?
### Respons... | SELECT "Date of Birth (Age)" FROM table_55343 WHERE "Caps" = '3' AND "Name" = 'gabriel quak jun yi' |
### Instruction:
CREATE TABLE table_17597 (
"Year" real,
"Denomination" text,
"Alloy" text,
"Reverse" text,
"Diameter" text,
"Weight" text,
"Obverse" text,
"Mintage" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how m... | SELECT COUNT("Reverse") FROM table_17597 WHERE "Series" = 'III series' |
### Instruction:
CREATE TABLE table_67195 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is brannon condren with and overall more than 131 draf... | SELECT COUNT("Round") FROM table_67195 WHERE "Name" = 'brannon condren' AND "Overall" > '131' |
### Instruction:
CREATE TABLE table_15978 (
"#" real,
"City" text,
"1981 Census" real,
"1991 Census" real,
"2001 Census" real,
"2010 Est." real,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 1981 census of Livorno?
###... | SELECT "1981 Census" FROM table_15978 WHERE "City" = 'Livorno' |
### Instruction:
CREATE TABLE table_name_12 (
date_performed VARCHAR,
position VARCHAR,
scores_by_each_individual_judge VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date performed has a Position of bottom 3, and Scores by each individual judge of... | SELECT date_performed FROM table_name_12 WHERE position = "bottom 3" AND scores_by_each_individual_judge = 5 + 5 + 4 = 14 |
### Instruction:
CREATE TABLE table_5481 (
"# 100" real,
"Season" text,
"Playing For" text,
"Against" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which # 100 has a Season of 1991, and an Against of surrey?
### Response:
| SELECT MAX("# 100") FROM table_5481 WHERE "Season" = '1991' AND "Against" = 'surrey' |
### Instruction:
CREATE TABLE table_name_77 (
years_at_club VARCHAR,
debut_year VARCHAR,
games VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of Years at Club for the player who has had more games than 28, more Goals... | SELECT years_at_club FROM table_name_77 WHERE games > 28 AND goals > 225 AND debut_year > 1950 |
### Instruction:
CREATE TABLE table_11833 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High points" FROM table_11833 WHERE "Team" = 'boston' |
### Instruction:
CREATE TABLE table_29487 (
"No. in Series" real,
"No. in Season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Written by" FROM table_29487 WHERE "No. in Season" = '7' |
### Instruction:
CREATE TABLE table_38534 (
"Game" text,
"Date" text,
"Referee" text,
"Umpire" text,
"Head Linesman" text,
"Line Judge" text,
"Field Judge" text,
"Back Judge" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the lin... | SELECT "Line Judge" FROM table_38534 WHERE "Referee" = 'scott green' |
### Instruction:
CREATE TABLE table_203_707 (
id number,
"rank" number,
"npc" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference between the gold medals won ... | SELECT "total" - "gold" FROM table_203_707 WHERE "npc" = 'china' |
### Instruction:
CREATE TABLE table_27487310_5 (
judges VARCHAR,
country VARCHAR,
air_dates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the judges in the Netherlands for the season airing 28 November 2011 24 December 2011?
### Response:
| SELECT judges FROM table_27487310_5 WHERE country = "Netherlands" AND air_dates = "28 November 2011 – 24 December 2011" |
### Instruction:
CREATE TABLE table_4537 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score ... | SELECT "Score in the final" FROM table_4537 WHERE "Date" = '1974' |
### Instruction:
CREATE TABLE table_49208 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High points" FROM table_49208 WHERE "Game" = '3' |
### Instruction:
CREATE TABLE table_29416 (
"Pronoun" text,
"Present" text,
"1st" text,
"2nd" text,
"perfect" text,
"aorist" text,
"imperfect" text,
"pluperfect" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is in 1st place when pr... | SELECT "1st" FROM table_29416 WHERE "Present" = 'mogu' |
### Instruction:
CREATE TABLE table_45971 (
"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 overall draft pick number for terry daniels who was ... | SELECT MIN("Overall") FROM table_45971 WHERE "Round" = '10' AND "Name" = 'terry daniels' |
### Instruction:
CREATE TABLE table_204_969 (
id number,
"composer" text,
"title" text,
"genre" text,
"date" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is next on the list after alexander krein ?
### Response:
| SELECT "composer" FROM table_204_969 WHERE id = (SELECT id FROM table_204_969 WHERE "composer" = 'alexander krein') + 1 |
### Instruction:
CREATE TABLE table_10578 (
"Year" real,
"City" text,
"Rider 1" text,
"Rider 2" text,
"Horse 1" text,
"Horse 2" text,
"Association" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With which association did estribillo ii run a... | SELECT "Association" FROM table_10578 WHERE "Horse 1" = 'estribillo ii' |
### Instruction:
CREATE TABLE table_14031 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Competition has a Year smaller than 2009, and Notes of 56.16 m?
### Response:
| SELECT "Competition" FROM table_14031 WHERE "Year" < '2009' AND "Notes" = '56.16 m' |
### Instruction:
CREATE TABLE table_19696 (
"Songs" text,
"Paul McCartney" text,
"Stuart" text,
"McIntosh" text,
"Wix" text,
"Whitten" text,
"Linda McCartney" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many instruments did Stuart pla... | SELECT COUNT("Stuart") FROM table_19696 WHERE "Songs" = 'We Got Married' |
### Instruction:
CREATE TABLE table_203_60 (
id number,
"outcome" text,
"no." number,
"date" text,
"championship" text,
"surface" text,
"opponent in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who... | SELECT "opponent in the final" FROM table_203_60 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_10602 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date when 33... | SELECT "Date" FROM table_10602 WHERE "Attendance" = '33,307' |
### Instruction:
CREATE TABLE table_76064 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the game on or before week 9, who was the opponent when the attendance was 61,626?
... | SELECT "Opponent" FROM table_76064 WHERE "Week" < '9' AND "Attendance" = '61,626' |
### Instruction:
CREATE TABLE table_11148572_1 (
mls_cup_winner VARCHAR,
mls_supporters_shield_runner_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is C... | SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_supporters_shield_runner_up = "Chivas USA" |
### Instruction:
CREATE TABLE table_31636 (
"Aircraft" text,
"Origin" text,
"Type" text,
"Versions" text,
"In service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which version B-58 aircraft model originated in the United States has 2 in service?... | SELECT "Aircraft" FROM table_31636 WHERE "In service" = '2' AND "Origin" = 'united states' AND "Versions" = 'b-58' |
### Instruction:
CREATE TABLE table_42511 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the golds of the nation with 5 total and less than 0 bro... | SELECT SUM("Gold") FROM table_42511 WHERE "Total" = '5' AND "Bronze" < '0' |
### Instruction:
CREATE TABLE table_77538 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the low code for glen harvie with a population greater than ... | SELECT MIN("Code") FROM table_77538 WHERE "Population" > '2,774' AND "Place" = 'glen harvie' |
### Instruction:
CREATE TABLE table_24369 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result/games of Sun 11/28/10 as the date/year?
### Re... | SELECT "Result/Games" FROM table_24369 WHERE "Date/Year" = 'Sun 11/28/10' |
### Instruction:
CREATE TABLE table_36289 (
"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 Outcome has aN Opponent of pascale paradis-mangon?
### Re... | SELECT "Outcome" FROM table_36289 WHERE "Opponent" = 'pascale paradis-mangon' |
### Instruction:
CREATE TABLE table_name_47 (
date_of_birth__age_ VARCHAR,
player VARCHAR,
club_province VARCHAR,
caps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date of Birth (Age) has a Club/province of blues, and Caps larger than 0, and ... | SELECT date_of_birth__age_ FROM table_name_47 WHERE club_province = "blues" AND caps > 0 AND player = "tom james" |
### Instruction:
CREATE TABLE table_64582 (
"Wager" text,
"Winner" text,
"Loser" text,
"Location" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the wager on August 23, 1992 where vampiro was the winner?
### Response:
| SELECT "Wager" FROM table_64582 WHERE "Winner" = 'vampiro' AND "Date" = 'august 23, 1992' |
### Instruction:
CREATE TABLE table_27060 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 'the... | SELECT "Directed by" FROM table_27060 WHERE "Title" = 'The Kissing Game' |
### Instruction:
CREATE TABLE table_4084 (
"School" text,
"Titles" real,
"Shared Titles" real,
"Runners-Up" real,
"Total Finals" real,
"Last Title" text,
"Last Final" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many shared titles does... | SELECT "Shared Titles" FROM table_4084 WHERE "Last Final" = '2012' |
### Instruction:
CREATE TABLE table_28164 (
"Village" text,
"Area km\u00b2" text,
"Population (2000 census )" real,
"Region" text,
"Pop. Density" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What village has an area of 27.19 km2?
### Response:
| SELECT "Village" FROM table_28164 WHERE "Area km\u00b2" = '27.19' |
### Instruction:
CREATE TABLE table_name_91 (
total_goals INTEGER,
league_cup_apps VARCHAR,
fa_cup_goals VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 Leagu... | SELECT AVG(total_goals) FROM table_name_91 WHERE fa_cup_goals = 0 AND name = "alan sweeney" AND league_cup_apps < 0 |
### Instruction:
CREATE TABLE table_204_129 (
id number,
"place" number,
"team" text,
"titles" number,
"runners-up" number,
"winning years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ironi ashkelon has no runners up , but how many runners up... | SELECT "runners-up" FROM table_204_129 WHERE "team" = 'hapoel holon' |
### Instruction:
CREATE TABLE table_61832 (
"Seat" real,
"Season 1" text,
"Season 2" text,
"Season 3" text,
"Season 6" text,
"Season 7" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Seat has a Season 6 of kevin o'leary?
### Response:
| SELECT MAX("Seat") FROM table_61832 WHERE "Season 6" = 'kevin o''leary' |
### Instruction:
CREATE TABLE table_name_65 (
viewers__m_ INTEGER,
air_date VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers... | SELECT MIN(viewers__m_) FROM table_name_65 WHERE air_date = "january 24, 2008" AND rating > 3.6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.