instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_48 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
### Response:
|
SELECT MAX(1987) FROM table_name_48 WHERE 1995 < 1995 AND 1999 < 9
|
### Instruction:
CREATE TABLE table_15333005_1 (
Ends VARCHAR,
l VARCHAR,
stolen_ends VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number ends won when L is 4 and stolen ends is 17
### Response:
|
SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17
|
### Instruction:
CREATE TABLE table_49658 (
"Team" text,
"Coach" text,
"Home Ground" text,
"Location" text,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the coach for the Adelaide Galaxy team?
### Response:
|
SELECT "Coach" FROM table_49658 WHERE "Team" = 'adelaide galaxy'
|
### Instruction:
CREATE TABLE table_32673 (
"Orchestra" text,
"Conductor" text,
"Record Company" text,
"Year of Recording" real,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record company has robert craft conducting?
### Response:
|
SELECT "Record Company" FROM table_32673 WHERE "Conductor" = 'robert craft'
|
### Instruction:
CREATE TABLE table_24961421_1 (
season__number VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number in the season was the episode with 12.23 million viewers?
### Response:
|
SELECT season__number FROM table_24961421_1 WHERE us_viewers__millions_ = "12.23"
|
### Instruction:
CREATE TABLE table_name_36 (
matches INTEGER,
bonus_pts VARCHAR,
total_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?
### Response:
|
SELECT MIN(matches) FROM table_name_36 WHERE bonus_pts = 19 AND total_points > 421
|
### Instruction:
CREATE TABLE table_19325 (
"Episode no." real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original Air Date (ATV)" text,
"Production no." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest production number?
### Response:
|
SELECT MIN("Production no.") FROM table_19325
|
### Instruction:
CREATE TABLE table_name_74 (
to_par VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What To par has a Place of t10, and a Score of 67-73=140?
### Response:
|
SELECT to_par FROM table_name_74 WHERE place = "t10" AND score = 67 - 73 = 140
|
### Instruction:
CREATE TABLE table_53312 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the report with cuban race
### Response:
|
SELECT "Report" FROM table_53312 WHERE "Name" = 'cuban race'
|
### Instruction:
CREATE TABLE table_name_45 (
years VARCHAR,
soap_opera VARCHAR,
actor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?
### Response:
|
SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli"
|
### Instruction:
CREATE TABLE table_name_5 (
set_2 VARCHAR,
set_3 VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Set 2 has a Set 3 of 25 20, and a Time of 13:45?
### Response:
|
SELECT set_2 FROM table_name_5 WHERE set_3 = "25–20" AND time = "13:45"
|
### Instruction:
CREATE TABLE table_66058 (
"Currency" text,
"Code" text,
"Entry ERM II" text,
"Central rate" text,
"Official target date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of currency has a code of SEK?
### Response:
|
SELECT "Currency" FROM table_66058 WHERE "Code" = 'sek'
|
### Instruction:
CREATE TABLE table_name_46 (
governors_1950 VARCHAR,
general_1950 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Governors 1950 when the General 1950 is general 1979?
### Response:
|
SELECT governors_1950 FROM table_name_46 WHERE general_1950 = "general 1979"
|
### Instruction:
CREATE TABLE table_79465 (
"Event" text,
"Class" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the event when the class is time trial hc a?
### Response:
|
SELECT "Event" FROM table_79465 WHERE "Class" = 'time trial hc a'
|
### Instruction:
CREATE TABLE table_name_24 (
deed_number VARCHAR,
population VARCHAR,
name_of_community VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the deed number with a population of more than 869 in the woorabinda community?
### Response:
|
SELECT deed_number FROM table_name_24 WHERE population > 869 AND name_of_community = "woorabinda"
|
### Instruction:
CREATE TABLE table_79295 (
"Time" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the away team when solon was the home team?
### Response:
|
SELECT "Away team" FROM table_79295 WHERE "Home team" = 'solon'
|
### Instruction:
CREATE TABLE broadcast (
program_id VARCHAR
)
CREATE TABLE program (
name VARCHAR,
program_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the program that is broadcast most frequently.
### Response:
|
SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_10470082_3 (
writer VARCHAR,
us_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many writers had an US air date of september 25, 1993?
### Response:
|
SELECT COUNT(writer) FROM table_10470082_3 WHERE us_air_date = "September 25, 1993"
|
### Instruction:
CREATE TABLE table_14035132_3 (
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes have been directed and written by Darrick Bachman and Brett Varon?
### Response:
|
SELECT COUNT(directed_by) FROM table_14035132_3 WHERE written_by = "Darrick Bachman and Brett Varon"
|
### Instruction:
CREATE TABLE table_name_14 (
club_source_ VARCHAR,
i_ VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Club Source [I ], when Name is 'Andrew McCombie Category:Articles With hCards'?
### Response:
|
SELECT club_source_ AS "i_" FROM table_name_14 WHERE name = "andrew mccombie category:articles with hcards"
|
### Instruction:
CREATE TABLE table_name_38 (
year INTEGER,
result VARCHAR,
nominee_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year when Neal Baer was a nominee, and the result was nominated?
### Response:
|
SELECT MAX(year) FROM table_name_38 WHERE result = "nominated" AND nominee_s_ = "neal baer"
|
### Instruction:
CREATE TABLE table_55845 (
"Animal Name" text,
"Species" text,
"Books" text,
"TV Series" text,
"Gender" text,
"TV Seasons" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which species is male?
### Response:
|
SELECT "Species" FROM table_55845 WHERE "Gender" = 'male'
|
### Instruction:
CREATE TABLE table_name_80 (
total_goals VARCHAR,
total_apps VARCHAR,
league_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total goals have 0 (3) as total apps, with league goals less than 0?
### Response:
|
SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = "0 (3)" AND league_goals < 0
|
### Instruction:
CREATE TABLE table_5412 (
"Number of episode" real,
"Number of season" real,
"Title (original)" text,
"Title (English)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the English title for season 6?
### Response:
|
SELECT "Title (English)" FROM table_5412 WHERE "Number of season" = '6'
|
### Instruction:
CREATE TABLE table_5319 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does alun wyn jones play?
### Response:
|
SELECT "Position" FROM table_5319 WHERE "Player" = 'alun wyn jones'
|
### Instruction:
CREATE TABLE table_name_54 (
hdi_2011 VARCHAR,
di_2011 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the HDI 2011 of the country with a DI 2011 of 7.63?
### Response:
|
SELECT hdi_2011 FROM table_name_54 WHERE di_2011 = "7.63"
|
### Instruction:
CREATE TABLE table_66819 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the qual when the rank was 2?
### Response:
|
SELECT "Qual" FROM table_66819 WHERE "Rank" = '2'
|
### Instruction:
CREATE TABLE table_name_66 (
diameter__km_ VARCHAR,
diameter__mi_ VARCHAR,
gill VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e?
### Response:
|
SELECT diameter__km_ FROM table_name_66 WHERE diameter__mi_ = "8mi" AND gill = "e"
|
### Instruction:
CREATE TABLE table_73837 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least touchdowns for joe rogers
### Response:
|
SELECT MIN("Touchdowns") FROM table_73837 WHERE "Player" = 'Joe Rogers'
|
### Instruction:
CREATE TABLE table_3060 (
"Name of Award" text,
"Name of Film" text,
"Language" text,
"Awardee(s)" text,
"Cash Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the name of award for marathi
### Response:
|
SELECT "Name of Award" FROM table_3060 WHERE "Language" = 'Marathi'
|
### Instruction:
CREATE TABLE table_18335117_5 (
original_air_date VARCHAR,
director VARCHAR,
writer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original air date for barnaby southcomb for charlie martin
### Response:
|
SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin"
|
### Instruction:
CREATE TABLE table_13681_2 (
currency_name VARCHAR,
highest_monthly_inflation_rate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the currency name with highest monthly inflation rate being 29,500%
### Response:
|
SELECT currency_name FROM table_13681_2 WHERE highest_monthly_inflation_rate = "29,500%"
|
### Instruction:
CREATE TABLE table_name_29 (
start INTEGER,
pens VARCHAR,
conv VARCHAR,
tries VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?
### Response:
|
SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 22
|
### Instruction:
CREATE TABLE table_79045 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player won in 1993?
### Response:
|
SELECT "Player" FROM table_79045 WHERE "Year(s) won" = '1993'
|
### Instruction:
CREATE TABLE table_204_686 (
id number,
"date" text,
"pos." text,
"name" text,
"from" text,
"fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the most amount of disclosed money payed for a transfer during this season ?
### Response:
|
SELECT MAX("fee") FROM table_204_686
|
### Instruction:
CREATE TABLE table_name_27 (
percentage VARCHAR,
played VARCHAR,
first_game VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played?
### Response:
|
SELECT percentage FROM table_name_27 WHERE first_game < 1997 AND lost < 2 AND played < 5
|
### Instruction:
CREATE TABLE table_37223 (
"Disaster" text,
"Type" text,
"Location" text,
"Deaths" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the disaster located that took place on 1916?
### Response:
|
SELECT "Location" FROM table_37223 WHERE "Date" = '1916'
|
### Instruction:
CREATE TABLE table_40089 (
"Name" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the pterosaur named Cathayopterus?
### Response:
|
SELECT "Status" FROM table_40089 WHERE "Name" = 'cathayopterus'
|
### Instruction:
CREATE TABLE table_17058 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions did the player from Spring High School play?
### Response:
|
SELECT COUNT("Position") FROM table_17058 WHERE "School" = 'Spring High School'
|
### Instruction:
CREATE TABLE table_37506 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years that have divisions greater than 4?
### Response:
|
SELECT COUNT("Year") FROM table_37506 WHERE "Division" > '4'
|
### Instruction:
CREATE TABLE table_191323_2 (
notes VARCHAR,
nssdc_id_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes of the satellite whose nssdc id number is 1959-002a?
### Response:
|
SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A"
|
### Instruction:
CREATE TABLE table_19068566_1 (
production_code VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there are 3.39 million u.s viewers what is the production code?
### Response:
|
SELECT production_code FROM table_19068566_1 WHERE us_viewers__million_ = "3.39"
|
### Instruction:
CREATE TABLE table_43871 (
"Score" text,
"Batsmen" text,
"Against" text,
"Location" text,
"Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the batsmen at the Brit Oval location?
### Response:
|
SELECT "Batsmen" FROM table_43871 WHERE "Location" = 'the brit oval'
|
### Instruction:
CREATE TABLE table_18443 (
"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 is the earliest year that a candidate was first elected?
### Response:
|
SELECT MIN("First elected") FROM table_18443
|
### Instruction:
CREATE TABLE table_309 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player's hometown was Pewaukee, Wisconsin?
### Response:
|
SELECT "Player" FROM table_309 WHERE "Hometown" = 'Pewaukee, Wisconsin'
|
### Instruction:
CREATE TABLE table_23685890_2 (
towns INTEGER,
land_area__km²_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many towns exist on the government area with a surface of 110 square kilometers?
### Response:
|
SELECT MIN(towns) FROM table_23685890_2 WHERE land_area__km²_ = "110"
|
### Instruction:
CREATE TABLE table_66307 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the year for the game dead space 2?
### Response:
|
SELECT "Year" FROM table_66307 WHERE "Game" = 'dead space 2'
|
### Instruction:
CREATE TABLE table_name_33 (
debut INTEGER,
player VARCHAR,
years_played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the debut when the play er is radoslava topalova and the years played is less than 2?
### Response:
|
SELECT AVG(debut) FROM table_name_33 WHERE player = "radoslava topalova" AND years_played < 2
|
### Instruction:
CREATE TABLE table_name_2 (
venue VARCHAR,
position VARCHAR,
notes VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue had 5000 m notes in 2009 with a 1st position?
### Response:
|
SELECT venue FROM table_name_2 WHERE notes = "5000 m" AND year = 2009 AND position = "1st"
|
### Instruction:
CREATE TABLE table_name_10 (
set_4 VARCHAR,
set_5 VARCHAR,
set_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Set 4, when Set 5 is NA, and when Set 3 is 19-25?
### Response:
|
SELECT set_4 FROM table_name_10 WHERE set_5 = "na" AND set_3 = "19-25"
|
### Instruction:
CREATE TABLE table_name_10 (
championship VARCHAR,
name VARCHAR,
total VARCHAR,
league_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the championship of Jem Karacan that has a total of 2 and a league cup more than 0?
### Response:
|
SELECT championship FROM table_name_10 WHERE total = 2 AND league_cup > 0 AND name = "jem karacan"
|
### Instruction:
CREATE TABLE table_name_4 (
title VARCHAR,
from_album VARCHAR,
label VARCHAR,
Nr VARCHAR,
x VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Title has an album of tough talk, and a Label-Nr of x-371?
### Response:
|
SELECT title FROM table_name_4 WHERE from_album = "tough talk" AND label - Nr = x - 371
|
### Instruction:
CREATE TABLE table_56322 (
"Episode" text,
"Title" text,
"Date of emission" text,
"Audience" text,
"Share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title has a share of 19,9%
### Response:
|
SELECT "Title" FROM table_56322 WHERE "Share" = '19,9%'
|
### Instruction:
CREATE TABLE table_203_618 (
id number,
"pick" number,
"player" text,
"team" text,
"position" text,
"school" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where did carlos pena go to school ?
### Response:
|
SELECT "school" FROM table_203_618 WHERE "player" = 'carlos pena'
|
### Instruction:
CREATE TABLE table_name_90 (
total INTEGER,
bronze VARCHAR,
gold VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of the totals for Russia with more than 1 gold and less than 10 bronze?
### Response:
|
SELECT SUM(total) FROM table_name_90 WHERE gold > 1 AND nation = "russia" AND bronze < 10
|
### Instruction:
CREATE TABLE table_55803 (
"Year" real,
"Record" text,
"Finish" text,
"Manager" text,
"Playoffs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of years for a 39-31 record
### Response:
|
SELECT COUNT("Year") FROM table_55803 WHERE "Record" = '39-31'
|
### Instruction:
CREATE TABLE table_48801 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the manufacturer with a 14 grid?
### Response:
|
SELECT "Manufacturer" FROM table_48801 WHERE "Grid" = '14'
|
### Instruction:
CREATE TABLE table_21109892_1 (
value__int_ INTEGER,
value_world_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the value rank is 23, what is the value?
### Response:
|
SELECT MIN(value__int_) AS $1000_ FROM table_21109892_1 WHERE value_world_rank = "23"
|
### Instruction:
CREATE TABLE table_name_87 (
dates_administered VARCHAR,
lead_margin VARCHAR,
poll_source VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?
### Response:
|
SELECT dates_administered FROM table_name_87 WHERE lead_margin < 5.5 AND poll_source = "survey usa"
|
### Instruction:
CREATE TABLE table_47508 (
"Team A" text,
"Team C" text,
"Team D" text,
"Team E" text,
"Team F" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is team E when Jason Manning is Team F?
### Response:
|
SELECT "Team E" FROM table_47508 WHERE "Team F" = 'jason manning'
|
### Instruction:
CREATE TABLE table_43520 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Alex Tagliani's qual 1?
### Response:
|
SELECT "Qual 1" FROM table_43520 WHERE "Name" = 'alex tagliani'
|
### Instruction:
CREATE TABLE table_43382 (
"Name" text,
"Processor" text,
"Hard Drive" text,
"Ethernet Ports" text,
"Dimensions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dimensions of the u50 appliance?
### Response:
|
SELECT "Dimensions" FROM table_43382 WHERE "Name" = 'u50'
|
### Instruction:
CREATE TABLE table_24575253_4 (
division_three VARCHAR,
division_two VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When westcott 1935 is in division two how many leagues are in division three?
### Response:
|
SELECT COUNT(division_three) FROM table_24575253_4 WHERE division_two = "Westcott 1935"
|
### Instruction:
CREATE TABLE table_name_90 (
mountain_range VARCHAR,
region VARCHAR,
mountain_peak VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the mountain range when the region is british columbia and mountain pea is mount edziza?
### Response:
|
SELECT mountain_range FROM table_name_90 WHERE region = "british columbia" AND mountain_peak = "mount edziza"
|
### Instruction:
CREATE TABLE table_55858 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in the Tournament of Frankfurt?
### Response:
|
SELECT "Score" FROM table_55858 WHERE "Tournament" = 'frankfurt'
|
### Instruction:
CREATE TABLE table_name_86 (
attendance INTEGER,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance of the Mariners' attendance when their record was 62-64?
### Response:
|
SELECT AVG(attendance) FROM table_name_86 WHERE opponent = "mariners" AND record = "62-64"
|
### Instruction:
CREATE TABLE table_2008069_2 (
uyghur___k̢ona_yezik̢__ VARCHAR,
chinese VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the uyghur for
### Response:
|
SELECT uyghur___k̢ona_yezik̢__ FROM table_2008069_2 WHERE chinese = "瓦恰"
|
### Instruction:
CREATE TABLE table_23423_2 (
deaths_per_year VARCHAR,
life_expectancy_females VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many deaths per year have 66.3 as the life expectancy females?
### Response:
|
SELECT deaths_per_year FROM table_23423_2 WHERE life_expectancy_females = "66.3"
|
### Instruction:
CREATE TABLE table_18646432_4 (
title VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode originally aired on September 29, 1999?
### Response:
|
SELECT title FROM table_18646432_4 WHERE original_air_date = "September 29, 1999"
|
### Instruction:
CREATE TABLE table_200_41 (
id number,
"number" text,
"encoding" text,
"implied probability" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the implied probability of 8 = 23 + 0 ?
### Response:
|
SELECT "implied probability" FROM table_200_41 WHERE "number" = '8 = 23 + 0'
|
### Instruction:
CREATE TABLE table_33452 (
"Game" real,
"Date" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for the game played at 3:31?
### Response:
|
SELECT "Attendance" FROM table_33452 WHERE "Time" = '3:31'
|
### Instruction:
CREATE TABLE table_28688313_1 (
written_by VARCHAR,
us_viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode with 7.52 million US viewers?
### Response:
|
SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "7.52"
|
### Instruction:
CREATE TABLE table_64150 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the format for the MHCP-66 Catalog?
### Response:
|
SELECT "Format" FROM table_64150 WHERE "Catalog" = 'mhcp-66'
|
### Instruction:
CREATE TABLE table_name_38 (
goalsfor INTEGER,
season VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Season of 2002 03, and a Lost larger than 14, what is the lowest goals?
### Response:
|
SELECT MIN(goalsfor) FROM table_name_38 WHERE season = "2002–03" AND lost > 14
|
### Instruction:
CREATE TABLE table_59677 (
"Abbr" text,
"Common English" text,
"French" text,
"Italian" text,
"Romansh" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the italian word for Glarus?
### Response:
|
SELECT "Italian" FROM table_59677 WHERE "Common English" = 'glarus'
|
### Instruction:
CREATE TABLE table_43655 (
"Year" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Most wins" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player in 1976?
### Response:
|
SELECT "Player" FROM table_43655 WHERE "Year" = '1976'
|
### Instruction:
CREATE TABLE table_48261 (
"State" text,
"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 Name, when State is 'Jin'?
### Response:
|
SELECT "Name" FROM table_48261 WHERE "State" = 'jin'
|
### Instruction:
CREATE TABLE table_35932 (
"Year" text,
"Model" text,
"Length" text,
"Width" text,
"Fleet Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is fleet number for the year of 19xx?
### Response:
|
SELECT "Fleet Number" FROM table_35932 WHERE "Year" = '19xx'
|
### Instruction:
CREATE TABLE table_name_51 (
rating INTEGER,
night_rank VARCHAR,
timeslot_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rating for the episode with the night rank of 11 and timeslot rank is larger than 4?
### Response:
|
SELECT AVG(rating) FROM table_name_51 WHERE night_rank = "11" AND timeslot_rank > 4
|
### Instruction:
CREATE TABLE table_37083 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round was F picked?
### Response:
|
SELECT "Round" FROM table_37083 WHERE "Position" = 'f'
|
### Instruction:
CREATE TABLE table_34335 (
"Name" text,
"Hanzi" text,
"Origin" text,
"Launch" real,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the origin for the launch taking place in 2010?
### Response:
|
SELECT "Origin" FROM table_34335 WHERE "Launch" = '2010'
|
### Instruction:
CREATE TABLE table_8246 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance of tie no. 23?
### Response:
|
SELECT "Attendance" FROM table_8246 WHERE "Tie no" = '23'
|
### Instruction:
CREATE TABLE instructor (
dept_name VARCHAR,
salary INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the minimum salary for the departments whose average salary is above the average payment of all instructors.
### Response:
|
SELECT MIN(salary), dept_name FROM instructor GROUP BY dept_name HAVING AVG(salary) > (SELECT AVG(salary) FROM instructor)
|
### Instruction:
CREATE TABLE table_8828 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which college had a pick of under 5?
### Response:
|
SELECT "College" FROM table_8828 WHERE "Pick" < '5'
|
### Instruction:
CREATE TABLE table_59196 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what total was the lowest and had a to par of e?
### Response:
|
SELECT MIN("Total") FROM table_59196 WHERE "To par" = 'e'
|
### Instruction:
CREATE TABLE table_17720 (
"Year" real,
"Total Region" real,
"Rockhampton" real,
"Livingstone" real,
"Fitzroy" real,
"Mt Morgan" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum rockhampton
### Response:
|
SELECT MIN("Rockhampton") FROM table_17720
|
### Instruction:
CREATE TABLE table_72041 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the names for the medalist in the sport of canoeing?
### Response:
|
SELECT "Name" FROM table_72041 WHERE "Sport" = 'canoeing'
|
### Instruction:
CREATE TABLE table_204_486 (
id number,
"name" text,
"season(s)" text,
"position(s)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number of left fielders on the list .
### Response:
|
SELECT COUNT(*) FROM table_204_486 WHERE "position(s)" = 'left fielder'
|
### Instruction:
CREATE TABLE table_60182 (
"Week" text,
"Theme" text,
"Song Sung" text,
"Artist" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Song Sung has a Status of Eliminated?
### Response:
|
SELECT "Song Sung" FROM table_60182 WHERE "Status" = 'eliminated'
|
### Instruction:
CREATE TABLE table_46169 (
"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 an Opponent of @ seattle?
### Response:
|
SELECT "Score" FROM table_46169 WHERE "Opponent" = '@ seattle'
|
### Instruction:
CREATE TABLE table_42088 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name with Goals that are 135?
### Response:
|
SELECT "Name" FROM table_42088 WHERE "Goals" = '135'
|
### Instruction:
CREATE TABLE table_66085 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the branding for cbxp-fm?
### Response:
|
SELECT "Branding" FROM table_66085 WHERE "Call sign" = 'cbxp-fm'
|
### Instruction:
CREATE TABLE table_43085 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the most laps when grid is 16?
### Response:
|
SELECT MAX("Laps") FROM table_43085 WHERE "Grid" = '16'
|
### Instruction:
CREATE TABLE table_68892 (
"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 with record of 14-19
### Response:
|
SELECT "Loss" FROM table_68892 WHERE "Record" = '14-19'
|
### Instruction:
CREATE TABLE table_34983 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has Weerawila Airport?
### Response:
|
SELECT "Country" FROM table_34983 WHERE "Airport" = 'weerawila airport'
|
### Instruction:
CREATE TABLE table_name_87 (
country VARCHAR,
domestic_tournament VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country's team is Rajasthan Royals at the 2008 Indian Premier League?
### Response:
|
SELECT country FROM table_name_87 WHERE domestic_tournament = "2008 indian premier league" AND team = "rajasthan royals"
|
### Instruction:
CREATE TABLE table_3232 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number if the player is Gary Kubiak?
### Response:
|
SELECT "Pick #" FROM table_3232 WHERE "Player" = 'Gary Kubiak'
|
### Instruction:
CREATE TABLE table_48777 (
"Title" text,
"Season" real,
"Director" text,
"Teleplay" text,
"First Broadcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Director, when Season is 1.4?
### Response:
|
SELECT "Director" FROM table_48777 WHERE "Season" = '1.4'
|
### Instruction:
CREATE TABLE table_25926120_7 (
awardee_s_ VARCHAR,
name_of_award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who are the awardees when the name of award is best agricultural film?
### Response:
|
SELECT awardee_s_ FROM table_25926120_7 WHERE name_of_award = "Best Agricultural Film"
|
### Instruction:
CREATE TABLE table_name_64 (
round INTEGER,
event VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest round number at the UFC 16 event with a record of 19-1-1?
### Response:
|
SELECT MIN(round) FROM table_name_64 WHERE event = "ufc 16" AND record = "19-1-1"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.