instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_44810 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Set 1 when Set 3 was 25 15?
### Response:
|
SELECT "Set 1" FROM table_44810 WHERE "Set 3" = '25–15'
|
### Instruction:
CREATE TABLE table_24124 (
"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 opponents for record of 2-1
### Response:
|
SELECT "Opponents" FROM table_24124 WHERE "Record" = '2-1'
|
### Instruction:
CREATE TABLE table_204_517 (
id number,
"name" text,
"date of birth" text,
"club" text,
"division" text,
"appointed" text,
"time as manager" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long has frank defays served as manager ?
### Response:
|
SELECT "time as manager" FROM table_204_517 WHERE "name" = 'frank defays'
|
### Instruction:
CREATE TABLE table_203_400 (
id number,
"district" text,
"vacator" text,
"reason for change" text,
"successor" text,
"date successor\nseated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which district has the earliest date that a successor was seated ?
### Response:
|
SELECT "district" FROM table_203_400 ORDER BY "date successor\nseated" LIMIT 1
|
### Instruction:
CREATE TABLE table_name_43 (
year INTEGER,
engine_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of year for engine of brm p202 3.0 v12 brm p200 3.0 v12
### Response:
|
SELECT SUM(year) FROM table_name_43 WHERE engine_s_ = "brm p202 3.0 v12 brm p200 3.0 v12"
|
### Instruction:
CREATE TABLE table_22860 (
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed 'Fever'?
### Response:
|
SELECT "Directed by" FROM table_22860 WHERE "Title" = 'Fever'
|
### Instruction:
CREATE TABLE table_name_3 (
average_points_per_race_entered INTEGER,
driver VARCHAR,
entries VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest average points per race entered of driver kimi r ikk nen, who has more than 194 entries?
### Response:
|
SELECT MIN(average_points_per_race_entered) FROM table_name_3 WHERE driver = "kimi räikkönen" AND entries > 194
|
### Instruction:
CREATE TABLE table_23462 (
"Year(s)" real,
"Television commentator" text,
"Dual Television commentator" text,
"Radio commentator" text,
"Spokesperson" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the television commentator for the year 2006?
### Response:
|
SELECT "Television commentator" FROM table_23462 WHERE "Year(s)" = '2006'
|
### Instruction:
CREATE TABLE table_204_364 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many races did she run after the 2008 olympics ?
### Response:
|
SELECT COUNT("competition") FROM table_204_364 WHERE "year" > 2008
|
### Instruction:
CREATE TABLE table_38193 (
"Rank" real,
"Name" text,
"Height m (ft)" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height for rank greater than 10 in Tameer Tower?
### Response:
|
SELECT "Height m (ft)" FROM table_38193 WHERE "Rank" > '10' AND "Name" = 'tameer tower'
|
### Instruction:
CREATE TABLE table_73553 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What scores happened on February 11?
### Response:
|
SELECT "Score" FROM table_73553 WHERE "Date" = 'February 11'
|
### Instruction:
CREATE TABLE table_8801 (
"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.
-- Which batting team had 624 runs?
### Response:
|
SELECT "Batting team" FROM table_8801 WHERE "Runs" = '624'
|
### Instruction:
CREATE TABLE table_name_28 (
gold INTEGER,
silver VARCHAR,
nation VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest gold count when total is more than 3, bronze less than 3, and nation of belarus with silver count more than 2?
### Response:
|
SELECT MAX(gold) FROM table_name_28 WHERE total > 3 AND bronze < 3 AND nation = "belarus" AND silver > 2
|
### Instruction:
CREATE TABLE table_18038 (
"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.
-- How many times during the season were the seahawks 8-6?
### Response:
|
SELECT COUNT("Result") FROM table_18038 WHERE "Record" = '8-6'
|
### Instruction:
CREATE TABLE table_203_41 (
id number,
"name" text,
"variant name(s)" text,
"source" text,
"source coordinates" text,
"length" text,
"mouth" text,
"mouth coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the only creek to be 1 mile in length ?
### Response:
|
SELECT "name" FROM table_203_41 WHERE "length" = 1
|
### Instruction:
CREATE TABLE table_57126 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of attendance when the cavaliers visited
### Response:
|
SELECT COUNT("Attendance") FROM table_57126 WHERE "Visitor" = 'cavaliers'
|
### Instruction:
CREATE TABLE table_204_402 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of players that transferred to ajax ?
### Response:
|
SELECT COUNT("player") FROM table_204_402 WHERE "to" = 'ajax'
|
### Instruction:
CREATE TABLE table_74510 (
"Player" text,
"Home runs" real,
"Season total" real,
"Year" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest home runs for cleveland indians years before 1931
### Response:
|
SELECT MAX("Home runs") FROM table_74510 WHERE "Team" = 'cleveland indians' AND "Year" < '1931'
|
### Instruction:
CREATE TABLE table_12197 (
"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.
-- What is the total for a to par bigger than 7 and a player of al geiberger?
### Response:
|
SELECT COUNT("Total") FROM table_12197 WHERE "Player" = 'al geiberger' AND "To par" > '7'
|
### Instruction:
CREATE TABLE table_41323 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a Performer of se n monaghan and a Draw smaller than 7?
### Response:
|
SELECT MIN("Points") FROM table_41323 WHERE "Performer" = 'seán monaghan' AND "Draw" < '7'
|
### Instruction:
CREATE TABLE table_79147 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Democratic incumbent was first elected in 1998?
### Response:
|
SELECT "Incumbent" FROM table_79147 WHERE "Party" = 'democratic' AND "First elected" = '1998'
|
### Instruction:
CREATE TABLE table_48699 (
"Year" real,
"Winner" text,
"Finalist" text,
"Result" text,
"Date" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the finalist when the winner was First Vienna FC?
### Response:
|
SELECT "Finalist" FROM table_48699 WHERE "Winner" = 'first vienna fc'
|
### Instruction:
CREATE TABLE table_17411 (
"Jurisdiction" text,
"For Prohibition" real,
"Percent For" text,
"Against Prohibition" real,
"Percent Against" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percent for when against prohibition is 2978?
### Response:
|
SELECT "Percent For" FROM table_17411 WHERE "Against Prohibition" = '2978'
|
### Instruction:
CREATE TABLE table_204_276 (
id number,
"record" text,
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text,
"round" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the last opponent on this chart ?
### Response:
|
SELECT "opponent" FROM table_204_276 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many manufacturers have headquarters in either Tokyo or Beijing?
### Response:
|
SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'
|
### Instruction:
CREATE TABLE table_name_95 (
rec INTEGER,
opponent VARCHAR,
average VARCHAR,
s_touchdown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?
### Response:
|
SELECT SUM(rec) FROM table_name_95 WHERE average < 32 AND s_touchdown < 3 AND opponent = "oregon state"
|
### Instruction:
CREATE TABLE table_203_829 (
id number,
"event" text,
"record" text,
"athlete(s)" text,
"date" text,
"time (s)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did felix loch take to complete the men 's luge ?
### Response:
|
SELECT "time (s)" FROM table_203_829 WHERE "athlete(s)" = 'felix loch'
|
### Instruction:
CREATE TABLE table_name_62 (
average INTEGER,
rank_by_average VARCHAR,
place VARCHAR,
total_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average with less than 3 places, less than 433 total points, and a rank less than 2?
### Response:
|
SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2
|
### Instruction:
CREATE TABLE table_name_48 (
player VARCHAR,
round VARCHAR,
college_junior_club_team__league_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18?
### Response:
|
SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = "usa u-18"
|
### Instruction:
CREATE TABLE table_6121 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was his result against dan bobish?
### Response:
|
SELECT "Res." FROM table_6121 WHERE "Opponent" = 'dan bobish'
|
### Instruction:
CREATE TABLE table_11004 (
"Player" text,
"Att." real,
"Yards" real,
"Avg." real,
"Fumbles" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most fumbles for more than 44 yards and att of 32?
### Response:
|
SELECT MAX("Fumbles") FROM table_11004 WHERE "Yards" > '44' AND "Att." = '32'
|
### Instruction:
CREATE TABLE table_50640 (
"Rank" real,
"Company" text,
"Country" text,
"Industry" text,
"Revenue in USD" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the company who has a revenue of $428.2 billion?
### Response:
|
SELECT COUNT("Rank") FROM table_50640 WHERE "Revenue in USD" = '$428.2 billion'
|
### Instruction:
CREATE TABLE table_52831 (
"Name" text,
"Species" text,
"Overview" text,
"Introduced" text,
"Feral" text,
"Threat level" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Threat Levels with Rabbits in Australia?
### Response:
|
SELECT "Threat level" FROM table_52831 WHERE "Overview" = 'rabbits in australia'
|
### Instruction:
CREATE TABLE table_64861 (
"Player" text,
"Country" text,
"Year won" real,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Year won of Davis Love III with a Total of less than 149?
### Response:
|
SELECT COUNT("Year won") FROM table_64861 WHERE "Player" = 'davis love iii' AND "Total" < '149'
|
### Instruction:
CREATE TABLE table_79439 (
"Class" text,
"Railway number(s)" text,
"Quantity rebuilt" real,
"Rebuildjahr(e)" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Rebuildjahr(e) for the T2AA class?
### Response:
|
SELECT "Rebuildjahr(e)" FROM table_79439 WHERE "Class" = 't2aa'
|
### Instruction:
CREATE TABLE table_14762 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 1st Party has an Election of 1849 by-election?
### Response:
|
SELECT "1st Party" FROM table_14762 WHERE "Election" = '1849 by-election'
|
### 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.
-- Return a pie on what is the average age for a male in each job?
### Response:
|
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job
|
### Instruction:
CREATE TABLE table_1203 (
"No" real,
"Date" text,
"Round" text,
"Circuit" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round was the circuit Assen
### Response:
|
SELECT "Round" FROM table_1203 WHERE "Circuit" = 'Assen'
|
### Instruction:
CREATE TABLE table_41333 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Name that has the Goals larger than 98, and the Rank of 7?
### Response:
|
SELECT "Name" FROM table_41333 WHERE "Goals" > '98' AND "Rank" = '7'
|
### Instruction:
CREATE TABLE table_60187 (
"Year" real,
"Champion" text,
"Finalist" text,
"Score" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Place, when Year is greater than 2006, and when Champion is 'Asvel'?
### Response:
|
SELECT "Place" FROM table_60187 WHERE "Year" > '2006' AND "Champion" = 'asvel'
|
### Instruction:
CREATE TABLE table_21060 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter" text,
"Year named" real,
"Namesake" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the namesake of the feature found at 189.5w longitude?
### Response:
|
SELECT "Namesake" FROM table_21060 WHERE "Longitude" = '189.5W'
|
### Instruction:
CREATE TABLE table_203_527 (
id number,
"tournament" text,
"games played" number,
"points per game" number,
"rebounds per game" number,
"assists per game" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which tournament did the team score the most points per game ?
### Response:
|
SELECT "tournament" FROM table_203_527 ORDER BY "points per game" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_24275 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Oliver Jarvis have pole position?
### Response:
|
SELECT "Date" FROM table_24275 WHERE "Pole position" = 'Oliver Jarvis'
|
### Instruction:
CREATE TABLE table_name_10 (
round INTEGER,
college_junior_club_team__league_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)?
### Response:
|
SELECT MAX(round) FROM table_name_10 WHERE college_junior_club_team__league_ = "torpedo yaroslavl (rus)"
|
### Instruction:
CREATE TABLE table_42434 (
"Pos." real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Goals" text,
"Diff." text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average wins have USA as the team?
### Response:
|
SELECT AVG("Wins") FROM table_42434 WHERE "Team" = 'usa'
|
### Instruction:
CREATE TABLE table_47217 (
"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.
-- When was the game at the North Shore Events Centre?
### Response:
|
SELECT "Date" FROM table_47217 WHERE "Venue" = 'north shore events centre'
|
### Instruction:
CREATE TABLE table_16856 (
"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 largest jersey number for the player from maryland
### Response:
|
SELECT MAX("No.") FROM table_16856 WHERE "School/Club Team" = 'Maryland'
|
### Instruction:
CREATE TABLE table_17085981_2 (
manner_of_departure VARCHAR,
team VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?
### Response:
|
SELECT manner_of_departure FROM table_17085981_2 WHERE team = "Stuttgarter Kickers" AND outgoing_manager = "Edgar Schmitt"
|
### Instruction:
CREATE TABLE table_204_26 (
id number,
"name" text,
"position" text,
"birth date/age at start of campaign" text,
"games in campaign" text,
"club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of players that played for fc st. gallen ?
### Response:
|
SELECT COUNT("name") FROM table_204_26 WHERE "club" = 'fc st. gallen'
|
### Instruction:
CREATE TABLE table_15968 (
"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.
-- The nhl team new york islanders is what nationality?
### Response:
|
SELECT "Nationality" FROM table_15968 WHERE "NHL team" = 'New York Islanders'
|
### Instruction:
CREATE TABLE table_11881 (
"Date" text,
"Opponent" text,
"Score" text,
"Site/Stadium" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were in attendance on March 4?
### Response:
|
SELECT "Attendance" FROM table_11881 WHERE "Date" = 'march 4'
|
### Instruction:
CREATE TABLE table_12127 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 24/11/1979, what is the opposing teams?
### Response:
|
SELECT "Opposing Teams" FROM table_12127 WHERE "Date" = '24/11/1979'
|
### Instruction:
CREATE TABLE table_18587 (
"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 were the candidates when Noah M. Mason was incumbent?
### Response:
|
SELECT "Candidates" FROM table_18587 WHERE "Incumbent" = 'Noah M. Mason'
|
### Instruction:
CREATE TABLE table_72206 (
"Acquisition" text,
"knowledge" text,
"penance" text,
"permanence of the body" text,
"constancy" text,
"purity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the constancy where permanence of the body is meditation
### Response:
|
SELECT "constancy" FROM table_72206 WHERE "permanence of the body" = 'meditation'
|
### Instruction:
CREATE TABLE table_78663 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Fifa World Cup with a Score of 1-0?
### Response:
|
SELECT "Date" FROM table_78663 WHERE "Score" = '1-0' AND "Competition" = 'fifa world cup'
|
### Instruction:
CREATE TABLE table_name_64 (
website VARCHAR,
frequency VARCHAR,
city_of_license VARCHAR,
webcast VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which website includes a webcast of listen live, a frequency under 1050, and is licensed in the city of Monterrey?
### Response:
|
SELECT website FROM table_name_64 WHERE city_of_license = "monterrey" AND webcast = "listen live" AND frequency < 1050
|
### Instruction:
CREATE TABLE table_10506 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time/retired for jo siffert with a grid under 11?
### Response:
|
SELECT "Time/Retired" FROM table_10506 WHERE "Grid" < '11' AND "Driver" = 'jo siffert'
|
### Instruction:
CREATE TABLE table_4446 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is ranked number 2 and has less than 5 total medals?
### Response:
|
SELECT COUNT("Silver") FROM table_4446 WHERE "Rank" = '2' AND "Total" < '5'
|
### Instruction:
CREATE TABLE table_56495 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Tournament" text,
"Scored" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent with a score of 30-12?
### Response:
|
SELECT "Opponent" FROM table_56495 WHERE "Result" = '30-12'
|
### Instruction:
CREATE TABLE table_78180 (
"Call sign" text,
"Frequency MHz" real,
"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 class is the city of black mountain, north carolina?
### Response:
|
SELECT "Class" FROM table_78180 WHERE "City of license" = 'black mountain, north carolina'
|
### Instruction:
CREATE TABLE table_41144 (
"Date" text,
"Rocket" text,
"Type" text,
"Launch site" text,
"Satellite" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the gps iif-10 satellite with an unknown date?
### Response:
|
SELECT "Type" FROM table_41144 WHERE "Date" = 'unknown' AND "Satellite" = 'gps iif-10'
|
### Instruction:
CREATE TABLE table_2710 (
"County" text,
"Population" real,
"Unemployment Rate" text,
"Market Income Per Capita" text,
"Poverty Rate" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population of the country of McDowell?
### Response:
|
SELECT "Population" FROM table_2710 WHERE "County" = 'McDowell'
|
### Instruction:
CREATE TABLE table_67292 (
"Year" real,
"Award Ceremony" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What category was Brian D'arcy James nominated for?
### Response:
|
SELECT "Category" FROM table_67292 WHERE "Nominee" = 'brian d''arcy james' AND "Result" = 'nominated'
|
### Instruction:
CREATE TABLE table_56588 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What suface during the game that had Yevgeny Kafelnikov as an opponent?
### Response:
|
SELECT "Surface" FROM table_56588 WHERE "Opponent" = 'yevgeny kafelnikov'
|
### Instruction:
CREATE TABLE table_24517 (
"Regional" text,
"Champions" text,
"Runners-up" text,
"Third place" text,
"Fourth place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who got the first position when fujieda city government got the fourth position?
### Response:
|
SELECT "Champions" FROM table_24517 WHERE "Fourth place" = 'Fujieda City Government'
|
### Instruction:
CREATE TABLE table_name_81 (
nhl_team VARCHAR,
position VARCHAR,
college_junior_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What NHL team has a player in the position of Left Wing that came from the Toronto Marlboros (omjhl)?
### Response:
|
SELECT nhl_team FROM table_name_81 WHERE position = "left wing" AND college_junior_club_team = "toronto marlboros (omjhl)"
|
### Instruction:
CREATE TABLE table_70869 (
"Name" text,
"Population (2009 estimate)" text,
"Largest City" text,
"Largest Metropolitan Area" text,
"Number of States" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2009 estimate population of the Northeast?
### Response:
|
SELECT "Population (2009 estimate)" FROM table_70869 WHERE "Name" = 'northeast'
|
### Instruction:
CREATE TABLE table_42162 (
"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.
-- Which Team #2 has a Team #1 of gambrinus sika brno?
### Response:
|
SELECT "Team #2" FROM table_42162 WHERE "Team #1" = 'gambrinus sika brno'
|
### Instruction:
CREATE TABLE table_204_598 (
id number,
"name" text,
"state of residence" text,
"took office" text,
"left office" text,
"president served under" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years did karl rove stay in office ?
### Response:
|
SELECT "left office" - "took office" FROM table_204_598 WHERE "name" = 'karl rove'
|
### Instruction:
CREATE TABLE table_66588 (
"Title" text,
"Label" text,
"Year of Release" real,
"Country of Release" text,
"Peaches:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Peaches: that was released in USA with 2 hot as a Title?
### Response:
|
SELECT "Peaches:" FROM table_66588 WHERE "Country of Release" = 'usa' AND "Title" = '2 hot'
|
### Instruction:
CREATE TABLE table_66387 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What director has lt as the series, with 6982 as the production num.?
### Response:
|
SELECT "Director" FROM table_66387 WHERE "Series" = 'lt' AND "Production Num." = '6982'
|
### Instruction:
CREATE TABLE table_68132 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How tall was the member of Nymburk, who was born in 1982?
### Response:
|
SELECT MAX("Height") FROM table_68132 WHERE "Year born" = '1982' AND "Current Club" = 'nymburk'
|
### Instruction:
CREATE TABLE table_204_223 (
id number,
"party" text,
"previous council" number,
"staying councillors" number,
"seats up for election" number,
"election result" number,
"new council" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total of previous council ?
### Response:
|
SELECT "previous council" FROM table_204_223 WHERE "party" = 'total'
|
### Instruction:
CREATE TABLE table_37886 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the visitor was toronto maple leafs on march 22?
### Response:
|
SELECT "Score" FROM table_37886 WHERE "Visitor" = 'toronto maple leafs' AND "Date" = 'march 22'
|
### Instruction:
CREATE TABLE table_445 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the mixed doubles where the mens singles is kim brodersen?
### Response:
|
SELECT "Mixed doubles" FROM table_445 WHERE "Mens singles" = 'Kim Brodersen'
|
### Instruction:
CREATE TABLE table_204_914 (
id number,
"year" number,
"team" text,
"games" number,
"attempts" number,
"yards" number,
"ypc" number,
"long" number,
"tds" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is his total number of games played ?
### Response:
|
SELECT SUM("games") FROM table_204_914
|
### Instruction:
CREATE TABLE table_461 (
"Season" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many titles did Trupti Murgunde claim?
### Response:
|
SELECT "Womens doubles" FROM table_461 WHERE "Womens singles" = 'Trupti Murgunde'
|
### Instruction:
CREATE TABLE table_33825 (
"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.
-- Which items in segment A have a segment D of marble sculptures?
### Response:
|
SELECT "Segment A" FROM table_33825 WHERE "Segment D" = 'marble sculptures'
|
### Instruction:
CREATE TABLE table_649 (
"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.
-- Name the record for september 15, 1985
### Response:
|
SELECT "Record" FROM table_649 WHERE "Date" = 'September 15, 1985'
|
### Instruction:
CREATE TABLE table_80424 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date for the game that had an attendance of 10,101?
### Response:
|
SELECT "Date" FROM table_80424 WHERE "Attendance" = '10,101'
|
### Instruction:
CREATE TABLE table_16437 (
"Pilot car No." real,
"Colour" text,
"Serial No." text,
"Engine No." real,
"Registration No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of colour with the regisration number of mg-509?
### Response:
|
SELECT COUNT("Colour") FROM table_16437 WHERE "Registration No." = 'MG-509'
|
### Instruction:
CREATE TABLE table_46425 (
"Finished" real,
"Time/ Behind" text,
"Post" real,
"Horse" text,
"Jockey" text,
"Trainer" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Finished, when Post is less than 2?
### Response:
|
SELECT MIN("Finished") FROM table_46425 WHERE "Post" < '2'
|
### Instruction:
CREATE TABLE table_12834315_5 (
bayonet_lug VARCHAR,
barrel_profile VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bayonet lug status for a m4 hbar and m4le carbine equipped?
### Response:
|
SELECT bayonet_lug FROM table_12834315_5 WHERE barrel_profile = "M4 HBAR" AND name = "M4LE Carbine"
|
### Instruction:
CREATE TABLE table_71192 (
"Player" text,
"Position" text,
"Previous Club" text,
"Apps" real,
"Tries" real,
"Goals" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Full Back Player has 0 Apps?
### Response:
|
SELECT "Player" FROM table_71192 WHERE "Position" = 'full back' AND "Apps" = '0'
|
### Instruction:
CREATE TABLE table_56209 (
"Class" text,
"Wheel arrangement" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) withdrawn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was class of undine?
### Response:
|
SELECT "Year made" FROM table_56209 WHERE "Class" = 'undine'
|
### Instruction:
CREATE TABLE table_45579 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of Gavin Rae?
### Response:
|
SELECT "Nat." FROM table_45579 WHERE "Name" = 'gavin rae'
|
### Instruction:
CREATE TABLE table_41149 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Andretti's finish for the year he had a Buick engine and started 16th?
### Response:
|
SELECT "Finish" FROM table_41149 WHERE "Engine" = 'buick' AND "Start" = '16th'
|
### Instruction:
CREATE TABLE table_51678 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number of wins with player Mike Hill with a rank bigger than 2?
### Response:
|
SELECT COUNT("Wins") FROM table_51678 WHERE "Rank" > '2' AND "Player" = 'mike hill'
|
### Instruction:
CREATE TABLE table_48520 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of surface did the tournament canada f9, markham have?
### Response:
|
SELECT "Surface" FROM table_48520 WHERE "Tournament" = 'canada f9, markham'
|
### Instruction:
CREATE TABLE table_66343 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Serbia has a heat less than 2 and what sum of rank?
### Response:
|
SELECT COUNT("Rank") FROM table_66343 WHERE "Nationality" = 'serbia' AND "Heat" < '2'
|
### Instruction:
CREATE TABLE table_53135 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which grid is constructed by Maserati and driven by Oscar Alfredo G lvez?
### Response:
|
SELECT "Grid" FROM table_53135 WHERE "Constructor" = 'maserati' AND "Driver" = 'oscar alfredo gálvez'
|
### Instruction:
CREATE TABLE table_21701 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the meaning of the verb whose part 1 is slapen?
### Response:
|
SELECT "Verb meaning" FROM table_21701 WHERE "Part 1" = 'slapen'
|
### Instruction:
CREATE TABLE table_name_15 (
number_1971 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?
### Response:
|
SELECT COUNT(1961) FROM table_name_15 WHERE number_1971 = 3325 AND 1991 > 3177
|
### Instruction:
CREATE TABLE table_name_88 (
Severe INTEGER,
strongest_storm VARCHAR,
tropical_lows VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
### Response:
|
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 10
|
### Instruction:
CREATE TABLE table_name_82 (
wins INTEGER,
conceded VARCHAR,
draws VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of WIns with Draws that's larger than 1, Losses that's smaller than 4, and Conceded of 20?
### Response:
|
SELECT SUM(wins) FROM table_name_82 WHERE draws > 1 AND losses < 4 AND conceded = 20
|
### Instruction:
CREATE TABLE table_50486 (
"Match" real,
"Date" text,
"Home/Away" text,
"Opponent team" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home/away game is on February 29, 2008?
### Response:
|
SELECT "Home/Away" FROM table_50486 WHERE "Date" = 'february 29, 2008'
|
### Instruction:
CREATE TABLE tags (
index number,
id number,
tag text
)
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whose CDs sells best?
### Response:
|
SELECT artist FROM torrents GROUP BY artist ORDER BY SUM(totalsnatched) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_26658 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What geographical region is the province distrito nacional located in?
### Response:
|
SELECT "Geographical Regions" FROM table_26658 WHERE "Province, Community" = 'Distrito Nacional'
|
### Instruction:
CREATE TABLE table_57601 (
"Index" text,
"Organization" text,
"Year" text,
"Rank" real,
"Out of" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the rank for year of 2012 and out of larger than 176
### Response:
|
SELECT "Rank" FROM table_57601 WHERE "Year" = '2012' AND "Out of" > '176'
|
### Instruction:
CREATE TABLE table_6210 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course?
### Response:
|
SELECT "Date" FROM table_6210 WHERE "Course" = 'la granja de san ildefonso to alto de navacerrada'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.