instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_60 (
date VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date is the Winning Score 71-69-68-70=278?
### Response:
|
SELECT date FROM table_name_60 WHERE winning_score = 71 - 69 - 68 - 70 = 278
|
### Instruction:
CREATE TABLE table_name_19 (
name VARCHAR,
listed VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name has a listed of 03/31/1989 in spartanburg county?
### Response:
|
SELECT name FROM table_name_19 WHERE listed = "03/31/1989" AND county = "spartanburg"
|
### Instruction:
CREATE TABLE table_9279 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Date of may 20?
### Response:
|
SELECT "Score" FROM table_9279 WHERE "Date" = 'may 20'
|
### Instruction:
CREATE TABLE table_203_737 (
id number,
"#" number,
"employer" text,
"# of employees" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many employers listed have less than 250 employees ?
### Response:
|
SELECT COUNT("employer") FROM table_203_737 WHERE "# of employees" < 250
|
### Instruction:
CREATE TABLE table_name_68 (
fastest_lap VARCHAR,
round VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?
### Response:
|
SELECT fastest_lap FROM table_name_68 WHERE round = "5" AND winning_driver = "james winslow"
|
### Instruction:
CREATE TABLE table_name_3 (
long VARCHAR,
loss VARCHAR,
avg_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?
### Response:
|
SELECT COUNT(long) FROM table_name_3 WHERE loss > 0 AND avg_g = 124.9
|
### Instruction:
CREATE TABLE table_80175 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the loss on may 22
### Response:
|
SELECT "Loss" FROM table_80175 WHERE "Date" = 'may 22'
|
### Instruction:
CREATE TABLE table_name_69 (
position INTEGER,
points VARCHAR,
equipment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average position for a driver with less than 54 points and husaberg-bsu as equipment?
### Response:
|
SELECT AVG(position) FROM table_name_69 WHERE points < 54 AND equipment = "husaberg-bsu"
|
### Instruction:
CREATE TABLE table_68628 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the bronze when silver is 1
### Response:
|
SELECT "Bronze" FROM table_68628 WHERE "Silver" = '1'
|
### Instruction:
CREATE TABLE table_16295365_2 (
conf_record VARCHAR,
seed VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the conference record where seed is 3 and record is 24-9
### Response:
|
SELECT conf_record FROM table_16295365_2 WHERE seed = "3" AND record = "24-9"
|
### Instruction:
CREATE TABLE table_name_7 (
vca_155 VARCHAR,
vcpc VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If there is a VCPC of 75km/h (47mph) what is the VCA?
### Response:
|
SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)"
|
### Instruction:
CREATE TABLE table_16710971_2 (
opponents VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?
### Response:
|
SELECT COUNT(opponents) FROM table_16710971_2 WHERE record = "6-4"
|
### Instruction:
CREATE TABLE table_60849 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What sport has Ma Yuxi in it?
### Response:
|
SELECT "Sport" FROM table_60849 WHERE "Name" = 'ma yuxi'
|
### Instruction:
CREATE TABLE table_name_40 (
district VARCHAR,
place_of_birth VARCHAR,
delegate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many districts in Baltimore City does Cheryl Glenn dictate?
### Response:
|
SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn"
|
### Instruction:
CREATE TABLE table_name_10 (
loser VARCHAR,
weight_division VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the loser of the heavyweight division fight that lasted a time of 2:24?
### Response:
|
SELECT loser FROM table_name_10 WHERE weight_division = "heavyweight" AND time = "2:24"
|
### Instruction:
CREATE TABLE table_35375 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what album is 4:30 long
### Response:
|
SELECT "Album" FROM table_35375 WHERE "Length" = '4:30'
|
### Instruction:
CREATE TABLE table_18449 (
"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.
-- What year were the latest elections?
### Response:
|
SELECT MAX("First elected") FROM table_18449
|
### Instruction:
CREATE TABLE table_name_26 (
tc VARCHAR,
year VARCHAR,
dc VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which T.C. has a Year larger than 2007, and a D.C. of 21st?
### Response:
|
SELECT tc FROM table_name_26 WHERE year > 2007 AND dc = "21st"
|
### Instruction:
CREATE TABLE table_41850 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is Yerevan located in?
### Response:
|
SELECT "Country" FROM table_41850 WHERE "City" = 'yerevan'
|
### Instruction:
CREATE TABLE table_name_19 (
score VARCHAR,
h_a_n VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game played on December 17, with a H/A/N of H?
### Response:
|
SELECT score FROM table_name_19 WHERE h_a_n = "h" AND date = "december 17"
|
### Instruction:
CREATE TABLE table_26555737_1 (
english_title VARCHAR,
arabic_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the arabic title what is the english title?
### Response:
|
SELECT english_title FROM table_26555737_1 WHERE arabic_title = "ملح هذا البحر"
|
### Instruction:
CREATE TABLE table_77008 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event is in florianopolis?
### Response:
|
SELECT "Event" FROM table_77008 WHERE "City" = 'florianopolis'
|
### Instruction:
CREATE TABLE table_25691838_8 (
production_code INTEGER,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest production code for August 11's original episode?
### Response:
|
SELECT MIN(production_code) FROM table_25691838_8 WHERE original_airdate = "August 11"
|
### Instruction:
CREATE TABLE table_11719 (
"Version" text,
"Year" text,
"Bore x stroke" text,
"Displacement" text,
"Power" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the displacement for version of db
### Response:
|
SELECT "Displacement" FROM table_11719 WHERE "Version" = 'db'
|
### Instruction:
CREATE TABLE table_name_82 (
laps VARCHAR,
grid VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did the rider with a grid larger than 14 and a time of +33.150 have?
### Response:
|
SELECT laps FROM table_name_82 WHERE grid > 14 AND time = "+33.150"
|
### Instruction:
CREATE TABLE table_23963781_3 (
position VARCHAR,
nationality VARCHAR,
minutes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player who is from the United States and has 30 minutes?
### Response:
|
SELECT position FROM table_23963781_3 WHERE nationality = "United States" AND minutes = 30
|
### Instruction:
CREATE TABLE table_53470 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Konchesky move to?
### Response:
|
SELECT "Moving to" FROM table_53470 WHERE "Name" = 'konchesky'
|
### Instruction:
CREATE TABLE table_55464 (
"Class" text,
"Wheels" text,
"Date" text,
"Builder" text,
"No. Built" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Builder has a Class of Terrier?
### Response:
|
SELECT "Builder" FROM table_55464 WHERE "Class" = 'terrier'
|
### Instruction:
CREATE TABLE table_name_56 (
pick VARCHAR,
year VARCHAR,
player_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pick has a Year larger than 1983, and a Player name of brian jozwiak?
### Response:
|
SELECT pick FROM table_name_56 WHERE year > 1983 AND player_name = "brian jozwiak"
|
### Instruction:
CREATE TABLE table_50798 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Linda Martin have?
### Response:
|
SELECT COUNT("Points") FROM table_50798 WHERE "Artist" = 'linda martin'
|
### Instruction:
CREATE TABLE table_name_55 (
nationality VARCHAR,
nhl_team VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nationality do the Montreal Canadiens belong to with a pick# of 25?
### Response:
|
SELECT nationality FROM table_name_55 WHERE nhl_team = "montreal canadiens" AND pick__number = "25"
|
### Instruction:
CREATE TABLE table_25740548_4 (
title VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode had 2.75 million viewers in the U.S.?
### Response:
|
SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75"
|
### Instruction:
CREATE TABLE table_26590 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Reset points" real,
"Events" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the player for 22 events
### Response:
|
SELECT "Player" FROM table_26590 WHERE "Events" = '22'
|
### Instruction:
CREATE TABLE table_name_49 (
runner_up VARCHAR,
year VARCHAR,
champion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Runner-up has a Year smaller than 2008, and a Champion of jos acasuso?
### Response:
|
SELECT runner_up FROM table_name_49 WHERE year < 2008 AND champion = "josé acasuso"
|
### Instruction:
CREATE TABLE table_name_2 (
total INTEGER,
player VARCHAR,
scottish_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total of player Simon Donnelly, with a Scottish Cup greater than 0?
### Response:
|
SELECT AVG(total) FROM table_name_2 WHERE player = "simon donnelly" AND scottish_cup > 0
|
### Instruction:
CREATE TABLE table_11960407_4 (
high_rebounds VARCHAR,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the high rebounds when Chris Bosh (16) had the high points?
### Response:
|
SELECT high_rebounds FROM table_11960407_4 WHERE high_points = "Chris Bosh (16)"
|
### Instruction:
CREATE TABLE table_37877 (
"Date" text,
"City" text,
"Result" text,
"Score" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the competition for score of 3-0
### Response:
|
SELECT "Competition" FROM table_37877 WHERE "Score" = '3-0'
|
### Instruction:
CREATE TABLE table_name_99 (
points_against VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the points against in a game that was played correct as of 2009-05-16?
### Response:
|
SELECT points_against FROM table_name_99 WHERE played = "correct as of 2009-05-16"
|
### Instruction:
CREATE TABLE table_name_90 (
division VARCHAR,
appearances VARCHAR,
conference VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times?
### Response:
|
SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18
|
### Instruction:
CREATE TABLE table_1342218_11 (
first_elected VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was first elected william m. wheeler (d) unopposed?
### Response:
|
SELECT first_elected FROM table_1342218_11 WHERE candidates = "William M. Wheeler (D) Unopposed"
|
### Instruction:
CREATE TABLE table_6474 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does pick number 12 play?
### Response:
|
SELECT "Position" FROM table_6474 WHERE "Pick #" = '12'
|
### Instruction:
CREATE TABLE table_2897457_8 (
pick__number VARCHAR,
position VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick number was the Boston Bruins selection for defence?
### Response:
|
SELECT pick__number FROM table_2897457_8 WHERE position = "Defence" AND nhl_team = "Boston Bruins"
|
### Instruction:
CREATE TABLE table_79182 (
"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 golfer that golfs for Northern Ireland?
### Response:
|
SELECT "Player" FROM table_79182 WHERE "Country" = 'northern ireland'
|
### Instruction:
CREATE TABLE table_49408 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the state for the royal house of ying?
### Response:
|
SELECT "State" FROM table_49408 WHERE "Royal house" = 'ying'
|
### Instruction:
CREATE TABLE table_42045 (
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has ed as an actual title?
### Response:
|
SELECT "Date" FROM table_42045 WHERE "Actual Title" = 'ed'
|
### Instruction:
CREATE TABLE table_14035132_3 (
original_air_date VARCHAR,
no_in_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episode with season number 10b air for the first time?
### Response:
|
SELECT original_air_date FROM table_14035132_3 WHERE no_in_season = "10b"
|
### Instruction:
CREATE TABLE table_69954 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine has more than 0 pts?
### Response:
|
SELECT "Engine" FROM table_69954 WHERE "Pts." > '0'
|
### Instruction:
CREATE TABLE table_60482 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To par, when Country is 'Spain'?
### Response:
|
SELECT "To par" FROM table_60482 WHERE "Country" = 'spain'
|
### Instruction:
CREATE TABLE table_2268216_1 (
year VARCHAR,
team VARCHAR,
manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years was Pontiac the manufacturer for Joe Gibbs Racing?
### Response:
|
SELECT COUNT(year) FROM table_2268216_1 WHERE team = "Joe Gibbs Racing" AND manufacturer = "Pontiac"
|
### Instruction:
CREATE TABLE table_23958917_1 (
owner_s___2009_ VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the owners 2009 for south side indianapolis
### Response:
|
SELECT owner_s___2009_ FROM table_23958917_1 WHERE location = "South Side Indianapolis"
|
### Instruction:
CREATE TABLE table_29778616_1 (
price__usd_ INTEGER,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the price (usd) for the model pq32mu?
### Response:
|
SELECT MIN(price__usd_) FROM table_29778616_1 WHERE model = "PQ32MU"
|
### Instruction:
CREATE TABLE table_name_33 (
segment_d VARCHAR,
episode VARCHAR,
segment_c VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?
### Response:
|
SELECT segment_d FROM table_name_33 WHERE episode > 16 AND segment_c = "laser eye surgery"
|
### Instruction:
CREATE TABLE table_name_10 (
driver VARCHAR,
tyre VARCHAR,
entrant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the driver when the tyre is p and the entrant is officine alfieri maserati?
### Response:
|
SELECT driver FROM table_name_10 WHERE tyre = "p" AND entrant = "officine alfieri maserati"
|
### Instruction:
CREATE TABLE table_name_43 (
medal VARCHAR,
name VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Medal had a Name of f lix s nchez, and a Games of 2012 london?
### Response:
|
SELECT medal FROM table_name_43 WHERE name = "félix sánchez" AND games = "2012 london"
|
### Instruction:
CREATE TABLE table_12243817_1 (
tournament_location VARCHAR,
winners_share__$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the tournament that the share of winning is 7000?
### Response:
|
SELECT tournament_location FROM table_12243817_1 WHERE winners_share__$_ = 7000
|
### Instruction:
CREATE TABLE table_name_72 (
class VARCHAR,
year VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has a year prior to 2011 and audi r15 tdi as the chassis?
### Response:
|
SELECT class FROM table_name_72 WHERE year < 2011 AND chassis = "audi r15 tdi"
|
### Instruction:
CREATE TABLE table_49182 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game in week 4?
### Response:
|
SELECT "Result" FROM table_49182 WHERE "Week" = '4'
|
### Instruction:
CREATE TABLE table_23817012_6 (
gp_gs VARCHAR,
ft_pct VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in the ft pct .667 what is the number of gp-gs
### Response:
|
SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = ".667"
|
### Instruction:
CREATE TABLE table_55144 (
"Title" text,
"Publisher" text,
"First Year" text,
"Last Year" text,
"Genre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first year for Popgun?
### Response:
|
SELECT "First Year" FROM table_55144 WHERE "Title" = 'popgun'
|
### Instruction:
CREATE TABLE table_63847 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the developers for Portal?
### Response:
|
SELECT "Developer(s)" FROM table_63847 WHERE "Game" = 'portal'
|
### Instruction:
CREATE TABLE table_name_51 (
round INTEGER,
position VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the school picking is utah state for the position of linebacker, what's the sum of those rounds?
### Response:
|
SELECT SUM(round) FROM table_name_51 WHERE position = "linebacker" AND school = "utah state"
|
### Instruction:
CREATE TABLE table_24798489_1 (
original_airdate VARCHAR,
challenge VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original airdate of the episode where the challenge was three overstuffed sandwiches?
### Response:
|
SELECT original_airdate FROM table_24798489_1 WHERE challenge = "Three overstuffed sandwiches"
|
### Instruction:
CREATE TABLE table_name_13 (
year INTEGER,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?
### Response:
|
SELECT MIN(year) FROM table_name_13 WHERE title = "wallace & gromit: the curse of the were-rabbit"
|
### Instruction:
CREATE TABLE table_name_54 (
borough VARCHAR,
location VARCHAR,
listed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Borough for the Seward listing on 1977-11-23?
### Response:
|
SELECT borough FROM table_name_54 WHERE location = "seward" AND listed = "1977-11-23"
|
### Instruction:
CREATE TABLE table_1566848_7 (
date VARCHAR,
pictorials VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the issue where the pictorials is of Female s disk jockey?
### Response:
|
SELECT COUNT(date) FROM table_1566848_7 WHERE pictorials = "Female s disk jockey"
|
### Instruction:
CREATE TABLE table_name_61 (
method VARCHAR,
opponent VARCHAR,
round VARCHAR,
res VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the method of the match where there was a loss to Carlos Newton in round 1?
### Response:
|
SELECT method FROM table_name_61 WHERE round = "1" AND res = "loss" AND opponent = "carlos newton"
|
### Instruction:
CREATE TABLE table_62362 (
"Week" text,
"Date" text,
"Home team" text,
"Away team" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team in week 1?
### Response:
|
SELECT "Home team" FROM table_62362 WHERE "Week" = '1'
|
### Instruction:
CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average age of male for different job title?
### Response:
|
SELECT AVG(age), job FROM person WHERE gender = 'male' GROUP BY job
|
### Instruction:
CREATE TABLE table_14853156_2 (
cuts_made INTEGER,
best_finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of cuts made when her best finish is t4?
### Response:
|
SELECT MAX(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4"
|
### Instruction:
CREATE TABLE table_18461045_1 (
indiana VARCHAR,
michigan VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the little league team from Indiana when the little league team from Michigan was Midland Northeast LL Midland?
### Response:
|
SELECT indiana FROM table_18461045_1 WHERE michigan = "Midland Northeast LL Midland"
|
### Instruction:
CREATE TABLE table_25229283_4 (
points_against INTEGER,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the minimum points against if the opponent is Port Adelaide?
### Response:
|
SELECT MIN(points_against) FROM table_25229283_4 WHERE opponent = "Port Adelaide"
|
### Instruction:
CREATE TABLE table_39420 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did st. louis score at home?
### Response:
|
SELECT "Score" FROM table_39420 WHERE "Home" = 'st. louis'
|
### Instruction:
CREATE TABLE table_64583 (
"Wager" text,
"Winner" text,
"Loser" text,
"Location" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location where shocker was the winner?
### Response:
|
SELECT "Location" FROM table_64583 WHERE "Winner" = 'shocker'
|
### Instruction:
CREATE TABLE table_name_57 (
music VARCHAR,
results VARCHAR,
choreographer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which music led to a safe result and was choreographed by Jason Gilkison?
### Response:
|
SELECT music FROM table_name_57 WHERE results = "safe" AND choreographer_s_ = "jason gilkison"
|
### Instruction:
CREATE TABLE table_name_75 (
laps INTEGER,
rider VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Laps have Rider of olivier jacque, and a Grid larger than 7?
### Response:
|
SELECT SUM(laps) FROM table_name_75 WHERE rider = "olivier jacque" AND grid > 7
|
### Instruction:
CREATE TABLE table_name_40 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was 2011, when 2005 was 2R, and when 2003 was 2R?
### Response:
|
SELECT 2011 FROM table_name_40 WHERE 2005 = "2r" AND 2003 = "2r"
|
### Instruction:
CREATE TABLE table_name_48 (
goals_scored INTEGER,
points VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average goals scored of the team who scored 44 points and placed higher than 5?
### Response:
|
SELECT AVG(goals_scored) FROM table_name_48 WHERE points = "44" AND place > 5
|
### Instruction:
CREATE TABLE table_48748 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Billy Casper's to par?
### Response:
|
SELECT "To par" FROM table_48748 WHERE "Player" = 'billy casper'
|
### Instruction:
CREATE TABLE table_22385461_8 (
end__utc_ VARCHAR,
duration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the end (UTC) if the duration is 6 hours, 55 minutes?
### Response:
|
SELECT end__utc_ FROM table_22385461_8 WHERE duration = "6 hours, 55 minutes"
|
### Instruction:
CREATE TABLE table_name_49 (
pick INTEGER,
college VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5?
### Response:
|
SELECT AVG(pick) FROM table_name_49 WHERE college = "purdue" AND round < 5
|
### Instruction:
CREATE TABLE table_name_25 (
goals VARCHAR,
gp_gs VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals were scored in 2004 when the gp/gs was 'did not play'?
### Response:
|
SELECT goals FROM table_name_25 WHERE gp_gs = "did not play" AND year = "2004"
|
### Instruction:
CREATE TABLE table_name_56 (
year INTEGER,
start VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?
### Response:
|
SELECT MIN(year) FROM table_name_56 WHERE start = "saint-gaudens" AND stage < 15
|
### Instruction:
CREATE TABLE table_18847456_2 (
opponents INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did the opposing team score on Dec. 19, 1982?
### Response:
|
SELECT MAX(opponents) FROM table_18847456_2 WHERE date = "Dec. 19"
|
### Instruction:
CREATE TABLE table_name_2 (
extra_points INTEGER,
player VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Extra points is the highest one that has a Player of herrnstein, and Points smaller than 30?
### Response:
|
SELECT MAX(extra_points) FROM table_name_2 WHERE player = "herrnstein" AND points < 30
|
### Instruction:
CREATE TABLE table_169955_1 (
gregorian_calendar VARCHAR,
sign_of_zodiac VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of gregorian calenda rof gemini
### Response:
|
SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini"
|
### Instruction:
CREATE TABLE table_name_76 (
name VARCHAR,
species_authority VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name for the species Authority of sigmodon hispidus say & ord, 1825?
### Response:
|
SELECT name FROM table_name_76 WHERE species_authority = "sigmodon hispidus say & ord, 1825"
|
### Instruction:
CREATE TABLE table_name_62 (
events INTEGER,
top_25 VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Events when the top-25 is 12 and there are less than 0 wins?
### Response:
|
SELECT AVG(events) FROM table_name_62 WHERE top_25 = 12 AND wins < 0
|
### Instruction:
CREATE TABLE table_name_60 (
cash_on_hand VARCHAR,
after_debt VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of cash on hand that has an after debt of $327,094
### Response:
|
SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094"
|
### Instruction:
CREATE TABLE purchase (
member_id VARCHAR
)
CREATE TABLE member (
member_id VARCHAR,
level VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of purchases for members with level 6?
### Response:
|
SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6
|
### Instruction:
CREATE TABLE table_name_44 (
matches INTEGER,
points VARCHAR,
results VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Points larger than 6, and a Results of 522:443 had what lowest matches?
### Response:
|
SELECT MIN(matches) FROM table_name_44 WHERE points > 6 AND results = "522:443"
|
### 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.
-- Compute the average price of all the products.
### Response:
|
SELECT AVG(price) FROM products
|
### Instruction:
CREATE TABLE table_69874 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team lost on May 1?
### Response:
|
SELECT "Loss" FROM table_69874 WHERE "Date" = 'may 1'
|
### Instruction:
CREATE TABLE table_204_299 (
id number,
"name of place" text,
"number of counties" number,
"principal county" text,
"lower zip code" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the last city listed alphabetically ?
### Response:
|
SELECT MAX("name of place") FROM table_204_299
|
### Instruction:
CREATE TABLE table_name_72 (
original_title VARCHAR,
director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original title of the film directed by Lene Gr nlykke and Sven Gr nlykke?
### Response:
|
SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke"
|
### Instruction:
CREATE TABLE table_name_96 (
batting_partners VARCHAR,
fielding_team VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the batting partners that played for India in 1997?
### Response:
|
SELECT batting_partners FROM table_name_96 WHERE fielding_team = "india" AND season = "1997"
|
### Instruction:
CREATE TABLE table_name_28 (
Giant VARCHAR,
overall VARCHAR,
super_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?
### Response:
|
SELECT Giant AS slalom FROM table_name_28 WHERE overall > 3 AND super_g = 12
|
### Instruction:
CREATE TABLE table_name_58 (
preliminary_average VARCHAR,
evening_gown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the preliminary average score when the evening gown score is 8.774 (6)?
### Response:
|
SELECT preliminary_average FROM table_name_58 WHERE evening_gown = "8.774 (6)"
|
### Instruction:
CREATE TABLE table_49561 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the To par of +1?
### Response:
|
SELECT "Score" FROM table_49561 WHERE "To par" = '+1'
|
### Instruction:
CREATE TABLE table_name_29 (
attendance VARCHAR,
date VARCHAR,
away VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Platense was the away team on 16 August 2008 how many people attended the game?
### Response:
|
SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense"
|
### Instruction:
CREATE TABLE table_name_64 (
total VARCHAR,
concacaf VARCHAR,
mls_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
### Response:
|
SELECT COUNT(total) FROM table_name_64 WHERE concacaf = 0 AND mls_cup < 6
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.