instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE student (
name VARCHAR,
id VARCHAR
)
CREATE TABLE course (
course_id VARCHAR,
dept_name VARCHAR
)
CREATE TABLE takes (
course_id VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of stude... | SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' |
### Instruction:
CREATE TABLE table_54754 (
"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.
-- Which Away team has an Away tea... | SELECT "Away team" FROM table_54754 WHERE "Away team score" = '13.22 (100)' |
### Instruction:
CREATE TABLE table_29660 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Written by" FROM table_29660 WHERE "Prod. code" = '211' |
### Instruction:
CREATE TABLE table_75732 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the loc... | SELECT "Location" FROM table_75732 WHERE "Founded" > '1890' AND "Institution" = 'university of montana' |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY COUNT(Rank) |
### Instruction:
CREATE TABLE table_203_563 (
id number,
"#" number,
"judge" text,
"state" text,
"born/died" text,
"active" text,
"chief" text,
"senior" text,
"appointed by" text,
"reason for\ntermination" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT COUNT("judge") FROM table_203_563 WHERE NOT "chief" IS NULL |
### Instruction:
CREATE TABLE table_203_336 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- h... | SELECT COUNT("date") FROM table_203_336 WHERE "attendance" < 10000 |
### Instruction:
CREATE TABLE table_70092 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest capacity in Aslantepe in 20... | SELECT MAX("Capacity") FROM table_70092 WHERE "Location" = 'aslantepe' AND "Year" = '2002-2005' |
### Instruction:
CREATE TABLE table_name_89 (
altitude__mslm_ INTEGER,
density__inhabitants_km_2__ VARCHAR,
common_of VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common ... | SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = "moncalieri" |
### Instruction:
CREATE TABLE table_2518850_4 (
year_of_previous_participation VARCHAR,
total_number_of_participation VARCHAR,
high_school_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many previous years did Maebashi Ikuei high school have a t... | SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = "Maebashi Ikuei" |
### Instruction:
CREATE TABLE table_8303 (
"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 highest total medals of russia, which has more than 1 silver and... | SELECT MAX("Total") FROM table_8303 WHERE "Silver" > '1' AND "Nation" = 'russia' AND "Bronze" > '6' |
### Instruction:
CREATE TABLE table_78467 (
"Color" text,
"mass (g/mol)" text,
"Absorb (nm)" text,
"Emit (nm)" text,
"\u03b5 (M -1 cm -1 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Emission (in nanometers) that has a molar mass of 1078 g... | SELECT "Emit (nm)" FROM table_78467 WHERE "mass (g/mol)" = '1078' |
### Instruction:
CREATE TABLE table_7386 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result when Dundee were the Opponent at Venue A on 6 September 1986?
###... | SELECT "Result" FROM table_7386 WHERE "Opponent" = 'dundee' AND "Venue" = 'a' AND "Date" = '6 september 1986' |
### Instruction:
CREATE TABLE table_51109 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider... | SELECT "Time" FROM table_51109 WHERE "Manufacturer" = 'aprilia' AND "Grid" < '16' AND "Rider" = 'sandro cortese' |
### Instruction:
CREATE TABLE table_58042 (
"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.
-- How big of a crowd was attendin... | SELECT "Crowd" FROM table_58042 WHERE "Away team score" = '9.10 (64)' |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank ORDER BY Rank DESC |
### Instruction:
CREATE TABLE table_71986 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Olga Govortsova's score when she played on a clay surface ... | SELECT "Score" FROM table_71986 WHERE "Surface" = 'clay' AND "Date" = '19 may 2008' |
### Instruction:
CREATE TABLE table_204_385 (
id number,
"round" number,
"pick" number,
"player" text,
"nationality" text,
"college/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- are more of the amateur draft picks from canada ... | SELECT "nationality" FROM table_204_385 WHERE "nationality" IN ('canada', 'united states') GROUP BY "nationality" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_73509 (
"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 MAX("Game") FROM table_73509 WHERE "Record" = '46-22' |
### Instruction:
CREATE TABLE table_31437 (
"model" text,
"Sonnet" text,
"Apple" text,
"NUpowr 117" text,
"NUpowr 167" text,
"NUpowr 183" text,
"NUpowr G3" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 4 mb is the sonnet what is the ap... | SELECT "Apple" FROM table_31437 WHERE "Sonnet" = '4 MB' |
### Instruction:
CREATE TABLE table_25816476_2 (
team_coxy VARCHAR,
air_date VARCHAR,
team_guest_captain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of... | SELECT COUNT(team_coxy) FROM table_25816476_2 WHERE air_date = "24 January 2010" AND team_guest_captain = "Gail Porter" |
### Instruction:
CREATE TABLE table_45135 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event had a tko (punches) method and jason mac... | SELECT "Event" FROM table_45135 WHERE "Method" = 'tko (punches)' AND "Opponent" = 'jason macdonald' |
### Instruction:
CREATE TABLE table_train_201 (
"id" int,
"blood_pressure_bilaterally" bool,
"creatinine_clearance_cl" float,
"total_cholesterol" int,
"smoking" bool,
"triglyceride_tg" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT * FROM table_train_201 WHERE total_cholesterol >= 300 |
### Instruction:
CREATE TABLE table_36539 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is performer 4 on episode 3, where Jim Sweeney ... | SELECT "Performer 4" FROM table_36539 WHERE "Performer 1" = 'jim sweeney' AND "Episode" = '3' |
### Instruction:
CREATE TABLE table_34046 (
"Callsign" text,
"Area served" text,
"Frequency" text,
"Band" text,
"On-air ID" text,
"Purpose" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what Area has the frequency of 100.3 and an On-air ID of y... | SELECT "Area served" FROM table_34046 WHERE "Frequency" = '100.3' AND "On-air ID" = 'yass fm' |
### Instruction:
CREATE TABLE table_840 (
"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 ab... | SELECT COUNT("High rebounds") FROM table_840 WHERE "Date" = 'March 13' |
### Instruction:
CREATE TABLE table_54307 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Set 1 with a Score of 3 0, and has a Set 3 of 15 10?
### Respon... | SELECT "Set 1" FROM table_54307 WHERE "Score" = '3–0' AND "Set 3" = '15–10' |
### Instruction:
CREATE TABLE table_47622 (
"Portfolio" text,
"Minister" text,
"Took office" text,
"Left office" text,
"Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Minister, when Portfolio is 'Minister of Pubblic Administration', a... | SELECT "Minister" FROM table_47622 WHERE "Portfolio" = 'minister of pubblic administration' AND "Took office" = '14 november 2002' |
### Instruction:
CREATE TABLE table_11037 (
"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 total population ... | SELECT SUM("Region") FROM table_11037 WHERE "Name" = 'saint-agapit' AND "Code" < '33045' |
### Instruction:
CREATE TABLE table_58757 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Height if the weight is kg (lb), the club is Sainte-foy a... | SELECT "Height" FROM table_58757 WHERE "Weight" = 'kg (lb)' AND "Club" = 'sainte-foy' AND "Pos." = 'cf' |
### Instruction:
CREATE TABLE table_3630 (
"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.
-- How many incumbents were first elected in 1797 with the ... | SELECT COUNT("Incumbent") FROM table_3630 WHERE "First elected" = '1797' AND "Candidates" = 'Abram Trigg (DR)' |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Class, AVG(age) FROM captain GROUP BY Class ORDER BY Class |
### Instruction:
CREATE TABLE table_29218221_2 (
fri_3_june VARCHAR,
wed_1_june VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Fri 3 June time for the rider with a Weds 1 June time of 18' 22.66 123.182mph?
### Response:
| SELECT fri_3_june FROM table_29218221_2 WHERE wed_1_june = "18' 22.66 123.182mph" |
### Instruction:
CREATE TABLE table_204_70 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in pick numbers between greg schaum and ed ... | SELECT ABS((SELECT "pick #" FROM table_204_70 WHERE "player" = 'greg schaum') - (SELECT "pick #" FROM table_204_70 WHERE "player" = 'ed bauer')) |
### Instruction:
CREATE TABLE table_203_254 (
id number,
"position" number,
"team" text,
"points" number,
"played" number,
"won" number,
"drawn" number,
"lost" number,
"for" number,
"against" number,
"difference" number
)
-- Using valid SQLite, answer the following question... | SELECT "team" FROM table_203_254 ORDER BY ABS("difference") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_68720 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other [C ]" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The League Cup of 0 40 0 (6)... | SELECT "Europe" FROM table_68720 WHERE "League Cup" = '0 40 0 (6)' |
### Instruction:
CREATE TABLE table_5911 (
"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 tables... | SELECT "Race Name" FROM table_5911 WHERE "City/Location" = 'cleveland, ohio' |
### Instruction:
CREATE TABLE table_21224 (
"Province" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT MAX("PA") FROM table_21224 |
### Instruction:
CREATE TABLE table_42081 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Points against ... | SELECT AVG("Points against") FROM table_42081 WHERE "Tries for" < '14' AND "Team" = 'llanelli' |
### Instruction:
CREATE TABLE table_9881 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the oppo... | SELECT "Opponents in the final" FROM table_9881 WHERE "Score in the final" = '2–6, 3–6' |
### Instruction:
CREATE TABLE table_78991 (
"Model" text,
"Chassis" real,
"Engine" real,
"Year From" real,
"Year To" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year To has an Engine of 119.972, and a Chassis smaller than 129.067?
### Res... | SELECT MIN("Year To") FROM table_78991 WHERE "Engine" = '119.972' AND "Chassis" < '129.067' |
### 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(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor |
### Instruction:
CREATE TABLE table_38447 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has a Game smaller than 19, and Points smaller than 19, ... | SELECT "Record" FROM table_38447 WHERE "Game" < '19' AND "Points" < '19' AND "Score" = '4–6' |
### Instruction:
CREATE TABLE table_42841 (
"Sunshine (hrs/year)" text,
"Rain (mm/year)" text,
"Snow (days/year)" real,
"Storms (days/year)" real,
"Fog (days/year)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of fog where the r... | SELECT SUM("Fog (days/year)") FROM table_42841 WHERE "Rain (mm/year)" = '1 109' |
### Instruction:
CREATE TABLE table_2554 (
"Team" text,
"Outgoing manager(s)" text,
"Manner of departure" text,
"Date of vacancy" text,
"Position in table" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Date of vacancy" FROM table_2554 WHERE "Manner of departure" = 'End of caretaker contract' |
### Instruction:
CREATE TABLE table_16664 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT MIN("Round") FROM table_16664 WHERE "Grand Prix" = 'German Grand Prix' |
### Instruction:
CREATE TABLE table_16292 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Directed by" FROM table_16292 WHERE "Production code" = '7AFF03' |
### Instruction:
CREATE TABLE table_55185 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent ... | SELECT "Opponent" FROM table_55185 WHERE "Date" = 'september 13, 1992' |
### Instruction:
CREATE TABLE table_204_548 (
id number,
"team" text,
"basic elements" number,
"tumbling" number,
"stunts" number,
"tosses" number,
"pyramids" number,
"deductions" number,
"total score" number,
"result" text
)
-- Using valid SQLite, answer the following question... | SELECT "team" FROM table_204_548 ORDER BY "pyramids" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_34591 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions had a diffe... | SELECT COUNT("Position") FROM table_34591 WHERE "Difference" = '- 4' AND "Against" < '24' |
### Instruction:
CREATE TABLE table_7814 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of top-10 values for the Open Championship and les... | SELECT SUM("Top-10") FROM table_7814 WHERE "Tournament" = 'the open championship' AND "Top-25" < '3' |
### Instruction:
CREATE TABLE table_58599 (
"Mid Gippsland FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of draws for against larger than 1228 with fewer ... | SELECT SUM("Draws") FROM table_58599 WHERE "Against" > '1228' AND "Wins" < '1' |
### Instruction:
CREATE TABLE table_31052 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ... | SELECT COUNT("Written by") FROM table_31052 WHERE "Title" = 'Paddy''s Pub: The Worst Bar in Philadelphia' |
### Instruction:
CREATE TABLE table_71625 (
"Rank" text,
"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 fewest number of silver medals received by a nation who receive... | SELECT MIN("Silver") FROM table_71625 WHERE "Bronze" = '40' AND "Gold" > '42' |
### Instruction:
CREATE TABLE table_4481 (
"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 most amount of peop... | SELECT MAX("Crowd") FROM table_4481 WHERE "Home team score" = '13.17 (95)' |
### Instruction:
CREATE TABLE table_34380 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"Points" real,
"Overall NT points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality ha... | SELECT "Nationality" FROM table_34380 WHERE "Rank" > '3' AND "Name" = 'tom hilde' |
### Instruction:
CREATE TABLE table_17148 (
"Player" text,
"No.(s)" real,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hight of the player ... | SELECT "Height in Ft." FROM table_17148 WHERE "Years for Rockets" = '1969-70' |
### Instruction:
CREATE TABLE table_27720 (
"Edition" real,
"Zone" text,
"Round" text,
"Against" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Outcome" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How did ... | SELECT "Outcome" FROM table_27720 WHERE "Partner" = 'Caroline Wozniacki' |
### Instruction:
CREATE TABLE table_26315 (
"Rank" real,
"Operators Name" text,
"Technology" text,
"Subscribers (in millions)" text,
"Ownership" text,
"Market Share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the market share of the... | SELECT "Market Share" FROM table_26315 WHERE "Technology" = 'CDMA EVDO GSM EDGE HSPA+' |
### Instruction:
CREATE TABLE table_42833 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest amount of... | SELECT MIN("Points") FROM table_42833 WHERE "Lost" = '2' AND "Position" < '1' |
### Instruction:
CREATE TABLE table_27028 (
"Eliminated" real,
"Wrestler" text,
"Entered" real,
"Eliminated by" text,
"Method of elimination" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wrestlers are recorded for the cha... | SELECT COUNT("Wrestler") FROM table_27028 WHERE "Method of elimination" = 'Pinned after being hit by a lead pipe' |
### Instruction:
CREATE TABLE table_204_870 (
id number,
"product" text,
"main functionality" text,
"input format" text,
"output format" text,
"platform" text,
"license and cost" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "product" FROM table_204_870 WHERE id = (SELECT id FROM table_204_870 WHERE "product" = 'egonet') + 1 |
### Instruction:
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE certificate (
eid number,... | SELECT COUNT(*) FROM flight |
### Instruction:
CREATE TABLE table_46008 (
"Nat." text,
"Name" text,
"Since" text,
"App(L/C/E)" text,
"Goals(L/C/E)" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the goals for Pelletieri in ARG?
... | SELECT "Goals(L/C/E)" FROM table_46008 WHERE "Nat." = 'arg' AND "Name" = 'pelletieri' |
### Instruction:
CREATE TABLE table_204_25 (
id number,
"rank" number,
"mountain peak" text,
"mountain range" text,
"elevation" text,
"prominence" text,
"isolation" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is ... | SELECT "mountain peak" FROM table_204_25 WHERE "mountain range" = 'sierra nevada' ORDER BY "elevation" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_75796 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Language, when Content is Sport, when HD... | SELECT "Language" FROM table_75796 WHERE "Content" = 'sport' AND "HDTV" = 'no' AND "Television service" = 'espn america' |
### Instruction:
CREATE TABLE table_25202 (
"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 COUNT("Date") FROM table_25202 WHERE "Score" = 'L 85–86 (OT)' |
### Instruction:
CREATE TABLE table_71256 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the venue when the score was 5 0, and a Competition of 2007 caribbea... | SELECT "Venue" FROM table_71256 WHERE "Score" = '5–0' AND "Competition" = '2007 caribbean cup qualifier' |
### Instruction:
CREATE TABLE table_22830 (
"DMA" real,
"Market" text,
"Station" text,
"Frequency" text,
"Branding" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dma of branding is big oldies 107.3 with the station wa... | SELECT "DMA" FROM table_22830 WHERE "Branding" = 'Big Oldies 107.3' AND "Station" = 'WARV-FM' |
### Instruction:
CREATE TABLE table_204_371 (
id number,
"team" text,
"competition" text,
"category" text,
"appearances\nstart" number,
"appearances\nsub" number,
"goals" number,
"team record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "competition" FROM table_204_371 ORDER BY "appearances\nstart" + "goals" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_28828 (
"Name" text,
"Jewel" text,
"Species" text,
"Gender" text,
"Jewel Power" text,
"Attribute" text,
"Birthday" text,
"Media Debut" text,
"Voice actor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT COUNT("Birthday") FROM table_28828 WHERE "Jewel" = 'Malachite' |
### Instruction:
CREATE TABLE table_3339 (
"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 COUNT("Population (2011)") FROM table_3339 WHERE "Settlement" = 'Perlez' |
### Instruction:
CREATE TABLE table_45376 (
"Channel" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Studio host" text,
"Studio analysts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the studio host for the game broadcasted by Fox... | SELECT "Studio host" FROM table_45376 WHERE "Channel" = 'fox sports net west' AND "Play-by-play" = 'chick hearn' |
### Instruction:
CREATE TABLE table_53328 (
"Unit" text,
"Reactor Type" text,
"Net Capacity" text,
"Gross Capacity" text,
"Construction Start" text,
"Grid Connection" text,
"Commercial Operation" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Status" FROM table_53328 WHERE "Net Capacity" = '1212 mw' |
### Instruction:
CREATE TABLE table_17628022_2 (
play_by_play VARCHAR,
pregame_host VARCHAR,
sideline_reporters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the play-by-play when the pregame host was Brian Williams and the sideline reporters we... | SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = "Brian Williams" AND sideline_reporters = "Steve Armitage and Brenda Irving" |
### Instruction:
CREATE TABLE table_203_112 (
id number,
"choke" text,
"constriction (inch)" number,
"percentage of lead shot in 30-inch circle at 40 yards" text,
"identification (notches)" number,
"identification (stars)\n(spanish shotguns)" number
)
-- Using valid SQLite, answer the followin... | SELECT "choke" FROM table_203_112 ORDER BY "constriction (inch)" LIMIT 1 |
### Instruction:
CREATE TABLE table_75731 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the loc... | SELECT "Location" FROM table_75731 WHERE "Founded" > '1889' AND "Team Nickname" = 'broncos' |
### Instruction:
CREATE TABLE table_56964 (
"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 venue w... | SELECT "Venue" FROM table_56964 WHERE "Away team score" = '10.11 (71)' |
### Instruction:
CREATE TABLE table_50116 (
"Game" real,
"Date" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first game in which Weekes... | SELECT MIN("Game") FROM table_50116 WHERE "Decision" = 'weekes' AND "Record" = '7-4-2' |
### Instruction:
CREATE TABLE table_71726 (
"Number" real,
"Name" text,
"Builder" text,
"Type" text,
"Works number" real,
"Date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number has the builder ruston hornsby, the date 1961, and the na... | SELECT COUNT("Number") FROM table_71726 WHERE "Builder" = 'ruston hornsby' AND "Date" = '1961' AND "Name" = 'topsy' |
### Instruction:
CREATE TABLE table_62786 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Team of Andretti Green Racing have a finish smaller than 8 w... | SELECT "Year" FROM table_62786 WHERE "Chassis" = 'dallara' AND "Team" = 'andretti green racing' AND "Finish" < '8' |
### Instruction:
CREATE TABLE table_45091 (
"Position" real,
"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 tables provided above.... | SELECT COUNT("Losses") FROM table_45091 WHERE "Played" > '30' |
### Instruction:
CREATE TABLE table_7019 (
"Year" text,
"Team" text,
"SckY" text,
"Int%" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text,
"RLng" text,
"R1st" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the R1st... | SELECT "R1st" FROM table_7019 WHERE "RYds" = '36' |
### Instruction:
CREATE TABLE table_34717 (
"Model" text,
"Processor" text,
"Memory" text,
"Storage" text,
"Graphics" text,
"VRAM" text,
"Display resolution" text,
"MSRP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the MSRP fo... | SELECT "MSRP" FROM table_34717 WHERE "Storage" = '128-512 gb ssd' |
### Instruction:
CREATE TABLE table_23235767_1 (
surface VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every surface with a score in the final of 6 4, 6 7 (1 7) , 6 7 (4 7) , 4 6?
### Response:
| SELECT surface FROM table_23235767_1 WHERE score_in_the_final = "6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6" |
### Instruction:
CREATE TABLE table_74229 (
"Series no." real,
"Season no." 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 tables... | SELECT "Directed by" FROM table_74229 WHERE "Title" = 'Home Is Where the Hospital Is' |
### Instruction:
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
-- Using val... | SELECT Reign, Days_held FROM wrestler |
### Instruction:
CREATE TABLE table_64012 (
"Serial No." real,
"District" text,
"Headquartered City" text,
"City Population (2009)" real,
"City Area(km 2 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district was the city with an area small... | SELECT "District" FROM table_64012 WHERE "City Area(km 2 )" < '12' AND "Serial No." = '35' |
### Instruction:
CREATE TABLE table_51057 (
"Year" real,
"Beer Name" text,
"Prize" text,
"Category" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did maggs magnificent mild bear win overall at the camra reading branch ... | SELECT MAX("Year") FROM table_51057 WHERE "Beer Name" = 'maggs magnificent mild' AND "Competition" = 'camra reading branch beer festival' AND "Category" = 'overall' |
### Instruction:
CREATE TABLE table_204_978 (
id number,
"position" number,
"nation" number,
"number" number,
"name" text,
"soproni liga" number,
"uefa cup" number,
"hungarian cup" number,
"league cup" number,
"total" number
)
-- Using valid SQLite, answer the following questio... | SELECT "total" FROM table_204_978 WHERE "name" = 'zoltan kiss' |
### Instruction:
CREATE TABLE table_68998 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest roll for coed and authority of state i... | SELECT MAX("Roll") FROM table_68998 WHERE "Gender" = 'coed' AND "Authority" = 'state integrated' AND "Name" = 'sacred heart school' |
### Instruction:
CREATE TABLE table_29575 (
"Name/Name of Act" text,
"Age(s)" text,
"Genre" text,
"Act" text,
"Hometown" text,
"Qtr. Final (Week)" real,
"Semi Final (Week)" text,
"Position Reached" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Hometown" FROM table_29575 WHERE "Name/Name of Act" = 'PLUtonic' |
### Instruction:
CREATE TABLE table_203_295 (
id number,
"position" number,
"driver / passenger" text,
"equipment" text,
"points" number,
"wins" number,
"second" number,
"third" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was t... | SELECT "wins" FROM table_203_295 WHERE "driver / passenger" = 'daniel willemsen / reto grutter' |
### Instruction:
CREATE TABLE table_23408094_14 (
tournament_at_which_lead_began VARCHAR,
player VARCHAR,
titles_won_at_point_of_lead VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At which tournament did william renshaw begin his lead when he had won 7 ... | SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 7 |
### Instruction:
CREATE TABLE table_22353 (
"No." real,
"Album" text,
"Artist" text,
"Record label" text,
"Released" text,
"Chart peak" real,
"Number of times certified platinum" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When cannot han... | SELECT "No." FROM table_22353 WHERE "Released" = 'Cannot handle non-empty timestamp argument! 2007' |
### Instruction:
CREATE TABLE table_16928 (
"Governorate" text,
"Name in Russian" text,
"Name in Polish" text,
"Seat" text,
"Area, in thousands of km 2" real,
"Population, in thousands,( 1905 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- gov... | SELECT "Area, in thousands of km 2" FROM table_16928 WHERE "Name in Russian" = 'Плоцкая губерния' |
### Instruction:
CREATE TABLE table_12750 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text,
"Winner's share ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Dat... | SELECT "Date" FROM table_12750 WHERE "Runner(s)-up" = 'bo-mee lee' |
### Instruction:
CREATE TABLE table_51522 (
"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.
-- How many spectators had a home ... | SELECT AVG("Crowd") FROM table_51522 WHERE "Home team score" = '15.14 (104)' |
### Instruction:
CREATE TABLE table_22422 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Date of vacancy" FROM table_22422 WHERE "Date of appointment" = '29 December 2008' |
### Instruction:
CREATE TABLE table_name_67 (
usca VARCHAR,
rthk VARCHAR,
mrhma VARCHAR,
total VARCHAR,
joint_music_award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, M... | SELECT usca FROM table_name_67 WHERE total < 14 AND joint_music_award = "1" AND mrhma = "2" AND rthk = "3" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.