instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_66074 (
"Period" text,
"Internet Explorer" text,
"Firefox" text,
"Chrome" text,
"Safari" text,
"Opera" text,
"Other Mozilla" text,
"Mobile" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentag... | SELECT "Safari" FROM table_66074 WHERE "Firefox" = '30.82%' |
### Instruction:
CREATE TABLE table_49838 (
"Rank" real,
"Player" text,
"Country" text,
"Events" real,
"Prize money( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for the player with events greater than 23 and prize money in e... | SELECT COUNT("Rank") FROM table_49838 WHERE "Events" > '23' AND "Prize money( $ )" > '823,783' |
### Instruction:
CREATE TABLE table_24385 (
"Title" text,
"Total copies sold" text,
"Sales breakdown" text,
"Genre" text,
"Release date" text,
"Developer" text,
"Publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many copies were ... | SELECT "Total copies sold" FROM table_24385 WHERE "Release date" = 'October 23, 2008' |
### Instruction:
CREATE TABLE table_17710 (
"Club" text,
"Overall Record" text,
"Goals For" real,
"Goals For Avg." text,
"Goals Against" real,
"Goals Against Avg." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- D.C. United had a 9-14-5 record an... | SELECT "Goals Against Avg." FROM table_17710 WHERE "Overall Record" = '9-14-5' |
### Instruction:
CREATE TABLE table_80261 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is earliest year that had a 50km event with a 2nd place result played in London, Uni... | SELECT MIN("Year") FROM table_80261 WHERE "Event" = '50km' AND "Result" = '2nd' AND "Venue" = 'london, united kingdom' |
### Instruction:
CREATE TABLE table_74057 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("Season") FROM table_74057 WHERE "Podiums" = '9' |
### Instruction:
CREATE TABLE table_51478 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum number of grid where time/retired is 2:41:38.4 and laps were more ... | SELECT COUNT("Grid") FROM table_51478 WHERE "Time/Retired" = '2:41:38.4' AND "Laps" > '40' |
### Instruction:
CREATE TABLE table_name_78 (
margin_of_victory VARCHAR,
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the margin of victory when the runner-up is amy alcott and the winning score is 9 (72-68-6... | SELECT margin_of_victory FROM table_name_78 WHERE runner_s__up = "amy alcott" AND winning_score = –9(72 - 68 - 67 = 207) |
### Instruction:
CREATE TABLE table_76644 (
"Target/Approach" text,
"Candidate Name" text,
"Trial Phase" text,
"Trial Start Date" text,
"Expected End Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Candidate Name, when Target/Approach i... | SELECT "Candidate Name" FROM table_76644 WHERE "Target/Approach" = 'vaccine to amyloid-beta' |
### Instruction:
CREATE TABLE table_35900 (
"Year" real,
"Album" text,
"Oricon position" real,
"1st week sales" text,
"Copies sold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year sold 1,695,900+ copies with an Oricon position larger than 1... | SELECT AVG("Year") FROM table_35900 WHERE "Copies sold" = '1,695,900+' AND "Oricon position" > '1' |
### Instruction:
CREATE TABLE table_80292 (
"NBR number" real,
"Year" real,
"Original operator" text,
"Class" text,
"Wheel arrangement" text,
"Road number" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class starts af... | SELECT "Class" FROM table_80292 WHERE "Year" > '1939' AND "Road number" < '3508' |
### Instruction:
CREATE TABLE table_16878 (
"Yard Name" text,
"Location (city, state)" text,
"1st Ship Delivery Date" text,
"Ship Types Delivered" text,
"Total Number of Ways" text,
"total vessels built" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "1st Ship Delivery Date" FROM table_16878 WHERE "Total Number of Ways" = '12 ways' |
### Instruction:
CREATE TABLE table_204_105 (
id number,
"#" number,
"name" text,
"height" text,
"weight (lbs.)" number,
"position" text,
"class" text,
"hometown" text,
"previous team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT COUNT("name") FROM table_204_105 WHERE "weight (lbs.)" > 200 |
### Instruction:
CREATE TABLE table_38766 (
"Entrants" real,
"Winner" text,
"Prize" text,
"Runner-up" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the results of the event where $817,781 was awarded to less than 1,236 ent... | SELECT "Results" FROM table_38766 WHERE "Entrants" < '1,236' AND "Prize" = '$817,781' |
### Instruction:
CREATE TABLE table_20495 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Bills points" real,
"Opponents" real,
"Bills first downs" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mi... | SELECT MIN("Opponents") FROM table_20495 WHERE "Opponent" = 'Baltimore Colts' |
### Instruction:
CREATE TABLE table_53995 (
"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 ... | SELECT "General classification" FROM table_53995 WHERE "Mountains classification" = 'christophe moreau' AND "Team Classification" = 'team csc' |
### Instruction:
CREATE TABLE table_70603 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the manufacturer for grid more than 18 and laps more than 1 with tired/retire... | SELECT "Manufacturer" FROM table_70603 WHERE "Grid" > '18' AND "Laps" > '1' AND "Time/Retired" = '+1 lap' |
### Instruction:
CREATE TABLE table_54921 (
"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.
-- At what venue did the away team... | SELECT "Venue" FROM table_54921 WHERE "Away team score" = '15.16 (106)' |
### Instruction:
CREATE TABLE table_13284 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 4th day in the year before 2012 that the finis... | SELECT "4th Day" FROM table_13284 WHERE "Year" < '2012' AND "Finish position" = '33rd' |
### Instruction:
CREATE TABLE table_47228 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High rebounds" FROM table_47228 WHERE "Team" = 'san antonio spurs' |
### Instruction:
CREATE TABLE table_name_71 (
year INTEGER,
australian_open VARCHAR,
french_open VARCHAR,
wimbledon VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year rafael nadal was in the French Open, Roger Federer was in Wimbl... | SELECT MAX(year) FROM table_name_71 WHERE french_open = "rafael nadal" AND wimbledon = "roger federer" AND australian_open = "roger federer" |
### Instruction:
CREATE TABLE table_14448 (
"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 against" FROM table_14448 WHERE "Try bonus" = '8' |
### Instruction:
CREATE TABLE table_75701 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Against has a Ballarat FL of darley and Wins larger than 8?
... | SELECT COUNT("Against") FROM table_75701 WHERE "Ballarat FL" = 'darley' AND "Wins" > '8' |
### Instruction:
CREATE TABLE table_64037 (
"Driver" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total starts with more points than ... | SELECT COUNT("Starts") FROM table_64037 WHERE "Driver" = 'nasser al-attiyah' AND "Points" > '1' |
### Instruction:
CREATE TABLE table_2656 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the surfa... | SELECT "Surface" FROM table_2656 WHERE "Opponents in the final" = 'Hewitt McMillan' |
### Instruction:
CREATE TABLE table_42318 (
"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 Set 2 that is 25... | SELECT "Set 1" FROM table_42318 WHERE "Set 2" = '25-19' |
### Instruction:
CREATE TABLE table_57301 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with a 1st prize larger than 315,000... | SELECT "Score" FROM table_57301 WHERE "1st Prize( $ )" > '315,000' |
### Instruction:
CREATE TABLE table_60441 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Tournament Location" text,
"Purse" text,
"Winner's Share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the w... | SELECT "Winner's Share" FROM table_60441 WHERE "Champion" = 'hideto tanihara' |
### Instruction:
CREATE TABLE table_44786 (
"Name of Deity" text,
"Bhuta(Tatwa)" text,
"Name of the Stone (Sila)" text,
"Name of the River" text,
"Name of the State where found in India" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nam... | SELECT "Name of the Stone (Sila)" FROM table_44786 WHERE "Name of the State where found in India" = 'andhra pradesh' |
### Instruction:
CREATE TABLE table_18949 (
"Trim" text,
"Engine" text,
"Displacement" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Fuel Mileage (latest EPA mpg - US )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the to... | SELECT "Torque" FROM table_18949 WHERE "Trim" = 'XE (2009)' |
### Instruction:
CREATE TABLE table_7703 (
"Name/ designation" text,
"Year of intro" real,
"Country of origin" text,
"Primary cartridge" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country of Origin, when Year of Intro is gre... | SELECT "Country of origin" FROM table_7703 WHERE "Year of intro" > '1985' AND "Primary cartridge" = '125mm' |
### Instruction:
CREATE TABLE table_69918 (
"Deputy Prime Minister" text,
"Took office" real,
"Left office" text,
"Prime Minister" text,
"Term" text,
"Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which deputy prime minister left office ... | SELECT "Deputy Prime Minister" FROM table_69918 WHERE "Term" = '7th legislature' AND "Left office" = '2004' |
### Instruction:
CREATE TABLE table_51952 (
"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.
-- Where was the game played when ... | SELECT "Venue" FROM table_51952 WHERE "Home team score" = '16.19 (115)' |
### Instruction:
CREATE TABLE table_33981 (
"Tournament" text,
"2006" text,
"2007" text,
"2008-12" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2013 has a 2007 of A, and a Tournament of french open?
### Response:
| SELECT "2013" FROM table_33981 WHERE "2007" = 'a' AND "Tournament" = 'french open' |
### Instruction:
CREATE TABLE table_54829 (
"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.
-- When the home team scored 11.13... | SELECT "Away team" FROM table_54829 WHERE "Home team score" = '11.13 (79)' |
### Instruction:
CREATE TABLE table_49833 (
"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 name of the team with round less than 2, and... | SELECT "College/junior/club team (league)" FROM table_49833 WHERE "Round" < '2' AND "Nationality" = 'united states' |
### Instruction:
CREATE TABLE table_9738 (
"Name (Birth\u2013death)" text,
"Took office" text,
"Left office" text,
"Political party" text,
"Note(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name (Birth-Death), when Left Office is 7 Oct... | SELECT "Name (Birth\u2013death)" FROM table_9738 WHERE "Left office" = '7 october 1958' |
### Instruction:
CREATE TABLE table_27922 (
"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.
-- What was the pas... | SELECT "passed" FROM table_27922 WHERE "description" = 'Bus and Truck Operating License Bill' |
### Instruction:
CREATE TABLE table_35338 (
"Race Title" text,
"Circuit" text,
"Location / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has a Winner of craig lowndes, and a Circuit of ... | SELECT "Team" FROM table_35338 WHERE "Winner" = 'craig lowndes' AND "Circuit" = 'phillip island grand prix circuit' |
### Instruction:
CREATE TABLE table_51615 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visitor when the lakers were at... | SELECT "Visitor" FROM table_51615 WHERE "Home" = 'lakers' AND "Score" = '85–106' |
### Instruction:
CREATE TABLE table_42842 (
"Sunshine (hrs/year)" text,
"Rain (mm/year)" text,
"Snow (days/year)" real,
"Storms (days/year)" real,
"Fog (days/year)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of snow where the ... | SELECT SUM("Snow (days/year)") FROM table_42842 WHERE "Storms (days/year)" = '31' |
### Instruction:
CREATE TABLE table_64504 (
"Year" real,
"Title" text,
"Hangul / Japanese" text,
"Role" text,
"Network" text,
"Genre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the title when the genre is drama and network of KBS2 hap... | SELECT "Title" FROM table_64504 WHERE "Year" < '2011' AND "Network" = 'kbs2' AND "Genre" = 'drama' |
### Instruction:
CREATE TABLE table_name_67 (
crystal_structure VARCHAR,
no_of_cu_o_planes_in_unit_cell VARCHAR,
t_c__k_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit ... | SELECT crystal_structure FROM table_name_67 WHERE no_of_cu_o_planes_in_unit_cell = 3 AND t_c__k_ = 110 |
### Instruction:
CREATE TABLE table_6521 (
"Nation" text,
"Removal treaty (year signed)" text,
"Years of major emigration" text,
"Total number emigrated or forcibly removed" text,
"Number stayed in Southeast" text,
"Deaths from warfare" text
)
-- Using valid SQLite, answer the following questi... | SELECT "Removal treaty (year signed)" FROM table_6521 WHERE "Nation" = 'chickasaw' |
### Instruction:
CREATE TABLE table_1295 (
"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.
-- How much uranium did ... | SELECT "Uranium required 2006-08" FROM table_1295 WHERE "Country" = 'Russia' |
### Instruction:
CREATE TABLE table_204_131 (
id number,
"tops design code" text,
"electrical system" text,
"max speed" text,
"weight" text,
"brakes" text,
"route availability" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT(*) FROM table_204_131 WHERE "max speed" = 20 AND "brakes" = 'dual' |
### Instruction:
CREATE TABLE table_14851 (
"Name" text,
"Code" text,
"Capacity" text,
"Power" text,
"Acceleration 0\u2013100km/h" text,
"Top speed" text,
"Combined consumption" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the capa... | SELECT "Capacity" FROM table_14851 WHERE "Name" = '1.2 16v' |
### Instruction:
CREATE TABLE table_36711 (
"Editor" text,
"Site" text,
"Style, clone of" text,
"Cost ( US$ )" text,
"Open source" text,
"Activity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which source has a Cost free, and an Activity of s... | SELECT "Open source" FROM table_36711 WHERE "Cost ( US$ )" = 'free' AND "Activity" = 'some' AND "Editor" = 'markitup' |
### Instruction:
CREATE TABLE table_204_572 (
id number,
"rank" number,
"county" text,
"per capita\nincome" text,
"median\nhousehold\nincome" text,
"median\nfamily\nincome" text,
"population" number,
"number of\nhouseholds" number
)
-- Using valid SQLite, answer the following questions... | SELECT "county" FROM table_204_572 WHERE id = 1 |
### Instruction:
CREATE TABLE table_338 (
"Dep." text,
"Chief town" text,
"Arrondissement" text,
"Population (1999)" text,
"Area (Square km)" real,
"Pop density" real,
"Cantons" real,
"Communes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT MIN("Area (Square km)") FROM table_338 WHERE "Arrondissement" = 'Millau' |
### Instruction:
CREATE TABLE table_70134 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Trofeo Fast Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which mounta... | SELECT "Mountains classification" FROM table_70134 WHERE "General classification" = 'tony rominger' AND "Winner" = 'maurizio fondriest' |
### Instruction:
CREATE TABLE table_name_29 (
overs INTEGER,
economy_rate VARCHAR,
team VARCHAR,
best_bowling VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 w... | SELECT MIN(overs) FROM table_name_29 WHERE team = "chennai super kings" AND best_bowling = "2/17" AND economy_rate < 5.92 |
### Instruction:
CREATE TABLE table_67257 (
"School" text,
"Location" text,
"Mascot" text,
"# / County" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "School" FROM table_67257 WHERE "# / County" = '29 hamilton' |
### Instruction:
CREATE TABLE table_1481 (
"Player" text,
"Team" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest Score" text,
"100s" real,
"50s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many team... | SELECT COUNT("Team") FROM table_1481 WHERE "Highest Score" = '143' |
### Instruction:
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE authors (
authid number,
lname text,
... | SELECT title FROM papers WHERE title LIKE "%Database%" |
### Instruction:
CREATE TABLE table_68445 (
"Need" text,
"Being (qualities)" text,
"Having (things)" text,
"Doing (actions)" text,
"Interacting (settings)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the being for having things of language, ... | SELECT "Being (qualities)" FROM table_68445 WHERE "Having (things)" = 'language, religions, work, customs, values, norms' |
### Instruction:
CREATE TABLE table_24435 (
"Team name" text,
"Races" real,
"Won" real,
"RR1 Pts." real,
"RR2 Pts." real,
"RR3 Pts." real,
"Total Pts." real,
"Ranking" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank when ... | SELECT "Ranking" FROM table_24435 WHERE "RR2 Pts." = '4' |
### Instruction:
CREATE TABLE table_21271 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Location Attendance") FROM table_21271 WHERE "Date" = 'December 29' |
### Instruction:
CREATE TABLE table_56946 (
"Street" text,
"West" text,
"East" text,
"# of lanes" text,
"Traffic direction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the traffic direction of 64th street with 2nd avenue to the west and 1... | SELECT "Traffic direction" FROM table_56946 WHERE "West" = '2nd avenue' AND "# of lanes" = '1' AND "Street" = '64th street' |
### 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 Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY Rank |
### Instruction:
CREATE TABLE table_59529 (
"Perpetrator" text,
"Date" text,
"Year" real,
"Location" text,
"Country" text,
"Killed" real,
"Injured" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many kills have 15 as the injured, with a ... | SELECT SUM("Killed") FROM table_59529 WHERE "Injured" = '15' AND "Year" < '1987' |
### Instruction:
CREATE TABLE table_15069 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament when the performance in 2012 is 3r and 2011 is qf?
### Response:
| SELECT "Tournament" FROM table_15069 WHERE "2012" = '3r' AND "2011" = 'qf' |
### Instruction:
CREATE TABLE table_204_520 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what surface was used befo... | SELECT "surface" FROM table_204_520 WHERE id = (SELECT id FROM table_204_520 WHERE "surface" = 'carpet') - 1 |
### Instruction:
CREATE TABLE table_77702 (
"Episode Air Date" text,
"Audition City" text,
"Date" text,
"First Audition Venue" text,
"Callback Date" text,
"Callback Venue" text,
"Golden Tickets" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT SUM("Golden Tickets") FROM table_77702 WHERE "Callback Venue" = 'georgia international convention center' |
### Instruction:
CREATE TABLE table_203_88 (
id number,
"language" text,
"number" number,
"percentage (%)" number,
"males" number,
"females" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is german above or below russia in the number of people... | SELECT (SELECT "number" FROM table_203_88 WHERE "language" = 'german') > (SELECT "number" FROM table_203_88 WHERE "language" = 'russian') |
### Instruction:
CREATE TABLE table_36894 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game with a decision of... | SELECT "Score" FROM table_36894 WHERE "Decision" = 'peeters' AND "Record" = '29–3–11' |
### Instruction:
CREATE TABLE table_47111 (
"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 against" FROM table_47111 WHERE "Tries against" = '53' |
### Instruction:
CREATE TABLE table_57161 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Leveg... | SELECT "Rounds" FROM table_57161 WHERE "Entrant" = 'automobiles talbot-darracq' AND "Driver" = 'pierre levegh' |
### Instruction:
CREATE TABLE table_204_988 (
id number,
"responsible minister(s)" text,
"crown entities" text,
"monitoring department(s)" text,
"category / type" text,
"empowering legislation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- whic... | SELECT "responsible minister(s)" FROM table_204_988 GROUP BY "responsible minister(s)" ORDER BY COUNT("empowering legislation") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_27950 (
"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.
-- Was the constit... | SELECT "Const. Amd.?" FROM table_27950 WHERE "% YES" = '69.82%' |
### Instruction:
CREATE TABLE table_74064 (
"Total #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different episode numbers does the epi... | SELECT COUNT("Total #") FROM table_74064 WHERE "Written by" = 'Sheri Elwood' AND "Directed by" = 'Jim Allodi' |
### Instruction:
CREATE TABLE table_name_23 (
main_span_metres VARCHAR,
main_span_feet VARCHAR,
year_to_open VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Main span of the bridge from China with a Year to open of 2013 an... | SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = "china" AND main_span_feet = "2,585" |
### Instruction:
CREATE TABLE table_68282 (
"Representative" text,
"Title" text,
"Presentation of credentials" text,
"Termination of mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the representative appointed by ge... | SELECT "Representative" FROM table_68282 WHERE "Appointed by" = 'george w. bush' AND "Presentation of credentials" = '9 november 2007' |
### Instruction:
CREATE TABLE table_49113 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has Points smaller... | SELECT "Score" FROM table_49113 WHERE "Points" < '67' AND "Home" = 'calgary flames' |
### Instruction:
CREATE TABLE table_68104 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the election year with henry wyndham as 2nd member and walter bar... | SELECT "Election" FROM table_68104 WHERE "2nd Member" = 'henry wyndham' AND "1st Member" = 'walter barttelot' |
### Instruction:
CREATE TABLE table_204_987 (
id number,
"city/municipality" text,
"no. of\nbarangays" number,
"area\n(km2)" number,
"population\n(2010 census)" number,
"pop. density\n(per km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- w... | SELECT "city/municipality" FROM table_204_987 ORDER BY "area\n(km2)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_76058 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What years in Orlando have the United States as the nationalit... | SELECT "Years in Orlando" FROM table_76058 WHERE "Nationality" = 'united states' AND "School/Club Team" = 'concord hs' |
### Instruction:
CREATE TABLE table_15229 (
"Rank" real,
"Heat" real,
"Lane" real,
"Nation" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what heat did the swimmer in Lane 6 rank higher than 7 with a time of 4:08.27?
### Response:... | SELECT SUM("Heat") FROM table_15229 WHERE "Lane" = '6' AND "Time" = '4:08.27' AND "Rank" > '7' |
### Instruction:
CREATE TABLE table_30145 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT "U.S. viewers (in millions)" FROM table_30145 WHERE "Title" = 'The Beast in Me' |
### Instruction:
CREATE TABLE Addresses (
city VARCHAR,
address_id VARCHAR
)
CREATE TABLE Staff (
staff_address_id VARCHAR,
first_name VARCHAR,
last_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city does staff with first name as Jan... | SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" |
### Instruction:
CREATE TABLE table_23135 (
"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.
-- When kitchener rangers (oha) is the college... | SELECT "Position" FROM table_23135 WHERE "College/junior/club team" = 'Kitchener Rangers (OHA)' |
### Instruction:
CREATE TABLE table_64234 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many debut years have Years at club of 1950 1951, and Games larger than 14?
... | SELECT SUM("Debut year") FROM table_64234 WHERE "Years at club" = '1950–1951' AND "Games" > '14' |
### Instruction:
CREATE TABLE table_62616 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Venue, when Against is greater than 9, and when Date is '03/02/1996'?
###... | SELECT "Venue" FROM table_62616 WHERE "Against" > '9' AND "Date" = '03/02/1996' |
### Instruction:
CREATE TABLE table_20453681_1 (
mccain_number INTEGER,
obama_percentage VARCHAR,
others_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% o... | SELECT MIN(mccain_number) FROM table_20453681_1 WHERE obama_percentage = "35.7%" AND others_percentage = "1.9%" |
### Instruction:
CREATE TABLE table_63341 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text,
"reissue?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Production Number with a Director of friz... | SELECT "Production Number" FROM table_63341 WHERE "Director" = 'friz freleng' AND "Title" = 'wacky worm, the' |
### Instruction:
CREATE TABLE table_51329 (
"CERCLIS ID" text,
"Name" text,
"Municipality" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Partially deleted" FROM table_51329 WHERE "Name" = 'fibers public supply wells' |
### Instruction:
CREATE TABLE table_203_8 (
id number,
"player" text,
"rec." number,
"yards" number,
"avg." number,
"td's" number,
"long" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players scored a greater number of touchdowns... | SELECT COUNT("player") FROM table_203_8 WHERE "td's" > (SELECT "td's" FROM table_203_8 WHERE "player" = 'anthony hines') |
### Instruction:
CREATE TABLE table_204_104 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what num... | SELECT "sub\u00addivisions" FROM table_204_104 WHERE "title" = 'il giustino' |
### Instruction:
CREATE TABLE table_61146 (
"Golden Rivers" 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 total number of Wins, when Losses is '6', and when Draw... | SELECT COUNT("Wins") FROM table_61146 WHERE "Losses" = '6' AND "Draws" > '0' |
### Instruction:
CREATE TABLE table_1810 (
"Year" real,
"Lok Sabha" text,
"Members of Parliament" text,
"Party Won" text,
"Winners % votes" text,
"Trailing Party" text,
"Trailing Party % votes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Members of Parliament" FROM table_1810 WHERE "Trailing Party % votes" = '25.88%' |
### Instruction:
CREATE TABLE table_78039 (
"Full Name" text,
"Nickname" text,
"Gender" text,
"Weight at birth" text,
"Meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nickname of the boy who weighed 810g (26.0 oz.) at birth?
##... | SELECT "Nickname" FROM table_78039 WHERE "Gender" = 'boy' AND "Weight at birth" = '810g (26.0 oz.)' |
### Instruction:
CREATE TABLE table_73667 (
"Circuit" text,
"Difficulty" text,
"Turns" real,
"Direction" text,
"Setting" text,
"Conditions" text,
"Unlock Order" real,
"Unlocks" text,
"Unlocked by" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MIN("Unlock Order") FROM table_73667 WHERE "Circuit" = 'Athens' |
### Instruction:
CREATE TABLE table_30357 (
"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 "Miles (km)" FROM table_30357 WHERE "Year" = '2010' |
### Instruction:
CREATE TABLE table_13893 (
"Time" text,
"Show Name" text,
"DJ's" text,
"Local/Networked" text,
"Ad Freq" text,
"News Freq" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time that is networked has an ad freq of 20 minutes u... | SELECT "Time" FROM table_13893 WHERE "Local/Networked" = 'networked' AND "Ad Freq" = '20 minutes until 7pm' |
### Instruction:
CREATE TABLE table_57815 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent in the final on a hard surface with a score of 6 3 7... | SELECT "Opponent in the final" FROM table_57815 WHERE "Surface" = 'hard' AND "Score" = '6–3 7–6(5)' |
### Instruction:
CREATE TABLE table_3818 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Title" FROM table_3818 WHERE "Production code" = '231' |
### Instruction:
CREATE TABLE table_name_73 (
matches VARCHAR,
runs VARCHAR,
wickets VARCHAR,
career VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs mo... | SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = "1898/99-1919/20" AND runs > 4476 |
### Instruction:
CREATE TABLE table_38603 (
"Team" text,
"Recopa 1995" text,
"Supercopa 1995" text,
"CONMEBOL 1995" text,
"Copa Libertadores 1996" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Copa Libertadores 1996 has a Team of estudiantes?... | SELECT "Copa Libertadores 1996" FROM table_38603 WHERE "Team" = 'estudiantes' |
### Instruction:
CREATE TABLE table_name_95 (
sanskrit_संस्कृतम् VARCHAR,
kannada_ಕನ್ನಡ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Sanskrit has a Kannada of uttara ?
### Response:
| SELECT sanskrit_संस्कृतम् FROM table_name_95 WHERE kannada_ಕನ್ನಡ = "uttara ಉತ್ತರಾ" |
### Instruction:
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE papers (
paperid number,
... | SELECT title FROM papers WHERE title LIKE "%ML%" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.