instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_12254 (
"Round" real,
"Date" text,
"Event" text,
"Circuit" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has an Event of 200 miles of norisring?
### Response:
|
SELECT COUNT("Round") FROM table_12254 WHERE "Event" = '200 miles of norisring'
|
### Instruction:
CREATE TABLE table_name_4 (
reported_isn INTEGER,
on_july_2007_press_release VARCHAR,
citizenship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average reported isn for july 2007 for kuwait release of no
### Response:
|
SELECT AVG(reported_isn) FROM table_name_4 WHERE on_july_2007_press_release = "no" AND citizenship = "kuwait"
|
### Instruction:
CREATE TABLE table_43841 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest pick when the position was OF with the Chicago White Sox?
### Response:
|
SELECT MIN("Pick") FROM table_43841 WHERE "Position" = 'of' AND "Team" = 'chicago white sox'
|
### Instruction:
CREATE TABLE table_76563 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text,
"Competition" text,
"Man of the Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on the 26th?
### Response:
|
SELECT "Result" FROM table_76563 WHERE "Date" = '26th'
|
### Instruction:
CREATE TABLE table_39640 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent of Game 1 with a 3-2-0 record?
### Response:
|
SELECT "Opponent" FROM table_39640 WHERE "Game" > '1' AND "Record" = '3-2-0'
|
### Instruction:
CREATE TABLE table_48205 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of attendance at Stadion with a score of 2-0
### Response:
|
SELECT "Attendance" FROM table_48205 WHERE "Venue" = 'stadion' AND "Score" = '2-0'
|
### Instruction:
CREATE TABLE table_2862 (
"No." real,
"#" real,
"Original airdate" text,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes were series episode 214?
### Response:
|
SELECT COUNT("#") FROM table_2862 WHERE "No." = '214'
|
### Instruction:
CREATE TABLE table_18280 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are shown as candidates when George Darden is the incumbent?
### Response:
|
SELECT "Candidates" FROM table_18280 WHERE "Incumbent" = 'George Darden'
|
### Instruction:
CREATE TABLE table_22293 (
"Departure" text,
"Going to" text,
"Calling at" text,
"Arrival" text,
"Operator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 'calling at' station of the train that departed on 18.16?
### Response:
|
SELECT "Calling at" FROM table_22293 WHERE "Departure" = '18.16'
|
### Instruction:
CREATE TABLE table_36761 (
"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 Score of 6 1, 6 2?
### Response:
|
SELECT "Date" FROM table_36761 WHERE "Score" = '6–1, 6–2'
|
### Instruction:
CREATE TABLE table_52759 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
### Response:
|
SELECT AVG("Laps") FROM table_52759 WHERE "Driver" = 'niki lauda' AND "Grid" < '3'
|
### Instruction:
CREATE TABLE table_30210 (
"Event Date" text,
"Event Day" text,
"Approx. Duration" text,
"Starting Time" text,
"Event Details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for approximate duration when event details is women's foil?
### Response:
|
SELECT "Approx. Duration" FROM table_30210 WHERE "Event Details" = 'Women''s Foil'
|
### Instruction:
CREATE TABLE table_19929 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed in segment b when segment c is artificial flowers?
### Response:
|
SELECT "Segment B" FROM table_19929 WHERE "Segment C" = 'Artificial Flowers'
|
### Instruction:
CREATE TABLE table_9951 (
"Year" text,
"Kansas" text,
"Nebraska" text,
"North Dakota" text,
"Oklahoma" text,
"South Dakota" text,
"Texas" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What South Dakota has Bush of Oklahoma?
### Response:
|
SELECT "South Dakota" FROM table_9951 WHERE "Oklahoma" = 'bush'
|
### Instruction:
CREATE TABLE table_31390 (
"Season" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the 3rd season premiere originally aired?
### Response:
|
SELECT "Season premiere" FROM table_31390 WHERE "Season" = '3rd'
|
### Instruction:
CREATE TABLE table_30300 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the mens doubles when wu yang won the womens singles?
### Response:
|
SELECT "Mens Doubles" FROM table_30300 WHERE "Womens Singles" = 'Wu Yang'
|
### Instruction:
CREATE TABLE table_204_127 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of tournamnets on the chart ?
### Response:
|
SELECT COUNT("tournament") FROM table_204_127
|
### Instruction:
CREATE TABLE table_30848 (
"Series" real,
"Premiere" text,
"Finale" text,
"Runners-up" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all the runners-up on 16 October 2012?
### Response:
|
SELECT "Runners-up" FROM table_30848 WHERE "Finale" = '16 October 2012'
|
### Instruction:
CREATE TABLE table_79676 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest wins for Thomas in events he had entered exactly 9 times?
### Response:
|
SELECT MIN("Wins") FROM table_79676 WHERE "Events" = '9'
|
### Instruction:
CREATE TABLE table_35424 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of overall draft picks for player whose position is C and was picked after round 9?
### Response:
|
SELECT COUNT("Overall") FROM table_35424 WHERE "Position" = 'c' AND "Round" > '9'
|
### Instruction:
CREATE TABLE table_38069 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest attendance that has December 16, 1962 as the date?
### Response:
|
SELECT MAX("Attendance") FROM table_38069 WHERE "Date" = 'december 16, 1962'
|
### Instruction:
CREATE TABLE table_204_563 (
id number,
"abbreviation" text,
"settlement" text,
"district" text,
"official name" text,
"division" text,
"cup" number,
"other information" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the first name on the settlement column is ?
### Response:
|
SELECT "settlement" FROM table_204_563 WHERE id = 1
|
### Instruction:
CREATE TABLE table_61230 (
"Ship" text,
"Hull Number" text,
"Laid down" text,
"Launched" text,
"Commissioned" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Commissioned, when Laid Down is '6 September 2003'?
### Response:
|
SELECT "Commissioned" FROM table_61230 WHERE "Laid down" = '6 september 2003'
|
### Instruction:
CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many viewers watched the season finale ?
### Response:
|
SELECT "viewers" FROM table_204_449 ORDER BY "episode" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_41923 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Games, when Points is less than 340, and when Rank is greater than 3?
### Response:
|
SELECT "Games" FROM table_41923 WHERE "Points" < '340' AND "Rank" > '3'
|
### Instruction:
CREATE TABLE table_13837 (
"Title" text,
"Series" text,
"Director" text,
"Characters" text,
"Production Number" text,
"Release date" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which city was the Night of the Living Duck released?
### Response:
|
SELECT "City" FROM table_13837 WHERE "Title" = 'the night of the living duck'
|
### Instruction:
CREATE TABLE table_33159 (
"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 did South Melbourne play at home?
### Response:
|
SELECT "Date" FROM table_33159 WHERE "Home team" = 'south melbourne'
|
### Instruction:
CREATE TABLE table_38627 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency of Walterboro, SC?
### Response:
|
SELECT "Frequency MHz" FROM table_38627 WHERE "City of license" = 'walterboro, sc'
|
### Instruction:
CREATE TABLE table_77704 (
"Class" text,
"W.A." text,
"Quantity" real,
"Date" text,
"LNER Class" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What WA has a LNER Class of n13 and 10?
### Response:
|
SELECT "W.A." FROM table_77704 WHERE "Quantity" = '10' AND "LNER Class" = 'n13'
|
### Instruction:
CREATE TABLE table_203_305 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number of players have canada listed as their nationality ?
### Response:
|
SELECT COUNT("player") FROM table_203_305 WHERE "nationality" = 'canada'
|
### Instruction:
CREATE TABLE table_9140 (
"Country" text,
"First store" text,
"Hypermarkets" real,
"Supermarkets" text,
"Hard Discounters" text,
"Cash & Carry" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had the first store in the year 2007?
### Response:
|
SELECT "Country" FROM table_9140 WHERE "First store" = '2007'
|
### Instruction:
CREATE TABLE table_53891 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament when the score is 7-6(0), 6-3?
### Response:
|
SELECT "Tournament" FROM table_53891 WHERE "Score" = '7-6(0), 6-3'
|
### Instruction:
CREATE TABLE table_22881 (
"Performer" text,
"Performances" real,
"Category" text,
"First performance" text,
"Last performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many first performances where performer is wilfred engelman category:articles with hcards
### Response:
|
SELECT COUNT("First performance") FROM table_22881 WHERE "Performer" = 'Wilfred Engelman Category:Articles with hCards'
|
### Instruction:
CREATE TABLE table_22125 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were first elected with an incument of diane watson?
### Response:
|
SELECT COUNT("First elected") FROM table_22125 WHERE "Incumbent" = 'Diane Watson'
|
### Instruction:
CREATE TABLE table_77488 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average enrollment of the Redbirds' school?
### Response:
|
SELECT AVG("Enrollment") FROM table_77488 WHERE "Nickname" = 'redbirds'
|
### Instruction:
CREATE TABLE table_203_398 (
id number,
"year" number,
"vidhan sabha" text,
"members of legislative assembly" text,
"winning party" text,
"nearest contesting party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which party has won the most ?
### Response:
|
SELECT "winning party" FROM table_203_398 GROUP BY "winning party" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE CLASS (
crs_code VARCHAR,
prof_num VARCHAR
)
CREATE TABLE employee (
emp_fname VARCHAR,
emp_num VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the first names of all instructors who have taught some course and the course code.
### Response:
|
SELECT T2.emp_fname, T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num
|
### Instruction:
CREATE TABLE table_49123 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance of the game with the NY Islanders as home team?
### Response:
|
SELECT COUNT("Attendance") FROM table_49123 WHERE "Home" = 'ny islanders'
|
### Instruction:
CREATE TABLE table_28733 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Years" text,
"New Conference" text,
"New Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location is listed from 2005-2010?
### Response:
|
SELECT "Location" FROM table_28733 WHERE "Years" = '2005-2010'
|
### Instruction:
CREATE TABLE table_23785 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Bruins points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did the Bruins play Tennessee?
### Response:
|
SELECT COUNT("Result") FROM table_23785 WHERE "Opponent" = 'Tennessee'
|
### Instruction:
CREATE TABLE table_46286 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for the team with more than 2 golds and more than 0 bronze?
### Response:
|
SELECT SUM("Total") FROM table_46286 WHERE "Gold" > '2' AND "Bronze" > '0'
|
### Instruction:
CREATE TABLE table_2662 (
"Ticket / Office" text,
"Secretary of State" text,
"Comptroller" text,
"Attorney General" text,
"Treasurer" text,
"State Engineer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ticket/office for orville preston
### Response:
|
SELECT "Ticket / Office" FROM table_2662 WHERE "Secretary of State" = 'Orville Preston'
|
### Instruction:
CREATE TABLE table_34976 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many touchdowns are there that has field goals less than 0 and 0 extra points?
### Response:
|
SELECT SUM("Touchdowns") FROM table_34976 WHERE "Extra points" = '0' AND "Field goals" < '0'
|
### Instruction:
CREATE TABLE table_44159 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest round of a pick smaller than 92 from Toledo University?
### Response:
|
SELECT MAX("Round") FROM table_44159 WHERE "College" = 'toledo' AND "Pick" < '92'
|
### Instruction:
CREATE TABLE table_78243 (
"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.
-- Name the date for attendance more than 20,268
### Response:
|
SELECT "Date" FROM table_78243 WHERE "Attendance" > '20,268'
|
### Instruction:
CREATE TABLE table_40476 (
"English" text,
"German" text,
"Dutch" text,
"Icelandic" text,
"Latin" text,
"Greek" text,
"Russian" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Dutch translation of the Latin word navigo?
### Response:
|
SELECT "Dutch" FROM table_40476 WHERE "Latin" = 'navigo'
|
### Instruction:
CREATE TABLE table_41264 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has a qualsiasi tranne sky hd package/option?
### Response:
|
SELECT "Country" FROM table_41264 WHERE "Package/Option" = 'qualsiasi tranne sky hd'
|
### Instruction:
CREATE TABLE table_5330 (
"Season" text,
"Level" real,
"Position" text,
"Nationality" text,
"Apps" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position of the winner with 18 Goals and Level of 5?
### Response:
|
SELECT "Position" FROM table_5330 WHERE "Goals" = '18' AND "Level" = '5'
|
### Instruction:
CREATE TABLE table_name_17 (
year_opened INTEGER,
track_name VARCHAR,
seating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year opened for Chicagoland Speedway with a seating smaller than 75,000?
### Response:
|
SELECT AVG(year_opened) FROM table_name_17 WHERE track_name = "chicagoland speedway" AND seating < 75 OFFSET 000
|
### Instruction:
CREATE TABLE table_75269 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who manufactured the motorcycle that did 24 laps and 9 grids?
### Response:
|
SELECT "Manufacturer" FROM table_75269 WHERE "Laps" = '24' AND "Grid" = '9'
|
### Instruction:
CREATE TABLE table_9268 (
"Type" text,
"Nominated work" text,
"Award" text,
"Result" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the type that had an award for song of the year and the position of 3rd place?
### Response:
|
SELECT "Type" FROM table_9268 WHERE "Award" = 'song of the year' AND "Position" = '3rd place'
|
### Instruction:
CREATE TABLE table_name_69 (
clock_multiplier VARCHAR,
clock_speed VARCHAR,
model_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764?
### Response:
|
SELECT clock_multiplier FROM table_name_69 WHERE clock_speed = "1.6 ghz" AND model_number = "c7-m 764"
|
### Instruction:
CREATE TABLE table_train_192 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"renal_disease" bool,
"diabetic" string,
"fasting_plasma_glucose" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- renal failure
### Response:
|
SELECT * FROM table_train_192 WHERE renal_disease = 1
|
### Instruction:
CREATE TABLE table_52340 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Time/Retired had a grid number bigger than 1 and whose driver was Damon Hill?
### Response:
|
SELECT "Time/Retired" FROM table_52340 WHERE "Grid" > '1' AND "Driver" = 'damon hill'
|
### Instruction:
CREATE TABLE table_67396 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the region for cd format on february 22, 1984
### Response:
|
SELECT "Region" FROM table_67396 WHERE "Format" = 'cd' AND "Date" = 'february 22, 1984'
|
### Instruction:
CREATE TABLE table_36988 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has a round larger than 1 in Austria?
### Response:
|
SELECT "Player" FROM table_36988 WHERE "Round" > '1' AND "Nationality" = 'austria'
|
### Instruction:
CREATE TABLE table_8795 (
"Rank" real,
"City" text,
"Population" real,
"Country" text,
"Area (km\u00b2)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total population for the 3,616km area?
### Response:
|
SELECT COUNT("Population") FROM table_8795 WHERE "Area (km\u00b2)" = '3,616'
|
### Instruction:
CREATE TABLE table_64966 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum number of year when Call of Duty 4: Modern Warfare was the game?
### Response:
|
SELECT COUNT("Year") FROM table_64966 WHERE "Game" = 'call of duty 4: modern warfare'
|
### Instruction:
CREATE TABLE table_13619 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IHSAA class for Muncie Cowan?
### Response:
|
SELECT "IHSAA Class" FROM table_13619 WHERE "School" = 'muncie cowan'
|
### Instruction:
CREATE TABLE table_30019 (
"Province" text,
"Provincial capital" text,
"Commandery" text,
"Commandery capital" text,
"No. of counties" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When gaoliang is the commandery what is the commandery capital?
### Response:
|
SELECT "Commandery capital" FROM table_30019 WHERE "Commandery" = 'Gaoliang 高涼'
|
### Instruction:
CREATE TABLE table_18077713_1 (
revenue__us_$million_ VARCHAR,
net_profit__us_$m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many dollars is the revenue when the net profit is 55.4 million dollars?
### Response:
|
SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "55.4"
|
### Instruction:
CREATE TABLE table_45024 (
"Player" text,
"Position" text,
"Round" real,
"Overall" real,
"MLB Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Position, when Overall is less than 590, and when Round is 3?
### Response:
|
SELECT "Position" FROM table_45024 WHERE "Overall" < '590' AND "Round" = '3'
|
### Instruction:
CREATE TABLE table_8747 (
"Name/Designation" text,
"Class" text,
"Range (varies with payload weight)" text,
"Payload" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the range (varies by payload weight) for Shahab-4?
### Response:
|
SELECT "Range (varies with payload weight)" FROM table_8747 WHERE "Name/Designation" = 'shahab-4'
|
### Instruction:
CREATE TABLE table_5660 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which first was born on 5 february 1979?
### Response:
|
SELECT "First" FROM table_5660 WHERE "D.O.B." = '5 february 1979'
|
### Instruction:
CREATE TABLE table_63778 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number played with 8 points and a position more than 6?
### Response:
|
SELECT COUNT("Played") FROM table_63778 WHERE "Points" = '8' AND "Position" > '6'
|
### Instruction:
CREATE TABLE table_76486 (
"Rank" real,
"Club" text,
"Winners" real,
"Runners-up" real,
"Third" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Third of 2, and Winners smaller than 2?
### Response:
|
SELECT AVG("Rank") FROM table_76486 WHERE "Third" = '2' AND "Winners" < '2'
|
### Instruction:
CREATE TABLE table_name_93 (
score VARCHAR,
high_points VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when High Points is 'Luis Scola (18)', and when High Rebounds is 'Luis Scola (11)'?
### Response:
|
SELECT score FROM table_name_93 WHERE high_points = "luis scola (18)" AND high_rebounds = "luis scola (11)"
|
### Instruction:
CREATE TABLE table_79786 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd leg score between Patronage Sainte-Anne and Asante Kotoko?
### Response:
|
SELECT "2nd leg" FROM table_79786 WHERE "Team 1" = 'asante kotoko'
|
### Instruction:
CREATE TABLE table_77251 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the margin of victory when the tournament is konica san jose classic?
### Response:
|
SELECT "Margin of victory" FROM table_77251 WHERE "Tournament" = 'konica san jose classic'
|
### Instruction:
CREATE TABLE table_204_448 (
id number,
"team" text,
"winners" number,
"runners-up" number,
"years won" text,
"years runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the number of runners up did arsenal have ?
### Response:
|
SELECT "runners-up" FROM table_204_448 WHERE "team" = 'arsenal'
|
### Instruction:
CREATE TABLE table_24302700_6 (
position VARCHAR,
event_6_atlas_stones VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?
### Response:
|
SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "6 (4 in 34.49s)"
|
### Instruction:
CREATE TABLE table_18036 (
"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 record when they played the Los Angeles Rams?
### Response:
|
SELECT "Record" FROM table_18036 WHERE "Opponent" = 'Los Angeles Rams'
|
### Instruction:
CREATE TABLE table_13774 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of cuts made when the events are more than 3?
### Response:
|
SELECT COUNT("Cuts made") FROM table_13774 WHERE "Events" > '3'
|
### Instruction:
CREATE TABLE table_204_884 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what sport did louis challiot win the same medal as paul chocque in ?
### Response:
|
SELECT "sport" FROM table_204_884 WHERE "name" = 'louis chaillot'
|
### Instruction:
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average age of male for different job title. Show the proportion.
### Response:
|
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job
|
### Instruction:
CREATE TABLE table_67831 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position with an overall less than 128 for Brigham Young college?
### Response:
|
SELECT "Position" FROM table_67831 WHERE "Overall" < '128' AND "College" = 'brigham young'
|
### Instruction:
CREATE TABLE table_22597626_17 (
score_in_the_final VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in the final where one of the opponents in the final was fitzgerald vilas?
### Response:
|
SELECT score_in_the_final FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas"
|
### Instruction:
CREATE TABLE table_72516 (
"School" text,
"Winners" real,
"Finalists" real,
"Total Finals" real,
"Year of last win" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What the name of the school where the last win in 2007-08?
### Response:
|
SELECT "School" FROM table_72516 WHERE "Year of last win" = '2007-08'
|
### Instruction:
CREATE TABLE table_name_98 (
total_g INTEGER,
c_apps VARCHAR,
l_apps VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?
### Response:
|
SELECT AVG(total_g) FROM table_name_98 WHERE l_apps = 29 AND player = "bartolo" AND c_apps > 5
|
### Instruction:
CREATE TABLE table_10573 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the manner of departure for 1 june 2007
### Response:
|
SELECT "Manner of departure" FROM table_10573 WHERE "Date of appointment" = '1 june 2007'
|
### Instruction:
CREATE TABLE table_203_268 (
id number,
"date" text,
"name" text,
"nationality" text,
"tonnage\n(grt)" number,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many ships were attacked by u-502 but not sunk ?
### Response:
|
SELECT COUNT("name") FROM table_203_268 WHERE "fate" <> 'sunk'
|
### Instruction:
CREATE TABLE table_1341423_36 (
party VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party when the candidates were ernest istook (r) 69% garland mcwatters (d) 28%?
### Response:
|
SELECT party FROM table_1341423_36 WHERE candidates = "Ernest Istook (R) 69% Garland McWatters (D) 28%"
|
### Instruction:
CREATE TABLE table_1939214_1 (
open_cup VARCHAR,
league VARCHAR,
regular_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did the team do in the Open Cup in the 2nd, Northeast season of the USISL D-3 Pro League?
### Response:
|
SELECT open_cup FROM table_1939214_1 WHERE league = "USISL D-3 Pro league" AND regular_season = "2nd, Northeast"
|
### Instruction:
CREATE TABLE table_39030 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" real,
"Barrier [b ]" text,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place was the viewed horse?
### Response:
|
SELECT "Placing" FROM table_39030 WHERE "Horse" = 'viewed'
|
### Instruction:
CREATE TABLE table_10325 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed stefan johansson's car with a grid under 14?
### Response:
|
SELECT "Constructor" FROM table_10325 WHERE "Grid" < '14' AND "Driver" = 'stefan johansson'
|
### Instruction:
CREATE TABLE table_41875 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the Fourth District with a First District of beverly bodem?
### Response:
|
SELECT "Fourth District" FROM table_41875 WHERE "First District" = 'beverly bodem'
|
### Instruction:
CREATE TABLE table_11957 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did a save of ||54,918||50 36 occur?
### Response:
|
SELECT "Date" FROM table_11957 WHERE "Save" = '||54,918||50–36'
|
### Instruction:
CREATE TABLE table_48622 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first leg score for the match with a team 1 of Panathinaikos?
### Response:
|
SELECT "1st leg" FROM table_48622 WHERE "Team 1" = 'panathinaikos'
|
### Instruction:
CREATE TABLE table_46063 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of October, when Opponent is 'Pittsburgh Penguins'?
### Response:
|
SELECT SUM("October") FROM table_46063 WHERE "Opponent" = 'pittsburgh penguins'
|
### Instruction:
CREATE TABLE table_24125 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for black knights points 54
### Response:
|
SELECT "Record" FROM table_24125 WHERE "Black Knights points" = '54'
|
### Instruction:
CREATE TABLE table_56760 (
"Date" text,
"Home Team" text,
"Score" text,
"Visiting Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Visiting Team has a Stadium of servus centre on march 7?
### Response:
|
SELECT "Visiting Team" FROM table_56760 WHERE "Stadium" = 'servus centre' AND "Date" = 'march 7'
|
### Instruction:
CREATE TABLE table_10376 (
"Rank" text,
"Name" text,
"Height ft / m" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the name for rank of 27= and years before 1964
### Response:
|
SELECT "Name" FROM table_10376 WHERE "Rank" = '27=' AND "Year" < '1964'
|
### Instruction:
CREATE TABLE table_49388 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of rounds with a 4-0 record?
### Response:
|
SELECT COUNT("Round") FROM table_49388 WHERE "Record" = '4-0'
|
### Instruction:
CREATE TABLE table_68954 (
"Number (CMNH)" real,
"Number (PNM)" text,
"Date" text,
"Site" real,
"Altitude" text,
"Sex and other data" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Site that has a Sex and other data of old male?
### Response:
|
SELECT MAX("Site") FROM table_68954 WHERE "Sex and other data" = 'old male'
|
### Instruction:
CREATE TABLE table_31674 (
"Player" text,
"Country" text,
"Caps" real,
"Goals" text,
"Years Active" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals occurred for Stein Huysegems when the caps value is more than 8?
### Response:
|
SELECT "Goals" FROM table_31674 WHERE "Caps" > '8' AND "Player" = 'stein huysegems'
|
### Instruction:
CREATE TABLE table_48780 (
"Title" text,
"Season" real,
"Director" text,
"Teleplay" text,
"First Broadcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Teleplay, when First Broadcast is April 10, 1981?
### Response:
|
SELECT "Teleplay" FROM table_48780 WHERE "First Broadcast" = 'april 10, 1981'
|
### Instruction:
CREATE TABLE table_60390 (
"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.
-- What is the Constituency number for Meerut?
### Response:
|
SELECT "Constituency number" FROM table_60390 WHERE "Name" = 'meerut'
|
### Instruction:
CREATE TABLE table_203_173 (
id number,
"year(s)" text,
"serial name" text,
"role" text,
"co-star" text,
"note(s)" text,
"channel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only show that ran on the channel star one ?
### Response:
|
SELECT "serial name" FROM table_203_173 WHERE "channel" = 'star one'
|
### Instruction:
CREATE TABLE table_58765 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has a to par of 12 and is from Jersey?
### Response:
|
SELECT "Score" FROM table_58765 WHERE "To par" = '12' AND "Country" = 'jersey'
|
### Instruction:
CREATE TABLE table_203_410 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of people who attended game number six ?
### Response:
|
SELECT "attendance" FROM table_203_410 WHERE "game" = 6
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.