instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_3100 (
"No." 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.
-- How many da... | SELECT COUNT("Original air date") FROM table_3100 WHERE "Title" = 'Rebecca''s One Night Stand' |
### Instruction:
CREATE TABLE table_67891 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Try BP" text,
"Losing BP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the try BP when the losing BP is 4 and the club is Bargoed RFC?
... | SELECT "Try BP" FROM table_67891 WHERE "Losing BP" = '4' AND "Club" = 'bargoed rfc' |
### Instruction:
CREATE TABLE table_12535 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of the player whose score is 71-69-70-69=... | SELECT "Country" FROM table_12535 WHERE "Score" = '71-69-70-69=279' |
### Instruction:
CREATE TABLE table_68704 (
"Bellarine 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 sum of losses for Geelong Amateur, with 0 byes?
### Re... | SELECT SUM("Losses") FROM table_68704 WHERE "Bellarine FL" = 'geelong amateur' AND "Byes" < '0' |
### Instruction:
CREATE TABLE table_27956 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many type c... | SELECT COUNT("type") FROM table_27956 WHERE "% YES" = '68.91%' |
### Instruction:
CREATE TABLE table_80013 (
"Model" text,
"Code name" text,
"CPU support" text,
"FSB / HT (MHz)" text,
"Southbridge" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the code name when the Southbridge shows as amd-766, via-vt82... | SELECT "Code name" FROM table_80013 WHERE "Southbridge" = 'amd-766, via-vt82c686b' |
### Instruction:
CREATE TABLE table_284 (
"Stage (Winner)" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Combination classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT "Team Classification" FROM table_284 WHERE "Points classification" = 'Bradley Wiggins' |
### Instruction:
CREATE TABLE table_77591 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average wins for players ranked below 2 with earnings greater than $7,676,55... | SELECT AVG("Wins") FROM table_77591 WHERE "Earnings( $ )" > '7,676,552' AND "Rank" > '2' |
### 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.
-- how many c... | SELECT COUNT("city") FROM table_203_413 WHERE "population" >= 25000 |
### Instruction:
CREATE TABLE table_66967 (
"Pick #" text,
"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.
-- What position in the Vancouver Canucks has ... | SELECT "Position" FROM table_66967 WHERE "NHL team" = 'vancouver canucks' AND "Pick #" = '101' |
### Instruction:
CREATE TABLE table_37314 (
"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 "Points for" FROM table_37314 WHERE "Points against" = '414' |
### Instruction:
CREATE TABLE table_20853 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position is the player who was on the ... | SELECT "Position" FROM table_20853 WHERE "Years for Grizzlies" = '1995-1996' |
### Instruction:
CREATE TABLE table_58279 (
"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 home team has an Away team... | SELECT "Home team score" FROM table_58279 WHERE "Away team score" = '11.12 (78)' |
### Instruction:
CREATE TABLE table_3520 (
"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 "Nickname" FROM table_3520 WHERE "Founded" = '1857' |
### Instruction:
CREATE TABLE table_name_63 (
swimsuit INTEGER,
average VARCHAR,
interview VARCHAR,
evening_gown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest swimsuit score of the contestant with a higher than 9.55 interview sco... | SELECT MAX(swimsuit) FROM table_name_63 WHERE interview > 9.55 AND evening_gown = 9.75 AND average > 9.67 |
### Instruction:
CREATE TABLE table_46700 (
"Class" text,
"Leading bits" real,
"Size of network number bit field" text,
"Size of rest bit field" text,
"Number of networks" text,
"Addresses per network" text,
"Start address" text,
"End address" text
)
-- Using valid SQLite, answer the f... | SELECT "End address" FROM table_46700 WHERE "Class" = 'class e (reserved)' |
### Instruction:
CREATE TABLE table_33612 (
"Approximate Age" text,
"Virtues" text,
"Psycho Social Crisis" text,
"Significant Relationship" text,
"Existential Question [ not in citation given ]" text,
"Examples" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Approximate Age" FROM table_33612 WHERE "Virtues" = 'wisdom' |
### Instruction:
CREATE TABLE table_204_428 (
id number,
"season" text,
"east superleague" text,
"east premier league" text,
"east region south division" text,
"east region central division" text,
"east region north division" text
)
-- Using valid SQLite, answer the following questions for... | SELECT MAX("season") FROM table_204_428 WHERE "east region south division" = 'broxburn athletic' |
### Instruction:
CREATE TABLE table_76403 (
"Year" text,
"2009" text,
"2008" text,
"2007" text,
"2006" text,
"2005" text,
"2004" text,
"2003" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year is the 2007 big red?
### Response:
| SELECT "Year" FROM table_76403 WHERE "2007" = 'big red' |
### Instruction:
CREATE TABLE table_69047 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Brown Motors best point total using the Offenhauser L4 engine since 1950?
### R... | SELECT MAX("Points") FROM table_69047 WHERE "Year" > '1950' AND "Engine" = 'offenhauser l4' AND "Entrant" = 'brown motors' |
### Instruction:
CREATE TABLE table_20410 (
"No." real,
"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.
-- Name the runners up for when... | SELECT "Runner(s)-up" FROM table_20410 WHERE "Tournament" = 'WGC-Accenture Match Play Championship' |
### Instruction:
CREATE TABLE Player_Attributes (
player_api_id VARCHAR,
height VARCHAR,
overall_rating INTEGER
)
CREATE TABLE Player (
player_api_id VARCHAR,
height VARCHAR,
overall_rating INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List... | SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85 |
### Instruction:
CREATE TABLE table_31682 (
"Flight" text,
"Launch date/time (UTC)" text,
"Variant" text,
"Launch Pad" text,
"Payload" text,
"Payload Mass" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the launch pad for 25 december 201... | SELECT "Launch Pad" FROM table_31682 WHERE "Launch date/time (UTC)" = '25 december 2010 10:34' |
### Instruction:
CREATE TABLE table_69524 (
"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 "Tries for" FROM table_69524 WHERE "Try bonus" = '5' |
### Instruction:
CREATE TABLE table_58102 (
"Year" real,
"Driver" text,
"Constructor" text,
"Location" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is a report for a race with Baconin Borzacchini in Tripoli in a year after 1928... | SELECT "Report" FROM table_58102 WHERE "Location" = 'tripoli' AND "Year" > '1928' AND "Driver" = 'baconin borzacchini' |
### Instruction:
CREATE TABLE table_22243 (
"Commune" text,
"Area (km 2 )" text,
"2002 population" real,
"Pop. density (km 2 )" text,
"Municipality website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the population densities of all comm... | SELECT "Pop. density (km 2 )" FROM table_22243 WHERE "Area (km 2 )" = '28.3' |
### Instruction:
CREATE TABLE table_51211 (
"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 venue when the awa... | SELECT "Venue" FROM table_51211 WHERE "Away team score" = '11.11 (77)' |
### Instruction:
CREATE TABLE table_name_91 (
psychological_dependence VARCHAR,
pleasure VARCHAR,
mean VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Psychological Dependence, when Pleasure is '2.3', and when Mean is less than... | SELECT COUNT(psychological_dependence) FROM table_name_91 WHERE pleasure = 2.3 AND mean < 1.9300000000000002 |
### Instruction:
CREATE TABLE table_38204 (
"Place" real,
"Nation" text,
"5 Hoops" real,
"3 Balls, 2 Ribbons" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribb... | SELECT MAX("3 Balls, 2 Ribbons") FROM table_38204 WHERE "Nation" = 'bulgaria' AND "Place" > '1' |
### Instruction:
CREATE TABLE table_238124_1 (
bleeding_time VARCHAR,
partial_thromboplastin_time VARCHAR,
prothrombin_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the bleeding time during the prolonged partial thromboplastin time in whic... | SELECT bleeding_time FROM table_238124_1 WHERE partial_thromboplastin_time = "Prolonged" AND prothrombin_time = "Unaffected" |
### Instruction:
CREATE TABLE table_name_63 (
career_sr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value in 1997 when the value in 1989 is A, 1995 is QF, 1996 is 3R and the career SR is 0 / 8?
### Response:
| SELECT 1997 FROM table_name_63 WHERE 1989 = "a" AND 1995 = "qf" AND 1996 = "3r" AND career_sr = "0 / 8" |
### Instruction:
CREATE TABLE table_69694 (
"Year" real,
"Winners" text,
"2nd place" text,
"3rd place" text,
"4th place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 3rd place with winners of weymouth wildcats and 4th place of boston barr... | SELECT "3rd place" FROM table_69694 WHERE "Winners" = 'weymouth wildcats' AND "4th place" = 'boston barracudas' |
### Instruction:
CREATE TABLE table_17706 (
"Year" real,
"Total Region" real,
"Biggenden" real,
"Eidsvold" real,
"Gayndah" real,
"Monto" real,
"Mundubbera" real,
"Perry" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the gayndah ... | SELECT MAX("Gayndah") FROM table_17706 WHERE "Perry" = '304' |
### Instruction:
CREATE TABLE table_7404 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Multi 1" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Order part number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT "Socket" FROM table_7404 WHERE "Order part number" = 'tmrm72dam22gg' |
### Instruction:
CREATE TABLE table_68726 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Writer(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time for tracks before ... | SELECT "Time" FROM table_68726 WHERE "Release Date" = '8/26/69' AND "Track" < '19' |
### Instruction:
CREATE TABLE table_16728 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Report" FROM table_16728 WHERE "Race" = 'San Marino Grand Prix' |
### Instruction:
CREATE TABLE table_name_44 (
last_cf INTEGER,
team VARCHAR,
cf_appearances VARCHAR,
cf_wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average last cf of the st. louis blues, who has less than 4 cf appearances and les... | SELECT AVG(last_cf) FROM table_name_44 WHERE cf_appearances < 4 AND cf_wins < 1 AND team = "st. louis blues" |
### Instruction:
CREATE TABLE table_30506 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Tournament Venue (City)" FROM table_30506 WHERE "Regular Season Winner" = 'Yale' |
### Instruction:
CREATE TABLE table_66184 (
"School" text,
"City" text,
"Team Name" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"County" text,
"Year Joined" text,
"Previous Counference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Team Name" FROM table_66184 WHERE "School" = 'hammond bishop noll' |
### Instruction:
CREATE TABLE table_45355 (
"Rank" text,
"Badge/Serial Number" text,
"Tenure" text,
"Date of death" text,
"Cause of death" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the Officer with Badge/Serial Number 11755 ... | SELECT "Rank" FROM table_45355 WHERE "Cause of death" = 'gunfire' AND "Badge/Serial Number" = '11755' |
### Instruction:
CREATE TABLE table_38482 (
"Year" real,
"Domestic passengers" real,
"International passengers" real,
"Total passengers" real,
"Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what total number of passengers is domestic and la... | SELECT COUNT("Total passengers") FROM table_38482 WHERE "Domestic passengers" = '2,803,907' AND "Year" > '1999' |
### Instruction:
CREATE TABLE table_833 (
"County" text,
"Bush #" real,
"Bush %" text,
"Kerry #" real,
"Kerry %" text,
"Others #" real,
"Others %" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum bush # wi... | SELECT MIN("Bush #") FROM table_833 WHERE "Kerry #" = '3938' |
### Instruction:
CREATE TABLE table_6225 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Game site of miami orange bowl, and a Attendance larger than 49,75... | SELECT MAX("Week") FROM table_6225 WHERE "Game site" = 'miami orange bowl' AND "Attendance" > '49,754' |
### Instruction:
CREATE TABLE table_30599 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Written by" FROM table_30599 WHERE "Directed by" = 'Peter O''Fallon' |
### Instruction:
CREATE TABLE table_55548 (
"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 were in attendance whe... | SELECT SUM("Crowd") FROM table_55548 WHERE "Away team score" = '8.13 (61)' |
### Instruction:
CREATE TABLE table_20011 (
"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 COUNT("Lost") FROM table_20011 WHERE "Against" = '46' |
### Instruction:
CREATE TABLE table_28619 (
"Year" real,
"Under-11" text,
"Under-13" text,
"Under-15" text,
"Under-17" text,
"Under-19" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for Under-13 when value for Under-15 is Ma... | SELECT "Under-13" FROM table_28619 WHERE "Under-15" = 'Maria Elena Ubina' |
### Instruction:
CREATE TABLE table_12966 (
"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 is the amount of money with a score of 67-71-70-71=279?
###... | SELECT COUNT("Money ( $ )") FROM table_12966 WHERE "Score" = '67-71-70-71=279' |
### Instruction:
CREATE TABLE table_29069 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home team is at ... | SELECT "Home team" FROM table_29069 WHERE "Time" = '7:30pm' AND "Broadcast" = 'ESPN' |
### Instruction:
CREATE TABLE table_name_27 (
player VARCHAR,
years_at_club VARCHAR,
goals VARCHAR,
debut_year VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player debuted before 1943, played for the club in 1942, played les... | SELECT player FROM table_name_27 WHERE debut_year < 1943 AND games < 12 AND goals < 11 AND years_at_club = "1942" |
### Instruction:
CREATE TABLE table_73358 (
"Outcome" text,
"Year" real,
"Championship (Titles/Finals)" 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.
-- ... | SELECT "Championship (Titles/Finals)" FROM table_73358 WHERE "Year" = '1981' |
### Instruction:
CREATE TABLE table_54578 (
"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 has an Away team sc... | SELECT "Venue" FROM table_54578 WHERE "Away team score" = '12.11 (83)' |
### Instruction:
CREATE TABLE table_65442 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of matches with an average larger ... | SELECT SUM("Matches") FROM table_65442 WHERE "Average" > '6.33' AND "Rank" = '1' |
### Instruction:
CREATE TABLE table_59815 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term of office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Electorate when the term of office was 1955 1972, for Peter Howson?... | SELECT "Electorate" FROM table_59815 WHERE "Term of office" = '1955–1972' AND "Member" = 'peter howson' |
### Instruction:
CREATE TABLE table_36928 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Cmp-Att-Int" text,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Avg/G that has a Name of opponents, and an Effic smaller than 129.73?
### Respons... | SELECT SUM("Avg/G") FROM table_36928 WHERE "Name" = 'opponents' AND "Effic" < '129.73' |
### Instruction:
CREATE TABLE table_67319 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record at the game held on May 1st with a los... | SELECT "Record" FROM table_67319 WHERE "Date" = 'may 1' AND "Loss" = 'speier (1–3)' |
### Instruction:
CREATE TABLE table_3511 (
"Outcome" text,
"No." text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many outcomes occu... | SELECT COUNT("Outcome") FROM table_3511 WHERE "Date" = 'January 31, 2010' |
### Instruction:
CREATE TABLE table_201400_2 (
kannada_name_ಕನ್ನಡ VARCHAR,
tamil_name_தமிழ் VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is kannada name of tamil name anusham
### Response:
| SELECT kannada_name_ಕನ್ನಡ FROM table_201400_2 WHERE tamil_name_தமிழ் = "Anusham அனுஷம்" |
### Instruction:
CREATE TABLE table_29145 (
"Date (YYYY-MM-DD)" text,
"Time ( UTC )" text,
"Latitude" text,
"Longitude" text,
"Depth" text,
"Magnitude" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date for the UTC time of 03:15:46?... | SELECT "Date (YYYY-MM-DD)" FROM table_29145 WHERE "Time ( UTC )" = '03:15:46' |
### Instruction:
CREATE TABLE table_26872 (
"Rank" real,
"Country" text,
"Disposable USD 2011" real,
"Disposable USD growth" real,
"Compulsory deduction" text,
"Gross USD 2011" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a co... | SELECT "Country" FROM table_26872 WHERE "Compulsory deduction" = '29.3%' |
### Instruction:
CREATE TABLE table_27295 (
"Freq" real,
"Call" text,
"City" text,
"Owner" text,
"Start" real,
"Day Power ( W )" real,
"Night Power" real,
"Nickname" text,
"Format" text,
"Stereo" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT MIN("Start") FROM table_27295 WHERE "Owner" = 'Cumulus' |
### Instruction:
CREATE TABLE table_37706 (
"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 was the finish associated with under 11 starts, a honda engine, befor... | SELECT AVG("Finish") FROM table_37706 WHERE "Start" < '11' AND "Engine" = 'honda' AND "Year" < '2003' |
### Instruction:
CREATE TABLE table_32945 (
"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 average crowd has a Home ... | SELECT AVG("Crowd") FROM table_32945 WHERE "Home team score" = '11.15 (81)' |
### 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 SUM("deductions") FROM table_204_548 |
### Instruction:
CREATE TABLE table_name_38 (
average INTEGER,
rank_by_average VARCHAR,
total VARCHAR,
number_of_dances VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Average is the lowest one that has a Total smaller than 134, and a Number of ... | SELECT MIN(average) FROM table_name_38 WHERE total < 134 AND number_of_dances < 3 AND rank_by_average < 12 |
### Instruction:
CREATE TABLE table_80421 (
"Year" text,
"Carries" real,
"Rushing Yards" real,
"Average" real,
"Touchdowns" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of rushing yards associated with a... | SELECT COUNT("Rushing Yards") FROM table_80421 WHERE "Average" > '8.4' AND "Carries" < '54' |
### Instruction:
CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE scientists (
ssn number,
name text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the num... | SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name |
### Instruction:
CREATE TABLE table_16151 (
"Country" text,
"Membership (from 2010)" real,
"Name of member organization" text,
"Year current Scouting organization joined WOSM" text,
"Year member organization was founded" text,
"Admits boys/girls" text
)
-- Using valid SQLite, answer the follow... | SELECT "Admits boys/girls" FROM table_16151 WHERE "Country" = 'Venezuela' |
### Instruction:
CREATE TABLE table_54897 (
"Year" text,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Tournament location" text,
"Purse ($)" real,
"Winner's share ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ... | SELECT MAX("Winner's share ($)") FROM table_54897 WHERE "Year" = '2008' |
### Instruction:
CREATE TABLE table_38184 (
"Rank" real,
"Matches as champion" real,
"Reigns as champion" real,
"Title matches won*" real,
"Title last held" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Matches is on 24 march 1963 with a Rank... | SELECT MAX("Matches as champion") FROM table_38184 WHERE "Title last held" = '24 march 1963' AND "Rank" > '44' |
### Instruction:
CREATE TABLE table_59316 (
"Portland DFL" 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 sum of byes for losses larger than 14 for a Portland DFL... | SELECT SUM("Byes") FROM table_59316 WHERE "Portland DFL" = 'westerns' AND "Losses" > '14' |
### Instruction:
CREATE TABLE table_58516 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament took place on July 17, 2005, with a clay surface?... | SELECT "Tournament" FROM table_58516 WHERE "Surface" = 'clay' AND "Date" = 'july 17, 2005' |
### Instruction:
CREATE TABLE table_1174 (
"School Board" text,
"Type" text,
"Language" text,
"Headquarters" text,
"Census Division(s) Served" text,
"Number of Elementary Schools" real,
"Number of Secondary Schools" real
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "School Board" FROM table_1174 WHERE "Number of Elementary Schools" = '96' |
### Instruction:
CREATE TABLE table_58391 (
"AVE- No." real,
"Name" text,
"Country" text,
"Highest mountain" text,
"Height (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sum of AVE-No has a Name of albula alps, and a Height (m) larger tha... | SELECT SUM("AVE- No.") FROM table_58391 WHERE "Name" = 'albula alps' AND "Height (m)" > '3418' |
### Instruction:
CREATE TABLE table_70642 (
"Season" text,
"Games" real,
"Lost" real,
"Points" real,
"Goalsfor" real,
"Goalsagainst" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Goals for of 288, and Points smaller than 85 what is the highest ... | SELECT MAX("Goalsagainst") FROM table_70642 WHERE "Goalsfor" = '288' AND "Points" < '85' |
### Instruction:
CREATE TABLE table_19578 (
"Year" real,
"Enrollment" real,
"Black (%)" text,
"White (%)" text,
"Hispanic (%)" text,
"Asian (%)" text,
"Free/reduced lunch (%)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of... | SELECT "Asian (%)" FROM table_19578 WHERE "Year" = '2004' |
### Instruction:
CREATE TABLE table_23145 (
"County" text,
"Starky #" real,
"Starky %" text,
"Hancock #" real,
"Hancock %" text,
"McCain #" real,
"McCain %" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where did hancock g... | SELECT "County" FROM table_23145 WHERE "Hancock %" = '3.09%' |
### Instruction:
CREATE TABLE table_train_32 (
"id" int,
"pregnancy_or_lactation" bool,
"renal_disease" bool,
"hemachromatosis" bool,
"glucose_6_phosphate_dehydrogenase_deficiency_g6pd" int,
"prisoners" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT * FROM table_train_32 WHERE renal_disease = 1 |
### Instruction:
CREATE TABLE table_68578 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event is a win by an opponent of Nicolas Smith, with the round mar... | SELECT "Event" FROM table_68578 WHERE "Res." = 'win' AND "Round" = 'n/a' AND "Opponent" = 'nicolas smith' |
### Instruction:
CREATE TABLE table_3034 (
"Borough" text,
"County" text,
"Franchise type" text,
"Members" real,
"Voters in 1800" real,
"Times contested" real,
"Fate in 1832" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number ... | SELECT COUNT("Members") FROM table_3034 WHERE "Borough" = 'Bandon Bridge' |
### Instruction:
CREATE TABLE table_10552 (
"Name" text,
"Number" text,
"Builder" text,
"Date built" text,
"Wheel arrangement" text,
"Driving wheels" text,
"Cylinders" text,
"Boiler pressure" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "Boiler pressure" FROM table_10552 WHERE "Name" = 'hesperus' |
### Instruction:
CREATE TABLE table_204_575 (
id number,
"place" number,
"position" text,
"number" number,
"name" text,
"league one" number,
"fa cup" number,
"league cup" number,
"football league trophy" number,
"total" number
)
-- Using valid SQLite, answer the following quest... | SELECT "name" FROM table_204_575 WHERE "total" > 4 |
### Instruction:
CREATE TABLE table_47476 (
"Track" real,
"Title" text,
"Songwriter(s)" text,
"Producer(s)" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Title has a Songwriter(s) of hadise a kg z, stefaan fernande, elio deepco... | SELECT "Title" FROM table_47476 WHERE "Songwriter(s)" = 'hadise açıkgöz, stefaan fernande, elio deepcore' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank 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_72904 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there was a bye in the round of 32, what was... | SELECT "Semifinals" FROM table_72904 WHERE "Round of 32" = 'Bye' |
### Instruction:
CREATE TABLE table_73575 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the height for the player born ... | SELECT "Height (f)" FROM table_73575 WHERE "Year born" = '1989' AND "Height (m)" = '2.11' |
### Instruction:
CREATE TABLE table_11251 (
"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 had a score of ... | SELECT "Away team" FROM table_11251 WHERE "Away team score" = '15.15 (105)' |
### Instruction:
CREATE TABLE table_203_723 (
id number,
"year" number,
"song" text,
"us hot 100" number,
"us msr" number,
"us a.c." number,
"can" number,
"uk singles" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- al... | SELECT "song" FROM table_203_723 WHERE "uk singles" IS NULL |
### Instruction:
CREATE TABLE table_train_272 (
"id" int,
"fasting_plasma_glucose_fpg" float,
"creatinine_clearance_cl" float,
"baseline_hemoglobin_hgb" float,
"sensitization_on_pra" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT * FROM table_train_272 WHERE sensitization_on_pra = 1 |
### Instruction:
CREATE TABLE table_57424 (
"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 Venue has an Away team sco... | SELECT "Venue" FROM table_57424 WHERE "Away team score" = '11.13 (79)' |
### Instruction:
CREATE TABLE table_203_408 (
id number,
"rd." number,
"grand prix" text,
"date" text,
"location" text,
"pole position" text,
"fastest lap" text,
"winning driver" text,
"constructor" text,
"report" text
)
-- Using valid SQLite, answer the following questions for... | SELECT "pole position" FROM table_203_408 GROUP BY "pole position" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_376 (
id number,
"date" text,
"venue" text,
"opponents" text,
"score" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which date is listed after july 20th , 2012 ?
### Response:
| SELECT "date" FROM table_204_376 WHERE id = (SELECT id FROM table_204_376 WHERE "date" = '20 july 2012') + 1 |
### Instruction:
CREATE TABLE table_35686 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tournament had a Score of 6 3, 2 6, 6 3... | SELECT "Tournament" FROM table_35686 WHERE "Score" = '6–3, 2–6, 6–3' |
### Instruction:
CREATE TABLE table_35257 (
"Rank" real,
"Airport" text,
"Location" text,
"Code (IATA)" text,
"Total Cargo (Metric Tonnes)" text,
"2003 Rank" text,
"% Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2003 ra... | SELECT "2003 Rank" FROM table_35257 WHERE "Airport" = 'los angeles international airport' |
### Instruction:
CREATE TABLE table_31921 (
"Outcome" text,
"Year" real,
"Championship" text,
"Opponent in the final" text,
"Score (l) = score in legs, (s) = score in sets." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of Year for ... | SELECT SUM("Year") FROM table_31921 WHERE "Outcome" = 'runner-up' AND "Championship" = 'world darts championship' |
### Instruction:
CREATE TABLE table_40501 (
"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 Te... | SELECT "Team" FROM table_40501 WHERE "Score" = 'w 101–97 (2ot)' |
### Instruction:
CREATE TABLE table_28755 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Ho... | SELECT COUNT("Written by") FROM table_28755 WHERE "Title" = 'Beautifully Broken' |
### Instruction:
CREATE TABLE table_28920 (
"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 districts first elected someone in 1808 and ha... | SELECT COUNT("District") FROM table_28920 WHERE "First elected" = '1808' AND "Incumbent" = 'George Smith' |
### Instruction:
CREATE TABLE table_45621 (
"Round" text,
"Pick" real,
"Player" text,
"Position" text,
"Shoots" text,
"Nationality" text,
"League" text,
"Birthplace, Date" text,
"Height, Weight" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Birthplace, Date" FROM table_45621 WHERE "Pick" = '4' |
### Instruction:
CREATE TABLE table_78605 (
"Letter" text,
"Pronunciation spelled free" text,
"Pronunciation spelled checked" text,
"Example spelled free" text,
"Example spelled checked" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Letter,... | SELECT "Letter" FROM table_78605 WHERE "Example spelled checked" = 'tin /tɪn/ ("tin")' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.