instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_64319 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What bike has a grid greater than 17, laps less than 8, with milos cihak as the rider?
### Respo... | SELECT "Bike" FROM table_64319 WHERE "Grid" > '17' AND "Laps" < '8' AND "Rider" = 'milos cihak' |
### Instruction:
CREATE TABLE table_name_51 (
change___percentage_ INTEGER,
land_area__km²_ VARCHAR,
population_density__per_km²_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average change to have a land area of 546.74 and a population den... | SELECT AVG(change___percentage_) FROM table_name_51 WHERE land_area__km²_ = 546.74 AND population_density__per_km²_ > 0.5 |
### Instruction:
CREATE TABLE table_13685 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was there a playoff on the margin of victory during t... | SELECT "Date" FROM table_13685 WHERE "Margin of victory" = 'playoff' AND "Tournament" = 'shirley englehorn invitational' |
### Instruction:
CREATE TABLE table_57265 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Attendance" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won in the game before 1985 attended by over 6... | SELECT "Winner" FROM table_57265 WHERE "Attendance" > '62,026' AND "Year" < '1985' |
### Instruction:
CREATE TABLE table_21923 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Laps" FROM table_21923 WHERE "Year" = '2001' |
### Instruction:
CREATE TABLE table_37319 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Drawn" FROM table_37319 WHERE "Club" = 'llanishen rfc' |
### Instruction:
CREATE TABLE table_203_561 (
id number,
"pos" number,
"team" text,
"total" number,
"high" number,
"low" number,
"average" number,
"change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the highest single game at... | SELECT "team" FROM table_203_561 WHERE "average" < 500 ORDER BY "high" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_66011 (
"Ship" text,
"Year" real,
"Dates" text,
"Line" text,
"From" text,
"Distance" text,
"Days, hours, minutes" text,
"Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Days, hours, m... | SELECT "Days, hours, minutes" FROM table_66011 WHERE "Line" = 'gw' AND "From" = 'liverpool' |
### Instruction:
CREATE TABLE table_62549 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest money when the score was 69-68-67-69=273?
#... | SELECT MAX("Money ( $ )") FROM table_62549 WHERE "Score" = '69-68-67-69=273' |
### Instruction:
CREATE TABLE table_70173 (
"Month & Year" text,
"Episode" text,
"Title" text,
"Hammond's vehicle" text,
"Clarkson's vehicle" text,
"May's vehicle" text,
"Back-up" text,
"Budget" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Month & Year" FROM table_70173 WHERE "Title" = 'bolivia special' |
### Instruction:
CREATE TABLE table_7638 (
"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 silver for France with a rank less than 5 and a total lar... | SELECT MIN("Silver") FROM table_7638 WHERE "Rank" < '5' AND "Nation" = 'france' AND "Total" > '19' |
### Instruction:
CREATE TABLE table_name_55 (
points_classification VARCHAR,
winner VARCHAR,
young_rider_classification VARCHAR,
general_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did lech piasecki, stephen roche, a... | SELECT points_classification FROM table_name_55 WHERE young_rider_classification = "lech piasecki" AND general_classification = "stephen roche" AND winner = "carrera jeans-vagabond" |
### Instruction:
CREATE TABLE table_9207 (
"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 Attendance, when Date is 'December 20, 1970', and when Week is less t... | SELECT MIN("Attendance") FROM table_9207 WHERE "Date" = 'december 20, 1970' AND "Week" < '14' |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type |
### Instruction:
CREATE TABLE table_30665 (
"Couple" text,
"Style" text,
"Music" text,
"Trine Dehli Cleve" real,
"Tor Fl\u00f8ysvik" real,
"Karianne Gulliksen" real,
"Christer Tornell" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Style" FROM table_30665 WHERE "Total" = '27' |
### Instruction:
CREATE TABLE table_200_31 (
id number,
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" number,
"time" text,
"event" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "opponent" FROM table_200_31 WHERE "result" = 'loss' |
### Instruction:
CREATE TABLE table_71227 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record for a game played on July 16 with attendance of mo... | SELECT "Record" FROM table_71227 WHERE "Attendance" > '32,162' AND "Date" = 'july 16' |
### Instruction:
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY COUNT(Publication_Date) |
### Instruction:
CREATE TABLE table_204_771 (
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/nations won more medals than chile ... | SELECT "nation" FROM table_204_771 WHERE "total" > (SELECT "total" FROM table_204_771 WHERE "nation" = 'chile') |
### Instruction:
CREATE TABLE table_26986076_2 (
thurs_26_aug VARCHAR,
wed_25_aug VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?
### Response:
| SELECT thurs_26_aug FROM table_26986076_2 WHERE wed_25_aug = "19' 59.98 113.192mph" |
### Instruction:
CREATE TABLE table_18764 (
"Rank" real,
"Place" text,
"County" text,
"Per Capita Income" text,
"Median House- hold Income" text,
"Population" real,
"Number of Households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how ma... | SELECT COUNT("County") FROM table_18764 WHERE "Per Capita Income" = '$20,101' |
### Instruction:
CREATE TABLE table_55547 (
"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.
-- Who did Footscray play against ... | SELECT "Away team" FROM table_55547 WHERE "Home team score" = '14.12 (96)' |
### Instruction:
CREATE TABLE table_61255 (
"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.
-- Count the Draw which has Lost of 0, and a G... | SELECT SUM("Draw") FROM table_61255 WHERE "Lost" = '0' AND "Goals Scored" > '0' |
### Instruction:
CREATE TABLE table_10318 (
"Year" real,
"Premier" text,
"Runner Up" text,
"Scores" text,
"Venue" text,
"Crowd" real,
"Margin" real,
"Winner Season" text,
"Runner Up Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Winner Season" FROM table_10318 WHERE "Year" = '1998' |
### Instruction:
CREATE TABLE table_29831 (
"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 assists" FROM table_29831 WHERE "Date" = 'April 8' |
### Instruction:
CREATE TABLE table_42890 (
"Country" text,
"Telenovela" text,
"Translation" text,
"Series Premiere" text,
"Series Finale" text,
"Weekly Schedule" text,
"Timeslot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which days of ... | SELECT "Weekly Schedule" FROM table_42890 WHERE "Timeslot" = '11:00' |
### Instruction:
CREATE TABLE table_12215 (
"Name" text,
"GP-GS" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's cameron dantley's total avg/g for loss less than 35?
### Response:
| SELECT COUNT("Avg/G") FROM table_12215 WHERE "Name" = 'cameron dantley' AND "Loss" < '35' |
### Instruction:
CREATE TABLE table_42720 (
"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 is the Surface of the match with winner as outcome and a score... | SELECT "Surface" FROM table_42720 WHERE "Outcome" = 'winner' AND "Score" = '7–5, 7–5' |
### Instruction:
CREATE TABLE table_77953 (
"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 a Home team... | SELECT "Away team score" FROM table_77953 WHERE "Home team score" = '12.14 (86)' |
### Instruction:
CREATE TABLE table_name_39 (
name VARCHAR,
date_of_birth VARCHAR,
block VARCHAR,
spike VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Block is 320, when Spike is more than 336, and when Date of Birth is 12.10.1978?... | SELECT name FROM table_name_39 WHERE block = 320 AND spike > 336 AND date_of_birth = "12.10.1978" |
### Instruction:
CREATE TABLE table_68888 (
"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 round was held in palavas-les... | SELECT "Round" FROM table_68888 WHERE "Location" = 'palavas-les-flots , herault , france' |
### Instruction:
CREATE TABLE table_63667 (
"Restaurant Name" text,
"Original Name" text,
"Location" text,
"Chef" text,
"Designer" text,
"Still Open?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is the restaurant bacchus roti with meredith he... | SELECT "Still Open?" FROM table_63667 WHERE "Designer" = 'meredith heron' AND "Restaurant Name" = 'bacchus roti' |
### Instruction:
CREATE TABLE table_46323 (
"Club" text,
"Played" 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 tables provided ... | SELECT "Drawn" FROM table_46323 WHERE "Club" = 'newport rfc' |
### Instruction:
CREATE TABLE table_56236 (
"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 venue did the home team s... | SELECT "Venue" FROM table_56236 WHERE "Home team score" = '14.23 (107)' |
### Instruction:
CREATE TABLE table_66776 (
"Counting Method" text,
"Basis" text,
"Name" text,
"Directed / Undirected" text,
"Induced / Non-Induced" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the directed/undirected for mfinder, which ha... | SELECT "Directed / Undirected" FROM table_66776 WHERE "Name" = 'mfinder' AND "Basis" = 'network-centric' |
### Instruction:
CREATE TABLE table_73622 (
"Team" text,
"Outgoing manager" 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 abo... | SELECT "Manner of departure" FROM table_73622 WHERE "Replaced by" = 'Steve McClaren' |
### Instruction:
CREATE TABLE table_train_190 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"diabetic" string,
"acute_diabetic_complications" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- patients w... | SELECT * FROM table_train_190 WHERE acute_diabetic_complications = 1 |
### Instruction:
CREATE TABLE table_3856 (
"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 a... | SELECT "High points" FROM table_3856 WHERE "High assists" = 'Tim Duncan (5)' |
### Instruction:
CREATE TABLE table_70099 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2008 for wta premier mandatory tournaments of 2007
### Response:
| SELECT "2008" FROM table_70099 WHERE "2007" = 'wta premier mandatory tournaments' |
### Instruction:
CREATE TABLE table_1663 (
"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 a... | SELECT "Date" FROM table_1663 WHERE "Score" = 'L 92–103 (OT)' |
### Instruction:
CREATE TABLE table_21872 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the d... | SELECT "Team" FROM table_21872 WHERE "Driver" = 'Milka Duno' |
### Instruction:
CREATE TABLE table_20388 (
"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 "Package/Option" FROM table_20388 WHERE "Television service" = 'FOX Sports HD' |
### Instruction:
CREATE TABLE table_15149 (
"Kick Off" text,
"Opponents" text,
"H / A" text,
"Result" text,
"Referee" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the referee of the match with Badajoz as the opponent and... | SELECT "Referee" FROM table_15149 WHERE "Opponents" = 'badajoz' AND "H / A" = 'h' |
### Instruction:
CREATE TABLE table_25981 (
"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 COUNT("Season") FROM table_25981 WHERE "Team" = 'Motopark' |
### Instruction:
CREATE TABLE table_52318 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for don january with over 2 wins and over 17 eve... | SELECT MIN("Rank") FROM table_52318 WHERE "Wins" > '2' AND "Player" = 'don january' AND "Events" > '17' |
### Instruction:
CREATE TABLE table_77655 (
"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.
-- Which round has an Opponent of lille, and a H / A of h?
... | SELECT "Round" FROM table_77655 WHERE "Opponents" = 'lille' AND "H / A" = 'h' |
### Instruction:
CREATE TABLE table_31521 (
"Rnd" real,
"Circuit" text,
"Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Supporting" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Fastest lap" FROM table_31521 WHERE "Date" = 'September 4' |
### Instruction:
CREATE TABLE table_16358 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the d... | SELECT "Director" FROM table_16358 WHERE "Production code" = '2393059' |
### Instruction:
CREATE TABLE table_16311 (
"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_16311 WHERE "Date" = 'December 20' |
### Instruction:
CREATE TABLE table_203_352 (
id number,
"position" number,
"swara" text,
"short name" text,
"notation" text,
"mnemonic" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what swara is above shatshruti dhaivata ?
### Response:
| SELECT "swara" FROM table_203_352 WHERE id = (SELECT id FROM table_203_352 WHERE "swara" = 'shatshruti dhaivata') - 1 |
### Instruction:
CREATE TABLE table_30775 (
"No." real,
"Name" text,
"Country" text,
"Original channel" text,
"No. of episodes" real,
"Running time" text,
"Launched" text,
"Date" text,
"IRST" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT("Launched") FROM table_30775 WHERE "Original channel" = 'CBS (2002)' |
### Instruction:
CREATE TABLE table_name_61 (
fencing_victories__pts_ VARCHAR,
shooting_score__pts_ VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller t... | SELECT fencing_victories__pts_ FROM table_name_61 WHERE shooting_score__pts_ = "187 (1180)" AND total < 5640 |
### Instruction:
CREATE TABLE table_27779 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Sail number" FROM table_27779 WHERE "Yacht" = 'Two True' |
### Instruction:
CREATE TABLE table_40024 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the set 1 with a 28-30 set 4?
#... | SELECT "Set 1" FROM table_40024 WHERE "Set 4" = '28-30' |
### Instruction:
CREATE TABLE table_train_7 (
"id" int,
"bleeding" int,
"hypotension" bool,
"burn_injury" int,
"hypoperfusion" bool,
"hypertension" bool,
"age" float,
"lactate" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT * FROM table_train_7 WHERE hypoperfusion = 1 OR lactate > 4 |
### Instruction:
CREATE TABLE table_34308 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Position that has the College/Junior/Club Tea... | SELECT "Position" FROM table_34308 WHERE "College/Junior/Club Team" = 'hull olympiques (qmjhl)' |
### Instruction:
CREATE TABLE table_25042332_33 (
hdi VARCHAR,
life_expectancy_at_birth__2001_2002_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many regions had a life expectancy at birth in 2001-2002 of 75.9?
### Response:
| SELECT COUNT(hdi) FROM table_25042332_33 WHERE life_expectancy_at_birth__2001_2002_ = "75.9" |
### Instruction:
CREATE TABLE table_26789 (
"Contestant" text,
"Starting Weight (kg)" text,
"Final Weight (kg)" text,
"Weight Lost (kg)" text,
"Percentage Lost" text,
"Position (out of Eliminated Contestants)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Contestant" FROM table_26789 WHERE "Position (out of Eliminated Contestants)" = '3rd' |
### Instruction:
CREATE TABLE table_203_413 (
id number,
"rank" text,
"city" text,
"population" number,
"area\n(km2)" number,
"density\n(inhabitants/km2)" number,
"altitude\n(mslm)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is th... | SELECT "city" FROM table_203_413 ORDER BY "density\n(inhabitants/km2)" LIMIT 1 |
### Instruction:
CREATE TABLE table_41450 (
"Country" text,
"Uranium required 2006-08" text,
"% of world demand" text,
"Indigenous mining production 2006" text,
"Deficit (-surplus)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has an... | SELECT "Country" FROM table_41450 WHERE "Indigenous mining production 2006" = '0' |
### Instruction:
CREATE TABLE table_204_261 (
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 won more total medals than bulga... | SELECT "nation" FROM table_204_261 WHERE "total" > (SELECT "total" FROM table_204_261 WHERE "nation" = 'bulgaria') |
### Instruction:
CREATE TABLE table_1218 (
"Municipality" text,
"League of Communists" real,
"Peoples Party" real,
"Union of Reform Forces" real,
"Democratic Coalition" real,
"DSSP" real,
"Total seats" real
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT COUNT("League of Communists") FROM table_1218 WHERE "Peoples Party" = '7' |
### Instruction:
CREATE TABLE table_9105 (
"Candidate" text,
"Party" text,
"Election List" text,
"Governorate" text,
"Votes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Candidate has a Votes larger than 622,961, and a Governorate of baghdad... | SELECT "Candidate" FROM table_9105 WHERE "Votes" > '622,961' AND "Governorate" = 'baghdad' |
### Instruction:
CREATE TABLE table_201_7 (
id number,
"year" number,
"gross domestic product" number,
"us dollar exchange" text,
"inflation index\n(2000=100)" number,
"per capita income\n(as % of usa)" number
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "year" FROM table_201_7 ORDER BY "us dollar exchange" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_31 (
ngc_number INTEGER,
object_type VARCHAR,
right_ascension___j2000__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s
### Respons... | SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s" |
### Instruction:
CREATE TABLE table_69633 (
"Competition" text,
"Started Round" text,
"Final Position" text,
"Final Round" text,
"First Match" text,
"Last Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the first match... | SELECT "First Match" FROM table_69633 WHERE "Final Position" = 'winners' AND "Competition" = 'fifa club world cup' |
### Instruction:
CREATE TABLE table_11415 (
"Name" text,
"Builder" text,
"Type" text,
"Date" real,
"Works number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total work number of Gowrie with a 0-6-4t type after 1908?
### Response:
| SELECT COUNT("Works number") FROM table_11415 WHERE "Type" = '0-6-4t' AND "Name" = 'gowrie' AND "Date" > '1908' |
### 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 name, country FROM nuclear_power_plants WHERE status = "Planned" |
### Instruction:
CREATE TABLE table_10456 (
"Swedish title" text,
"Norwegian title" text,
"Translated title" text,
"Published" text,
"Pages" real,
"ISBN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Norwegian title has 218 pages and Trans... | SELECT "Norwegian title" FROM table_10456 WHERE "Pages" = '218' AND "Translated title" = 'breaking dawn' |
### Instruction:
CREATE TABLE table_66868 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rider had more than 23 laps, a manufacturer of Aprilia, and a grid of 14
#... | SELECT "Rider" FROM table_66868 WHERE "Laps" > '23' AND "Manufacturer" = 'aprilia' AND "Grid" = '14' |
### Instruction:
CREATE TABLE table_10140 (
"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.
-- Who was the home team when the ... | SELECT "Home team" FROM table_10140 WHERE "Away team score" = '10.15 (75)' |
### Instruction:
CREATE TABLE table_name_47 (
name VARCHAR,
total_point VARCHAR,
bonus VARCHAR,
only_point VARCHAR,
catch_taken VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Only Point is greater than 1, when Catch Taken is gr... | SELECT name FROM table_name_47 WHERE only_point > 1 AND catch_taken > 3 AND bonus > 4 AND total_point < 30 |
### Instruction:
CREATE TABLE table_51186 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" text,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the artist with a mintage of 40,000 and an issue price of $45.95?
### Respon... | SELECT "Artist" FROM table_51186 WHERE "Mintage" = '40,000' AND "Issue Price" = '45.95' |
### Instruction:
CREATE TABLE table_train_146 (
"id" int,
"lymphocyte_count" int,
"c_peptide_level" float,
"vitamin_d_deficiency" bool,
"diabetic" string,
"vitamin_d" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- lymphocyte co... | SELECT * FROM table_train_146 WHERE lymphocyte_count < 500 |
### Instruction:
CREATE TABLE table_name_99 (
year INTEGER,
play_by_play VARCHAR,
sideline_reporter_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the earliest year that Al Michaels was the play-by-play commentator, in which Lesley Visser and D... | SELECT MIN(year) FROM table_name_99 WHERE play_by_play = "al michaels" AND sideline_reporter_s_ = "lesley visser and dan fouts" |
### Instruction:
CREATE TABLE table_49549 (
"Volume:Issue" text,
"Issue date(s)" text,
"Weeks at number one" real,
"Song" text,
"Artist(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Weeks at number one has a Volume:Issue of 61:22-23?
##... | SELECT MAX("Weeks at number one") FROM table_49549 WHERE "Volume:Issue" = '61:22-23' |
### Instruction:
CREATE TABLE table_33794 (
"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 home team corresponds to ... | SELECT "Home team" FROM table_33794 WHERE "Away team score" = '10.12 (72)' |
### Instruction:
CREATE TABLE table_name_4 (
evening_gown INTEGER,
average VARCHAR,
interview VARCHAR,
swimsuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the evening gown scores where the interview score is less than 8.77, the... | SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.2 |
### Instruction:
CREATE TABLE table_26299 (
"Rank" real,
"Company Name" text,
"2008 Rank" text,
"2009 Revenue" text,
"North American Brands" text,
"World Headquarters" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which comp... | SELECT "Company Name" FROM table_26299 WHERE "World Headquarters" = 'Nagaokakyo, Kyoto' |
### Instruction:
CREATE TABLE table_54018 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game in which the home team was the Grizz... | SELECT "Date" FROM table_54018 WHERE "Home" = 'grizzlies' AND "Visitor" = 'timberwolves' |
### Instruction:
CREATE TABLE table_203_496 (
id number,
"pos" number,
"country" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country earned at least 2 gold medals and ... | SELECT "country" FROM table_203_496 WHERE "gold" > 2 AND "silver" > 2 |
### Instruction:
CREATE TABLE table_34805 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Winning score of 15 (71-69-68-65=273)?
### Resp... | SELECT "Date" FROM table_34805 WHERE "Winning score" = '−15 (71-69-68-65=273)' |
### Instruction:
CREATE TABLE table_8145 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Power (kW)" text,
"Station Type" text,
"Coverage (Transmitter site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Power (kW), when Coverage (Tr... | SELECT "Power (kW)" FROM table_8145 WHERE "Coverage (Transmitter site)" = 'lucena' |
### Instruction:
CREATE TABLE table_60595 (
"Title" text,
"Lyricist(s)" text,
"Composer(s)" text,
"Arranger(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time entry for the track composed by ROZ, with the title ' (good ... | SELECT "Time" FROM table_60595 WHERE "Composer(s)" = 'roz' AND "Title" = '잘해봐 (good luck!!)' |
### Instruction:
CREATE TABLE table_38992 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a total of the Bronze less than 4, gold more than 0, and no silver?... | SELECT SUM("Bronze") FROM table_38992 WHERE "Total" < '4' AND "Gold" > '0' AND "Silver" = '0' |
### Instruction:
CREATE TABLE table_203_356 (
id number,
"type" text,
"diagonal (mm)" text,
"width (mm)" text,
"height (mm)" text,
"area (mm2)" text,
"stops (area)" number,
"crop factor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wha... | SELECT "type" FROM table_203_356 WHERE "crop factor" > 20 |
### Instruction:
CREATE TABLE table_50599 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Ties" real,
"Losses" real,
"Goals For" real,
"Goals Against" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT AVG("Losses") FROM table_50599 WHERE "Goals For" > '22' |
### Instruction:
CREATE TABLE table_204_494 (
id number,
"episode #" text,
"original air date (uk)" text,
"episode title" text,
"guest cast" text,
"dvd # 1" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which episode was previous to target
... | SELECT "episode title" FROM table_204_494 WHERE id = (SELECT id FROM table_204_494 WHERE "episode title" = '"target"') - 1 |
### Instruction:
CREATE TABLE table_56018 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total associated with a Clean & jerk of 135, and a Snatch of 115?... | SELECT "Total (kg)" FROM table_56018 WHERE "Clean & jerk" = '135' AND "Snatch" = '115' |
### Instruction:
CREATE TABLE table_204_514 (
id number,
"date" text,
"sub" number,
"flight" text,
"dead" number,
"hurt" number,
"pax." number,
"type" text,
"perpetrator" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT SUM("hurt") FROM table_204_514 |
### Instruction:
CREATE TABLE table_60193 (
"Election" text,
"First member" text,
"1st Party" text,
"Second member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 1st Party, when First Member is 'Peter John Locke King', and... | SELECT "1st Party" FROM table_60193 WHERE "First member" = 'peter john locke king' AND "Second member" = 'james watney' |
### Instruction:
CREATE TABLE table_203_412 (
id number,
"school" text,
"conference" text,
"record (conference)" text,
"head coach" text,
"cws appearances" text,
"cws best finish" text,
"cws record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT("school") FROM table_203_412 WHERE "cws best finish" = 1955 |
### Instruction:
CREATE TABLE Faculty (
FacID VARCHAR,
fname VARCHAR,
lname VARCHAR
)
CREATE TABLE Student (
fname VARCHAR,
lname VARCHAR,
advisor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show first name and last name for all the stude... | SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich" |
### Instruction:
CREATE TABLE table_6785 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text,
"Left" text,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT SUM("Founded") FROM table_6785 WHERE "Left" = '1976' |
### Instruction:
CREATE TABLE table_name_67 (
area__km_2__ INTEGER,
name VARCHAR,
population__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area (in km2) for theewaterskloof, whose population in 2011 was less than 108,790?
### Respon... | SELECT SUM(area__km_2__) FROM table_name_67 WHERE name = "theewaterskloof" AND population__2011_ < 108 OFFSET 790 |
### Instruction:
CREATE TABLE table_204_473 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how lon... | SELECT "time/retired" FROM table_204_473 WHERE "driver" = 'jo bonnier' |
### Instruction:
CREATE TABLE table_1243 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"For" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Team" FROM table_1243 WHERE "Difference" = '8' |
### Instruction:
CREATE TABLE table_17632217_2 (
fourth_placed VARCHAR,
total_wins VARCHAR,
third_place VARCHAR,
winners VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was placed fourth when third was Beijing Guoan and the winner was Dalian Wanda... | SELECT fourth_placed FROM table_17632217_2 WHERE third_place = "Beijing Guoan" AND winners = "Dalian Wanda" AND total_wins = 4 |
### Instruction:
CREATE TABLE table_14542 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sets were in the 2011 Australian Open Tournament?
... | SELECT "2011" FROM table_14542 WHERE "Tournament" = 'australian open' |
### Instruction:
CREATE TABLE table_25042332_26 (
public_network VARCHAR,
region VARCHAR,
other_source VARCHAR,
solar_panel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percentage of public network in the region that has 0.1% other sour... | SELECT public_network FROM table_25042332_26 WHERE other_source = "0.1%" AND solar_panel = "0.0%" AND region = "Maule" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.