instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_204_945 (
id number,
"episode" number,
"name" text,
"synopsis" text,
"sent home" text,
"highest seller" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what two episodes was adam the highest seller ?
### Response:
|
SELECT "episode" FROM table_204_945 WHERE "highest seller" = 'adam'
|
### Instruction:
CREATE TABLE table_36134 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points have a Lost smaller than 1, and Games larger than 7?
### Response:
|
SELECT MAX("Points") FROM table_36134 WHERE "Lost" < '1' AND "Games" > '7'
|
### Instruction:
CREATE TABLE table_28912 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is first elected when Kentucky 6 is the district?
### Response:
|
SELECT "First elected" FROM table_28912 WHERE "District" = 'Kentucky 6'
|
### Instruction:
CREATE TABLE table_52261 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date when the home team is st kilda?
### Response:
|
SELECT "Date" FROM table_52261 WHERE "Home team" = 'st kilda'
|
### Instruction:
CREATE TABLE table_6532 (
"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 high total for algeria with over 2 bronzes?
### Response:
|
SELECT MAX("Total") FROM table_6532 WHERE "Nation" = 'algeria' AND "Bronze" > '2'
|
### Instruction:
CREATE TABLE table_35360 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when points for was points for what was the points?
### Response:
|
SELECT "Points" FROM table_35360 WHERE "Points for" = 'points for'
|
### Instruction:
CREATE TABLE table_name_18 (
rank INTEGER,
lane VARCHAR,
nationality VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6?
### Response:
|
SELECT AVG(rank) FROM table_name_18 WHERE nationality = "france" AND name = "alain bernard" AND lane < 6
|
### Instruction:
CREATE TABLE table_42167 (
"Date" text,
"Opponent" text,
"Score" text,
"Site/Stadium" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the game played at Sarge Frye Field?
### Response:
|
SELECT "Score" FROM table_42167 WHERE "Site/Stadium" = 'sarge frye field'
|
### Instruction:
CREATE TABLE table_name_65 (
opponent VARCHAR,
date VARCHAR,
type VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?
### Response:
|
SELECT opponent FROM table_name_65 WHERE type = "ud" AND round = "10" AND date = "2008-06-11"
|
### Instruction:
CREATE TABLE table_28562 (
"Film Festival" text,
"Date of ceremony" text,
"Category" text,
"Participants/Recipients" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What category was the the participant/recipient ot to?
### Response:
|
SELECT "Category" FROM table_28562 WHERE "Participants/Recipients" = 'Otōto'
|
### Instruction:
CREATE TABLE table_24366 (
"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.
-- On what date/s has attendance been 45010?
### Response:
|
SELECT "Date/Year" FROM table_24366 WHERE "Attendance" = '45010'
|
### Instruction:
CREATE TABLE table_48430 (
"Name" text,
"Daytime" text,
"Evening" text,
"Saturday" text,
"Sunday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Saturday has a Sunday of yes and a Evening of yes?
### Response:
|
SELECT "Saturday" FROM table_48430 WHERE "Sunday" = 'yes' AND "Evening" = 'yes'
|
### Instruction:
CREATE TABLE table_14700336_1 (
revenue__millions_ VARCHAR,
spending_per_capita VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was revenue in millions recorded when the spending per capita was $6,736?
### Response:
|
SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE spending_per_capita = "$6,736"
|
### Instruction:
CREATE TABLE table_56592 (
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were watching when Livingston was the runner-up?
### Response:
|
SELECT "Attendance" FROM table_56592 WHERE "Runner-up" = 'livingston'
|
### Instruction:
CREATE TABLE table_name_15 (
country_territory VARCHAR,
imed_avicenna_listed VARCHAR,
established VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a medical school established in 1969 with both an IMED and avicenna?
### Response:
|
SELECT country_territory FROM table_name_15 WHERE imed_avicenna_listed = "both" AND established = 1969
|
### Instruction:
CREATE TABLE student_course_registrations (
course_Id VARCHAR
)
CREATE TABLE courses (
course_name VARCHAR,
course_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which course has most number of registered students?
### Response:
|
SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_Id = T2.course_Id GROUP BY T1.course_Id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_19921 (
"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.
-- Name the segment d for s cufflink
### Response:
|
SELECT "Segment D" FROM table_19921 WHERE "Segment A" = 's Cufflink'
|
### Instruction:
CREATE TABLE table_16990 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was erskine college founded
### Response:
|
SELECT "Founded" FROM table_16990 WHERE "Institution" = 'Erskine College'
|
### Instruction:
CREATE TABLE table_34998 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has February 10 as the date?
### Response:
|
SELECT "Score" FROM table_34998 WHERE "Date" = 'february 10'
|
### Instruction:
CREATE TABLE table_48295 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Score of 72-69-73=214?
### Response:
|
SELECT "Player" FROM table_48295 WHERE "Score" = '72-69-73=214'
|
### Instruction:
CREATE TABLE table_203_719 (
id number,
"year" number,
"australian open" text,
"french open" text,
"wimbledon" text,
"us open" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first year of the australian open ?
### Response:
|
SELECT MIN("year") FROM table_203_719 WHERE NOT "australian open" IS NULL
|
### Instruction:
CREATE TABLE table_32657 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for each game held at Foxboro Stadium?
### Response:
|
SELECT "Attendance" FROM table_32657 WHERE "Game site" = 'foxboro stadium'
|
### Instruction:
CREATE TABLE table_40813 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date when the week is more than 3 and the attendance shows bye?
### Response:
|
SELECT "Date" FROM table_40813 WHERE "Week" > '3' AND "Attendance" = 'bye'
|
### Instruction:
CREATE TABLE table_12877 (
"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.
-- What is the Player who won in 1931?
### Response:
|
SELECT "Player" FROM table_12877 WHERE "Year(s) won" = '1931'
|
### Instruction:
CREATE TABLE table_50237 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player with a 69-68-71=208 score?
### Response:
|
SELECT "Player" FROM table_50237 WHERE "Score" = '69-68-71=208'
|
### Instruction:
CREATE TABLE table_47767 (
"Name" text,
"Location" text,
"Elevation + Height" text,
"Delivery" text,
"Purpose" text,
"Yield" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the elevation and height for Halfbeak?
### Response:
|
SELECT "Elevation + Height" FROM table_47767 WHERE "Name" = 'halfbeak'
|
### Instruction:
CREATE TABLE table_54132 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest recorded record for a player with an average larger than 13?
### Response:
|
SELECT MIN("Rec.") FROM table_54132 WHERE "Avg." > '13'
|
### Instruction:
CREATE TABLE table_203_630 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total medals did norway win ?
### Response:
|
SELECT "total" FROM table_203_630 WHERE "nation" = 'norway'
|
### Instruction:
CREATE TABLE table_204_482 (
id number,
"date" text,
"position" text,
"name" text,
"from" text,
"fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- andy huges and adrian whitbread both tranfered on which date ?
### Response:
|
SELECT "date" FROM table_204_482 WHERE "name" = 'andy hughes'
|
### Instruction:
CREATE TABLE table_7869 (
"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 is 1st Leg, when Team 1 is 'Makedonija'?
### Response:
|
SELECT "1st leg" FROM table_7869 WHERE "Team 1" = 'makedonija'
|
### Instruction:
CREATE TABLE table_203_812 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country had the highest number of medals ?
### Response:
|
SELECT "nation" FROM table_203_812 ORDER BY "total" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_18014 (
"Release" text,
"Title" text,
"Windows" text,
"5th Gen" text,
"6th Gen" text,
"Handheld" text,
"Arcade" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is icewind dale available for windows
### Response:
|
SELECT "Windows" FROM table_18014 WHERE "Title" = 'Icewind Dale'
|
### Instruction:
CREATE TABLE table_3221 (
"Season" text,
"Winner" text,
"Runner-up" text,
"Final Score" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In season 2005 06, who is 3rd place?
### Response:
|
SELECT "3rd place" FROM table_3221 WHERE "Season" = '2005–06'
|
### Instruction:
CREATE TABLE table_name_82 (
margin_of_victory VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the margin of victory of the tournament with a winning score of 70-67-64-71=272?
### Response:
|
SELECT margin_of_victory FROM table_name_82 WHERE winning_score = 70 - 67 - 64 - 71 = 272
|
### Instruction:
CREATE TABLE table_15198 (
"Name" text,
"Hair Color:" text,
"Eye Color:" text,
"Release Date" text,
"Retired?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is retired with eyes of dark brown, and black hair?
### Response:
|
SELECT "Retired?" FROM table_15198 WHERE "Eye Color:" = 'dark brown' AND "Hair Color:" = 'black'
|
### Instruction:
CREATE TABLE table_7394 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome of the match against andy roddick?
### Response:
|
SELECT "Outcome" FROM table_7394 WHERE "Opponent" = 'andy roddick'
|
### Instruction:
CREATE TABLE table_53405 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first year to have a Chassis of Jordan 193?
### Response:
|
SELECT MIN("Year") FROM table_53405 WHERE "Chassis" = 'jordan 193'
|
### Instruction:
CREATE TABLE mill (
id VARCHAR,
architect_id VARCHAR,
built_year INTEGER
)
CREATE TABLE architect (
id VARCHAR,
architect_id VARCHAR,
built_year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many architects haven't built a mill before year 1850?
### Response:
|
SELECT COUNT(*) FROM architect WHERE NOT id IN (SELECT architect_id FROM mill WHERE built_year < 1850)
|
### Instruction:
CREATE TABLE table_38039 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record after the game at Rich Stadium?
### Response:
|
SELECT "Record" FROM table_38039 WHERE "Game Site" = 'rich stadium'
|
### Instruction:
CREATE TABLE table_name_54 (
run_2 INTEGER,
athlete VARCHAR,
run_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest run 2 of athlete eric neilson, who has a run 3 larger than 55.97?
### Response:
|
SELECT MAX(run_2) FROM table_name_54 WHERE athlete = "eric neilson" AND run_3 > 55.97
|
### Instruction:
CREATE TABLE table_56488 (
"Fire Class" text,
"Geometric Symbol" text,
"Intended Use" text,
"Mnemonic" text,
"compatibility" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the compatibility for the Mnemonic d for 'dynamite'?
### Response:
|
SELECT "compatibility" FROM table_56488 WHERE "Mnemonic" = 'd for "dynamite'
|
### Instruction:
CREATE TABLE table_77530 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds exist for picks under 5?
### Response:
|
SELECT COUNT("Rd #") FROM table_77530 WHERE "Pick #" < '5'
|
### Instruction:
CREATE TABLE table_23210 (
"Further Cities" text,
"County, Oblast or State" text,
"Country" text,
"Distance" text,
"Direction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the further cities for east romania
### Response:
|
SELECT "Further Cities" FROM table_23210 WHERE "Direction" = 'East' AND "Country" = 'Romania'
|
### Instruction:
CREATE TABLE table_name_63 (
years_at_club VARCHAR,
goals VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the years at the club of the player with 2 goals and was born on 23 July 1910?
### Response:
|
SELECT years_at_club FROM table_name_63 WHERE goals = 2 AND date_of_birth = "23 july 1910"
|
### Instruction:
CREATE TABLE table_204_471 (
id number,
"year" number,
"title" text,
"peak chart positions\nger" number,
"label" text,
"artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many compilation albums did they release in 1997 ?
### Response:
|
SELECT COUNT("title") FROM table_204_471 WHERE "year" = 1997
|
### Instruction:
CREATE TABLE table_name_20 (
tujia_population INTEGER,
prefecture VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
### Response:
|
SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = "zhangjiajie" AND county = "sangzhi"
|
### Instruction:
CREATE TABLE table_27714985_1 (
no_s__in_season INTEGER,
production_code_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the episode number of the episode whose production code is 226407?
### Response:
|
SELECT MIN(no_s__in_season) FROM table_27714985_1 WHERE production_code_s_ = 226407
|
### Instruction:
CREATE TABLE table_11248 (
"Player" text,
"Rec." real,
"Yards" text,
"Avg." text,
"TD's" real,
"Long" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Long is 42, what is the average TD's?
### Response:
|
SELECT AVG("TD's") FROM table_11248 WHERE "Long" = '42'
|
### Instruction:
CREATE TABLE table_8091 (
"Date" real,
"Region" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Format of the Epic/Sony Label after 1980?
### Response:
|
SELECT "Format" FROM table_8091 WHERE "Label" = 'epic/sony' AND "Date" > '1980'
|
### Instruction:
CREATE TABLE table_70759 (
"Class" text,
"Type" text,
"Names" text,
"Quantity made" text,
"Manufacturer" text,
"Date made" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the locomotive named Blacklion Glencar?
### Response:
|
SELECT "Date made" FROM table_70759 WHERE "Names" = 'blacklion glencar'
|
### Instruction:
CREATE TABLE table_79059 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has defensive back as the position, with a round less than 2?
### Response:
|
SELECT "Player" FROM table_79059 WHERE "Position" = 'defensive back' AND "Round" < '2'
|
### Instruction:
CREATE TABLE table_name_27 (
grid INTEGER,
time_retired VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps?
### Response:
|
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70
|
### Instruction:
CREATE TABLE table_41833 (
"Year" text,
"Team" text,
"Comp" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team with a Ratt of 42?
### Response:
|
SELECT "Team" FROM table_41833 WHERE "RAtt" = '42'
|
### Instruction:
CREATE TABLE table_69945 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chassis had an entrant of G.A. Vandervell?
### Response:
|
SELECT "Chassis" FROM table_69945 WHERE "Entrant" = 'g.a. vandervell'
|
### Instruction:
CREATE TABLE table_name_11 (
score VARCHAR,
date VARCHAR,
match VARCHAR,
home_away VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for a match before 13, and a home game on April 21, 2008?
### Response:
|
SELECT score FROM table_name_11 WHERE match < 13 AND home_away = "home" AND date = "april 21, 2008"
|
### Instruction:
CREATE TABLE table_23376 (
"Year" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1992 is the year how many divisions are there?
### Response:
|
SELECT COUNT("Division") FROM table_23376 WHERE "Year" = '1992'
|
### Instruction:
CREATE TABLE table_45817 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What to par has t5 as the place, with larry mize as the player?
### Response:
|
SELECT "To par" FROM table_45817 WHERE "Place" = 't5' AND "Player" = 'larry mize'
|
### Instruction:
CREATE TABLE table_73108 (
"C_{low}" text,
"C_{high}" text,
"I_{low}" real,
"I_{high}" real,
"Category" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In how many different categories is the value of C_{low} 35.5?
### Response:
|
SELECT COUNT("Category") FROM table_73108 WHERE "C_{low}" = '35.5'
|
### Instruction:
CREATE TABLE table_203_466 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- nations that had 10 or more medals each
### Response:
|
SELECT "nation" FROM table_203_466 WHERE "total" >= 10
|
### Instruction:
CREATE TABLE table_4963 (
"Date" real,
"Opponent" text,
"Result" text,
"Odds" text,
"Location" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of a game that had the odds of q rook?
### Response:
|
SELECT AVG("Date") FROM table_4963 WHERE "Odds" = 'q rook'
|
### Instruction:
CREATE TABLE table_69084 (
"Name" text,
"Creator" text,
"Latest stable version" text,
"Standard cost (USD)" text,
"Software license" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Standard cost (USD) of Kwin team creator?
### Response:
|
SELECT "Standard cost (USD)" FROM table_69084 WHERE "Creator" = 'kwin team'
|
### Instruction:
CREATE TABLE table_66317 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the player when the position is p and the team is oakland athletics?
### Response:
|
SELECT "Player" FROM table_66317 WHERE "Position" = 'p' AND "Team" = 'oakland athletics'
|
### Instruction:
CREATE TABLE table_46982 (
"Position" real,
"Pilot" text,
"Glider" text,
"Speed" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Position, when Speed is '143.5km/h'?
### Response:
|
SELECT AVG("Position") FROM table_46982 WHERE "Speed" = '143.5km/h'
|
### Instruction:
CREATE TABLE table_203_517 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many games did the senators play in january ?
### Response:
|
SELECT COUNT(*) FROM table_203_517 WHERE "date" = 1
|
### Instruction:
CREATE TABLE table_name_58 (
career_games VARCHAR,
date_and_opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Career Games has a Date and Opponent of 12/15/92 vs. uw milwaukee?
### Response:
|
SELECT career_games FROM table_name_58 WHERE date_and_opponent = "12/15/92 vs. uw–milwaukee"
|
### Instruction:
CREATE TABLE table_62399 (
"Year" real,
"Event" text,
"Category" text,
"Nominated work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nominated work of popularity award (actor in a motion picture)?
### Response:
|
SELECT "Nominated work" FROM table_62399 WHERE "Category" = 'popularity award (actor in a motion picture)'
|
### Instruction:
CREATE TABLE table_21906 (
"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.
-- When did they play at the Cotton Bowl?
### Response:
|
SELECT "Date" FROM table_21906 WHERE "Game site" = 'Cotton Bowl'
|
### Instruction:
CREATE TABLE table_28935 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what district was the incumbent Edwin Gray?
### Response:
|
SELECT "District" FROM table_28935 WHERE "Incumbent" = 'Edwin Gray'
|
### Instruction:
CREATE TABLE table_name_57 (
city VARCHAR,
greek_designation VARCHAR,
status VARCHAR,
us_state_district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What California city has an active status and a greek designation of established colony?
### Response:
|
SELECT city FROM table_name_57 WHERE status = "active" AND us_state_district = "california" AND greek_designation = "established colony"
|
### Instruction:
CREATE TABLE table_60291 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What NHL team does Rob White play on?
### Response:
|
SELECT "NHL team" FROM table_60291 WHERE "Player" = 'rob white'
|
### Instruction:
CREATE TABLE table_name_32 (
court_rank VARCHAR,
revenues VARCHAR,
lineage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the court ranking of 5th son of tadayori and has revenues of 10,000 koku?
### Response:
|
SELECT court_rank FROM table_name_32 WHERE revenues = "10,000 koku" AND lineage = "5th son of tadayori"
|
### Instruction:
CREATE TABLE table_75301 (
"Throne Name" text,
"Title" text,
"Born-Died" text,
"Entered office" text,
"Left office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the entered office that has 1337 as the left office?
### Response:
|
SELECT "Entered office" FROM table_75301 WHERE "Left office" = '1337'
|
### Instruction:
CREATE TABLE table_name_96 (
l2_cache VARCHAR,
gpu_model VARCHAR,
frequency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz?
### Response:
|
SELECT l2_cache FROM table_name_96 WHERE gpu_model = "iris pro graphics 5200" AND frequency = "2.6 ghz"
|
### Instruction:
CREATE TABLE table_6479 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Drawns have Points smaller than 5 and a Lost larger than 7?
### Response:
|
SELECT COUNT("Drawn") FROM table_6479 WHERE "Points" < '5' AND "Lost" > '7'
|
### Instruction:
CREATE TABLE table_203_455 (
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.
-- list each of the players from finland .
### Response:
|
SELECT "player" FROM table_203_455 WHERE "nationality" = 'finland'
|
### Instruction:
CREATE TABLE table_21095 (
"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.
-- What year was Norterma Tholus created?
### Response:
|
SELECT MAX("Year named") FROM table_21095 WHERE "Name" = 'Norterma Tholus'
|
### Instruction:
CREATE TABLE table_37897 (
"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.
-- Which FCC info has a Call sign of wsja?
### Response:
|
SELECT "FCC info" FROM table_37897 WHERE "Call sign" = 'wsja'
|
### Instruction:
CREATE TABLE table_72382 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the district with result being new seat democratic gain
### Response:
|
SELECT "District" FROM table_72382 WHERE "Result" = 'New seat Democratic gain'
|
### Instruction:
CREATE TABLE table_name_96 (
incumbent VARCHAR,
first_elected VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?
### Response:
|
SELECT incumbent FROM table_name_96 WHERE first_elected = "1892" AND result = "retired to run for the senate democratic hold"
|
### Instruction:
CREATE TABLE table_18777 (
"Series Number" real,
"Season Number" real,
"Episode Title" text,
"Premiere Date" text,
"Production Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number episode in the series is the episode 'things that fly'?
### Response:
|
SELECT MAX("Series Number") FROM table_18777 WHERE "Episode Title" = 'Things That Fly'
|
### Instruction:
CREATE TABLE table_45589 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the high points on november 20?
### Response:
|
SELECT "High points" FROM table_45589 WHERE "Date" = 'november 20'
|
### Instruction:
CREATE TABLE table_50561 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has a Tournament of monte carlo?
### Response:
|
SELECT "Week" FROM table_50561 WHERE "Tournament" = 'monte carlo'
|
### Instruction:
CREATE TABLE table_42345 (
"Rank" real,
"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 average Total with a Bronze that is larger than 1?
### Response:
|
SELECT AVG("Total") FROM table_42345 WHERE "Bronze" > '1'
|
### Instruction:
CREATE TABLE table_11363 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team of the game with the Raptors as the visitor team?
### Response:
|
SELECT "Home" FROM table_11363 WHERE "Visitor" = 'raptors'
|
### Instruction:
CREATE TABLE table_name_24 (
game INTEGER,
set_4 VARCHAR,
set_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23?
### Response:
|
SELECT SUM(game) FROM table_name_24 WHERE set_4 = "25-21" AND set_3 = "25-23"
|
### Instruction:
CREATE TABLE table_203_98 (
id number,
"title" text,
"year" number,
"director" text,
"budget" text,
"gross (worldwide)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the top grossing film ?
### Response:
|
SELECT "title" FROM table_203_98 ORDER BY "gross (worldwide)" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_42259 (
"City" text,
"Municipality" text,
"County" text,
"Town status" text,
"Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest population of a city that has a town status of 2010?
### Response:
|
SELECT MAX("Population") FROM table_42259 WHERE "Town status" = '2010'
|
### Instruction:
CREATE TABLE table_80230 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Qual of 120.006 took place in what year?
### Response:
|
SELECT "Year" FROM table_80230 WHERE "Qual" = '120.006'
|
### Instruction:
CREATE TABLE table_54034 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the opposition when the tally was 0-11?
### Response:
|
SELECT "Opposition" FROM table_54034 WHERE "Tally" = '0-11'
|
### Instruction:
CREATE TABLE table_203_355 (
id number,
"year" number,
"total" number,
"romanians" text,
"hungarians" text,
"roma" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of hungarians in 1850 ?
### Response:
|
SELECT "hungarians" FROM table_203_355 WHERE "year" = 1850
|
### Instruction:
CREATE TABLE table_7012 (
"Location" text,
"Aircraft" text,
"Tail number" text,
"Aircraft damage" text,
"Fatalities" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the aircraft damage for the accident that had fatalities of 30/30?
### Response:
|
SELECT "Aircraft damage" FROM table_7012 WHERE "Fatalities" = '30/30'
|
### Instruction:
CREATE TABLE table_name_61 (
area_km_2 INTEGER,
official_name VARCHAR,
population VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Area km 2 has an Official Name of southampton, and a Population larger than 1,601?
### Response:
|
SELECT MIN(area_km_2) FROM table_name_61 WHERE official_name = "southampton" AND population > 1 OFFSET 601
|
### Instruction:
CREATE TABLE table_21146 (
"Team name (Affiliation)" text,
"Year started" real,
"Number of cars" real,
"Current car" text,
"Car #" text,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year started where car number is 55
### Response:
|
SELECT MAX("Year started") FROM table_21146 WHERE "Car #" = '55'
|
### Instruction:
CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result in case 6B:E2:54:C6:58:D2?
### Response:
|
SELECT outcome FROM greatermanchestercrime WHERE crimeid = "6B:E2:54:C6:58:D2"
|
### Instruction:
CREATE TABLE table_21765 (
"Number" real,
"Name" text,
"Kilometer" real,
"Location" text,
"Length (in m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Keutenberg race had what race length?
### Response:
|
SELECT MAX("Length (in m)") FROM table_21765 WHERE "Name" = 'Keutenberg'
|
### Instruction:
CREATE TABLE table_204_320 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country received the least bronze medals ?
### Response:
|
SELECT "nation" FROM table_204_320 ORDER BY "bronze" LIMIT 1
|
### Instruction:
CREATE TABLE table_65511 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rank of the team who raced at a time of 7:16.13?
### Response:
|
SELECT "Rank" FROM table_65511 WHERE "Time" = '7:16.13'
|
### Instruction:
CREATE TABLE table_22002 (
"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 opponent for december 8
### Response:
|
SELECT "Opponent" FROM table_22002 WHERE "Date" = 'December 8'
|
### Instruction:
CREATE TABLE table_18565 (
"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.
-- Which candidates are associated with the Georgia 7 district?
### Response:
|
SELECT "Candidates" FROM table_18565 WHERE "District" = 'Georgia 7'
|
### Instruction:
CREATE TABLE table_42356 (
"Year" real,
"Category" text,
"Champions" text,
"Runners-up" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Score after 1991 in Category IVA?
### Response:
|
SELECT "Score" FROM table_42356 WHERE "Year" > '1991' AND "Category" = 'iva'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.