answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT couple FROM table_name_98 WHERE dance = "jive" AND score = "21 (6, 7, 8)" | Which couple danced a jive and received a score of 21 (6, 7, 8)? | CREATE TABLE table_name_98 (couple VARCHAR, dance VARCHAR, score VARCHAR) |
SELECT result FROM table_name_38 WHERE date = "february 27, 2000" | What was the result of the game that was played on february 27, 2000? | CREATE TABLE table_name_38 (
result VARCHAR,
date VARCHAR
) |
SELECT written_by FROM table_25679312_2 WHERE prod_code = 5 | Who wrote the episode with production code 5? | CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR) |
SELECT score FROM table_name_65 WHERE dance = "jive" AND result = "safe" | What was the score of the team that danced a jive and was safe? | CREATE TABLE table_name_65 (score VARCHAR, dance VARCHAR, result VARCHAR) |
SELECT "Visitor" FROM table_41820 WHERE "Record" = '2-1' | Who is the visitor when the record is 2-1? | CREATE TABLE table_41820 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
) |
SELECT COUNT(finish) FROM table_256862_1 WHERE entries = "15" AND winning_yacht = "L'Esprit d'Equipe" | Name the number of finishes for 15 entries 15 and l'esprit d'equipe | CREATE TABLE table_256862_1 (finish VARCHAR, entries VARCHAR, winning_yacht VARCHAR) |
SELECT engine FROM table_name_21 WHERE team = "dick simon racing" | What engine did Dick Simon Racing use? | CREATE TABLE table_name_21 (engine VARCHAR, team VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.drug = "Ciprofloxacin" | what number of patients given the drug ciprofloxacin were male? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT MAX(legs) FROM table_256862_1 WHERE winning_yacht = "Steinlager 2" | Name the most legs for steinlager 2 | CREATE TABLE table_256862_1 (legs INTEGER, winning_yacht VARCHAR) |
SELECT drivers FROM table_name_31 WHERE team = "arciero racing" | Who drove for Arciero Racing? | CREATE TABLE table_name_31 (drivers VARCHAR, team VARCHAR) |
SELECT a.Id AS "Answer ID", p.Id AS "Question ID", p.Title AS "Title" FROM Posts AS p JOIN Posts AS a ON p.Id = a.ParentId WHERE p.PostTypeId = 1 AND a.OwnerUserId = '##UserId:int##' AND a.Score >= '##MinAnswerScore:int##' AND a.Id != p.AcceptedAnswerId | Of questions that have upvoted answers, how many have accepted answers?. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
) |
SELECT winning_yacht FROM table_256862_1 WHERE entries = "14" | Name the wininng yacht for 14 entries | CREATE TABLE table_256862_1 (winning_yacht VARCHAR, entries VARCHAR) |
SELECT chassis FROM table_name_94 WHERE drivers = "rich vogler" | What Chassis did Rich Vogler use? | CREATE TABLE table_name_94 (chassis VARCHAR, drivers VARCHAR) |
SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY COUNT(*) | How many climbers are from each country, and sort by the Y in ascending. | CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
) |
SELECT the_wørd FROM table_25691838_2 WHERE original_airdate = "February 11" | What was the word for the episode that aired February 11? | CREATE TABLE table_25691838_2 (the_wørd VARCHAR, original_airdate VARCHAR) |
SELECT tires FROM table_name_46 WHERE drivers = "johnny parsons" | What tires did Johnny Parsons use? | CREATE TABLE table_name_46 (tires VARCHAR, drivers VARCHAR) |
SELECT SUM("Points") FROM table_7216 WHERE "Lost" = '3' AND "Played" > '12' | What is the total number of points where there were 3 losses and a played number bigger than 12? | CREATE TABLE table_7216 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) |
SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026 | What was the introductory phrase for the episode with the production bode 6026? | CREATE TABLE table_25691838_2 (introductory_phrase VARCHAR, production_code VARCHAR) |
SELECT name FROM table_name_72 WHERE winning_driver = "bobby unser" | What race did Bobby Unser win? | CREATE TABLE table_name_72 (name VARCHAR, winning_driver VARCHAR) |
SELECT damage__millions_usd__ FROM table_name_36 WHERE min_press___mbar__ = "972" AND deaths = "52" | What is the cost of 972 Min Press caused 52 death? | CREATE TABLE table_name_36 (
damage__millions_usd__ VARCHAR,
min_press___mbar__ VARCHAR,
deaths VARCHAR
) |
SELECT the_wørd FROM table_25691838_2 WHERE episode__number = 673 | What was the word on episode number 673? | CREATE TABLE table_25691838_2 (the_wørd VARCHAR, episode__number VARCHAR) |
SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500" | Which driver won the Indianapolis 500 the year the Chaparral team also won it? | CREATE TABLE table_name_67 (winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR) |
SELECT demographic.marital_status, demographic.admission_type FROM demographic WHERE demographic.subject_id = "15898" | what is marital status and admission type of subject id 15898? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT guest FROM table_25691838_2 WHERE production_code = 6021 | Who were the guests in the episode with production code 6021? | CREATE TABLE table_25691838_2 (guest VARCHAR, production_code VARCHAR) |
SELECT report FROM table_name_33 WHERE pole_position = "bobby unser" AND winning_driver = "rick mears" | Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver? | CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) |
SELECT "Railway" FROM table_5682 WHERE "Class" = '250' AND "Year" = '1936' | Which railway has a class of 250 and year 1936? | CREATE TABLE table_5682 (
"Gauge" text,
"Railway" text,
"Class" text,
"Works no." text,
"Year" text,
"Builder" text
) |
SELECT guest FROM table_25691838_12 WHERE production_code = 6152 | Who were the guests on a show where the production code is 6152? | CREATE TABLE table_25691838_12 (guest VARCHAR, production_code VARCHAR) |
SELECT name FROM table_name_62 WHERE winning_team = "penske racing" AND winning_driver = "bobby unser" | Which race has a winning team of Penske Racing, and a winning driver of Bobby Unser? | CREATE TABLE table_name_62 (name VARCHAR, winning_team VARCHAR, winning_driver VARCHAR) |
SELECT writer_s_ FROM table_25800134_2 WHERE season__number = 24 | Who are all the writers of episodes in season 24? | CREATE TABLE table_25800134_2 (
writer_s_ VARCHAR,
season__number VARCHAR
) |
SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07" | Who were the guests for the episode with an original airdate of december 07? | CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR) |
SELECT date FROM table_name_37 WHERE home_team = "geelong" | On what day is geelong the home team? | CREATE TABLE table_name_37 (date VARCHAR, home_team VARCHAR) |
SELECT COUNT(series) FROM table_26473176_1 WHERE position = "12th" | How many 'series' were in the 12th 'position? | CREATE TABLE table_26473176_1 (
series VARCHAR,
position VARCHAR
) |
SELECT the_wørd FROM table_25691838_12 WHERE guest = "Daniel Ellsberg , William Wegman , Julie Taymor" | What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor? | CREATE TABLE table_25691838_12 (the_wørd VARCHAR, guest VARCHAR) |
SELECT venue FROM table_name_11 WHERE away_team = "collingwood" | What venue featured collingwood as the away side? | CREATE TABLE table_name_11 (venue VARCHAR, away_team VARCHAR) |
SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = "May 25, 2010 22.00 - 22.54" | What is the ratings for the original air date may 25, 2010 22.00 - 22.54? | CREATE TABLE table_26591434_1 (
ratings__kansai_ VARCHAR,
original_airdate VARCHAR
) |
SELECT production_code FROM table_25691838_12 WHERE original_airdate = "December 01" | What is the production code of the episode with an original airdate of december 01? | CREATE TABLE table_25691838_12 (production_code VARCHAR, original_airdate VARCHAR) |
SELECT home_team AS score FROM table_name_16 WHERE venue = "windy hill" | What is the home team score at windy hill? | CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) |
SELECT guest_s_ FROM table_29135051_3 WHERE ratings = "1.44m" | who guest starred on the episode with a 1.44m rating | CREATE TABLE table_29135051_3 (
guest_s_ VARCHAR,
ratings VARCHAR
) |
SELECT MIN(episode__number) FROM table_25691838_12 WHERE guest = "Julie Nixon Eisenhower and David Eisenhower" | What is the episode # when the guests were julie nixon eisenhower and david eisenhower? | CREATE TABLE table_25691838_12 (episode__number INTEGER, guest VARCHAR) |
SELECT season FROM table_name_35 WHERE races > 18 AND points = 36 | What season has races larger than 18 and 36 points? | CREATE TABLE table_name_35 (season VARCHAR, races VARCHAR, points VARCHAR) |
SELECT COUNT(years_for_jazz) FROM table_11545282_7 WHERE player = "Paul Griffin" | How many years did Paul Griffin play for the Jazz? | CREATE TABLE table_11545282_7 (
years_for_jazz VARCHAR,
player VARCHAR
) |
SELECT guest FROM table_25691838_8 WHERE original_airdate = "August 16" | Who were the guests on the episode that first aired August 16? | CREATE TABLE table_25691838_8 (guest VARCHAR, original_airdate VARCHAR) |
SELECT date FROM table_name_53 WHERE venue = "brunswick street oval" | The venue of Brunswick Street Oval was used on what date? | CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR) |
SELECT genre FROM table_name_4 WHERE type = "3d" AND developer_s_ = "valve corporation" | What type of 3D game did Valve Corporation release? | CREATE TABLE table_name_4 (
genre VARCHAR,
type VARCHAR,
developer_s_ VARCHAR
) |
SELECT introductory_phrase FROM table_25691838_8 WHERE production_code = 6101 | What was the introductory phrase on the episode production code 6101? | CREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, production_code VARCHAR) |
SELECT MIN(crowd) FROM table_name_61 WHERE away_team = "north melbourne" | What is the smallest crowd with the away team of North Melbourne? | CREATE TABLE table_name_61 (crowd INTEGER, away_team VARCHAR) |
SELECT MAX(year_named) FROM table_16799784_8 WHERE latitude = "33.3S" | In what year was the feature at a 33.3S latitude named? | CREATE TABLE table_16799784_8 (
year_named INTEGER,
latitude VARCHAR
) |
SELECT MIN(production_code) FROM table_25691838_8 WHERE original_airdate = "August 11" | What was the smallest production code for August 11's original episode? | CREATE TABLE table_25691838_8 (production_code INTEGER, original_airdate VARCHAR) |
SELECT date FROM table_name_91 WHERE home_team = "essendon" | On which date was Essendon the home team? | CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR) |
SELECT SUM("attendance") FROM table_204_443 WHERE "opponent" = 'new england patriots' | total number of attendees at the two games against the new england patriots during the season | CREATE TABLE table_204_443 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"game site" text,
"attendance" number,
"bye" text
) |
SELECT COUNT(introductory_phrase) FROM table_25691838_8 WHERE guest = "David Finkel" | How many introductory phrases were there on David Finkel's guest episode? | CREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, guest VARCHAR) |
SELECT airport FROM table_name_10 WHERE iata = "dac" | What is the name of the airport with IATA code DAC? | CREATE TABLE table_name_10 (airport VARCHAR, iata VARCHAR) |
SELECT type FROM table_name_62 WHERE position = "ambassador" AND location = "rabat" | what is the type when the position is ambassador and the location is rabat? | CREATE TABLE table_name_62 (
type VARCHAR,
position VARCHAR,
location VARCHAR
) |
SELECT MIN(episode__number) FROM table_25691838_8 WHERE original_airdate = "August 11" | What was the minimum number of the episode that first aired August 11? | CREATE TABLE table_25691838_8 (episode__number INTEGER, original_airdate VARCHAR) |
SELECT iata FROM table_name_56 WHERE city = "delhi" | What is the IATA code for Delhi? | CREATE TABLE table_name_56 (iata VARCHAR, city VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.icd9_code = "4260" | provide the number of patients whose death status is 0 and diagnoses icd9 code is 4260? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT introductory_phrase FROM table_25691838_11 WHERE episode__number = 794 | What was the introductory phrase for episode 794? | CREATE TABLE table_25691838_11 (introductory_phrase VARCHAR, episode__number VARCHAR) |
SELECT iata FROM table_name_98 WHERE icao = "rcmq" | What is the IATA code for the city with ICAO code of RCMQ? | CREATE TABLE table_name_98 (iata VARCHAR, icao VARCHAR) |
SELECT country FROM table_name_16 WHERE olympics = "2008 summer olympics" AND name = "vadim devyatovskiy" | Which country in the 2008 summer olympics is vadim devyatovskiy from? | CREATE TABLE table_name_16 (
country VARCHAR,
olympics VARCHAR,
name VARCHAR
) |
SELECT original_airdate FROM table_25691838_11 WHERE guest = "Salvatore Giunta" | What date did the episode originally air on with salvatore giunta as a guest? | CREATE TABLE table_25691838_11 (original_airdate VARCHAR, guest VARCHAR) |
SELECT airport FROM table_name_39 WHERE icao = "wmkp" | What is the airport with ICAO code of WMKP? | CREATE TABLE table_name_39 (airport VARCHAR, icao VARCHAR) |
SELECT MAX("tonnage") - MIN("tonnage") FROM table_204_100 | what is the difference in tonnage between the heaviest and the lightest ships ? | CREATE TABLE table_204_100 (
id number,
"date" text,
"name of ship" text,
"nationality" text,
"tonnage" number,
"fate" text
) |
SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = "November 15" | How many production codes were there for the episode that aired on November 15? | CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR) |
SELECT iata FROM table_name_7 WHERE airport = "shahjalal international airport" | What is the IATA code for SHahjalal International Airport? | CREATE TABLE table_name_7 (iata VARCHAR, airport VARCHAR) |
SELECT opponents FROM table_name_43 WHERE partner = "mashona washington" AND date = "november 21, 2009" | Tell me the opponents for mashona washington november 21, 2009 | CREATE TABLE table_name_43 (
opponents VARCHAR,
partner VARCHAR,
date VARCHAR
) |
SELECT cylinder_size FROM table_25695027_1 WHERE number_built = "88" | What was the cylinder size of this engine that was made with only 88 pieces? | CREATE TABLE table_25695027_1 (cylinder_size VARCHAR, number_built VARCHAR) |
SELECT icao FROM table_name_54 WHERE city = "ningbo" | What is the ICAO for the airport in Ningbo? | CREATE TABLE table_name_54 (icao VARCHAR, city VARCHAR) |
SELECT away_team FROM table_name_28 WHERE home_team = "sydney spirit" | who is the away team when the home team is sydney spirit? | CREATE TABLE table_name_28 (
away_team VARCHAR,
home_team VARCHAR
) |
SELECT class FROM table_25695027_1 WHERE years_built = "1906-08" | What was the engine class that was built on 1906-08? | CREATE TABLE table_25695027_1 (class VARCHAR, years_built VARCHAR) |
SELECT bb_pop FROM table_name_93 WHERE cb_cw = "1" AND year > 1976 AND riaa = "p" | What is the BB pop of the song with a CB CW of 1, RIAA of P and was released more recently than 1976? | CREATE TABLE table_name_93 (bb_pop VARCHAR, riaa VARCHAR, cb_cw VARCHAR, year VARCHAR) |
SELECT "Power" FROM table_66474 WHERE "Class" = 'a' AND "Frequency" = '93.7' | What power has A as the class, and 93.7 as the frequency? | CREATE TABLE table_66474 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) |
SELECT number_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Belpaire" AND valve_gear = "Stephenson" | How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson? | CREATE TABLE table_25695027_1 (number_built VARCHAR, valve_gear VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) |
SELECT cb_cw FROM table_name_73 WHERE bb_pop = "11" | What is the CB CW of the song which has a BB Pop of 11? | CREATE TABLE table_name_73 (cb_cw VARCHAR, bb_pop VARCHAR) |
SELECT australian_marquee FROM table_name_13 WHERE captain = "michael beauchamp" | What Australian Marquee team is Michael Beauchamp a captain of? | CREATE TABLE table_name_13 (
australian_marquee VARCHAR,
captain VARCHAR
) |
SELECT years_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Radial-stay" | This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when? | CREATE TABLE table_25695027_1 (years_built VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) |
SELECT SUM(crowd) FROM table_name_50 WHERE venue = "victoria park" | What was the crowd numbers when the VFL played Victoria Park? | CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR) |
SELECT COUNT(population__2005_) FROM table_1480455_1 WHERE population_density___km_2__ = "35.9" | What is the total number of population in the year 2005 where the population density 35.9 (/km 2)? | CREATE TABLE table_1480455_1 (
population__2005_ VARCHAR,
population_density___km_2__ VARCHAR
) |
SELECT COUNT(valves) FROM table_25695027_1 WHERE years_built = "1902-05" | How many types of valves were used on this engine that was built on 1902-05? | CREATE TABLE table_25695027_1 (valves VARCHAR, years_built VARCHAR) |
SELECT away_team AS score FROM table_name_15 WHERE venue = "junction oval" | When the VFL played at Junction Oval what was the away score? | CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) |
SELECT "location" FROM table_204_576 WHERE "location" <> 'brussels' ORDER BY "best" LIMIT 1 | which location has the best time other than brussels ? | CREATE TABLE table_204_576 (
id number,
"year" number,
"best" text,
"location" text,
"date" text,
"world rank" text
) |
SELECT agency FROM table_25692955_1 WHERE south_west_terminal = "Santa Rosa Avenue" | Name the agency for santa rosa avenue | CREATE TABLE table_25692955_1 (agency VARCHAR, south_west_terminal VARCHAR) |
SELECT away_team FROM table_name_46 WHERE crowd > 41 OFFSET 402 | Who was the away team for the game played in front of more than 41,402 fans? | CREATE TABLE table_name_46 (away_team VARCHAR, crowd INTEGER) |
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "NALO4I" | find the drug name of drug code nalo4i. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) |
SELECT route_number FROM table_25692955_1 WHERE south_west_terminal = "Rincon Valley" | Name the route number for rincon valley | CREATE TABLE table_25692955_1 (route_number VARCHAR, south_west_terminal VARCHAR) |
SELECT home_team FROM table_name_22 WHERE away_team = "richmond" | What Home team played Richmond? | CREATE TABLE table_name_22 (home_team VARCHAR, away_team VARCHAR) |
SELECT "Airdate" FROM table_31057 WHERE "Winner" = 'Guy Grossi' | What date did the episode air when guy grossi won? | CREATE TABLE table_31057 (
"Episode" real,
"Airdate" text,
"Iron Chef" text,
"Challenger" text,
"Theme Ingredient" text,
"Winner" text
) |
SELECT route_number FROM table_25692955_1 WHERE north_east_terminal = "Santa Rosa Avenue" | Name the route number for santa rosa avenue | CREATE TABLE table_25692955_1 (route_number VARCHAR, north_east_terminal VARCHAR) |
SELECT venue FROM table_name_32 WHERE home_team = "melbourne" | What is Melbourne's home venue? | CREATE TABLE table_name_32 (venue VARCHAR, home_team VARCHAR) |
SELECT "B - Bishop" FROM table_28262 WHERE "AB - Angry boar" = 'VW - Vertical Wolf' | what is b - bishop where ab - angry boar is vw - vertical wolf? | CREATE TABLE table_28262 (
"AB - Angry boar" text,
"B - Bishop" text,
"BA - Running Bear" text,
"BB - Blind Bear" text,
"BC - Beast Cadet" text
) |
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode_title = "Another Happy Day" | What is the original air date of the episode "Another Happy Day"? | CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode_title VARCHAR) |
SELECT home___away FROM table_name_23 WHERE record = "6-12" | Was the game home or away when the record is 6-12? | CREATE TABLE table_name_23 (home___away VARCHAR, record VARCHAR) |
SELECT COUNT(DISTINCT director) FROM movie | How many movie directors are there? | CREATE TABLE culture_company (
company_name text,
type text,
incorporated_in text,
group_equity_shareholding number,
book_club_id text,
movie_id text
)
CREATE TABLE movie (
movie_id number,
title text,
year number,
director text,
budget_million number,
gross_worldwide number
)
CREATE TABLE book_club (
book_club_id number,
year number,
author_or_editor text,
book_title text,
publisher text,
category text,
result text
) |
SELECT episode_title FROM table_2570269_3 WHERE original_air_date__uk_ = "13 August 1981" | What is the title of the episode that aired on 13 august 1981? | CREATE TABLE table_2570269_3 (episode_title VARCHAR, original_air_date__uk_ VARCHAR) |
SELECT date FROM table_name_78 WHERE home___away = "away" AND location_attendance = "blue cross arena" | What is the date of the away game at the Blue Cross Arena? | CREATE TABLE table_name_78 (date VARCHAR, home___away VARCHAR, location_attendance VARCHAR) |
SELECT Payment_Method_Code, COUNT(Payment_Method_Code) FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(Payment_Method_Code) DESC | Plot the number of payment method code by grouped by payment method code as a bar graph, and list by the total number from high to low. | CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
) |
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode__number = "3-02" | What is the original air date of episode 3-02? | CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode__number VARCHAR) |
SELECT AVG(week) FROM table_name_26 WHERE attendance = "22,286" | What is the week for the stadium that had an attendance of 22,286? | CREATE TABLE table_name_26 (week INTEGER, attendance VARCHAR) |
SELECT Nationality, SUM(meter_100) FROM swimmer GROUP BY Nationality ORDER BY Nationality DESC | Return a bar chart about the distribution of Nationality and the sum of meter_100 , and group by attribute Nationality, sort by the X-axis from high to low. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) |
SELECT cast FROM table_2570269_3 WHERE episode__number = "3-04" | Who are the cast members of episode 3-04? | CREATE TABLE table_2570269_3 (cast VARCHAR, episode__number VARCHAR) |
SELECT COUNT(total_assists) FROM table_name_20 WHERE games > 107 AND rank < 2 | How many assists for player(s) with over 107 games and ranked less than 2? | CREATE TABLE table_name_20 (total_assists VARCHAR, games VARCHAR, rank VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.