instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_59651 (
"Name" text,
"Years" text,
"Wins" real,
"Losses" real,
"Ties" real,
"Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Ties have Years of 1919 1925, and a Pct larger than 0.734?
### Respo... | SELECT SUM("Ties") FROM table_59651 WHERE "Years" = '1919–1925' AND "Pct." > '0.734' |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name |
### Instruction:
CREATE TABLE table_37291 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"10:00" text,
"10:30" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 10:30 has an 7:30 of earth: final conflict?
### Respons... | SELECT "10:30" FROM table_37291 WHERE "7:30" = 'earth: final conflict' |
### Instruction:
CREATE TABLE table_204_850 (
id number,
"name" text,
"railway" text,
"series" text,
"maker" text,
"dates" text,
"drive" text,
"wheel arrangement" text,
"weight" text,
"power" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT SUM("weight") FROM table_204_850 WHERE "name" IN ('big boy', 'm1') |
### Instruction:
CREATE TABLE table_47853 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND... | SELECT MIN("Laps") FROM table_47853 WHERE "Points" > '5' AND "Team" = 'forsythe racing' AND "Grid" = '5' |
### Instruction:
CREATE TABLE table_45975 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college did the player who had the position of OT come from who wa... | SELECT "College" FROM table_45975 WHERE "Overall" > '226' AND "Pick" < '12' AND "Position" = 'ot' |
### Instruction:
CREATE TABLE table_14246 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Place of birth listed that has an Elevator of ALexan... | SELECT "Place of birth" FROM table_14246 WHERE "Elevator" = 'alexander iii' AND "Elector" = 'ruggiero di san severino' |
### Instruction:
CREATE TABLE table_33187 (
"Positional or Automatic" text,
"Opponents" text,
"Suits" text,
"Material or Non-material" text,
"Count Rectified" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is the count rectified for single opponents... | SELECT "Count Rectified" FROM table_33187 WHERE "Opponents" = 'single' AND "Positional or Automatic" = 'either' AND "Material or Non-material" = 'no' |
### Instruction:
CREATE TABLE table_168 (
"#" real,
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Rating" text,
"Share" text,
"18\u201349 Rating" text,
"Viewers (millions)" text,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MAX("#") FROM table_168 WHERE "Episode" = 'The Birthday Present' |
### Instruction:
CREATE TABLE table_24036 (
"Tour" text,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when womens singles is wang yihan and... | SELECT "Mens singles" FROM table_24036 WHERE "Womens singles" = 'Wang Yihan' AND "Tour" = 'French Super Series' |
### Instruction:
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
op... | SELECT name FROM people ORDER BY date_of_birth |
### Instruction:
CREATE TABLE table_204_643 (
id number,
"release" number,
"artist" text,
"title" text,
"notes" text,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the album released immediately before the one that had boku wa ... | SELECT "album" FROM table_204_643 WHERE id = (SELECT id FROM table_204_643 WHERE "title" = 'boku wa do kana (僕はとうかな what should i do?)') - 1 |
### Instruction:
CREATE TABLE table_204_590 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text,
"avg. attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what wa... | SELECT COUNT(*) FROM table_204_590 WHERE "league" = 'usl a-league' AND "playoffs" = 'did not qualify' |
### Instruction:
CREATE TABLE table_train_195 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"allergy_to_perflutren" bool,
"heart_disease" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT * FROM table_train_195 WHERE allergy_to_perflutren = 1 |
### Instruction:
CREATE TABLE table_67244 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fe... | SELECT "Chassis" FROM table_67244 WHERE "Engine" = 'maserati straight-6' AND "Entrant" = 'officine alfieri maserati' AND "Points" < '6' |
### Instruction:
CREATE TABLE table_49790 (
"Tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament has a 2010 of 1r, and a 2008 of 1r?
### Response:
| SELECT "Tournament" FROM table_49790 WHERE "2010" = '1r' AND "2008" = '1r' |
### Instruction:
CREATE TABLE table_74155 (
"Product Name" text,
"Form Factor" text,
"Storage Medium" text,
"Max Usable Capacity (GB)" real,
"Speed ( IOPS )" real,
"Latency (microseconds)" real,
"Bandwidth (GB/s)" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Speed ( IOPS )" FROM table_74155 WHERE "Storage Medium" = 'eMLC Flash' |
### Instruction:
CREATE TABLE table_75251 (
"common name" text,
"protein name" text,
"divergence from human lineage (MYA)" real,
"accession number" text,
"sequence length (aa)" real,
"sequence identity to human protein" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "accession number" FROM table_75251 WHERE "divergence from human lineage (MYA)" = '937.5' |
### Instruction:
CREATE TABLE table_203_321 (
id number,
"sheriff" text,
"start of term" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the sheriff in suffolk county before amza biggs first term there as sheriff ?
### Response:
| SELECT "sheriff" FROM table_203_321 WHERE "start of term" < (SELECT "start of term" FROM table_203_321 WHERE "sheriff" = 'amza biggs' ORDER BY "start of term" LIMIT 1) ORDER BY "start of term" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_61056 (
"Role" text,
"Original Broadway cast" text,
"Closing Broadway cast" text,
"Original US Tour cast" text,
"Original NonEquity Tour cast" text,
"Original S\u00e3o Paulo cast" text,
"Original Lima cast" text
)
-- Using valid SQLite, answer the follow... | SELECT "Original NonEquity Tour cast" FROM table_61056 WHERE "Original Broadway cast" = 'kevin chamberlin' |
### Instruction:
CREATE TABLE table_40862 (
"Record" text,
"Athlete" text,
"Nation" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0 in)?
... | SELECT "Date" FROM table_40862 WHERE "Athlete" = 'yelena isinbayeva' AND "Record" = '4.90m(16ft0¾in)' |
### Instruction:
CREATE TABLE accounts (
name VARCHAR,
custid VARCHAR
)
CREATE TABLE checking (
balance VARCHAR,
custid VARCHAR
)
CREATE TABLE savings (
custid VARCHAR,
balance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name an... | SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 |
### 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 Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY Fate DESC |
### Instruction:
CREATE TABLE table_25161 (
"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 "Race Time" FROM table_25161 WHERE "Team" = 'Billy Ballew Motorsports' |
### Instruction:
CREATE TABLE table_15240 (
"Company" text,
"Plan name" text,
"Technology" text,
"Maximum download speed/ kbps" text,
"Data limit/ GB" text,
"Monthly price incl. VAT/ CZK" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Maximum download speed/ kbps" FROM table_15240 WHERE "Technology" = '3g' AND "Plan name" = 'internet premium' |
### Instruction:
CREATE TABLE table_2332 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Enrollment (2005)" text,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the enrollment (2005) for baccalaureate colleg... | SELECT "Enrollment (2005)" FROM table_2332 WHERE "Type" = 'Baccalaureate college' AND "School" = 'Granite State College' |
### Instruction:
CREATE TABLE table_47335 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team of the match on 21 September 2008 with an attendance less than 2248 an... | SELECT "Home" FROM table_47335 WHERE "Attendance" < '2248' AND "Score" = '2:0' AND "Date" = '21 september 2008' |
### Instruction:
CREATE TABLE table_203_800 (
id number,
"#" number,
"president" text,
"president's party" text,
"senate with" number,
"senate opposed" number,
"house with" number,
"house opposed" number,
"years served" number,
"elections won" number
)
-- Using valid SQLite, an... | SELECT "years served" FROM table_203_800 WHERE "president" = 'ulysses grant' |
### Instruction:
CREATE TABLE table_47118 (
"Senator" text,
"Party" text,
"District" real,
"Home Town" text,
"Took Office" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Party, when District is less than 10, when Took Office is less than 199... | SELECT "Party" FROM table_47118 WHERE "District" < '10' AND "Took Office" < '1991' AND "Home Town" = 'mount pleasant' |
### Instruction:
CREATE TABLE table_55075 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ngc number when the object ... | SELECT MAX("NGC number") FROM table_55075 WHERE "Object type" = 'lenticular galaxy' AND "Constellation" = 'hydra' |
### Instruction:
CREATE TABLE table_129 (
"1953" text,
"party" text,
"Manhattan" text,
"The Bronx" text,
"Brooklyn" text,
"Queens" text,
"Richmond [Staten Is.]" text,
"Total" real,
"%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Queens" FROM table_129 WHERE "Richmond [Staten Is.]" = '295' |
### Instruction:
CREATE TABLE table_58164 (
"Platform" real,
"Frequency (per hour)" real,
"Destination" text,
"Operator" text,
"Line" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest platform number when the frequency (per hour) is... | SELECT MAX("Platform") FROM table_58164 WHERE "Frequency (per hour)" = '4' AND "Operator" = 'london overground' AND "Destination" = 'west croydon' |
### Instruction:
CREATE TABLE table_51146 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT COUNT("Goals For") FROM table_51146 WHERE "Lost" < '7' AND "Position" = '2' |
### Instruction:
CREATE TABLE table_74949 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Silver is the lowest one that has a Gold larger than 0, and a Rank of... | SELECT MIN("Silver") FROM table_74949 WHERE "Gold" > '0' AND "Rank" = 'total' AND "Bronze" < '32' |
### Instruction:
CREATE TABLE table_203_486 (
id number,
"place" number,
"team" text,
"matches" number,
"won" number,
"drawn" number,
"lost" number,
"difference" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what te... | SELECT "team" FROM table_203_486 WHERE "place" > (SELECT "place" FROM table_203_486 WHERE "team" = 'canada') ORDER BY "place" LIMIT 1 |
### Instruction:
CREATE TABLE table_33088 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" real,
"Round of 32" real,
"Sweet Sixteen" real,
"Elite Eight" real,
"Final Four" real,
"Championship Game" real
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT MIN("# of Bids") FROM table_33088 WHERE "Conference" = 'missouri valley' |
### Instruction:
CREATE TABLE table_203_497 (
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.
-- what is the difference in total number of medals... | SELECT (SELECT "total" FROM table_203_497 WHERE "nation" = 'india') - (SELECT "total" FROM table_203_497 WHERE "nation" = 'nepal') |
### Instruction:
CREATE TABLE table_14700336_1 (
presidential_majority_2000_2004 VARCHAR,
presidential_majority_2012 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the recorded result under presidential majority 2000/2004 when the presiditial majori... | SELECT presidential_majority_2000_2004 FROM table_14700336_1 WHERE presidential_majority_2012 = "Non-voting" |
### Instruction:
CREATE TABLE table_65100 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number ... | SELECT "Bonus points" FROM table_65100 WHERE "Drawn" = '2' AND "Points against" = '599' |
### Instruction:
CREATE TABLE table_22538 (
"Position" text,
"Country" text,
"Floor" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Team Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Parallel Bars" FROM table_22538 WHERE "Rings" = '60.500' |
### Instruction:
CREATE TABLE table_28422 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Rank (week)" real,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT MAX("Rank (week)") FROM table_28422 WHERE "Production code" = '1ALF05' |
### Instruction:
CREATE TABLE Restaurant (
TIME VARCHAR
)
CREATE TABLE Visits_Restaurant (
TIME VARCHAR
)
CREATE TABLE Student (
TIME VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Linda Smith visit Subway?
### Response:
| SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway" |
### Instruction:
CREATE TABLE table_18602462_22 (
round_of_32 VARCHAR,
round_of_16 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?
### Response:
| SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = "Polidori ( ITA ) W 6-1, 3-6, 6-3" |
### Instruction:
CREATE TABLE table_50988 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lo... | SELECT "Location Attendance" FROM table_50988 WHERE "Game" > '35' AND "Date" = 'january 30' |
### Instruction:
CREATE TABLE table_name_28 (
geo_id VARCHAR,
ansi_code VARCHAR,
water__sqmi_ VARCHAR,
township VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi... | SELECT COUNT(geo_id) FROM table_name_28 WHERE water__sqmi_ > 0.587 AND township = "riggin" AND ansi_code > 1759257 |
### Instruction:
CREATE TABLE table_64213 (
"Position" real,
"Gymnast" text,
"Floor" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Gymnast" FROM table_64213 WHERE "Floor" = '14.800' |
### Instruction:
CREATE TABLE table_29636 (
"Season" text,
"Episodes" real,
"Timeslot ( EST )" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Rank" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT COUNT("Season premiere") FROM table_29636 WHERE "Viewers (in millions)" = '15.27' |
### Instruction:
CREATE TABLE table_1533 (
"Urban area (locality)" text,
"Municipality" text,
"Population" real,
"Land area (hectares)" text,
"Density (inh./km\u00b2)" text,
"Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many codes ha... | SELECT COUNT("Code") FROM table_1533 WHERE "Municipality" = 'Vellinge Municipality' AND "Population" = '598' |
### Instruction:
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT location FROM track WHERE seating > 90000 INTERSECT SELECT location FROM track WHERE seating < 70000 |
### Instruction:
CREATE TABLE table_name_77 (
elevation__ft_ INTEGER,
isolation VARCHAR,
range VARCHAR,
peak_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE ELEVATION OF THE UNAKA MOUNTAINS, IN ROAN HIGH BLUFF PEAK, AND ISOLATION LARG... | SELECT AVG(elevation__ft_) FROM table_name_77 WHERE range = "unaka mountains" AND peak_name = "roan high bluff" AND isolation > 1.54 |
### Instruction:
CREATE TABLE table_39029 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" real,
"Barrier [b ]" text,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place was the horse with a b... | SELECT "Placing" FROM table_39029 WHERE "Weight (kg)" < '54' AND "Barrier [b ]" = '20' |
### Instruction:
CREATE TABLE table_7788 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Home team with a cr... | SELECT "Home team" FROM table_7788 WHERE "Crowd" > '13,905' AND "Ground" = 'telstra stadium' |
### Instruction:
CREATE TABLE table_48195 (
"Test flight" text,
"Date" text,
"Speed" text,
"Altitude" text,
"Crew" text,
"Duration" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Comment is Tailcone On, Lak... | SELECT "Date" FROM table_48195 WHERE "Comment" = 'tailcone on, lakebed landing' AND "Duration" = '5min 34 s' |
### Instruction:
CREATE TABLE table_9819 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the laps with a grid less than 28, retirement time, and a ducati 1098 f08 bikes?... | SELECT SUM("Laps") FROM table_9819 WHERE "Grid" < '28' AND "Time" = 'retirement' AND "Bike" = 'ducati 1098 f08' |
### Instruction:
CREATE TABLE table_204_833 (
id number,
"game" number,
"date" text,
"team" text,
"score" text,
"high points" text,
"high rebounds" text,
"high assists" text,
"location\nattendance" text,
"record" text
)
-- Using valid SQLite, answer the following questions for ... | SELECT "score" - "score" FROM table_204_833 WHERE "date" = 'april 9' |
### Instruction:
CREATE TABLE table_13554 (
"Sunrayia 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 is the lowest losses for a team that has 0 draws, fewer than 4 w... | SELECT MIN("Losses") FROM table_13554 WHERE "Draws" = '0' AND "Wins" < '4' AND "Byes" < '0' |
### Instruction:
CREATE TABLE table_22123 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" real,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tit... | SELECT "Title" FROM table_22123 WHERE "Viewers (millions)" = '3.7' AND "Directed by" = 'David Kendall' |
### Instruction:
CREATE TABLE table_76348 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the foll... | SELECT "Points against" FROM table_76348 WHERE "Drawn" = 'drawn' |
### Instruction:
CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE member_of_club (
stui... | SELECT COUNT(*) FROM club WHERE clublocation = "HHH" |
### Instruction:
CREATE TABLE table_17641314_3 (
location_denotes_location_of_school_by_seattle_neighborhood VARCHAR,
_does_not_necessary_correspond_with_attendance_area VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the location for... | SELECT location_denotes_location_of_school_by_seattle_neighborhood, _does_not_necessary_correspond_with_attendance_area FROM table_17641314_3 WHERE school = "Eckstein" |
### Instruction:
CREATE TABLE table_63670 (
"School" text,
"City" text,
"Team Name" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"IHSAA Class Football" text,
"County" text,
"Year Joined (Or Joining)" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the followi... | SELECT "School" FROM table_63670 WHERE "Team Name" = 'pirates' |
### Instruction:
CREATE TABLE table_54964 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest swimsuit score where the contestant scored less than 8.56 i... | SELECT MIN("Swimsuit") FROM table_54964 WHERE "Interview" < '8.56' AND "Evening gown" > '8.54' |
### Instruction:
CREATE TABLE table_48868 (
"Season" real,
"Total Attendance" real,
"Games" real,
"Average" real,
"High avg." real,
"Team" text,
"No. Of Clubs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of clubs for Sh... | SELECT COUNT("No. Of Clubs") FROM table_48868 WHERE "Team" = 'shenyang ginde' AND "Games" > '182' |
### Instruction:
CREATE TABLE INVESTORS (
Investor_details VARCHAR,
investor_id VARCHAR
)
CREATE TABLE TRANSACTIONS (
investor_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the id and details for the investors who have the top 3 number of trans... | SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3 |
### Instruction:
CREATE TABLE table_26461 (
"Overall Episode #" real,
"Original airdate" text,
"Iron Chef" text,
"Challenger" text,
"Challenger Specialty" text,
"Theme Ingredient" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT MAX("Overall Episode #") FROM table_26461 WHERE "Original airdate" = 'November 21, 1993' |
### Instruction:
CREATE TABLE table_17621 (
"Number in series" real,
"Broadcast Order" text,
"Title" text,
"Villain/s" text,
"U.S. Air Date" text,
"Production Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the total number of episod... | SELECT COUNT("Production Code") FROM table_17621 WHERE "U.S. Air Date" = 'January 15, 2005' |
### Instruction:
CREATE TABLE table_71895 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" text,
"Investing Dragon(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Ep... | SELECT "Episode" FROM table_71895 WHERE "Entrepreneur(s)" = 'luke booth and christopher eves' |
### Instruction:
CREATE TABLE table_59543 (
"Total fat" text,
"Saturated fat" text,
"Monounsaturated fat" text,
"Polyunsaturated fat" text,
"Smoke point" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smoke point with a total fat of 100g... | SELECT "Smoke point" FROM table_59543 WHERE "Total fat" = '100g' AND "Monounsaturated fat" = '46g' |
### Instruction:
CREATE TABLE table_61617 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 2009 has lq as the 2011?
### Respon... | SELECT "2009" FROM table_61617 WHERE "2011" = 'lq' |
### Instruction:
CREATE TABLE table_38269 (
"NTFA Div 2" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Against has Losses larger than 2, and Wins of 8, and Byes smalle... | SELECT SUM("Against") FROM table_38269 WHERE "Losses" > '2' AND "Wins" = '8' AND "Byes" < '0' |
### Instruction:
CREATE TABLE table_47613 (
"Date" text,
"Competition" text,
"Winners" text,
"Score" text,
"Runners-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?
... | SELECT "Runners-up" FROM table_47613 WHERE "Winners" = 'cork city f.c.' AND "Date" = '10/05/1998' |
### Instruction:
CREATE TABLE table_203_653 (
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.
-- how many more silver medals did russian win than... | SELECT (SELECT "silver" FROM table_203_653 WHERE "nation" = 'russia') - (SELECT "silver" FROM table_203_653 WHERE "nation" = 'denmark') |
### Instruction:
CREATE TABLE table_3266 (
"Episode Number" text,
"Episode" text,
"Original Airdate" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text,
"Weekly Rank" real
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Episode Number" FROM table_3266 WHERE "Episode" = 'Week 4, Part 1' |
### Instruction:
CREATE TABLE table_29603 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "First Star" FROM table_29603 WHERE "Record" = '17-11-5' |
### Instruction:
CREATE TABLE table_13148 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has $450 and a score of 76-74-74-72=296?
### Respon... | SELECT "Player" FROM table_13148 WHERE "Money ( $ )" = '450' AND "Score" = '76-74-74-72=296' |
### Instruction:
CREATE TABLE table_204_218 (
id number,
"name" text,
"faith" text,
"type" text,
"gov" text,
"opened" number,
"intake" number,
"dcsf number" number,
"ofsted number" number,
"web" text,
"coordinates" text
)
-- Using valid SQLite, answer the following question... | SELECT COUNT(DISTINCT "type") FROM table_204_218 AS table_204_218 |
### Instruction:
CREATE TABLE table_27237 (
"No." real,
"#" 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 "Production code" FROM table_27237 WHERE "U.S. viewers (million)" = '5.43' |
### Instruction:
CREATE TABLE table_72277 (
"Name" text,
"Location" text,
"Light vehicle" text,
"Heavy vehicle (2 axles)" text,
"Heavy vehicle (3/4 axles)" text,
"Heavy vehicle (5+ axles)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is t... | SELECT "Name" FROM table_72277 WHERE "Heavy vehicle (2 axles)" = 'R87.00' |
### Instruction:
CREATE TABLE table_62953 (
"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 Tries against h... | SELECT COUNT("Tries against") FROM table_62953 WHERE "Team" = 'dinamo bucureşti' AND "Tries for" < '19' |
### Instruction:
CREATE TABLE table_2835 (
"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 COUNT("Team") FROM table_2835 WHERE "Score" = 'W 99–91 (OT)' |
### Instruction:
CREATE TABLE table_50731 (
"BR No." text,
"Lot No." real,
"Date" real,
"Built at" text,
"Boiler type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year is the date when the boiler type is forward topfeed, the built at is Crew... | SELECT COUNT("Date") FROM table_50731 WHERE "Boiler type" = 'forward topfeed' AND "Built at" = 'crewe' AND "Lot No." < '187' |
### Instruction:
CREATE TABLE table_23492 (
"Ostrich" text,
"Hamerkop" text,
"Hadeda Ibis" text,
"African Spoonbill" text,
"Whitefaced Duck" text,
"Knobbilled Duck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the African Spoonbill whe... | SELECT "African Spoonbill" FROM table_23492 WHERE "Hadeda Ibis" = 'Brown Snake Eagle' |
### Instruction:
CREATE TABLE table_60062 (
"Position" real,
"Club" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Points" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT AVG("Played") FROM table_60062 WHERE "Position" > '16' |
### Instruction:
CREATE TABLE table_69212 (
"State" text,
"Preliminaries" real,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many swimsuits have an Evening Gown larger than ... | SELECT COUNT("Swimsuit") FROM table_69212 WHERE "Evening Gown" > '9' AND "Interview" > '8.405' |
### Instruction:
CREATE TABLE table_204_544 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in the 2002 pan pacific swimming championships women 's 100 metre backst... | SELECT "nationality" FROM table_204_544 WHERE "rank" <= 8 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_203_240 (
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.
-- w... | SELECT "score" FROM table_203_240 WHERE "opponent" = 'expos' ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_22682 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Date" FROM table_22682 WHERE "High rebounds" = 'McWilliams-Franklin (8)' |
### Instruction:
CREATE TABLE table_15459 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory for the win w... | SELECT "Margin of victory" FROM table_15459 WHERE "Winning score" = '71-69-71-70=281' |
### Instruction:
CREATE TABLE table_57631 (
"Name of horse" text,
"Year inducted" real,
"Year foaled" text,
"Sire" text,
"Broodmare sire" text,
"Discipline" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What horse was induced in 2011 with a sir... | SELECT "Name of horse" FROM table_57631 WHERE "Year inducted" = '2011' AND "Broodmare sire" = 'cowboy p-12' |
### Instruction:
CREATE TABLE table_204_265 (
id number,
"no." number,
"title (latin)" text,
"title (english translation)" text,
"subject" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- latin title of the encyclical before the encyc... | SELECT "title (latin)" FROM table_204_265 WHERE id = (SELECT id FROM table_204_265 WHERE "subject" = 'on the church in bavaria') - 1 |
### Instruction:
CREATE TABLE table_11251601_2 (
carbon_dioxide_emissions_per_year__10_6_tons___2006_ INTEGER,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006?
### Response:
| SELECT MAX(carbon_dioxide_emissions_per_year__10_6_tons___2006_) FROM table_11251601_2 WHERE country = "Russia" |
### Instruction:
CREATE TABLE table_80030 (
"Track Name" text,
"Location" text,
"Length" text,
"Seating" real,
"Year Opened" real,
"Year Acquired [A ]" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year opened for Chicagoland Speedw... | SELECT AVG("Year Opened") FROM table_80030 WHERE "Track Name" = 'chicagoland speedway' AND "Seating" < '75,000' |
### Instruction:
CREATE TABLE table_24469 (
"Team" text,
"Sport" text,
"League" text,
"Established" real,
"Began in St. Louis" real,
"Venue" text,
"Championships in St. Louis" text,
"Left St. Louis" real
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT MIN("Left St. Louis") FROM table_24469 WHERE "Venue" = 'Scottrade Center' |
### Instruction:
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT' |
### Instruction:
CREATE TABLE table_12932 (
"Percentage Range" text,
"Grade" text,
"Points for Higher" real,
"Points for Ordinary" real,
"Points for Foundation" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What average points for highers has 0 has... | SELECT AVG("Points for Higher") FROM table_12932 WHERE "Points for Ordinary" = '0' AND "Grade" = 'ng' AND "Points for Foundation" < '0' |
### Instruction:
CREATE TABLE table_17463 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which college/junior/club teams nationality... | SELECT "College/junior/club team" FROM table_17463 WHERE "Nationality" = 'Canada' AND "NHL team" = 'Minnesota North Stars' |
### Instruction:
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
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,
Locati... | SELECT Name, Age FROM driver ORDER BY Name |
### Instruction:
CREATE TABLE table_75533 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the School/Junior/Club Group (Class) that has a ... | SELECT "College/Junior/Club Team (League)" FROM table_75533 WHERE "Nationality" = 'canada' AND "Position" = 'goalie' |
### Instruction:
CREATE TABLE table_28691 (
"Role" text,
"Original Broadway Cast" text,
"2005 film" text,
"2008 Final Performance Film" text,
"Hollywood Bowl Cast" text,
"2011 Off-Broadway Revival" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "2005 film" FROM table_28691 WHERE "Original Broadway Cast" = 'Jesse L. Martin' |
### Instruction:
CREATE TABLE table_37869 (
"orbit" text,
"center-to-center distance" text,
"altitude above the Earth's surface" text,
"Orbital period" text,
"specific orbital energy" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- center-to-center d... | SELECT "Orbital period" FROM table_37869 WHERE "center-to-center distance" = '6,900 to 46,300 km' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.