instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE player (
Player_name VARCHAR,
Player_ID VARCHAR
)
CREATE TABLE player_coach (
Player_name VARCHAR,
Player_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the names of players that do not have coaches.
### Response:
|
SELECT Player_name FROM player WHERE NOT Player_ID IN (SELECT Player_ID FROM player_coach)
|
### Instruction:
CREATE TABLE table_name_19 (
played INTEGER,
points VARCHAR,
draw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?
### Response:
|
SELECT MAX(played) FROM table_name_19 WHERE points = 17 AND draw < 5
|
### Instruction:
CREATE TABLE table_8458 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player with a FB position?
### Response:
|
SELECT "Player" FROM table_8458 WHERE "Position" = 'fb'
|
### Instruction:
CREATE TABLE table_name_99 (
place INTEGER,
goals_scored VARCHAR,
draw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest place that has a draw entry smaller than 6 and goal score of 28?
### Response:
|
SELECT MAX(place) FROM table_name_99 WHERE goals_scored = 28 AND draw < 6
|
### Instruction:
CREATE TABLE table_11900773_5 (
illustration VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who created the illustration for the stamp that was themed 100 years of scouting?
### Response:
|
SELECT illustration FROM table_11900773_5 WHERE theme = "100 Years of Scouting"
|
### Instruction:
CREATE TABLE table_14015965_1 (
foreign_players__max_2_ VARCHAR,
town VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the foreign players representing Ekaterinburg?
### Response:
|
SELECT foreign_players__max_2_ FROM table_14015965_1 WHERE town = "Ekaterinburg"
|
### Instruction:
CREATE TABLE table_name_22 (
theme VARCHAR,
issue_price VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What theme had an issue price of $489.95 after 2005?
### Response:
|
SELECT theme FROM table_name_22 WHERE issue_price = "$489.95" AND year > 2005
|
### Instruction:
CREATE TABLE table_53934 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Driver has 1 in Grid?
### Response:
|
SELECT "Driver" FROM table_53934 WHERE "Grid" = '1'
|
### Instruction:
CREATE TABLE table_name_71 (
fuel_system VARCHAR,
displacement VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which fuel system has a displacement of 1500cc for the Berlina model?
### Response:
|
SELECT fuel_system FROM table_name_71 WHERE displacement = "1500cc" AND model = "berlina"
|
### Instruction:
CREATE TABLE table_name_52 (
house_of_rep_seats INTEGER,
abbr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of House of Representatives seats had an abbreviation of d66?
### Response:
|
SELECT AVG(house_of_rep_seats) FROM table_name_52 WHERE abbr = "d66"
|
### Instruction:
CREATE TABLE table_name_45 (
current_club VARCHAR,
position VARCHAR,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the current club with a position of sg/sf and a height less than 1.96?
### Response:
|
SELECT current_club FROM table_name_45 WHERE position = "sg/sf" AND height < 1.96
|
### Instruction:
CREATE TABLE table_name_7 (
nationality VARCHAR,
position VARCHAR,
college_high_school_club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the person drafted to Position F from Kentucky State?
### Response:
|
SELECT nationality FROM table_name_7 WHERE position = "f" AND college_high_school_club = "kentucky state"
|
### Instruction:
CREATE TABLE table_8941 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mark set by Laura Turner?
### Response:
|
SELECT "Mark" FROM table_8941 WHERE "Name" = 'laura turner'
|
### Instruction:
CREATE TABLE table_name_79 (
venue VARCHAR,
radio VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue of the napa auto parts 200 race with a mrn radio?
### Response:
|
SELECT venue FROM table_name_79 WHERE radio = "mrn" AND race = "napa auto parts 200"
|
### Instruction:
CREATE TABLE table_43428 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did Week 9 begin?
### Response:
|
SELECT "Date" FROM table_43428 WHERE "Week" = '9'
|
### Instruction:
CREATE TABLE table_name_8 (
r_51_o VARCHAR,
d_42_o VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which R 51 O value corresponds to a D 42 O value of r 19?
### Response:
|
SELECT r_51_o FROM table_name_8 WHERE d_42_o = "r 19"
|
### Instruction:
CREATE TABLE table_23399481_2 (
original_air_date VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date of the episode that was directed by David Paymer?
### Response:
|
SELECT original_air_date FROM table_23399481_2 WHERE directed_by = "David Paymer"
|
### Instruction:
CREATE TABLE table_21258_1 (
natural_increase VARCHAR,
births VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where births is 388 000 how many number is natural increase
### Response:
|
SELECT COUNT(natural_increase) FROM table_21258_1 WHERE births = "388 000"
|
### Instruction:
CREATE TABLE table_20193855_2 (
publisher VARCHAR,
book_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the publisher of the book titled daughters of an emerald dusk?
### Response:
|
SELECT publisher FROM table_20193855_2 WHERE book_title = "Daughters of an Emerald Dusk"
|
### Instruction:
CREATE TABLE table_name_35 (
attendance VARCHAR,
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance of the match on the 2nd with the slough jets as the opponent?
### Response:
|
SELECT attendance FROM table_name_35 WHERE opponent = "slough jets" AND date = "2nd"
|
### Instruction:
CREATE TABLE table_11545282_19 (
no INTEGER,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of school/club teams held by BYU?
### Response:
|
SELECT MIN(no) FROM table_11545282_19 WHERE school_club_team = "BYU"
|
### Instruction:
CREATE TABLE checking (
custid VARCHAR
)
CREATE TABLE accounts (
name VARCHAR,
custid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of checking accounts for each account name.
### Response:
|
SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name
|
### Instruction:
CREATE TABLE table_11748792_2 (
tuesday VARCHAR,
series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Tuesday presenter of Celebrity Big Brother 8?
### Response:
|
SELECT tuesday FROM table_11748792_2 WHERE series = "Celebrity Big Brother 8"
|
### Instruction:
CREATE TABLE table_26375386_28 (
rank_by_average VARCHAR,
couple VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ranks by average for the couple Tana and Stuart?
### Response:
|
SELECT COUNT(rank_by_average) FROM table_26375386_28 WHERE couple = "Tana and Stuart"
|
### Instruction:
CREATE TABLE table_20774360_2 (
regular_season_record__w_l_ VARCHAR,
standing VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the regular season record for standing 11th
### Response:
|
SELECT regular_season_record__w_l_ FROM table_20774360_2 WHERE standing = "11th"
|
### Instruction:
CREATE TABLE table_name_99 (
draw INTEGER,
language VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points?
### Response:
|
SELECT AVG(draw) FROM table_name_99 WHERE language = "swedish" AND points < 10
|
### Instruction:
CREATE TABLE table_name_9 (
word__number INTEGER,
name VARCHAR,
subframe__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average word count with crs and subframes lesser than 2?
### Response:
|
SELECT AVG(word__number) FROM table_name_9 WHERE name = "crs" AND subframe__number < 2
|
### Instruction:
CREATE TABLE table_name_86 (
city_of_license VARCHAR,
class VARCHAR,
identifier VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city of license has A as a class, and cbec-fm as the identifier?
### Response:
|
SELECT city_of_license FROM table_name_86 WHERE class = "a" AND identifier = "cbec-fm"
|
### Instruction:
CREATE TABLE table_name_46 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is 2010 when 2011 is 2r and 2008 is 2r?
### Response:
|
SELECT 2010 FROM table_name_46 WHERE 2011 = "2r" AND 2008 = "2r"
|
### Instruction:
CREATE TABLE table_name_22 (
game VARCHAR,
home_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has a Home Team of san francisco, and a Date of april 22?
### Response:
|
SELECT game FROM table_name_22 WHERE home_team = "san francisco" AND date = "april 22"
|
### Instruction:
CREATE TABLE table_34912 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Canada's lead?
### Response:
|
SELECT "Lead" FROM table_34912 WHERE "Country" = 'canada'
|
### Instruction:
CREATE TABLE table_name_62 (
circuit VARCHAR,
winning_driver VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What circuit did emilio de villota win on at the pace petroleum trophy?
### Response:
|
SELECT circuit FROM table_name_62 WHERE winning_driver = "emilio de villota" AND name = "pace petroleum trophy"
|
### Instruction:
CREATE TABLE table_name_63 (
number INTEGER,
name VARCHAR,
weight VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name of byron geis, and a Weight smaller than 195 involves what average number?
### Response:
|
SELECT AVG(number) FROM table_name_63 WHERE name = "byron geis" AND weight < 195
|
### Instruction:
CREATE TABLE table_79360 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Born" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position did Michael Lee play?
### Response:
|
SELECT "Pos." FROM table_79360 WHERE "Name" = 'michael lee'
|
### Instruction:
CREATE TABLE table_name_37 (
assists INTEGER,
league VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the WCHL League, what is the last Assists with less than 65 Goals?
### Response:
|
SELECT MIN(assists) FROM table_name_37 WHERE league = "wchl" AND goals < 65
|
### Instruction:
CREATE TABLE table_16175064_3 (
director_s_ VARCHAR,
writer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the director when Chris Hawkshaw is the writer?
### Response:
|
SELECT director_s_ FROM table_16175064_3 WHERE writer_s_ = "Chris Hawkshaw"
|
### Instruction:
CREATE TABLE table_64035 (
"Draw" real,
"Artist" text,
"Song" text,
"Percentage" text,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What song placed higher than#4?
### Response:
|
SELECT "Song" FROM table_64035 WHERE "Place" > '4'
|
### Instruction:
CREATE TABLE table_name_7 (
series VARCHAR,
podiums VARCHAR,
wins VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the series when wins is less than 3, points is 9 and podiums is 1?
### Response:
|
SELECT series FROM table_name_7 WHERE wins < 3 AND points = "9" AND podiums = 1
|
### Instruction:
CREATE TABLE table_name_68 (
car__number VARCHAR,
make VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the car # of the Chevrolet that complete 363 laps?
### Response:
|
SELECT COUNT(car__number) FROM table_name_68 WHERE make = "chevrolet" AND laps = 363
|
### Instruction:
CREATE TABLE table_name_34 (
studio VARCHAR,
rank VARCHAR,
gross VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which studio grossed $83,531,958 and ranked lower than 13?
### Response:
|
SELECT studio FROM table_name_34 WHERE rank > 13 AND gross = "$83,531,958"
|
### Instruction:
CREATE TABLE table_name_41 (
team VARCHAR,
kit_manufacturer VARCHAR,
captain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has a kit manufacturer of Umbro and Eric Cantona as captain?
### Response:
|
SELECT team FROM table_name_41 WHERE kit_manufacturer = "umbro" AND captain = "eric cantona"
|
### Instruction:
CREATE TABLE table_name_30 (
score VARCHAR,
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a To par of 4, and a Player of duffy waldorf?
### Response:
|
SELECT score FROM table_name_30 WHERE to_par = "β4" AND player = "duffy waldorf"
|
### Instruction:
CREATE TABLE table_name_33 (
report VARCHAR,
winning_driver VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which report has a Winning driver of peter collins, and a Circuit of syracuse?
### Response:
|
SELECT report FROM table_name_33 WHERE winning_driver = "peter collins" AND circuit = "syracuse"
|
### Instruction:
CREATE TABLE table_name_49 (
mwehl_team VARCHAR,
round VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the MWEHL Team on Round 2, with player Nicolas Kerdiles?
### Response:
|
SELECT mwehl_team FROM table_name_49 WHERE round = "2" AND player = "nicolas kerdiles"
|
### Instruction:
CREATE TABLE table_49648 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rider is grid 7?
### Response:
|
SELECT "Rider" FROM table_49648 WHERE "Grid" = '7'
|
### Instruction:
CREATE TABLE table_name_62 (
cuts_made INTEGER,
tournament VARCHAR,
events VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the cuts average in tournament totals in an event larger than 24?
### Response:
|
SELECT AVG(cuts_made) FROM table_name_62 WHERE tournament = "totals" AND events > 24
|
### Instruction:
CREATE TABLE table_11390711_4 (
japanese_orthography VARCHAR,
english_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Japanese orthography for National Fisheries University?
### Response:
|
SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Fisheries University"
|
### Instruction:
CREATE TABLE table_name_84 (
loss VARCHAR,
coach VARCHAR,
pts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
### Response:
|
SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9
|
### Instruction:
CREATE TABLE table_name_89 (
height__m_ VARCHAR,
birth_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the height (m) when the birth date is 1968-07-01?
### Response:
|
SELECT height__m_ FROM table_name_89 WHERE birth_date = "1968-07-01"
|
### Instruction:
CREATE TABLE table_name_56 (
country VARCHAR,
peak VARCHAR,
project_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has peak 20 and a project named jarn yabhour; ramhan?
### Response:
|
SELECT country FROM table_name_56 WHERE peak = "20" AND project_name = "jarn yabhour; ramhan"
|
### Instruction:
CREATE TABLE table_name_98 (
year INTEGER,
engine VARCHAR,
pts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the oldest model Porsche v12 that has points less than or equal to 0.
### Response:
|
SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0
|
### Instruction:
CREATE TABLE table_42269 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date with a Format that is cd?
### Response:
|
SELECT "Date" FROM table_42269 WHERE "Format" = 'cd'
|
### Instruction:
CREATE TABLE table_16570286_4 (
wickets INTEGER,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number of wickets were there when the average was 22.66?
### Response:
|
SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66"
|
### Instruction:
CREATE TABLE table_name_73 (
name VARCHAR,
county VARCHAR,
proposed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name was proposed on 09/08/1983 in hillsborough county?
### Response:
|
SELECT name FROM table_name_73 WHERE county = "hillsborough" AND proposed = "09/08/1983"
|
### Instruction:
CREATE TABLE table_name_65 (
type VARCHAR,
project VARCHAR,
weight__kg_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the typ for project of igmdp and weight of 16,000
### Response:
|
SELECT type FROM table_name_65 WHERE project = "igmdp" AND weight__kg_ = "16,000"
|
### Instruction:
CREATE TABLE table_57708 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the course Brescia?
### Response:
|
SELECT "Winner" FROM table_57708 WHERE "Course" = 'brescia'
|
### Instruction:
CREATE TABLE table_1157867_2 (
builder VARCHAR,
wheel_arrangement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the builder of the locomotives with wheel arrangement of 2-4-2 T?
### Response:
|
SELECT builder FROM table_1157867_2 WHERE wheel_arrangement = "2-4-2 T"
|
### Instruction:
CREATE TABLE table_11391954_3 (
Half VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is Moldova the winner of half marathon (womens)?
### Response:
|
SELECT COUNT(Half) AS marathon__womens_ FROM table_11391954_3 WHERE country = "Moldova"
|
### Instruction:
CREATE TABLE table_name_26 (
wins INTEGER,
draws VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest number of wins that had fewer than 7 draws and more than 30 played?
### Response:
|
SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30
|
### Instruction:
CREATE TABLE table_name_46 (
full_word VARCHAR,
case_suffix__case_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Full Word, when Case Suffix (case) is '-sa (dative)'?
### Response:
|
SELECT full_word FROM table_name_46 WHERE case_suffix__case_ = "-sa (dative)"
|
### Instruction:
CREATE TABLE table_name_76 (
game_site VARCHAR,
week VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game site has a Week bigger than 13, and a Result of l 20 0?
### Response:
|
SELECT game_site FROM table_name_76 WHERE week > 13 AND result = "l 20β0"
|
### Instruction:
CREATE TABLE table_name_79 (
score VARCHAR,
home VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Home is 'Montreal Canadiens', and when Date is 'May 16'?
### Response:
|
SELECT score FROM table_name_79 WHERE home = "montreal canadiens" AND date = "may 16"
|
### Instruction:
CREATE TABLE table_name_81 (
date VARCHAR,
original_week VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the date for original week less than 16 and result of l 23 22
### Response:
|
SELECT date FROM table_name_81 WHERE original_week < 16 AND result = "l 23β22"
|
### Instruction:
CREATE TABLE table_23286223_5 (
date VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the game in which Deron Williams (13) did the high assists played?
### Response:
|
SELECT date FROM table_23286223_5 WHERE high_assists = "Deron Williams (13)"
|
### Instruction:
CREATE TABLE table_name_73 (
points VARCHAR,
class VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did ginger have when she was ranked 5th on a 350cc class bike?
### Response:
|
SELECT COUNT(points) FROM table_name_73 WHERE class = "350cc" AND rank = "5th"
|
### Instruction:
CREATE TABLE table_name_19 (
roll VARCHAR,
name VARCHAR,
decile VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of roll for st joseph's school when decile is less than 5
### Response:
|
SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5
|
### Instruction:
CREATE TABLE table_name_99 (
owner VARCHAR,
post_position VARCHAR,
jockey VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owns the horse with a post position of less than 4 with jockey todd pletcher?
### Response:
|
SELECT owner FROM table_name_99 WHERE post_position < 4 AND jockey = "todd pletcher"
|
### 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.
-- Find the person who has exactly one friend.
### Response:
|
SELECT name FROM personfriend GROUP BY name HAVING COUNT(*) = 1
|
### Instruction:
CREATE TABLE table_name_77 (
date VARCHAR,
country VARCHAR,
format VARCHAR,
label VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date had a CD format, under Columbia/Legacy from the UK?
### Response:
|
SELECT date FROM table_name_77 WHERE format = "cd" AND label = "columbia/legacy" AND country = "uk"
|
### Instruction:
CREATE TABLE table_name_33 (
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Place, when Score is '75-71-72-70=288'?
### Response:
|
SELECT place FROM table_name_33 WHERE score = 75 - 71 - 72 - 70 = 288
|
### Instruction:
CREATE TABLE table_name_78 (
height_in_ft VARCHAR,
years_for_rockets VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Height for Years for Rockets of 2005-06?
### Response:
|
SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06"
|
### Instruction:
CREATE TABLE table_6019 (
"Year" real,
"Artist" text,
"Title" text,
"Genre" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year was cryptogramophon released
### Response:
|
SELECT "Year" FROM table_6019 WHERE "Label" = 'cryptogramophon'
|
### Instruction:
CREATE TABLE table_201_44 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many of the films listed were a television movie ?
### Response:
|
SELECT COUNT(*) FROM table_201_44 WHERE "notes" = 'television movie'
|
### Instruction:
CREATE TABLE table_45815 (
"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 7 as the place?
### Response:
|
SELECT "To par" FROM table_45815 WHERE "Place" = '7'
|
### Instruction:
CREATE TABLE table_name_69 (
rounds VARCHAR,
entrant VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what rounds did Luigi Fagioli drive for Alfa Romeo SPA?
### Response:
|
SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli"
|
### Instruction:
CREATE TABLE table_name_75 (
record VARCHAR,
opponent VARCHAR,
round VARCHAR,
res VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when the loss was to Alex Hunter in round 1?
### Response:
|
SELECT record FROM table_name_75 WHERE round = "1" AND res = "loss" AND opponent = "alex hunter"
|
### Instruction:
CREATE TABLE table_name_75 (
points VARCHAR,
against VARCHAR,
points_diff VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the total number of points for against of 753 and points diff more than -114
### Response:
|
SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114
|
### Instruction:
CREATE TABLE table_name_75 (
event VARCHAR,
alternate VARCHAR,
skip VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event was Sun Yue the alternate and wang bingyu(3rd) the skip?
### Response:
|
SELECT event FROM table_name_75 WHERE alternate = "sun yue" AND skip = "wang bingyu(3rd)"
|
### Instruction:
CREATE TABLE table_22570439_1 (
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many written by have wendey stanzler as the director?
### Response:
|
SELECT COUNT(written_by) FROM table_22570439_1 WHERE directed_by = "Wendey Stanzler"
|
### Instruction:
CREATE TABLE table_1014206_2 (
_number VARCHAR,
commissioned VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the # for ships commissioned on september 30, 1967.
### Response:
|
SELECT _number FROM table_1014206_2 WHERE commissioned = "September 30, 1967"
|
### Instruction:
CREATE TABLE table_name_69 (
team VARCHAR,
rank VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had a rank under 4 with a time of 1:14.04.88?
### Response:
|
SELECT team FROM table_name_69 WHERE rank < 4 AND time = "1:14.04.88"
|
### Instruction:
CREATE TABLE table_1341663_33 (
first_elected INTEGER,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Stephen J. Solarz first elected?
### Response:
|
SELECT MIN(first_elected) FROM table_1341663_33 WHERE incumbent = "Stephen J. Solarz"
|
### Instruction:
CREATE TABLE table_name_41 (
scorers VARCHAR,
venue VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Scorers have a Venue of A, and an Opponent of arsenal?
### Response:
|
SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal"
|
### Instruction:
CREATE TABLE table_name_8 (
screen_size VARCHAR,
bluetooth VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the screen size of the s45 (Australia only) Model with no bluetooth?
### Response:
|
SELECT screen_size FROM table_name_8 WHERE bluetooth = "no" AND model = "s45 (australia only)"
|
### Instruction:
CREATE TABLE table_name_24 (
record VARCHAR,
location VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Record, when Location is 'Boston Garden', and when Date is 'Fri. Nov. 9'?
### Response:
|
SELECT record FROM table_name_24 WHERE location = "boston garden" AND date = "fri. nov. 9"
|
### Instruction:
CREATE TABLE table_name_30 (
pick INTEGER,
name VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest draft pick number for mark doak who had an overall pick smaller than 147?
### Response:
|
SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147
|
### Instruction:
CREATE TABLE table_name_11 (
total_points VARCHAR,
seasons VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for 1984 for the team with 100 points total and more than 3 seasons?
### Response:
|
SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 3
|
### Instruction:
CREATE TABLE table_name_13 (
runs VARCHAR,
opponent VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many runs did they get against new south wales in 2002/03?
### Response:
|
SELECT runs FROM table_name_13 WHERE opponent = "new south wales" AND season = "2002/03"
|
### Instruction:
CREATE TABLE table_15635768_1 (
date_of_issue VARCHAR,
face_value VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the face value is 42 , what was the issue's date?
### Response:
|
SELECT date_of_issue FROM table_15635768_1 WHERE face_value = "42Β’"
|
### Instruction:
CREATE TABLE table_name_76 (
nickname VARCHAR,
years_in_competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nickname in the Competition of 1982-1994?
### Response:
|
SELECT nickname FROM table_name_76 WHERE years_in_competition = "1982-1994"
|
### Instruction:
CREATE TABLE table_11542215_3 (
total VARCHAR,
floor_exercise VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total score when the score for floor exercise was 9.287?
### Response:
|
SELECT total FROM table_11542215_3 WHERE floor_exercise = "9.287"
|
### Instruction:
CREATE TABLE table_name_22 (
published_in VARCHAR,
setting VARCHAR,
publication_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name what was published in july 1934 with a setting of mars
### Response:
|
SELECT published_in FROM table_name_22 WHERE setting = "mars" AND publication_date = "july 1934"
|
### Instruction:
CREATE TABLE table_name_55 (
year VARCHAR,
tyre VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Year has a Tyre of D, and Chassis of Mazda 787?
### Response:
|
SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"
|
### Instruction:
CREATE TABLE table_17102076_5 (
high_points VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the high points for score being l 92 100 (ot)
### Response:
|
SELECT high_points FROM table_17102076_5 WHERE score = "L 92β100 (OT)"
|
### Instruction:
CREATE TABLE table_17467447_1 (
directed_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the product code is 2t6267, who was the director?
### Response:
|
SELECT directed_by FROM table_17467447_1 WHERE production_code = "2T6267"
|
### Instruction:
CREATE TABLE table_name_61 (
losses INTEGER,
team VARCHAR,
draws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of losses for Presidente Hayes, when the draws were more than 4?
### Response:
|
SELECT MAX(losses) FROM table_name_61 WHERE team = "presidente hayes" AND draws > 4
|
### Instruction:
CREATE TABLE table_name_3 (
equestrian_time__pts_ VARCHAR,
athlete VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?
### Response:
|
SELECT equestrian_time__pts_ FROM table_name_3 WHERE athlete = "omnia fakhry ( egy )"
|
### Instruction:
CREATE TABLE table_name_34 (
type VARCHAR,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type when Robert Villemain had a record at 109 1 2?
### Response:
|
SELECT type FROM table_name_34 WHERE opponent = "robert villemain" AND record = "109β1β2"
|
### Instruction:
CREATE TABLE table_name_69 (
party VARCHAR,
result VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party was re-elected as an incumbent of robert p. Kennedy?
### Response:
|
SELECT party FROM table_name_69 WHERE result = "re-elected" AND incumbent = "robert p. kennedy"
|
### Instruction:
CREATE TABLE table_8995 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Ben Hogan's par?
### Response:
|
SELECT "To par" FROM table_8995 WHERE "Player" = 'ben hogan'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.