instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_24479 (
"Season" text,
"Mens 1st XI" text,
"Mens 2nd XI" text,
"Mens 3rd XI" text,
"Ladies 1st XI" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 10th, south west district 1 is the mens 2nd xi what is the lad... | SELECT "Ladies 1st XI" FROM table_24479 WHERE "Mens 2nd XI" = '10th, South West District 1' |
### Instruction:
CREATE TABLE table_42765 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
### Response:
| SELECT "Venue" FROM table_42765 WHERE "Date" = '23,24,26,27,28,29 feb, 1 mar 1912' |
### Instruction:
CREATE TABLE table_24791 (
"Pilot" text,
"Organization" text,
"Total Flights" real,
"USAF space flights" real,
"FAI space flights" real,
"Max Mach" text,
"Max speed (mph)" real,
"Max altitude (miles)" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Pilot" FROM table_24791 WHERE "Max altitude (miles)" = '55.9' |
### Instruction:
CREATE TABLE table_11039 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest regio... | SELECT MAX("Region") FROM table_11039 WHERE "Name" = 'saint-flavien' AND "Area (km 2 )" > '67.56' |
### Instruction:
CREATE TABLE table_45852 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when To Par is greater than 6, and when Year(s) W... | SELECT "Player" FROM table_45852 WHERE "To par" > '6' AND "Year(s) won" = '1962 , 1967' |
### Instruction:
CREATE TABLE table_204_220 (
id number,
"entered" text,
"weeks in\ntop 10" number,
"single" text,
"artist" text,
"peak" number,
"peak\nreached" text,
"weeks\nat peak" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- whic... | SELECT "artist" FROM table_204_220 WHERE "entered" = '2 january 1994' |
### Instruction:
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join... | SELECT Name, Age FROM artist ORDER BY Name |
### Instruction:
CREATE TABLE table_name_24 (
max_height__ft_ INTEGER,
time_to_ft__m__at_25°__seconds_ VARCHAR,
shell__lb_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average maximum height of the shell smaller than 12.5 lb that reached it... | SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25°__seconds_ = "10.1" AND shell__lb_ < 12.5 |
### Instruction:
CREATE TABLE table_203_121 (
id number,
"name" text,
"pos." text,
"caps" number,
"goals" number,
"club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- played on the same team as rune killing emanuelsson
### Response:
| SELECT "name" FROM table_203_121 WHERE "name" <> 'rune "killing" emanuelsson' AND "club" = (SELECT "club" FROM table_203_121 WHERE "name" = 'rune "killing" emanuelsson') |
### Instruction:
CREATE TABLE table_48442 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponents have a Partnering of alessandro motti, and a ... | SELECT "Opponents" FROM table_48442 WHERE "Partnering" = 'alessandro motti' AND "Date" = '12 september 2005' |
### Instruction:
CREATE TABLE table_204_822 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which nation won the same number of gold medals ... | SELECT "nation" FROM table_204_822 WHERE "nation" <> 'hungary' AND "gold" = (SELECT "gold" FROM table_204_822 WHERE "nation" = 'hungary') |
### Instruction:
CREATE TABLE table_12875 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SUB-PARISH WITH A YEAR AFTE... | SELECT "Sub-Parish (Sogn)" FROM table_12875 WHERE "Year Built" > '1916' AND "Location of the Church" = 'ortnevik' |
### Instruction:
CREATE TABLE table_name_19 (
the_prize VARCHAR,
launch_date VARCHAR,
tv_channel VARCHAR,
the_presenter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the prize when the show was aired on Ant1, was presented by Andreas Mikrou... | SELECT the_prize FROM table_name_19 WHERE tv_channel = "ant1" AND the_presenter = "andreas mikroutsikos" AND launch_date = "march 10, 2003" |
### Instruction:
CREATE TABLE table_58285 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the nation of poland had less than 17 medals but more than 1 gold meda... | SELECT MAX("Bronze") FROM table_58285 WHERE "Total" < '17' AND "Nation" = 'poland' AND "Gold" > '1' |
### Instruction:
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
-- Using valid SQLite, answer the following quest... | SELECT Investor, COUNT(Investor) FROM entrepreneur GROUP BY Investor ORDER BY Investor |
### Instruction:
CREATE TABLE table_42005 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Liberal ticket" text,
"Conservative ticket" text,
"Socialist Workers ticket" text,
"Socialist Labor ticket" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Socialist Workers ticket" FROM table_42005 WHERE "Republican ticket" = 'john p. lomenzo' |
### Instruction:
CREATE TABLE table_name_23 (
date_and_time___utc__ VARCHAR,
site VARCHAR,
rocket VARCHAR,
orbit VARCHAR,
function VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date and time has a sub-orbital of orbit, a function of aeronom... | SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat" |
### Instruction:
CREATE TABLE table_28850 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the incumbent for robert monell (j) 63.6% tilly ly... | SELECT "Incumbent" FROM table_28850 WHERE "Candidates" = 'Robert Monell (J) 63.6% Tilly Lynde 36.4%' |
### Instruction:
CREATE TABLE table_13152 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dissolved date of the parliament assembled on 16 January 1621 ... | SELECT "Dissolved" FROM table_13152 WHERE "2nd member" = 'richard taylor' AND "Assembled" = '16 january 1621' |
### Instruction:
CREATE TABLE table_36240 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 2000" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position in 2000 has a Capacity larger than 10,080, and a Venue of centr... | SELECT "Position in 2000" FROM table_36240 WHERE "Capacity" > '10,080' AND "Venue" = 'central, rechytsa' |
### Instruction:
CREATE TABLE table_name_79 (
total_population__1000_ INTEGER,
country VARCHAR,
born_in_a_non_eu_state__1000_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest Total population (1000) from Sweden and born in a non EU sta... | SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = "sweden" AND born_in_a_non_eu_state__1000_ < 859 |
### Instruction:
CREATE TABLE table_27389 (
"Language" text,
"Quillacollo Municipality" real,
"Sipe Sipe Municipality" real,
"Tiquipaya Municipality" real,
"Vinto Municipality" real,
"Colcapirhua Municipality" real
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT MIN("Vinto Municipality") FROM table_27389 WHERE "Quillacollo Municipality" = '93131' |
### Instruction:
CREATE TABLE table_204_384 (
id number,
"#" number,
"air date" text,
"timeslot (est)" text,
"season" text,
"rating" number,
"share" number,
"18-49 (rating/share)" text,
"viewers (m)" number,
"weekly rank (#)" number
)
-- Using valid SQLite, answer the following... | SELECT COUNT(*) FROM table_204_384 WHERE "viewers (m)" >= 10 |
### Instruction:
CREATE TABLE table_36127 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest December against the Pittsburgh Penguins in a game... | SELECT MAX("December") FROM table_36127 WHERE "Game" > '27' AND "Opponent" = 'pittsburgh penguins' AND "Points" < '41' |
### Instruction:
CREATE TABLE table_11916083_1 (
mintage__bu_ VARCHAR,
_clarification_needed_ VARCHAR,
artist VARCHAR,
issue_price__proof_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mintage (bu) with the artist Royal Canadian Mint Sta... | SELECT mintage__bu_ AS "_clarification_needed_" FROM table_11916083_1 WHERE artist = "Royal Canadian Mint Staff" AND issue_price__proof_ = "$54.95" |
### Instruction:
CREATE TABLE table_13863 (
"Competition" text,
"Total" real,
"Al Ahly wins" real,
"Draws" real,
"El Zamalek wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of draws for El Zamalek wins under 36, total over 2, an... | SELECT SUM("Draws") FROM table_13863 WHERE "El Zamalek wins" < '36' AND "Total" > '2' AND "Al Ahly wins" > '37' |
### Instruction:
CREATE TABLE table_11656 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the origin... | SELECT "Original air date" FROM table_11656 WHERE "Series #" > '78' AND "Written by" = 'jenee v. giles' |
### Instruction:
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
-- Using valid SQ... | SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue ORDER BY Venue |
### Instruction:
CREATE TABLE table_3273 (
"Form (to sing)" text,
"Latin" text,
"Nuorese Sardinian" text,
"Spanish" text,
"Brazilian Portuguese" text,
"Central Catalan" text,
"Romanian" text,
"French" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Romanian" FROM table_3273 WHERE "Nuorese Sardinian" = '[ˈkantata]' |
### Instruction:
CREATE TABLE table_74218 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_74218 WHERE "Location Attendance" = 'Seattle Center Coliseum 12,126' |
### Instruction:
CREATE TABLE table_203_535 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which countries had the same number of gold meda... | SELECT "nation" FROM table_203_535 WHERE "nation" <> 'belarus' AND "gold" = (SELECT "gold" FROM table_203_535 WHERE "nation" = 'belarus') |
### Instruction:
CREATE TABLE table_34089 (
"Driver" text,
"Points" real,
"Season" real,
"Races" real,
"Percentage of possible points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which races have points greater than 123, fernando alonso as the dr... | SELECT "Races" FROM table_34089 WHERE "Points" > '123' AND "Driver" = 'fernando alonso' AND "Percentage of possible points" = '74.44%' |
### Instruction:
CREATE TABLE table_62124 (
"Team" text,
"1983" text,
"1984" text,
"1985-1986" real,
"Total points" real,
"Seasons" real,
"Points average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest total for 1985-1986 ... | SELECT MIN("1985-1986") FROM table_62124 WHERE "Total points" = '124' |
### Instruction:
CREATE TABLE table_50840 (
"Date" text,
"Opponent" text,
"Score" text,
"Leading Scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has an Opponent of @ phoenix, and a Leadin... | SELECT MAX("Attendance") FROM table_50840 WHERE "Opponent" = '@ phoenix' AND "Leading Scorer" = 'sophia young (18)' |
### Instruction:
CREATE TABLE table_79798 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average cuts for top-25 more than 13 a... | SELECT AVG("Cuts made") FROM table_79798 WHERE "Top-25" > '13' AND "Top-5" < '11' |
### Instruction:
CREATE TABLE table_11756 (
"Block A" text,
"Gran Hamada" text,
"Koji Kanemoto" text,
"Jushin Liger" text,
"Masaaki Mochizuki" text,
"Super Shocker" text,
"Tatsuhito Takaiwa" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whi... | SELECT "Jushin Liger" FROM table_11756 WHERE "Gran Hamada" = 'kendo kashin' |
### Instruction:
CREATE TABLE table_37017 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"IHSAA Class Football" text,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions... | SELECT "School" FROM table_37017 WHERE "Location" = 'valparaiso' |
### Instruction:
CREATE TABLE table_33927 (
"Model Number" text,
"Stepping" text,
"Frequency" text,
"L2 Cache" text,
"Multi 1" text,
"V Core" text,
"Socket" text,
"Release Date" text,
"Part Number(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Part Number(s)" FROM table_33927 WHERE "Model Number" = 'athlon x2 4850e' |
### Instruction:
CREATE TABLE table_31343 (
"Rank 2012" real,
"Country" text,
"UNWTO Region" text,
"International tourism expenditure 2011" text,
"International tourism expenditure 2012" text,
"% change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Country" FROM table_31343 WHERE "% change" = '5.7' |
### Instruction:
CREATE TABLE table_56203 (
"Year" text,
"Date" text,
"Venue" text,
"Winner" text,
"Country" text,
"Score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text,
"Winner's share ( \u20ac )" text
)
-- Using valid SQLite, answer the following question... | SELECT "Date" FROM table_56203 WHERE "Year" = '2004' |
### Instruction:
CREATE TABLE table_12113888_1 (
number VARCHAR,
rebuilt VARCHAR,
scrapped_sold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data... | SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = "Cannot handle non-empty timestamp argument! 1929" AND scrapped_sold = "Cannot handle non-empty timestamp argument! 1954" |
### Instruction:
CREATE TABLE table_27876 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Cyrillic Name Other Names" FROM table_27876 WHERE "Settlement" = 'Debeljača' |
### Instruction:
CREATE TABLE table_59504 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Total has a Bronze smaller than 13, and a Nation of netherlands (n... | SELECT COUNT("Total") FROM table_59504 WHERE "Bronze" < '13' AND "Nation" = 'netherlands (ned)' AND "Gold" > '4' |
### Instruction:
CREATE TABLE table_24609 (
"Season" text,
"Timeslot Times listed are Eastern time" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" real,
"Viewers (in millions of households)" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Season premiere" FROM table_24609 WHERE "Season finale" = 'May 19, 1997' |
### Instruction:
CREATE TABLE table_33356 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue for the game ... | SELECT "Venue" FROM table_33356 WHERE "Date" = '1 june 1929' AND "Away team" = 'richmond' |
### Instruction:
CREATE TABLE table_28965 (
"Detailed Family Information" text,
"From" real,
"To" real,
"Anchor" real,
"Orientation" text,
"Conserved in Mus Musculus" text,
"Matrix Sim" text,
"Sequence" text,
"Occurrence" real
)
-- Using valid SQLite, answer the following questions... | SELECT MIN("From") FROM table_28965 WHERE "Detailed Family Information" = 'Krueppel like transcription factors' |
### Instruction:
CREATE TABLE table_48598 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when matt gric... | SELECT "Record" FROM table_48598 WHERE "Time" = '5:00' AND "Opponent" = 'dennis bermudez' |
### Instruction:
CREATE TABLE table_74091 (
"Episode" text,
"Date" text,
"Official ITV1 rating (millions)" text,
"Weekly rank" real,
"Share (%)" text,
"Official ITV1 HD rating (millions)" text,
"Total ITV1 viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for... | SELECT "Share (%)" FROM table_74091 WHERE "Episode" = 'Semi-final 2' |
### Instruction:
CREATE TABLE table_20946 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the fastest lap in ... | SELECT "Fastest Lap" FROM table_20946 WHERE "Winning Team" = 'Team Impul' AND "Circuit" = 'Twin Ring Motegi' |
### Instruction:
CREATE TABLE table_62414 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F\u2013A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result F-A that was the quarter-final first le... | SELECT "Result F\u2013A" FROM table_62414 WHERE "H / A" = 'h' AND "Round" = 'quarter-final first leg' |
### Instruction:
CREATE TABLE head (
head_id number,
name text,
born_state text,
age number
)
CREATE TABLE department (
department_id number,
name text,
creation text,
ranking number,
budget_in_billions number,
num_employees number
)
CREATE TABLE management (
department_id ... | SELECT name FROM head WHERE born_state <> 'California' |
### Instruction:
CREATE TABLE table_name_95 (
value__ INTEGER,
revenue__$m_ VARCHAR,
country VARCHAR,
operating_income_$m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average Value ($M) when the Country was England, the Operating inco... | SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = "england" AND operating_income_$m_ > -5 AND revenue__$m_ < 103 |
### Instruction:
CREATE TABLE table_46972 (
"Season" real,
"Competition" text,
"Games" real,
"Wins" real,
"Loses" real,
"Against" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons have Losses larger than 1, and a Competition of fib... | SELECT COUNT("Season") FROM table_46972 WHERE "Loses" > '1' AND "Competition" = 'fiba europe cup' AND "Wins" < '4' |
### Instruction:
CREATE TABLE table_60704 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT AVG("Wins") FROM table_60704 WHERE "Played" < '30' |
### Instruction:
CREATE TABLE Ref_Detention_Type (
detention_type_description VARCHAR,
detention_type_code VARCHAR
)
CREATE TABLE Detention (
detention_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the code and description of the lea... | SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1 |
### Instruction:
CREATE TABLE table_26762 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Production code" FROM table_26762 WHERE "Directed by" = 'Robert Duncan McNeill' |
### Instruction:
CREATE TABLE table_16524 (
"Year" text,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the champion where s... | SELECT "Champion" FROM table_16524 WHERE "Semi-Finalist #2" = 'NA' AND "Location" = 'Morrisville, NC' |
### Instruction:
CREATE TABLE table_70611 (
"Poll" text,
"Pre- season" text,
"Mar. 3" text,
"May 5" text,
"May 12" text,
"May 19" text,
"May 26" text,
"Final Poll" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which March 3 has a Poll o... | SELECT "Mar. 3" FROM table_70611 WHERE "Poll" = 'baseball america (top 25)' |
### Instruction:
CREATE TABLE table_204_431 (
id number,
"yacht" text,
"nation" text,
"owner" text,
"skipper" text,
"launch year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which of these yachts did not launch in 2007 : chutzpah , impeccab... | SELECT "yacht" FROM table_204_431 WHERE "yacht" IN ('chutzpah', 'impeccable', 'bear necessity') AND "launch year" <> 2007 |
### Instruction:
CREATE TABLE table_203_467 (
id number,
"year" number,
"numer of jamaicans\ngranted british\ncitizenship" number,
"naturalisation\nby residence" number,
"naturalisation\nby marriage" number,
"registration\nof a minor child" number,
"registration\nby other means" number
)
-... | SELECT "year" FROM table_203_467 ORDER BY "naturalisation\nby marriage" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_57969 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Listed" FROM table_57969 WHERE "CERCLIS ID" = 'msd004006995' |
### Instruction:
CREATE TABLE table_33137 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the venue of suwon world cup stadium , suwon , south korea and a Sc... | SELECT "Result" FROM table_33137 WHERE "Venue" = 'suwon world cup stadium , suwon , south korea' AND "Score" = '3–0' |
### Instruction:
CREATE TABLE CLASS (
crs_code VARCHAR
)
CREATE TABLE department (
school_code VARCHAR,
dept_code VARCHAR
)
CREATE TABLE course (
crs_code VARCHAR,
dept_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of clas... | SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code |
### Instruction:
CREATE TABLE table_2604 (
"Rank" real,
"Athlete" text,
"Nation" text,
"Olympics" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total(min. 2 medals)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank did the na... | SELECT COUNT("Rank") FROM table_2604 WHERE "Athlete" = 'Peter Snell Category:Articles with hCards' |
### Instruction:
CREATE TABLE table_55888 (
"Name" text,
"Entered office" text,
"Left office" text,
"Political party" text,
"Monarchs served" text,
"Birth Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the birth place of the prime... | SELECT "Birth Place" FROM table_55888 WHERE "Monarchs served" = 'george v' AND "Entered office" = '23 october 1922' |
### Instruction:
CREATE TABLE table_57266 (
"Year" real,
"Network" text,
"Lap-by-lap" text,
"s Color commentator" text,
"Pre-Race Host" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Year is smaller than 2004, and Mike J... | SELECT "Ratings" FROM table_57266 WHERE "Year" < '2004' AND "Lap-by-lap" = 'mike joy' |
### Instruction:
CREATE TABLE table_23627 (
"Electorate" text,
"Labour" text,
"National" text,
"New Zealand First" text,
"Green" text,
"United Future" text,
"Maori Party" text,
"ACT" text,
"Progressive" text,
"Other" text
)
-- Using valid SQLite, answer the following questions ... | SELECT "Electorate" FROM table_23627 WHERE "United Future" = '4.47%' |
### Instruction:
CREATE TABLE table_14262 (
"Year" real,
"Competition" text,
"Location" text,
"Weight Category" text,
"Snatch" text,
"Clean and Jerk" text,
"Total" text,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which compet... | SELECT "Competition" FROM table_14262 WHERE "Year" = '2010' AND "Snatch" = '185kg' |
### Instruction:
CREATE TABLE table_203_196 (
id number,
"terminal" text,
"operator" text,
"depth\n(m)" text,
"berths" number,
"quay length\n(m)" number,
"quay cranes" number,
"area\n(m2)" number,
"capacity\n(kteus)" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT COUNT(*) FROM table_203_196 WHERE "operator" = 'hit' |
### Instruction:
CREATE TABLE table_53955 (
"Rank" text,
"Name" text,
"Headquarters" text,
"Revenue (Mil.\u20ac)" text,
"Profit (Mil.\u20ac)" text,
"Employees (World)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is hte nuumber of employe... | SELECT "Employees (World)" FROM table_53955 WHERE "Revenue (Mil.\u20ac)" = '104.000' |
### Instruction:
CREATE TABLE table_32046 (
"Player" text,
"Total W\u2013L" text,
"Singles W\u2013L" text,
"Doubles W\u2013L" text,
"Ties played" real,
"Debut" real,
"Years played" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the l... | SELECT MIN("Ties played") FROM table_32046 WHERE "Debut" = '1936' |
### Instruction:
CREATE TABLE table_37018 (
"Player" text,
"League" real,
"Malaysia Cup" real,
"FA Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad ... | SELECT MAX("FA Cup") FROM table_37018 WHERE "Malaysia Cup" = '0' AND "Player" = 'ahmad fouzee masuri' AND "Total" > '0' |
### Instruction:
CREATE TABLE table_203_226 (
id number,
"player" text,
"matches" number,
"innings" number,
"not out" number,
"runs" number,
"high score" number,
"average" number,
"strike rate" number,
"100s" number,
"50s" number
)
-- Using valid SQLite, answer the followin... | SELECT "runs" FROM table_203_226 WHERE "player" = 'andrew gale' |
### Instruction:
CREATE TABLE table_203_208 (
id number,
"team" text,
"location" text,
"venue" text,
"capacity" number,
"position in 1993-94" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the spartak , bobruisk venue is has a larger capacity ... | SELECT "venue" FROM table_203_208 WHERE "capacity" < (SELECT "capacity" FROM table_203_208 WHERE "venue" = 'spartak, bobruisk') |
### Instruction:
CREATE TABLE table_20520 (
"Member State" text,
"Population in millions" text,
"Population % of EU" text,
"Area km 2" real,
"Area % of EU" text,
"Pop. density People/km 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ... | SELECT "Pop. density People/km 2" FROM table_20520 WHERE "Population % of EU" = '1.1%' AND "Member State" = 'Slovakia' |
### Instruction:
CREATE TABLE table_23749 (
"Date" text,
"Time" text,
"Big East Team" text,
"SEC Team" text,
"Location" text,
"Television" text,
"Attendance" real,
"Winner" text,
"Challenge Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT MAX("Attendance") FROM table_23749 WHERE "Challenge Leader" = 'Big East (4-2)' |
### Instruction:
CREATE TABLE table_58926 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest number of gold medals when the bronze medals is less than 49, and there is... | SELECT MAX("Gold") FROM table_58926 WHERE "Bronze" < '49' AND "Silver" = '22' AND "Total" < '60' |
### Instruction:
CREATE TABLE table_79054 (
"Name" text,
"Type" text,
"Height of ground station(m)" real,
"Height of mountain station(m)" real,
"Construction year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Height of ground station(m) h... | SELECT COUNT("Height of ground station(m)") FROM table_79054 WHERE "Name" = 'lutersee' AND "Height of mountain station(m)" > '2398' |
### Instruction:
CREATE TABLE table_41583 (
"Position" text,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1998\u20131999 Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position ... | SELECT "Position" FROM table_41583 WHERE "Birthdate" = 'august 17, 1980' |
### Instruction:
CREATE TABLE table_61523 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest place ... | SELECT MIN("Place") FROM table_61523 WHERE "Goals Conceded" = '36' AND "Lost" > '6' |
### Instruction:
CREATE TABLE table_name_2 (
year VARCHAR,
numbers__quantity_ordered_ VARCHAR,
fuel_propulsion VARCHAR,
length VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the diesel fuel propulsion, with a length of 40', and numbers ... | SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = "diesel" AND length = "40'" AND numbers__quantity_ordered_ = "3701-3729 (29 buses)" |
### Instruction:
CREATE TABLE table_6725 (
"Year" real,
"Male" text,
"Female" text,
"Band" text,
"Album" text,
"Pop Act" text,
"Lifetime Achievement Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the Lifetime Achievement Award... | SELECT "Lifetime Achievement Award" FROM table_6725 WHERE "Band" = 'snow patrol' AND "Female" = 'juliet turner' |
### Instruction:
CREATE TABLE table_42749 (
"Inf. Stem" text,
"Sing. Pres." text,
"Plur. Pres." text,
"Sing. Pret." text,
"Plur. Pret." text,
"Subj. Pres." text,
"Subj. Pret." text,
"Past Part." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Inf. Stem" FROM table_42749 WHERE "Subj. Pres." = 'ou' |
### Instruction:
CREATE TABLE table_56804 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the losses by the Mont... | SELECT SUM("Losses") FROM table_56804 WHERE "Team" = 'montreal hockey club' AND "Goals Against" > '15' |
### Instruction:
CREATE TABLE table_204_621 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total margin of... | SELECT "margin\nof victory" FROM table_204_621 WHERE "date" = 1963 AND "tournament" = 'tucson open invitational' |
### Instruction:
CREATE TABLE table_name_97 (
length_feet VARCHAR,
length_meters VARCHAR,
parish VARCHAR,
km_from_kingston VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Length Feet, when Parish is Clarendon, when Km From ... | SELECT COUNT(length_feet) FROM table_name_97 WHERE parish = "clarendon" AND km_from_kingston = 71.2 AND length_meters < 21.3 |
### Instruction:
CREATE TABLE table_44776 (
"1950" real,
"General 1950" text,
"Senate 1950" text,
"House 1950" text,
"Governors 1950" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for House 1950 when the General 1950 is general 1986?
#... | SELECT "House 1950" FROM table_44776 WHERE "General 1950" = 'general 1986' |
### Instruction:
CREATE TABLE table_72939 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original U.S. air date" text,
"Prod. code" real,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "Original U.S. air date" FROM table_72939 WHERE "Viewers (millions)" = '4.4' |
### Instruction:
CREATE TABLE table_name_85 (
turbine_vendor VARCHAR,
wind_farm VARCHAR,
size__mw_ VARCHAR,
turbines VARCHAR,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the turbine vendor for Meenadreen in Donegal county with le... | SELECT turbine_vendor FROM table_name_85 WHERE turbines < 6 AND county = "donegal" AND size__mw_ = "0.85" AND wind_farm = "meenadreen" |
### Instruction:
CREATE TABLE table_3789 (
"Year" text,
"Stage" real,
"Start of stage" text,
"Distance (km)" text,
"Category of climb" text,
"Stage winner" text,
"Nationality" text,
"Yellow jersey" text,
"Bend" real
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT MIN("Stage") FROM table_3789 WHERE "Yellow jersey" = 'Ronan Pensec' |
### Instruction:
CREATE TABLE table_11118 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date were there more than ... | SELECT "Date" FROM table_11118 WHERE "Crowd" > '16,000' AND "Home team" = 'carlton' |
### Instruction:
CREATE TABLE table_78097 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most gold medals a team with less than 2 silvers, more than 7 t... | SELECT MAX("Gold") FROM table_78097 WHERE "Silver" < '2' AND "Total" > '7' AND "Bronze" < '8' |
### Instruction:
CREATE TABLE table_30076 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT COUNT("Legs Lost") FROM table_30076 WHERE "High Checkout" = '101' |
### Instruction:
CREATE TABLE table_204_571 (
id number,
"athlete" text,
"event" text,
"race 1\ntime" text,
"race 2\ntime" text,
"total\ntime" text,
"total\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did haraldsson take ... | SELECT "race 1\ntime" FROM table_204_571 WHERE "athlete" = 'johann haraldsson' AND "event" = 'slalom' |
### Instruction:
CREATE TABLE table_203_182 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"production\ncode" number
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "title" FROM table_203_182 WHERE "original air date" = 1996 ORDER BY "original air date" LIMIT 1 |
### Instruction:
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
-- Using valid SQLite, answer the following questions for t... | SELECT AVG(T1.stars), T2.title FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid WHERE T2.year = (SELECT MIN(year) FROM movie) |
### Instruction:
CREATE TABLE table_train_266 (
"id" int,
"active_infection" bool,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"neuropathy" bool,
"severe_diabetic_complication" bool,
"hba1c" float,
"active_malignancy" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the ... | SELECT * FROM table_train_266 WHERE active_infection = 1 |
### Instruction:
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
op... | SELECT AVG(weight), MIN(weight), sex FROM people GROUP BY sex |
### Instruction:
CREATE TABLE table_204_355 (
id number,
"#" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the to par difference between betty jameso... | SELECT (SELECT "to par" FROM table_204_355 WHERE "player" = 'betty jameson') - (SELECT "to par" FROM table_204_355 WHERE "player" = 'patty berg') |
### Instruction:
CREATE TABLE table_27591 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are shown for november 3 when january 15-16 is... | SELECT COUNT("November 3") FROM table_27591 WHERE "January 15-16" = '141' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.