instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_74320 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Written by" FROM table_74320 WHERE "U.S. viewers (million)" = '5.95' |
### Instruction:
CREATE TABLE table_name_40 (
shortstop VARCHAR,
second_baseman VARCHAR,
catcher VARCHAR,
third_baseman VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the shortstop when the Catcher was johnny roseboro, and a Third... | SELECT shortstop FROM table_name_40 WHERE catcher = "johnny roseboro" AND third_baseman = "jim lefebvre" AND second_baseman = "nate oliver" |
### Instruction:
CREATE TABLE table_66079 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest week that has September 19, 1965 as the date, with an attendance les... | SELECT MIN("Week") FROM table_66079 WHERE "Date" = 'september 19, 1965' AND "Attendance" < '46,941' |
### Instruction:
CREATE TABLE table_74442 (
"Rank" real,
"Country/Territory" text,
"Mister World" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following questions... | SELECT MIN("1st runner-up") FROM table_74442 |
### Instruction:
CREATE TABLE table_204_617 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was the attendance higher in nebra... | SELECT "opponent#" FROM table_204_617 WHERE "opponent#" IN ('nebraska', 'colorado') ORDER BY "attendance" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_65654 (
"Millewa" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average Wins that has the Against of 1132, and the Lo... | SELECT AVG("Wins") FROM table_65654 WHERE "Against" = '1132' AND "Losses" < '7' |
### Instruction:
CREATE TABLE table_52811 (
"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.
-- When populatioin is great... | SELECT COUNT("Code") FROM table_52811 WHERE "Type" = 'v' AND "Population" > '7,747' |
### Instruction:
CREATE TABLE table_11336756_6 (
termini VARCHAR,
route_name VARCHAR,
direction VARCHAR,
junctions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many termini are there that have 'east west' listed in their direction section, 'non... | SELECT COUNT(termini) FROM table_11336756_6 WHERE direction = "East West" AND junctions = "none" AND route_name = "SH 202" |
### Instruction:
CREATE TABLE table_24993 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT COUNT("Miles (km)") FROM table_24993 WHERE "Manufacturer" = 'Dodge' |
### Instruction:
CREATE TABLE table_203_142 (
id number,
"pos" text,
"no" number,
"rider" text,
"bike" text,
"laps" number,
"time" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in the 2007 phillip isl... | SELECT "rider" FROM table_203_142 ORDER BY "pos" LIMIT 1 |
### Instruction:
CREATE TABLE table_203_420 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"home team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- compared to the oval , holm park holds more or less attendees at capa... | SELECT (SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'holm park') > (SELECT "capacity" FROM table_203_420 WHERE "stadium" = 'the oval') |
### Instruction:
CREATE TABLE table_29160 (
"Chambering" text,
"P1 diameter (mm)" text,
"A external (cm 2 )" text,
"P max ( bar )" real,
"F bolt ( kgf )" real,
"F bolt" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chambering for th... | SELECT "Chambering" FROM table_29160 WHERE "F bolt ( kgf )" = '8339' |
### Instruction:
CREATE TABLE table_50920 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.... | SELECT "Timeslot" FROM table_50920 WHERE "Viewers" < '6.76' AND "18-49" = '1.9/5' |
### Instruction:
CREATE TABLE table_31140 (
"No. in series" real,
"No. in 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.
-- How many ... | SELECT COUNT("No. in season") FROM table_31140 WHERE "Title" = 'Dick''s Big Giant Headache (Part 1)' |
### Instruction:
CREATE TABLE table_37986 (
"School" text,
"Team Name" text,
"Town" text,
"County" text,
"School Enrollment (2008\u201310)" real,
"Football?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- DId the school with an enrollment of 50 ... | SELECT "Football?" FROM table_37986 WHERE "School Enrollment (2008\u201310)" = '50' |
### Instruction:
CREATE TABLE table_29885 (
"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 "Score" FROM table_29885 WHERE "High points" = 'Josh Powell (13)' |
### Instruction:
CREATE TABLE table_12791809_1 (
super_b_capacity_reached_ VARCHAR,
_citation_needed_ VARCHAR,
freight_carried_s_tonne VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the super b capacity reached when the freight carried s tonne w... | SELECT super_b_capacity_reached_ AS "_citation_needed_" FROM table_12791809_1 WHERE freight_carried_s_tonne = 198818 |
### Instruction:
CREATE TABLE table_69829 (
"Rank" real,
"Stadium" text,
"Total Capacity" text,
"Seating Capacity" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest ranking seating capacity smaller than 7,485, and a ... | SELECT MIN("Rank") FROM table_69829 WHERE "Seating Capacity" < '7,485' AND "Stadium" = 'st. colman''s park' |
### Instruction:
CREATE TABLE table_26865 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Original air date" FROM table_26865 WHERE "Written by" = 'Jay J. Demopoulos' |
### Instruction:
CREATE TABLE table_3958 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT MIN("Series #") FROM table_3958 WHERE "Production code" = 'BDF409' |
### Instruction:
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE shop (
shop_id number,
shop_name text,... | SELECT COUNT(DISTINCT software_platform) FROM device |
### Instruction:
CREATE TABLE table_49885 (
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "Circuit" FROM table_49885 WHERE "Winning driver" = 'scott pruett' |
### Instruction:
CREATE TABLE table_204_696 (
id number,
"issue" number,
"volume" number,
"title" text,
"main feature story" text,
"first/early appearance story/stories" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wha... | SELECT "title" FROM table_204_696 WHERE "issue" = (SELECT "issue" FROM table_204_696 WHERE "title" = 'iron man') + 1 |
### Instruction:
CREATE TABLE table_31979 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison
### ... | SELECT AVG("Laps") FROM table_31979 WHERE "Grid" > '12' AND "Bike" = 'ducati 999rs' AND "Rider" = 'dean ellison' |
### Instruction:
CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_ver... | SELECT carrier FROM device ORDER BY carrier |
### Instruction:
CREATE TABLE table_train_102 (
"id" int,
"autoimmune_disease" bool,
"stroke" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"liver_disease" bool,
"serum_creatinine" float,
"seizure_disorder" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following que... | SELECT * FROM table_train_102 WHERE liver_disease = 1 |
### Instruction:
CREATE TABLE table_7134 (
"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 is the method of resolution fo... | SELECT "Method" FROM table_7134 WHERE "Time" = '5:00' AND "Record" = '5-0' |
### Instruction:
CREATE TABLE table_54196 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Result" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round has a Venue of nicosia, and a Opponent of levski sofi... | SELECT "Round" FROM table_54196 WHERE "Venue" = 'nicosia' AND "Opponent" = 'levski sofia zapad' |
### Instruction:
CREATE TABLE table_29646 (
"Rnd" real,
"Circuit" text,
"Sports +2.0 Winning Team" text,
"Sports 2.0 Winning Team" text,
"GT +2.0 Winning Team" text,
"GT 2.0 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Results" FROM table_29646 WHERE "GT 2.0 Winning Team" = 'Herb Wetanson' |
### Instruction:
CREATE TABLE table_204_623 (
id number,
"opponent" text,
"goals" text,
"wins" number,
"draws" number,
"losses" number,
"+- goals" number,
"matches" number,
"qualified" number,
"eliminated" number
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "losses" FROM table_204_623 WHERE "opponent" = 'dinamo tirane' |
### Instruction:
CREATE TABLE table_33752 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on the date of November 29, 1970 and the attendance was less than ... | SELECT AVG("Week") FROM table_33752 WHERE "Date" = 'november 29, 1970' AND "Attendance" < '31,427' |
### Instruction:
CREATE TABLE table_3349 (
"Urban settlement" text,
"Cyrillic Name" text,
"City / municipality" text,
"District" text,
"Population (1991)" real,
"Population (2002)" real,
"Population (2011)" real
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT MIN("Population (2002)") FROM table_3349 WHERE "Urban settlement" = 'Ada' |
### Instruction:
CREATE TABLE table_24246 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Survivor count" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was t... | SELECT "Survivor count" FROM table_24246 WHERE "Directed by" = 'Gwyneth Horder-Payton' |
### Instruction:
CREATE TABLE table_name_26 (
inhabitants_per_mep INTEGER,
population_millions VARCHAR,
meps VARCHAR,
member_state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of inhabitants per MEP that has MEPs larger t... | SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = "germany" AND population_millions < 82.43 |
### Instruction:
CREATE TABLE table_70309 (
"Overall place" text,
"Yacht name" text,
"Skipper" text,
"Points" text,
"Combined elapsed time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall place that has 170d 11h 31m 10s as the com... | SELECT "Overall place" FROM table_70309 WHERE "Combined elapsed time" = '170d 11h 31m 10s' |
### Instruction:
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
-- Using valid SQLite, answer the following quest... | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor DESC |
### Instruction:
CREATE TABLE table_name_1 (
period__days_ INTEGER,
type VARCHAR,
planetary_mass___m⊕__ VARCHAR,
stellar_mass___m__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest period (days) to have a planetary mass of 1, a ste... | SELECT MIN(period__days_) FROM table_name_1 WHERE planetary_mass___m⊕__ = 1 AND stellar_mass___m__ > 0.21 AND type = "m0" |
### Instruction:
CREATE TABLE table_80382 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the Women's doubles in th... | SELECT "Women's doubles" FROM table_80382 WHERE "Mixed doubles" = 'billy gilliland karen puttick' |
### Instruction:
CREATE TABLE table_55025 (
"Peak" text,
"Height (m)" real,
"Prom. (m)" real,
"Class" text,
"Parent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average height for hewitt class, with prom less than 86, and a Peak of gr... | SELECT AVG("Height (m)") FROM table_55025 WHERE "Class" = 'hewitt' AND "Prom. (m)" < '86' AND "Peak" = 'gragareth' |
### Instruction:
CREATE TABLE table_79719 (
"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's the total number of bronze medals for Sweden (SWE) having less than ... | SELECT COUNT("Bronze") FROM table_79719 WHERE "Gold" < '1' AND "Nation" = 'sweden (swe)' AND "Silver" < '1' |
### Instruction:
CREATE TABLE table_35410 (
"Year" real,
"Jewish" real,
"Muslim" real,
"Christian" real,
"Druze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many muslims have a jewish of 112,803, and a year after 2008?
###... | SELECT SUM("Muslim") FROM table_35410 WHERE "Jewish" = '112,803' AND "Year" > '2008' |
### Instruction:
CREATE TABLE table_13979 (
"Stadium" text,
"Capacity" real,
"City" text,
"Region" text,
"Home Team" text,
"Opened" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What total number of opened has a stadium of stade de la mosson an... | SELECT COUNT("Opened") FROM table_13979 WHERE "Stadium" = 'stade de la mosson' AND "Capacity" > '32,939' |
### Instruction:
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following question... | SELECT cname FROM tryout WHERE ppos = 'goalie' INTERSECT SELECT cname FROM tryout WHERE ppos = 'mid' |
### Instruction:
CREATE TABLE table_4165 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT "U.S. viewers (million)" FROM table_4165 WHERE "Title" = 'Miss Mystic Falls' |
### Instruction:
CREATE TABLE table_77798 (
"Player" text,
"Club" text,
"League" real,
"Play-offs" real,
"FA Cup" real,
"FA Trophy" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the lowest leagues had Aldershot town a... | SELECT MIN("League") FROM table_77798 WHERE "Club" = 'aldershot town' AND "Play-offs" < '0' |
### Instruction:
CREATE TABLE table_name_87 (
field_goals INTEGER,
touchdowns VARCHAR,
player VARCHAR,
points VARCHAR,
extra_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Herb Graver played, how many field goals were made when there ... | SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = "herb graver" AND touchdowns < 15 |
### Instruction:
CREATE TABLE table_34017 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What average week has shea stadium as the game site, and 1979-12-... | SELECT AVG("Week") FROM table_34017 WHERE "Game site" = 'shea stadium' AND "Date" = '1979-12-09' |
### Instruction:
CREATE TABLE table_33025 (
"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 name of the away te... | SELECT "Away team" FROM table_33025 WHERE "Home team score" = '15.17 (107)' |
### Instruction:
CREATE TABLE table_80144 (
"Year" real,
"Number" real,
"Team" text,
"Co-driver" text,
"Position" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the co-driver for the team with more than 160 laps and the numb... | SELECT "Co-driver" FROM table_80144 WHERE "Laps" > '160' AND "Year" > '2010' AND "Number" = '6' |
### Instruction:
CREATE TABLE table_63163 (
"Source" text,
"Date" text,
"Jody Wagner" text,
"Pat Edmonson" text,
"Michael Signer" text,
"Rich Savage" text,
"Jon Bowerbank" text,
"Undecided" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Rich Savage" FROM table_63163 WHERE "Undecided" = '68%' |
### Instruction:
CREATE TABLE table_11677760_1 (
player VARCHAR,
year VARCHAR,
college VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the player who's college is listed as direct to nba, school is st. vincent st. mary high sch... | SELECT player FROM table_11677760_1 WHERE college = "Direct to NBA" AND school = "St. Vincent – St. Mary High school" AND year = "2001-2002" |
### Instruction:
CREATE TABLE table_204_414 (
id number,
"name" text,
"armenian" text,
"location" text,
"# of prisoners designed for" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many more prisoners is erebuni designed to h... | SELECT (SELECT "# of prisoners designed for" FROM table_204_414 WHERE "name" = 'erebuni') - (SELECT "# of prisoners designed for" FROM table_204_414 WHERE "name" = 'goris') |
### Instruction:
CREATE TABLE table_name_18 (
country VARCHAR,
to_par VARCHAR,
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-... | SELECT country FROM table_name_18 WHERE to_par < 6 AND money___$__ > 700 AND score = 69 - 73 - 70 - 71 = 283 |
### Instruction:
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
-- Using valid SQ... | SELECT Party, COUNT(Party) FROM representative GROUP BY Party ORDER BY COUNT(Party) DESC |
### Instruction:
CREATE TABLE table_75907 (
"RR Romaja" text,
"M\u2013R Romaja" text,
"Hangul/Chosongul" text,
"Hanja" text,
"Area" text,
"Capital" text,
"Region" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT "Area" FROM table_75907 WHERE "Hangul/Chosongul" = '경기도' |
### Instruction:
CREATE TABLE table_50736 (
"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 "High rebounds" FROM table_50736 WHERE "High assists" = 'delonte west (10)' |
### Instruction:
CREATE TABLE table_23693 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Drawn" FROM table_23693 WHERE "Points for" = '39' |
### Instruction:
CREATE TABLE school_bus (
school_id number,
driver_id number,
years_working number,
if_full_time others
)
CREATE TABLE driver (
driver_id number,
name text,
party text,
home_city text,
age number
)
CREATE TABLE school (
school_id number,
grade text,
sch... | SELECT name, home_city, age FROM driver |
### Instruction:
CREATE TABLE table_5222 (
"Variant id" text,
"5\u2019UTR splice" text,
"Coding" text,
"3\u2019UTR sequence" text,
"GenBank id" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 3 UTR sequence has the GenBank ID at hq021440?
###... | SELECT "3\u2019UTR sequence" FROM table_5222 WHERE "GenBank id" = 'hq021440' |
### Instruction:
CREATE TABLE table_51364 (
"Year" real,
"Property Taxes" text,
"Investment Earnings" text,
"Other Local Sources" text,
"State & Federal" text,
"Total Revenue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the investme... | SELECT "Investment Earnings" FROM table_51364 WHERE "State & Federal" = '8,549,565' |
### Instruction:
CREATE TABLE table_42402 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"Facility ID" real,
"ERP W" real,
"Height m ( ft )" text,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "City of license" FROM table_42402 WHERE "Facility ID" > '150833' |
### Instruction:
CREATE TABLE table_25983027_1 (
rainfall_by_volume__km_3__year_ VARCHAR,
rainfall_by_depth__mm_year_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 35... | SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 3527 |
### Instruction:
CREATE TABLE table_75594 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent for the match were the outcome was runner-up... | SELECT "Opponent" FROM table_75594 WHERE "Outcome" = 'runner-up' AND "Score" = '5-7, 1-6' |
### Instruction:
CREATE TABLE table_14729 (
"Season" real,
"Lost" real,
"Points" real,
"Reg. Season" text,
"Avg. Attend." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of losses that the Minnesota Kicks had after 1979 wit... | SELECT MAX("Lost") FROM table_14729 WHERE "Season" > '1979' AND "Avg. Attend." = '16,605' |
### Instruction:
CREATE TABLE nuclear_power_plants (
id text,
name text,
latitude text,
longitude text,
country text,
status text,
reactortype text,
reactormodel text,
constructionstartat text,
operationalfrom text,
operationalto text,
capacity text,
lastupdatedat tex... | SELECT country FROM nuclear_power_plants WHERE status = "Under Construction" GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_41468 (
"Club" text,
"2012" text,
"Seasons in Esiliiga" real,
"Current run since" real,
"Titles" real,
"Last title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2012 season in Esiliiga more than ... | SELECT "2012" FROM table_41468 WHERE "Seasons in Esiliiga" > '4' AND "Titles" > '0' |
### Instruction:
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
)
-- Using valid SQLite, answer the following questions for t... | SELECT T2.title, T1.mid FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid GROUP BY T1.mid ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_46209 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points a... | SELECT "Points against" FROM table_46209 WHERE "Lost" = '13' AND "Points for" = '671' |
### Instruction:
CREATE TABLE table_29409 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the event when su rez ( tri ) w 16 6 was... | SELECT "Event" FROM table_29409 WHERE "Round of 32" = 'Suárez ( TRI ) W 16–6' |
### Instruction:
CREATE TABLE table_57791 (
"Name" text,
"Power" text,
"Torque" text,
"Size" text,
"Engine code" text,
"0\u2013100km/h,s" real,
"Top speed" text,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power of... | SELECT "Power" FROM table_57791 WHERE "Engine code" = 'm44b19' |
### Instruction:
CREATE TABLE table_29403 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name t... | SELECT "Drawn" FROM table_29403 WHERE "Lost" = '5' AND "Tries for" = '89' |
### Instruction:
CREATE TABLE table_9186 (
"% people under 18 (2005)" text,
"Seine-Saint-Denis" text,
"Paris" text,
"Val-de-Marne" text,
"Val-d'Oise" text,
"France" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS A Seine-Saint-Denis WITH ... | SELECT "Seine-Saint-Denis" FROM table_9186 WHERE "Paris" = '12.1%' |
### Instruction:
CREATE TABLE table_203_108 (
id number,
"kilometers" number,
"name" text,
"location" text,
"intersecting routes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which portion has the same intersecting route as rabin boulevard ?
###... | SELECT "name" FROM table_203_108 WHERE "name" <> 'rabin boulevard' AND "intersecting routes" = (SELECT "intersecting routes" FROM table_203_108 WHERE "name" = 'rabin boulevard') |
### Instruction:
CREATE TABLE table_41228 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home" text,
"Away" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away has uefa cup as the competition, group f as the round, with e... | SELECT "Away" FROM table_41228 WHERE "Competition" = 'uefa cup' AND "Round" = 'group f' AND "Club" = 'espanyol' |
### Instruction:
CREATE TABLE table_203_145 (
id number,
"position" number,
"club" text,
"played" number,
"points" text,
"wins" number,
"draws" number,
"losses" number,
"goals for" number,
"goals against" number,
"goal difference" number
)
-- Using valid SQLite, answer the ... | SELECT "club" FROM table_203_145 ORDER BY "losses" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_7305 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest games ... | SELECT MAX("Played") FROM table_7305 WHERE "Place" = '10' AND "Points" < '17' |
### Instruction:
CREATE TABLE table_name_15 (
winner VARCHAR,
year VARCHAR,
country VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of 1st prize ($) that has a United States country with a score lower than 271 a... | SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_15 WHERE country = "united states" AND score < 271 AND year > 1964 AND winner = "bobby mitchell" |
### Instruction:
CREATE TABLE table_51367 (
"Year" real,
"Property Taxes" text,
"Investment Earnings" text,
"Other Local Sources" text,
"State & Federal" text,
"Total Revenue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the investme... | SELECT "Investment Earnings" FROM table_51367 WHERE "Total Revenue" = '21,779,618' |
### Instruction:
CREATE TABLE table_41279 (
"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 "High points" FROM table_41279 WHERE "Record" = '31–48' |
### Instruction:
CREATE TABLE table_35126 (
"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 lowest total medals the team with more than 0 bronze, 6 silver,... | SELECT MIN("Total") FROM table_35126 WHERE "Bronze" > '0' AND "Silver" = '6' AND "Rank" < '3' |
### Instruction:
CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the population of cadiz is... | SELECT (SELECT "population" FROM table_203_3 WHERE "province" = 'cadiz') - (SELECT "population" FROM table_203_3 WHERE "province" = 'jaen') |
### Instruction:
CREATE TABLE table_12512 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Raiders points" real,
"Opponents" real,
"First Downs" real,
"Record" text,
"Streak" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Date" FROM table_12512 WHERE "Raiders points" = '17' |
### Instruction:
CREATE TABLE table_52500 (
"Film" text,
"Song" text,
"Year" real,
"Music Director" text,
"Language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the song with year before 2013 and music director of yuvan shankar raja and f... | SELECT "Song" FROM table_52500 WHERE "Year" < '2013' AND "Music Director" = 'yuvan shankar raja' AND "Film" = 'billa ii' |
### Instruction:
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_... | SELECT Name, Age FROM driver |
### Instruction:
CREATE TABLE table_63146 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" real,
"Issue price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year when the 25th Anniversary Loonie was the theme, and the mint... | SELECT MIN("Year") FROM table_63146 WHERE "Theme" = '25th anniversary loonie' AND "Mintage" < '35,000' |
### Instruction:
CREATE TABLE table_72574 (
"Position" text,
"Number" real,
"Name" text,
"Height" text,
"Weight" text,
"Class" text,
"Hometown" text,
"Games\u2191" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players were 6'1'... | SELECT COUNT("Position") FROM table_72574 WHERE "Height" = '6''1' AND "Hometown" = 'Columbia, South Carolina' |
### Instruction:
CREATE TABLE table_23465 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "No. in series" FROM table_23465 WHERE "Title" = 'Rapture' |
### Instruction:
CREATE TABLE table_77815 (
"Name" text,
"Date of birth" text,
"Position(s)" text,
"Seasons" text,
"Matches & (Goals) (League + Finals + KNVB-Cup)" text,
"Previous club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What previou... | SELECT "Previous club" FROM table_77815 WHERE "Date of birth" = 'october 22, 1993' |
### Instruction:
CREATE TABLE table_41072 (
"Player" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Runs" real,
"High Score" text,
"Average" text,
"Strike Rate" text,
"100s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ... | SELECT AVG("100s") FROM table_41072 WHERE "Player" = 'tim bresnan' |
### Instruction:
CREATE TABLE table_16278 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT "No. in season" FROM table_16278 WHERE "Title" = 'Crow''s Feet' |
### Instruction:
CREATE TABLE table_77767 (
"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 was the lowest Crowd durin... | SELECT MIN("Crowd") FROM table_77767 WHERE "Away team score" = '10.11 (71)' |
### Instruction:
CREATE TABLE table_66987 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the pennant number for completion of 30 october 1934 and launched 29 m... | SELECT "Pennant number" FROM table_66987 WHERE "Launched" = '29 march 1934' AND "Completed" = '30 october 1934' |
### Instruction:
CREATE TABLE table_203_7 (
id number,
"pos." number,
"artist" text,
"single" text,
"year" number,
"sales" number,
"peak" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what were the total sales of eiffel 65 's blue -lrb- d... | SELECT "sales" FROM table_203_7 WHERE "single" = '"blue (da ba dee)"' AND "artist" = 'eiffel 65' |
### Instruction:
CREATE TABLE table_63135 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the scorers on 1 August 2008, ... | SELECT "Scorers" FROM table_63135 WHERE "Ground" = 'a' AND "Date" = '1 august 2008' |
### Instruction:
CREATE TABLE table_26275 (
"Name" text,
"Starting chip count" real,
"WSOP bracelets" real,
"WSOP cashes" real,
"WSOP earnings" text,
"Final place" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had 2 WSOP c... | SELECT "Name" FROM table_26275 WHERE "WSOP cashes" = '2' AND "Final place" = '6th' |
### Instruction:
CREATE TABLE table_27609 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("Season") FROM table_27609 WHERE "Position" = '29th' |
### Instruction:
CREATE TABLE table_1364 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "HDTV" FROM table_1364 WHERE "Television service" = 'Sky Primafila 17' |
### Instruction:
CREATE TABLE table_74427 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT "Directed by" FROM table_74427 WHERE "U.S. viewers (million)" = '0.25' |
### Instruction:
CREATE TABLE table_2079 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "Date" FROM table_2079 WHERE "Year" = '1974' |
### Instruction:
CREATE TABLE table_72997 (
"Main contestant" text,
"Co-contestant (Yaar vs. Pyaar)" text,
"Date performed" text,
"Scores by each individual judge" text,
"Total score/week" text,
"Position" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Main contestant" FROM table_72997 WHERE "Co-contestant (Yaar vs. Pyaar)" = 'Tina Parekh' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.