answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MAX(elimination_number) FROM table_18598175_2 WHERE time = "26:15" | What was the elimination number of the fighter who fought within 26:15? | CREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR) |
SELECT "year" FROM table_203_238 ORDER BY "year" DESC LIMIT 1 | when was his last competition ? | CREATE TABLE table_203_238 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) |
SELECT COUNT(pop__km²) FROM table_2252745_1 WHERE administrative_centre = "Egilsstaðir" | when administrative centre is egilsstaðir, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, administrative_centre VARCHAR) |
SELECT longitude FROM table_18600760_2 WHERE land___sqmi__ = "35.992" | what is the longitude in 35.992 sqmi | CREATE TABLE table_18600760_2 (longitude VARCHAR, land___sqmi__ VARCHAR) |
SELECT Team_Name, ACC_Percent FROM basketball_match | For the attribute Team_Name and ACC_Percent, show their proportion by a pie chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) |
SELECT pop__km² FROM table_2252745_1 WHERE area__km²_ = 22721 | when the area (km²) is 22721, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, area__km²_ VARCHAR) |
SELECT COUNT(pop__2010_) FROM table_18600760_2 WHERE water__sqmi_ = "0.818" | how many townships where pop (2010) and ater is 0.818 | CREATE TABLE table_18600760_2 (pop__2010_ VARCHAR, water__sqmi_ VARCHAR) |
SELECT "Date" FROM table_5592 WHERE "Record" = '46-39' | On what date was their record 46-39? | CREATE TABLE table_5592 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT MAX(population_2008_07_01) FROM table_2252745_1 WHERE administrative_centre = "Selfoss" | What is the max pop of 2008 for selfoss? | CREATE TABLE table_2252745_1 (population_2008_07_01 INTEGER, administrative_centre VARCHAR) |
SELECT township FROM table_18600760_19 WHERE land___sqmi__ = "32.222" | what is the name of the townships with 32.222 land | CREATE TABLE table_18600760_19 (township VARCHAR, land___sqmi__ VARCHAR) |
SELECT COUNT(year) FROM table_14903627_1 WHERE mens_doubles = "Heiki Sorge Meelis Maiste" | HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY? | CREATE TABLE table_14903627_1 (
year VARCHAR,
mens_doubles VARCHAR
) |
SELECT pop__km² FROM table_2252745_1 WHERE _number = 4 | When the # is 4, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR) |
SELECT COUNT(land___sqmi__) FROM table_18600760_19 WHERE longitude = "-100.895783" | how many lands with longitude of -100.895783 are? | CREATE TABLE table_18600760_19 (land___sqmi__ VARCHAR, longitude VARCHAR) |
SELECT "CFL Team" FROM table_16318 WHERE "College" = 'St. Francis Xavier' | What's the team of the player from St. Francis Xavier College? | CREATE TABLE table_16318 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) |
SELECT player FROM table_22538587_3 WHERE l_apps = 17 | Name the player for l apps for 17 | CREATE TABLE table_22538587_3 (player VARCHAR, l_apps VARCHAR) |
SELECT COUNT(geo_id) FROM table_18600760_19 WHERE latitude = "48.578664" | how many geo id with 48.578664 are | CREATE TABLE table_18600760_19 (geo_id VARCHAR, latitude VARCHAR) |
SELECT "Score" FROM table_2855 WHERE "Record" = '37-27' | What was the score for the game when the record was 37-27? | CREATE TABLE table_2855 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MIN(total_apps) FROM table_22538587_3 WHERE player = "Jaime" | Name the least total apps for jaime | CREATE TABLE table_22538587_3 (total_apps INTEGER, player VARCHAR) |
SELECT latitude FROM table_18600760_19 WHERE water__sqmi_ = "0.288" | what is the latitude in the township where wate is 0.288 | CREATE TABLE table_18600760_19 (latitude VARCHAR, water__sqmi_ VARCHAR) |
SELECT Id AS "user_link", (SELECT COUNT(TotalRep) FROM (SELECT SUM(CASE Votes.VoteTypeId WHEN 1 THEN 15 WHEN 2 THEN 10 WHEN 9 THEN BountyAmount END) AS TotalRep, Votes.CreationDate AS CreationDate FROM Posts INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE Posts.OwnerUserId = U.Id AND Posts.CommunityOwnedDate IS NULL GROUP BY Votes.CreationDate) AS t WHERE TotalRep >= 200) FROM Users AS U WHERE U.Reputation >= 200 ORDER BY 2 DESC | Top users by the number of times they earned 200/day. This query finds the top users by the number of times they've earned 200/day, and gives indication about the progress towards Epic and Legendary badges.
Think of it as the number of times Mortarboard badge could have been earned | 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 ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment 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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
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 PostTags (
PostId number,
TagId 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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name 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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
) |
SELECT COUNT(l_g) FROM table_22538587_3 WHERE c_g > 1.0 AND c_apps = 3 | Name the total number of lg for cg is larger than 1.0 for c apps is 3 | CREATE TABLE table_22538587_3 (l_g VARCHAR, c_g VARCHAR, c_apps VARCHAR) |
SELECT township FROM table_18600760_19 WHERE latitude = "47.377790" | how is called the township where the latitude is 47.377790 | CREATE TABLE table_18600760_19 (township VARCHAR, latitude VARCHAR) |
SELECT COUNT("V Core") FROM table_29399 WHERE "Model Number" = 'Mobile Athlon 64 3000+' | Name the number of v core for model number mobile athlon 64 3000+ | CREATE TABLE table_29399 (
"Model Number" text,
"Frequency" text,
"L2 Cache" text,
"HT" text,
"Mult. 1" text,
"V Core" text,
"TDP" text,
"Socket" text,
"Release Date" text,
"Part Number(s)" text
) |
SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)" | If the runner-up is [[|]] 151/8 (50.0 overs), what were the results? | CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR) |
SELECT geo_id FROM table_18600760_19 WHERE land___sqmi__ = "35.990" | where the land is 35.990 what is the number of the geo id | CREATE TABLE table_18600760_19 (geo_id VARCHAR, land___sqmi__ VARCHAR) |
SELECT SUM("7th runner-up") FROM table_75070 WHERE "10th runner-up" > '0' AND "9th runner-up" > '0' AND "8th runner-up" > '1' | What is the 7th runner-up of the country with a 10th runner-up greater than 0, a 9th runner-up greater than 0, and an 8th runner-up greater than 1? | CREATE TABLE table_75070 (
"Rank" real,
"Country/Territory" text,
"Nuestra Belleza Latina" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"5th runner-up" real,
"6th runner-up" real,
"7th runner-up" real,
"8th runner-up" real,
"9th runner-up" real,
"10th runner-up" real,
"11th runner-up" real,
"Top 18/20/24/30" real,
"Total" real
) |
SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)" | What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? | CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR) |
SELECT land___sqmi__ FROM table_18600760_4 WHERE geo_id = 3807717980 | Name the land where geo id is 3807717980 | CREATE TABLE table_18600760_4 (land___sqmi__ VARCHAR, geo_id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.dob_year < "1887" | count the number of patients whose insurance is private and year of birth is less than 1887? | CREATE TABLE diagnoses (
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 details FROM table_22577693_1 WHERE result = "Kuwait won by 72 runs Scorecard" | If the results are Kuwait won by 72 runs scorecard, what are the details? | CREATE TABLE table_22577693_1 (details VARCHAR, result VARCHAR) |
SELECT latitude FROM table_18600760_4 WHERE township = "Deer Lake" | Name the latitude for deer lake | CREATE TABLE table_18600760_4 (latitude VARCHAR, township VARCHAR) |
SELECT country FROM table_name_59 WHERE city = "douala" | Where is the City of Douala? | CREATE TABLE table_name_59 (
country VARCHAR,
city VARCHAR
) |
SELECT winner FROM table_22577693_1 WHERE final_venue = "Kowloon Cricket Club" | Who was the winner if the final venue is Kowloon Cricket Club? | CREATE TABLE table_22577693_1 (winner VARCHAR, final_venue VARCHAR) |
SELECT land___sqmi__ FROM table_18600760_7 WHERE water__sqmi_ = "1.701" | If the water square milage is 1.701, what is the land square milage? | CREATE TABLE table_18600760_7 (land___sqmi__ VARCHAR, water__sqmi_ VARCHAR) |
SELECT "Heat (Lane)" FROM table_4612 WHERE "Rank" = '22' | Which heat and lane was in rank of 22? | CREATE TABLE table_4612 (
"Rank" real,
"Heat (Lane)" text,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE series__number = 83 | How many u.s. viewers (million) have a series # 83? | CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR) |
SELECT pop__2010_ FROM table_18600760_7 WHERE county = "Cavalier" AND geo_id > 3801931620.0 | In Cavalier County and the geo id is larger than 3801931620.0, what is the population? | CREATE TABLE table_18600760_7 (pop__2010_ VARCHAR, county VARCHAR, geo_id VARCHAR) |
SELECT SUM("# 100") FROM table_5482 WHERE "Season" = '1990' AND "Against" = 'warwickshire' | Which sum of # 100 has a Season of 1990, and an Against of warwickshire? | CREATE TABLE table_5482 (
"# 100" real,
"Season" text,
"Playing For" text,
"Against" text,
"Score" text
) |
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE season__number = 5 | How many u.s. viewers (millions) have 5 as the season #? | CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, season__number VARCHAR) |
SELECT MAX(ansi_code) FROM table_18600760_7 WHERE pop__2010_ = 1858 | If the population is 1858, what is the maximum ansi code? | CREATE TABLE table_18600760_7 (ansi_code INTEGER, pop__2010_ VARCHAR) |
SELECT "Date" FROM table_49190 WHERE "Time" = '1:07.18' | On what date was the record set with a time of 1:07.18? | CREATE TABLE table_49190 (
"Event" text,
"Time" text,
"Name" text,
"Nation" text,
"Games" text,
"Date" text
) |
SELECT COUNT(written_by) FROM table_22570439_1 WHERE directed_by = "Wendey Stanzler" | How many written by have wendey stanzler as the director? | CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR) |
SELECT MIN(geo_id) FROM table_18600760_7 WHERE longitude = "-97.473110" | If the longitude is -97.473110, what is the minimum geo id? | CREATE TABLE table_18600760_7 (geo_id INTEGER, longitude VARCHAR) |
SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship" | When was the mcdonald's lpga championship? | CREATE TABLE table_17335602_1 (
date VARCHAR,
tournament VARCHAR
) |
SELECT original_air_date FROM table_22570439_1 WHERE written_by = "Tracy Poust & Jon Kinnally" | What is the original air date where tracy poust & jon kinnally was written by? | CREATE TABLE table_22570439_1 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT township FROM table_18600760_7 WHERE ansi_code = 1036632 | If the ansi code is 1036632, what is the name of the township? | CREATE TABLE table_18600760_7 (township VARCHAR, ansi_code VARCHAR) |
SELECT COUNT(DISTINCT P.Id) AS num_questions, t_dbname.TagName FROM Posts AS P INNER JOIN PostTags AS pt ON pt.PostId = P.Id INNER JOIN Tags AS t_lang ON t_lang.Id = pt.TagId INNER JOIN PostTags AS pt_db ON pt_db.PostId = P.Id INNER JOIN Tags AS t_dbname ON t_dbname.Id = pt_db.TagId WHERE t_lang.TagName IN ('c++', 'java', 'python', 'go', 'php', 'asp.net', 'c#', 'node.js', 'ocaml', 'haskell', 'erlang') AND t_dbname.TagName IN ('mysql', 'sql-server', 'oracle', 'postgresql', 'db2', 'mongo', 'rocksdb', 'redis', 'google-cloud-spanner', 'amazon-dynamodb', 'azure-cosmosdb', 'voltdb', 'sqlite', 'leveldb', 'hbase') AND P.CreationDate > DATEADD(yyyy, -2, SYSDATETIME()) GROUP BY t_dbname.TagName ORDER BY COUNT(DISTINCT P.Id) DESC | popular db access programming languages. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
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 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
) |
SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington" | Who is the written by when mark worthington is the director? | CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR) |
SELECT longitude FROM table_18600760_7 WHERE land___sqmi__ = "10.950" | If the land square milage is 10.950, what is the longitude? | CREATE TABLE table_18600760_7 (longitude VARCHAR, land___sqmi__ VARCHAR) |
SELECT "Appearances" FROM table_9522 WHERE "Position [F ]" = 'defender' AND "Date to [H ]" = '1938' | What is Appearances, when Postion [F ] is 'Defender', and when Date to [H ] is '1938'? | CREATE TABLE table_9522 (
"Name" text,
"Nationality" text,
"Position [F ]" text,
"Date from [G ]" text,
"Date to [H ]" text,
"Appearances" real,
"Goals" real,
"Club source [I ]" text
) |
SELECT reporters FROM table_22583466_5 WHERE year = 1976 | In 1976, who was the reporter for the Belmont Stakes? | CREATE TABLE table_22583466_5 (reporters VARCHAR, year VARCHAR) |
SELECT township FROM table_18600760_9 WHERE longitude = "-99.287270" | What township is located at longitude -99.287270? | CREATE TABLE table_18600760_9 (township VARCHAR, longitude VARCHAR) |
SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010" | What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010. | CREATE TABLE table_name_51 (
meg_whitman__r_ VARCHAR,
date_s__administered VARCHAR
) |
SELECT race_caller FROM table_22583466_5 WHERE year = 1978 | Who called the race in 1978? | CREATE TABLE table_22583466_5 (race_caller VARCHAR, year VARCHAR) |
SELECT longitude FROM table_18600760_9 WHERE ansi_code = 1759682 | What is the longitude of the township at ANSI code 1759682? | CREATE TABLE table_18600760_9 (longitude VARCHAR, ansi_code VARCHAR) |
SELECT COUNT("town/village") FROM table_203_568 WHERE "population" >= 5 AND "population" < 10 | how many towns or villages have a population of at least 5 but less than 10 ? | CREATE TABLE table_203_568 (
id number,
"town/village" text,
"population" number,
"postal code" text,
"municipality" text,
"island" text,
"location" text
) |
SELECT s_host FROM table_22583466_5 WHERE race_caller = "Marshall Cassidy" | For the race called by Marshall Cassidy, who was the host? | CREATE TABLE table_22583466_5 (s_host VARCHAR, race_caller VARCHAR) |
SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = "48.064751" | How many square miles of water does the township at latitude 48.064751 have? | CREATE TABLE table_18600760_9 (water__sqmi_ VARCHAR, latitude VARCHAR) |
SELECT original_air_date FROM table_23399481_3 WHERE season__number = 4 | What is the original air date for episode 4? | CREATE TABLE table_23399481_3 (
original_air_date VARCHAR,
season__number VARCHAR
) |
SELECT reporters FROM table_22583466_5 WHERE year = 1977 | Who were the reporters for the 1977 Belmont Stakes? | CREATE TABLE table_22583466_5 (reporters VARCHAR, year VARCHAR) |
SELECT geo_id FROM table_18600760_9 WHERE ansi_code = 1759243 | What is the geo code of the township with ANSI code 1759243? | CREATE TABLE table_18600760_9 (geo_id VARCHAR, ansi_code VARCHAR) |
SELECT "Drobo (2nd)" FROM table_11041 WHERE "Drobo S (2nd)" = '5' | Which Drobo (2nd) has a Drobo S (2nd) of 5? | CREATE TABLE table_11041 (
"Drobo (1st)" text,
"Drobo (2nd)" text,
"Drobo S" text,
"Drobo S (2nd)" text,
"Drobo FS" text,
"Drobo Mini" text,
"Drobo 5D" text
) |
SELECT race_caller FROM table_22583466_3 WHERE year = 1998 | Who called the race in 1998? | CREATE TABLE table_22583466_3 (race_caller VARCHAR, year VARCHAR) |
SELECT contestant FROM table_18626383_2 WHERE hometown = "Santiago del Estero" | When santiago del estero is the hometown who is the contestant? | CREATE TABLE table_18626383_2 (contestant VARCHAR, hometown VARCHAR) |
SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0 | What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value? | CREATE TABLE table_name_52 (
hong_kong INTEGER,
brisbane VARCHAR,
kuala_lumpur VARCHAR
) |
SELECT 2007 AS _2008 FROM table_22591910_4 WHERE position = 3 | who was position 3 in 2007-2008? | CREATE TABLE table_22591910_4 (position VARCHAR) |
SELECT hometown FROM table_18626383_2 WHERE country = "Belarus" | When belarus is the country what is the hometown? | CREATE TABLE table_18626383_2 (hometown VARCHAR, country VARCHAR) |
SELECT nickname FROM table_11658094_3 WHERE enrollment = 2386 | What is the nickname of the school with an enrollment of 2386? | CREATE TABLE table_11658094_3 (
nickname VARCHAR,
enrollment VARCHAR
) |
SELECT standing FROM table_2259285_1 WHERE goals_against = 279 | What was the standing when goal against were 279? | CREATE TABLE table_2259285_1 (standing VARCHAR, goals_against VARCHAR) |
SELECT height__cm_ FROM table_18626383_2 WHERE country = "Bahamas" | When bahamas is the country what is the height in centimeters? | CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, country VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-141335')) AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-176 month') | was there any medicine prescribed since 176 months ago for patient 021-141335? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) |
SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 229 | What is the winning pct % if the goal for are 229? | CREATE TABLE table_2259285_1 (winning_pct__percentage VARCHAR, goals_for VARCHAR) |
SELECT COUNT(hometown) FROM table_18626383_2 WHERE country = "Finland" | When finland is the country how many hometowns are there? | CREATE TABLE table_18626383_2 (hometown VARCHAR, country VARCHAR) |
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 | Find the name of the ship that is steered by the youngest captain. | CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
) |
SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 322 | What was the winning % when there were 322 goals? | CREATE TABLE table_2259285_1 (winning_pct__percentage VARCHAR, goals_for VARCHAR) |
SELECT contestant FROM table_18626383_2 WHERE hometown = "Johannesburg" | When johannesburg is the hometown who is the contestant? | CREATE TABLE table_18626383_2 (contestant VARCHAR, hometown VARCHAR) |
SELECT * FROM (SELECT p.*, ViewCount / DATEDIFF(dd, CreationDate, GETUTCDATE()) AS ViewRate FROM Tags AS t JOIN PostTags AS pt ON t.Id = pt.TagId JOIN Posts AS p ON pt.PostId = p.Id WHERE t.TagName = 'microsoftgraph') AS tmp ORDER BY ViewRate DESC | Get Most Viewed For Tag. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
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 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 VoteTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
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 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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
) |
SELECT year FROM table_225880_1 WHERE runner_s__up = "Willie Goggin" | Name the year for willie goggin | CREATE TABLE table_225880_1 (year VARCHAR, runner_s__up VARCHAR) |
SELECT COUNT(height__cm_) FROM table_18626383_2 WHERE contestant = "Valora Roucek" | When valora roucek is the contestant how many heights in centimeters are there? | CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, contestant VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', medication.drugstarttime)) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-16572') AND patient.hospitaldischargetime IS NULL) AND medication.drugname = 'carvedilol 6.25 mg po tabs' ORDER BY medication.drugstarttime DESC LIMIT 1 | how many hours has it been since the last time carvedilol 6.25 mg po tabs was prescribed to patient 010-16572 in the current hospital encounter? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) |
SELECT winning_score FROM table_225880_1 WHERE championship = "PGA championship" | Name the winning score for pga championship | CREATE TABLE table_225880_1 (winning_score VARCHAR, championship VARCHAR) |
SELECT round_1 FROM table_18646111_13 WHERE event = "Team" | Name the round 1 for team event | CREATE TABLE table_18646111_13 (round_1 VARCHAR, event VARCHAR) |
SELECT "nation" FROM table_203_374 ORDER BY "bronze" DESC LIMIT 1 | who has the most bronze medals ? | CREATE TABLE table_203_374 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT MIN(year) FROM table_225880_1 WHERE runner_s__up = "Walter Hagen" | Name the least year for walter hagen | CREATE TABLE table_225880_1 (year INTEGER, runner_s__up VARCHAR) |
SELECT COUNT(semifinals) FROM table_18646111_13 WHERE class = "TT2" | Name the number of semifinals for tt2 | CREATE TABLE table_18646111_13 (semifinals VARCHAR, class VARCHAR) |
SELECT province FROM table_275023_1 WHERE formed_from = "New Munster" | What provinces were formed from New Munster? | CREATE TABLE table_275023_1 (
province VARCHAR,
formed_from VARCHAR
) |
SELECT score_in_the_final FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas" | What was the score in the final where one of the opponents in the final was fitzgerald vilas? | CREATE TABLE table_22597626_17 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR) |
SELECT 1 AS _8_finals FROM table_18646111_13 WHERE round_1 = "N/A" | Name the 1/8 finals for round 1 n/a | CREATE TABLE table_18646111_13 (round_1 VARCHAR) |
SELECT team_guest_captain FROM table_25816476_2 WHERE episode = 2 | Who was the team guest captain for episode 2? | CREATE TABLE table_25816476_2 (
team_guest_captain VARCHAR,
episode VARCHAR
) |
SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas" | What was the surface for the opponents in the final with fitzgerald vilas? | CREATE TABLE table_22597626_17 (surface VARCHAR, opponents_in_the_final VARCHAR) |
SELECT COUNT(round_3) FROM table_18646111_13 WHERE class = "TT1" | Name the total number of round 3 for class tt1 | CREATE TABLE table_18646111_13 (round_3 VARCHAR, class VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-50099')) AND medication.drugname = 'furosemide 80 mg po tabs' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-13 month') | has patient 006-50099 been prescribed furosemide 80 mg po tabs until 13 months ago. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = "6–4, 7–6 2" | Who were the opponents in the final where the score in the final is 6–4, 7–6 2? | CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) |
SELECT event FROM table_18646111_13 WHERE athlete = "Hans Ruep" | Name the event for hans ruep | CREATE TABLE table_18646111_13 (event VARCHAR, athlete VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.long_title = "Combined right and left heart angiocardiography" | provide the number of patients whose insurance is medicaid and procedure long title is combined right and left heart angiocardiography? | 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 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 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
) |
SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte" | What was the partner count when the opponents in the final was forget leconte? | CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR) |
SELECT COUNT(ka_band) FROM table_186468_1 WHERE v_band = "4" | When 4 is the v-band what is the overall amount of ka-bands? | CREATE TABLE table_186468_1 (ka_band VARCHAR, v_band VARCHAR) |
SELECT account_id, COUNT(*) FROM Financial_Transactions GROUP BY account_id | Show the account id and the number of transactions for each accoun. Show scatter chart. | CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
) |
SELECT MIN(year) FROM table_22597626_17 WHERE opponents_in_the_final = "Bahrami Leconte" AND score_in_the_final = "7–6 2 , 6–1" | What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1? | CREATE TABLE table_22597626_17 (year INTEGER, opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) |
SELECT property FROM table_186468_1 WHERE q_band = "8.3" | When 8.3 is the q-band what is the property? | CREATE TABLE table_186468_1 (property VARCHAR, q_band VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.