instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
|---|---|
### Instruction:
CREATE TABLE table_name_91 (
losses VARCHAR,
percentage VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Losses when the percentage is 54.83, with more than 8 points?
### Response:
|
SELECT COUNT(losses) FROM table_name_91 WHERE percentage = 54.83 AND points > 8
|
### Instruction:
CREATE TABLE table_19312274_3 (
championship_titles VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many championship titles for LRS Formula / Laurent R don Motorsport?
### Response:
|
SELECT championship_titles FROM table_19312274_3 WHERE name = "LRS Formula / Laurent Rédon Motorsport"
|
### Instruction:
CREATE TABLE table_name_10 (
original_title VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original title of the film for which Dersu Uzala was nominated?
### Response:
|
SELECT original_title FROM table_name_10 WHERE film_title_used_in_nomination = "dersu uzala"
|
### Instruction:
CREATE TABLE table_name_69 (
peroutka INTEGER,
others VARCHAR,
electors VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Peroutka with 46 others, and less than 15 electors?
### Response:
|
SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15
|
### Instruction:
CREATE TABLE table_26202788_7 (
score_in_the_final VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the championship Miami , United States, what is the score in the final?
### Response:
|
SELECT score_in_the_final FROM table_26202788_7 WHERE championship = "Miami , United States"
|
### Instruction:
CREATE TABLE table_name_34 (
band VARCHAR,
frequency VARCHAR,
area_served VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Band has a Frequency of 0 99.7 in the Area of Newcastle?
### Response:
|
SELECT band FROM table_name_34 WHERE frequency = "0 99.7" AND area_served = "newcastle"
|
### Instruction:
CREATE TABLE table_26282750_1 (
film_festival VARCHAR,
participants_recipients VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Film Festival had participants/recipients of Isao Tomita?
### Response:
|
SELECT film_festival FROM table_26282750_1 WHERE participants_recipients = "Isao Tomita"
|
### Instruction:
CREATE TABLE table_19651669_1 (
final_venue VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many final venues were there in the 1997-98 season?
### Response:
|
SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = "1997-98"
|
### Instruction:
CREATE TABLE table_28540428_3 (
event_3_deadlift VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the event 3 deadlift for hennie jordan
### Response:
|
SELECT event_3_deadlift FROM table_28540428_3 WHERE name = "Hennie Jordan"
|
### Instruction:
CREATE TABLE table_name_50 (
rank VARCHAR,
year VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the reynard 2ki chassis before 2002?
### Response:
|
SELECT rank FROM table_name_50 WHERE year < 2002 AND chassis = "reynard 2ki"
|
### Instruction:
CREATE TABLE table_name_48 (
notes VARCHAR,
rank VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes for the person ranked larger than 2, and a time of 1:48.179?
### Response:
|
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "1:48.179"
|
### Instruction:
CREATE TABLE table_13845918_3 (
womens_doubles VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of women's doubles for 1986
### Response:
|
SELECT COUNT(womens_doubles) FROM table_13845918_3 WHERE year = "1986"
|
### Instruction:
CREATE TABLE table_27782699_3 (
date_of_vacancy VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the vacancy date for Thomas Thomasberg?
### Response:
|
SELECT date_of_vacancy FROM table_27782699_3 WHERE outgoing_manager = "Thomas Thomasberg"
|
### Instruction:
CREATE TABLE table_27614571_1 (
song_choice VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Barreto's song choice where the original artist was Patricia Marx?
### Response:
|
SELECT song_choice FROM table_27614571_1 WHERE original_artist = "Patricia Marx"
|
### Instruction:
CREATE TABLE table_204_655 (
id number,
"year" number,
"winner" text,
"album" text,
"other finalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did scribe win ?
### Response:
|
SELECT COUNT(*) FROM table_204_655 WHERE "winner" = 'scribe'
|
### Instruction:
CREATE TABLE table_256286_39 (
passed VARCHAR,
_percentage_yes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ballot measures had a percentage yes of 52.11%?
### Response:
|
SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = "52.11%"
|
### Instruction:
CREATE TABLE table_name_63 (
year INTEGER,
team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?
### Response:
|
SELECT MAX(year) FROM table_name_63 WHERE team = "north melbourne" AND player = "hamish mcintosh"
|
### Instruction:
CREATE TABLE table_name_99 (
pick__number INTEGER,
overall VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pick number of a defensive back with less than 136 overall points?
### Response:
|
SELECT MAX(pick__number) FROM table_name_99 WHERE overall < 136 AND position = "defensive back"
|
### Instruction:
CREATE TABLE table_name_68 (
laps INTEGER,
team VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are panoz motor sports' lowest number of laps before 2002?
### Response:
|
SELECT MIN(laps) FROM table_name_68 WHERE team = "panoz motor sports" AND year < 2002
|
### Instruction:
CREATE TABLE table_name_36 (
name VARCHAR,
launch VARCHAR,
hanzi VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which company launched in 1996 and has a Hanzi of ?
### Response:
|
SELECT name FROM table_name_36 WHERE launch = "1996" AND hanzi = "凤凰卫视中文台"
|
### Instruction:
CREATE TABLE table_19359427_6 (
date_of_vacancy VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the old manager vacate his position in Plymouth Argyle?
### Response:
|
SELECT date_of_vacancy FROM table_19359427_6 WHERE team = "Plymouth Argyle"
|
### Instruction:
CREATE TABLE table_203_485 (
id number,
"year" text,
"show" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the shows with at most 1 cameo
### Response:
|
SELECT "show" FROM table_203_485 WHERE "notes" = 'cameo'
|
### Instruction:
CREATE TABLE table_name_2 (
proximity VARCHAR,
honor VARCHAR,
singular VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Proximity, when Honor is P, and when Singular is r (his/her/its)?
### Response:
|
SELECT proximity FROM table_name_2 WHERE honor = "p" AND singular = "ẽr (his/her/its)"
|
### Instruction:
CREATE TABLE table_name_81 (
nationality VARCHAR,
heat VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the nationality when the heat is less than 3 and the time is 2:35.31?
### Response:
|
SELECT nationality FROM table_name_81 WHERE heat < 3 AND time = "2:35.31"
|
### Instruction:
CREATE TABLE table_29545336_2 (
title VARCHAR,
featured_character_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode that featured Abbud Siddiqui?
### Response:
|
SELECT title FROM table_29545336_2 WHERE featured_character_s_ = "Abbud Siddiqui"
|
### Instruction:
CREATE TABLE table_2454589_1 (
last_title VARCHAR,
first_season_in_current_spell VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the last title for 2012
### Response:
|
SELECT last_title FROM table_2454589_1 WHERE first_season_in_current_spell = 2012
|
### Instruction:
CREATE TABLE table_1242447_1 (
strongs__number VARCHAR,
english_spelling VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the strongs # of the english spelling word jehojakin?
### Response:
|
SELECT strongs__number FROM table_1242447_1 WHERE english_spelling = "Jehojakin"
|
### Instruction:
CREATE TABLE table_15430606_1 (
no_disc INTEGER,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the maximum number of disc for bill gereghty
### Response:
|
SELECT MAX(no_disc) FROM table_15430606_1 WHERE directed_by = "Bill Gereghty"
|
### Instruction:
CREATE TABLE table_name_75 (
pages INTEGER,
isbn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many pages associated with isbn 91-7713-035-9?
### Response:
|
SELECT SUM(pages) FROM table_name_75 WHERE isbn = "isbn 91-7713-035-9"
|
### Instruction:
CREATE TABLE table_2701625_1 (
female_life_expectancy INTEGER,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most female life expectancy for djibouti
### Response:
|
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE country = "Djibouti"
|
### Instruction:
CREATE TABLE table_26336060_19 (
coinage_metal VARCHAR,
km_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the coinage metal for a KM number of S75?
### Response:
|
SELECT coinage_metal FROM table_26336060_19 WHERE km_number = "S75"
|
### Instruction:
CREATE TABLE table_name_65 (
res VARCHAR,
method VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the resolution for the fight against tom bolger by submission (guillotine choke)?
### Response:
|
SELECT res FROM table_name_65 WHERE method = "submission (guillotine choke)" AND opponent = "tom bolger"
|
### Instruction:
CREATE TABLE table_79202 (
"Country" text,
"Event" text,
"Time" text,
"Date" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Place of the half marathon Event?
### Response:
|
SELECT "Place" FROM table_79202 WHERE "Event" = 'half marathon'
|
### Instruction:
CREATE TABLE table_1637041_2 (
winnings VARCHAR,
avg_finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did he have an average finish of 29.2?
### Response:
|
SELECT COUNT(winnings) FROM table_1637041_2 WHERE avg_finish = "29.2"
|
### Instruction:
CREATE TABLE table_name_88 (
played INTEGER,
losses VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Played, when Losses is '13', and when Position is greater than 11?
### Response:
|
SELECT SUM(played) FROM table_name_88 WHERE losses = 13 AND position > 11
|
### Instruction:
CREATE TABLE table_1341453_22 (
candidates VARCHAR,
party VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the candidates in district Maryland 1 where the republican party won.
### Response:
|
SELECT candidates FROM table_1341453_22 WHERE party = "Republican" AND district = "Maryland 1"
|
### Instruction:
CREATE TABLE table_1439096_1 (
original_air_date__atv_ VARCHAR,
episode_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original air date (atv) of episode 1?
### Response:
|
SELECT original_air_date__atv_ FROM table_1439096_1 WHERE episode_no = 1
|
### Instruction:
CREATE TABLE table_name_29 (
played VARCHAR,
goal_difference VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played number had a goal difference of more than 0 when the club was Valencia CF?
### Response:
|
SELECT COUNT(played) FROM table_name_29 WHERE goal_difference > 0 AND club = "valencia cf"
|
### Instruction:
CREATE TABLE table_name_30 (
notes VARCHAR,
language VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the note section for the role with a language of hindi and a title of miley naa miley hum?
### Response:
|
SELECT notes FROM table_name_30 WHERE language = "hindi" AND title = "miley naa miley hum"
|
### Instruction:
CREATE TABLE table_name_83 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?
### Response:
|
SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 4
|
### Instruction:
CREATE TABLE table_45873 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region has Stanford University as host?
### Response:
|
SELECT "Region" FROM table_45873 WHERE "Host" = 'stanford university'
|
### Instruction:
CREATE TABLE table_name_37 (
played VARCHAR,
losing_bonus VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the played with losing bonus of 3 and points against of 426
### Response:
|
SELECT played FROM table_name_37 WHERE losing_bonus = "3" AND points_against = "426"
|
### Instruction:
CREATE TABLE table_name_94 (
earnings___ VARCHAR,
events VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of earnings for golfers who have 28 events and more than 2 wins?
### Response:
|
SELECT COUNT(earnings___) AS $__ FROM table_name_94 WHERE events = 28 AND wins > 2
|
### Instruction:
CREATE TABLE table_name_69 (
sacks VARCHAR,
solo VARCHAR,
ttkl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sacks have 72 as the solo and a TTkl less than 112?
### Response:
|
SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112
|
### Instruction:
CREATE TABLE table_name_88 (
pole INTEGER,
class VARCHAR,
wchmp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pole for class 125 cc and a WChmp more than 1?
### Response:
|
SELECT MAX(pole) FROM table_name_88 WHERE class = "125 cc" AND wchmp > 1
|
### Instruction:
CREATE TABLE table_29026564_10 (
score VARCHAR,
surface VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the 250 series on clay what were the scores?
### Response:
|
SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series"
|
### Instruction:
CREATE TABLE table_10023387_1 (
years_played VARCHAR,
singles_w_l VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the years played with singles w-l of 3 2
### Response:
|
SELECT years_played FROM table_10023387_1 WHERE singles_w_l = "3–2"
|
### Instruction:
CREATE TABLE table_name_88 (
second_party VARCHAR,
first_party VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the second party where the first party is Tory and the year is 1820?
### Response:
|
SELECT second_party FROM table_name_88 WHERE first_party = "tory" AND year = 1820
|
### Instruction:
CREATE TABLE table_name_84 (
number_range VARCHAR,
builder VARCHAR,
introduced VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number range for the Gloucester RCW builder introduced in 1937?
### Response:
|
SELECT number_range FROM table_name_84 WHERE builder = "gloucester rcw" AND introduced = "1937"
|
### Instruction:
CREATE TABLE table_17782308_1 (
game_site VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On October 16, 1966, what was the game site?
### Response:
|
SELECT game_site FROM table_17782308_1 WHERE date = "October 16, 1966"
|
### Instruction:
CREATE TABLE table_1357052_6 (
software_executable_space_protection VARCHAR,
distribution VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the software executable space protection with dbeingtribution being gentoo
### Response:
|
SELECT software_executable_space_protection FROM table_1357052_6 WHERE distribution = "Gentoo"
|
### Instruction:
CREATE TABLE table_name_85 (
tujunga VARCHAR,
la_crescenta__montrose VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When La Crescenta-Montrose has 66%, what is Tujunga?
### Response:
|
SELECT tujunga FROM table_name_85 WHERE la_crescenta__montrose = "66%"
|
### Instruction:
CREATE TABLE table_25816476_2 (
air_date VARCHAR,
team_guest_captain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the air date when the team guest captain was john bishop?
### Response:
|
SELECT air_date FROM table_25816476_2 WHERE team_guest_captain = "John Bishop"
|
### Instruction:
CREATE TABLE table_221315_3 (
max_mach VARCHAR,
max_speed__mph_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the max mach when the maximum speed was 3887?
### Response:
|
SELECT max_mach FROM table_221315_3 WHERE max_speed__mph_ = 3887
|
### Instruction:
CREATE TABLE table_name_15 (
school_club_team VARCHAR,
round VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School/Club Team has a Round larger than 3, and a Player of sammy okpro?
### Response:
|
SELECT school_club_team FROM table_name_15 WHERE round > 3 AND player = "sammy okpro"
|
### Instruction:
CREATE TABLE table_59857 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place is Corey Pavin in?
### Response:
|
SELECT "Place" FROM table_59857 WHERE "Player" = 'corey pavin'
|
### Instruction:
CREATE TABLE table_name_40 (
height_feet___m VARCHAR,
street_address VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?
### Response:
|
SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue"
|
### Instruction:
CREATE TABLE table_21436373_12 (
stadium VARCHAR,
date_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was sun 09/12/93 record made
### Response:
|
SELECT stadium FROM table_21436373_12 WHERE date_year = "Sun 09/12/93"
|
### Instruction:
CREATE TABLE table_name_93 (
away_team VARCHAR,
tie_no VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Away has a Tie no of replay, and a Score of 2 0?
### Response:
|
SELECT away_team FROM table_name_93 WHERE tie_no = "replay" AND score = "2–0"
|
### Instruction:
CREATE TABLE table_1610301_1 (
population__2011_ VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2011 population of the district of East Godavari?
### Response:
|
SELECT population__2011_ FROM table_1610301_1 WHERE district = "East Godavari"
|
### Instruction:
CREATE TABLE table_10706879_3 (
rd INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The race tony bettenhausen 200 has what smallest rd?
### Response:
|
SELECT MIN(rd) FROM table_10706879_3 WHERE name = "Tony Bettenhausen 200"
|
### Instruction:
CREATE TABLE table_38898 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Catalog number of the CD Single?
### Response:
|
SELECT "Catalog" FROM table_38898 WHERE "Format" = 'cd single'
|
### Instruction:
CREATE TABLE table_49361 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of ahaziah?
### Response:
|
SELECT "Title" FROM table_49361 WHERE "Name" = 'ahaziah'
|
### Instruction:
CREATE TABLE table_name_73 (
specific_orbital_energy VARCHAR,
orbital_period VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Orbital period of 89 to 128 min has what specific orbital energy?
### Response:
|
SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min"
|
### Instruction:
CREATE TABLE table_name_26 (
countries_visited VARCHAR,
episode_no VARCHAR,
writer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?
### Response:
|
SELECT countries_visited FROM table_name_26 WHERE episode_no < 7 AND writer = "ray gosling"
|
### Instruction:
CREATE TABLE table_204_524 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the top place the team achieved ?
### Response:
|
SELECT "place" FROM table_204_524 ORDER BY "place" LIMIT 1
|
### Instruction:
CREATE TABLE table_25538763_1 (
wins VARCHAR,
team VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins did Prema Powerteam won with 240 points?
### Response:
|
SELECT wins FROM table_25538763_1 WHERE team = "Prema Powerteam" AND points = "240"
|
### Instruction:
CREATE TABLE table_48132 (
"Event" text,
"Year" real,
"Category" text,
"Work" text,
"Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had the supernova award?
### Response:
|
SELECT "Year" FROM table_48132 WHERE "Category" = 'supernova award'
|
### Instruction:
CREATE TABLE table_24279 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number any of the players were picked at?
### Response:
|
SELECT MAX("Pick #") FROM table_24279
|
### Instruction:
CREATE TABLE table_name_51 (
event VARCHAR,
nation VARCHAR,
performance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the event that had a performance of 14:11.15 by Ethiopia?
### Response:
|
SELECT event FROM table_name_51 WHERE nation = "ethiopia" AND performance = "14:11.15"
|
### Instruction:
CREATE TABLE table_64412 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is ranked number 4?
### Response:
|
SELECT "Country" FROM table_64412 WHERE "Rank" = '4'
|
### Instruction:
CREATE TABLE table_name_75 (
bronze INTEGER,
country VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bronze has a Country of malaysia, and a Total smaller than 2644?
### Response:
|
SELECT SUM(bronze) FROM table_name_75 WHERE country = "malaysia" AND total < 2644
|
### Instruction:
CREATE TABLE table_51568 (
"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 a 9 grid total?
### Response:
|
SELECT "Driver" FROM table_51568 WHERE "Grid" = '9'
|
### Instruction:
CREATE TABLE table_10875694_11 (
publisher VARCHAR,
product_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What publishers were involved with product number SCUS-97265?
### Response:
|
SELECT publisher FROM table_10875694_11 WHERE product_no = "SCUS-97265"
|
### Instruction:
CREATE TABLE table_name_25 (
round INTEGER,
college VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round is the highest one that has a College of arizona, and an Overall larger than 120?
### Response:
|
SELECT MAX(round) FROM table_name_25 WHERE college = "arizona" AND overall > 120
|
### Instruction:
CREATE TABLE table_name_71 (
position VARCHAR,
year VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did he finish after 1998 and a note time of 2:31:40?
### Response:
|
SELECT position FROM table_name_71 WHERE year > 1998 AND notes = "2:31:40"
|
### Instruction:
CREATE TABLE table_name_71 (
date VARCHAR,
home VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date is the Detroit Falcons the Home team in a game with a Score of 63 66?
### Response:
|
SELECT date FROM table_name_71 WHERE home = "detroit falcons" AND score = "63–66"
|
### Instruction:
CREATE TABLE table_name_23 (
overall INTEGER,
player VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Overall, when Player is 'Dan Jennings', and when Round is greater than 9?
### Response:
|
SELECT MIN(overall) FROM table_name_23 WHERE player = "dan jennings" AND round > 9
|
### Instruction:
CREATE TABLE table_name_3 (
year INTEGER,
surface VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?
### Response:
|
SELECT MIN(year) FROM table_name_3 WHERE surface = "hard" AND opponent = "dinara safina"
|
### Instruction:
CREATE TABLE table_name_8 (
overall INTEGER,
round VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average value of Overall, when Round is greater than 11, and when Pick is greater than 10?
### Response:
|
SELECT AVG(overall) FROM table_name_8 WHERE round > 11 AND pick > 10
|
### Instruction:
CREATE TABLE Circulation_History (
document_id VARCHAR,
employee_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.
### Response:
|
SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_id
|
### Instruction:
CREATE TABLE table_name_45 (
name VARCHAR,
length VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the Special Stage with a 2.40km length and S. Loeb as Winner?
### Response:
|
SELECT name FROM table_name_45 WHERE length = "2.40km" AND winner = "s. loeb"
|
### Instruction:
CREATE TABLE table_49559 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Jim Furyk place?
### Response:
|
SELECT "Place" FROM table_49559 WHERE "Player" = 'jim furyk'
|
### Instruction:
CREATE TABLE table_21025437_5 (
written_by VARCHAR,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode that had 8.84 million viewers?
### Response:
|
SELECT written_by FROM table_21025437_5 WHERE viewers__millions_ = "8.84"
|
### Instruction:
CREATE TABLE table_name_79 (
lane INTEGER,
nationality VARCHAR,
react VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average lane for Kenya with react larger than 0.212?
### Response:
|
SELECT AVG(lane) FROM table_name_79 WHERE nationality = "kenya" AND react > 0.212
|
### Instruction:
CREATE TABLE table_name_16 (
date VARCHAR,
week VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?
### Response:
|
SELECT date FROM table_name_16 WHERE week < 13 AND opponent = "green bay packers"
|
### Instruction:
CREATE TABLE table_1942366_9 (
low VARCHAR,
high VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the C_{low} value when C_{high} is 12.0?
### Response:
|
SELECT STRUCT(low) FROM table_1942366_9 WHERE STRUCT(high) = "12.0"
|
### Instruction:
CREATE TABLE table_17968233_2 (
aggregate VARCHAR,
home__2nd_leg_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the second leg is Instituto, what is the total number of aggregate?
### Response:
|
SELECT COUNT(aggregate) FROM table_17968233_2 WHERE home__2nd_leg_ = "Instituto"
|
### Instruction:
CREATE TABLE table_name_39 (
pos VARCHAR,
race VARCHAR,
co_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did Co-driver Jackie Oliver finish in the 24 hours of Le Mans?
### Response:
|
SELECT pos FROM table_name_39 WHERE race = "24 hours of le mans" AND co_driver = "jackie oliver"
|
### Instruction:
CREATE TABLE table_name_45 (
time VARCHAR,
lane VARCHAR,
heat VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Hungary's time with a heat higher than 2 and two lanes?
### Response:
|
SELECT time FROM table_name_45 WHERE heat > 2 AND nationality = "hungary" AND lane = 2
|
### Instruction:
CREATE TABLE table_name_47 (
against INTEGER,
wins VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Against, when Wins is greater than 2, and when Matches is less than 17?
### Response:
|
SELECT MAX(against) FROM table_name_47 WHERE wins > 2 AND matches < 17
|
### Instruction:
CREATE TABLE table_15929156_3 (
county VARCHAR,
obama_votes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of counties for obama votes for 49558
### Response:
|
SELECT COUNT(county) FROM table_15929156_3 WHERE obama_votes = 49558
|
### Instruction:
CREATE TABLE table_27155243_3 (
total__number VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different episode numbers are there for the episodes directed by Sheri Elwood?
### Response:
|
SELECT COUNT(total__number) FROM table_27155243_3 WHERE directed_by = "Sheri Elwood"
|
### Instruction:
CREATE TABLE table_name_50 (
round INTEGER,
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson?
### Response:
|
SELECT MIN(round) FROM table_name_50 WHERE position = "linebacker" AND player = "thomas henderson"
|
### Instruction:
CREATE TABLE table_name_54 (
date VARCHAR,
week VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?
### Response:
|
SELECT date FROM table_name_54 WHERE week > 4 AND opponent = "new york giants"
|
### Instruction:
CREATE TABLE table_16732659_2 (
rnd INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ON JUNE 11, WHAT WAS THE NUMBER OF RNDS ?
### Response:
|
SELECT MIN(rnd) FROM table_16732659_2 WHERE date = "June 11"
|
### Instruction:
CREATE TABLE table_name_68 (
year INTEGER,
position VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?
### Response:
|
SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games"
|
### Instruction:
CREATE TABLE table_name_37 (
satu_mare INTEGER,
baia_mare INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest Satu Mare value associated with Baia Mare over 523?
### Response:
|
SELECT MIN(satu_mare) FROM table_name_37 WHERE baia_mare > 523
|
### Instruction:
CREATE TABLE table_name_3 (
year VARCHAR,
runner_up VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has John Davies as the runner-up, with warren humphreys as the winner?
### Response:
|
SELECT year FROM table_name_3 WHERE runner_up = "john davies" AND winner = "warren humphreys"
|
### Instruction:
CREATE TABLE table_1137142_1 (
group_a_winner VARCHAR,
group_c_winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the group a winner for vis pesaro?
### Response:
|
SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.