answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MAX("Laps") FROM table_59552 WHERE "Bike" = 'yamaha yzf-r1' AND "Rider" = 'david checa' AND "Grid" > '18' | What is the highest Laps, when Bike is 'Yamaha YZF-R1', when Rider is 'David Checa', and when Grid is greater than 18? | CREATE TABLE table_59552 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) |
SELECT distance FROM table_2581397_4 WHERE race = "Manikato Stakes" | What was the distance in the Manikato Stakes race? | CREATE TABLE table_2581397_4 (distance VARCHAR, race VARCHAR) |
SELECT player FROM table_name_52 WHERE pick = 252 | What player was drafted 252? | CREATE TABLE table_name_52 (player VARCHAR, pick VARCHAR) |
SELECT MAX(released) FROM table_24600706_1 WHERE song = "Apologize" | Name the most released for apologize | CREATE TABLE table_24600706_1 (
released INTEGER,
song VARCHAR
) |
SELECT distance FROM table_2581397_4 WHERE weight__kg_ = "56" AND winner_2nd = "2nd - Fritz" | What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz? | CREATE TABLE table_2581397_4 (distance VARCHAR, weight__kg_ VARCHAR, winner_2nd VARCHAR) |
SELECT venue FROM table_name_26 WHERE away_team = "collingwood" | What is the venue where Collingwood played as the away team? | CREATE TABLE table_name_26 (venue VARCHAR, away_team VARCHAR) |
SELECT "Country" FROM table_45247 WHERE "Name" = 'sba towers tower hayneville' | What country has the SBA Towers Tower Hayneville? | CREATE TABLE table_45247 (
"Name" text,
"Pinnacle height" text,
"Structure type" text,
"Main use" text,
"Country" text,
"Town" text
) |
SELECT date FROM table_2581397_5 WHERE race = "Doncaster" | What date was the Doncaster race? | CREATE TABLE table_2581397_5 (date VARCHAR, race VARCHAR) |
SELECT date FROM table_name_58 WHERE away_team = "south melbourne" | What is the date of the game where South Melbourne was the away team? | CREATE TABLE table_name_58 (date VARCHAR, away_team VARCHAR) |
SELECT score FROM table_name_44 WHERE away_team = "walthamstow avenue" | Which Score has a Away team of walthamstow avenue? | CREATE TABLE table_name_44 (
score VARCHAR,
away_team VARCHAR
) |
SELECT air_date FROM table_25816476_2 WHERE team_guest_captain = "John Bishop" | What was the air date when the team guest captain was john bishop? | CREATE TABLE table_25816476_2 (air_date VARCHAR, team_guest_captain VARCHAR) |
SELECT AVG(laps) FROM table_name_96 WHERE race_number < 8 AND country = "nl" | What is the average number of laps when the country was NL and the race number was smaller than 8? | CREATE TABLE table_name_96 (laps INTEGER, race_number VARCHAR, country VARCHAR) |
SELECT "Round" FROM table_78294 WHERE "Pick" = '112' | Which Round is pick 112 in? | CREATE TABLE table_78294 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
) |
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 COUNT(edges_e) FROM table_name_32 WHERE vertices_v > 20 | What is the total number of E edges of the polyhedra with vertices V greater than 20? | CREATE TABLE table_name_32 (edges_e VARCHAR, vertices_v INTEGER) |
SELECT 2013 AS _index_of_economic_freedom FROM table_1604579_2 WHERE country = "Armenia" | How economically free is the country of Armenia? | CREATE TABLE table_1604579_2 (
country VARCHAR
) |
SELECT team_swash FROM table_25816476_2 WHERE team_guest_captain = "Gail Porter" | Who was the team swash when the team guest captain was gail porter? | CREATE TABLE table_25816476_2 (team_swash VARCHAR, team_guest_captain VARCHAR) |
SELECT points FROM table_name_71 WHERE club = "seven sisters rfc" | What are the points for the Seven Sisters RFC club? | CREATE TABLE table_name_71 (points VARCHAR, club VARCHAR) |
SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-21509') AND NOT patient.admissionheight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | what the last height of patient 002-21509. | 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
)
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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) |
SELECT COUNT(team_coxy) FROM table_25816476_2 WHERE air_date = "24 January 2010" AND team_guest_captain = "Gail Porter" | How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter? | CREATE TABLE table_25816476_2 (team_coxy VARCHAR, air_date VARCHAR, team_guest_captain VARCHAR) |
SELECT tries_for FROM table_name_87 WHERE lost = "7" | How many tries were for the 7 lost? | CREATE TABLE table_name_87 (tries_for VARCHAR, lost VARCHAR) |
SELECT "Intercontinental Cup 1993" FROM table_35963 WHERE "Supercopa Sudamericana 1993" = 'round of 16' | What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16? | CREATE TABLE table_35963 (
"Team" text,
"Copa Libertadores 1993" text,
"Supercopa Sudamericana 1993" text,
"Copa CONMEBOL 1993" text,
"Recopa Sudamericana 1993" text,
"Intercontinental Cup 1993" text
) |
SELECT COUNT(air_date) FROM table_25816476_2 WHERE team_guest_captain = "Stephen K Amos" | How many entries are shown for an air date when the team guest captain was stephen k amos? | CREATE TABLE table_25816476_2 (air_date VARCHAR, team_guest_captain VARCHAR) |
SELECT tries_for FROM table_name_73 WHERE losing_bonus = "5" AND club = "maesteg celtic rfc" | How many tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club? | CREATE TABLE table_name_73 (tries_for VARCHAR, losing_bonus VARCHAR, club VARCHAR) |
SELECT "Saka era" FROM table_21192 WHERE "Sign of Zodiac" = 'Pisces' | Name the saka era for sign of zodiac being pisces | CREATE TABLE table_21192 (
"Months in Malayalam Era" text,
"In Malayalam" text,
"Gregorian Calendar" text,
"Tamil calendar" text,
"Saka era" text,
"Sign of Zodiac" text
) |
SELECT group FROM table_2581397_2 WHERE venue = "Moonee Valley" | What group was sunline in when he was at moonee valley? | CREATE TABLE table_2581397_2 (group VARCHAR, venue VARCHAR) |
SELECT lost FROM table_name_59 WHERE points_against = "383" | What was lost against 383 points? | CREATE TABLE table_name_59 (lost VARCHAR, points_against VARCHAR) |
SELECT MIN("Played") FROM table_19683 | How many games were played? | CREATE TABLE table_19683 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) |
SELECT win_loss FROM table_25820786_2 WHERE nationality = "Switzerland" | What was the win-loss record for the player from Switzerland? | CREATE TABLE table_25820786_2 (win_loss VARCHAR, nationality VARCHAR) |
SELECT rank FROM table_name_39 WHERE notes = "cancelled" AND name = "daewoo business center" | What's the rank for Daewoo Business Center when the notes are cancelled? | CREATE TABLE table_name_39 (rank VARCHAR, notes VARCHAR, name VARCHAR) |
SELECT staten_island FROM table_1108394_6 WHERE brooklyn = "940" | What was Staten Island when Brooklyn was 940? | CREATE TABLE table_1108394_6 (
staten_island VARCHAR,
brooklyn VARCHAR
) |
SELECT win_loss FROM table_25820584_7 WHERE year_s_ = "1969" | What was the win loss record the lady who appeard in 1969? | CREATE TABLE table_25820584_7 (win_loss VARCHAR, year_s_ VARCHAR) |
SELECT floors FROM table_name_58 WHERE height_m___feet = "900 / 2,952" | How many floors have a Height m / feet of 900 / 2,952? | CREATE TABLE table_name_58 (floors VARCHAR, height_m___feet VARCHAR) |
SELECT built FROM table_name_93 WHERE builder = "stephenson" | What year was Stephenson the builder? | CREATE TABLE table_name_93 (
built VARCHAR,
builder VARCHAR
) |
SELECT player FROM table_25820584_7 WHERE year_s_ = "1969" | What player(s) appeared in 1969? | CREATE TABLE table_25820584_7 (player VARCHAR, year_s_ VARCHAR) |
SELECT height_m___feet FROM table_name_97 WHERE name = "shanghai x-1 financial building" | What is the height for shanghai x-1 financial building? | CREATE TABLE table_name_97 (height_m___feet VARCHAR, name VARCHAR) |
SELECT COUNT(*) FROM Posts WHERE DeletionDate IS NULL AND Score <= -1 AND (Tags LIKE '%minecraft-%%' OR Tags LIKE '%minecraft%') AND (ClosedDate IS NULL OR NOT ClosedDate IS NULL) | Sh*tty Minecraft questions that have been left undeleted. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description 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 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 PostHistoryTypes (
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 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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
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
)
CREATE TABLE VoteTypes (
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 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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
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
) |
SELECT name FROM table_25826954_7 WHERE nationality = "Norway" | Name the name for norway nationality | CREATE TABLE table_25826954_7 (name VARCHAR, nationality VARCHAR) |
SELECT rank FROM table_name_75 WHERE floors = "96" | What is the rank for the 96 floors? | CREATE TABLE table_name_75 (rank VARCHAR, floors VARCHAR) |
SELECT "Party" FROM table_18406 WHERE "District" = 'Tennessee 3' | what's party with district being tennessee 3 | CREATE TABLE table_18406 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT written_by FROM table_25830834_2 WHERE production_code = "2J5153" | Who wrote the episode with the production code 2j5153? | CREATE TABLE table_25830834_2 (written_by VARCHAR, production_code VARCHAR) |
SELECT date FROM table_name_37 WHERE circuit = "sandown raceway" | On what Date is the Circuit at Sandown Raceway? | CREATE TABLE table_name_37 (date VARCHAR, circuit VARCHAR) |
SELECT country FROM table_name_27 WHERE rank < 3 AND time = "7:28.66" | What country has a time of 7:28.66 and a rank less than 3? | CREATE TABLE table_name_27 (
country VARCHAR,
rank VARCHAR,
time VARCHAR
) |
SELECT filter FROM table_2583036_1 WHERE wavelength = "222mm (K-band)" | what is the filter when the wavelength is 222mm (k-band)? | CREATE TABLE table_2583036_1 (filter VARCHAR, wavelength VARCHAR) |
SELECT city___state FROM table_name_85 WHERE race_title = "oran park" | What is the City/State of the Oran Park race? | CREATE TABLE table_name_85 (city___state VARCHAR, race_title VARCHAR) |
SELECT percentage FROM table_22825679_1 WHERE team = "Ole Miss" | Name the percentage for ole miss | CREATE TABLE table_22825679_1 (
percentage VARCHAR,
team VARCHAR
) |
SELECT COUNT(camera) FROM table_2583036_1 WHERE exposures = 53 | how many times was the exposures 53? | CREATE TABLE table_2583036_1 (camera VARCHAR, exposures VARCHAR) |
SELECT city___state FROM table_name_12 WHERE winner = "john bowe" AND circuit = "phillip island grand prix circuit" | In what City/State did John Bowe win at Phillip Island Grand Prix Circuit? | CREATE TABLE table_name_12 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR) |
SELECT "Location" FROM table_7287 WHERE "Round" < '2' AND "Opponent" = 'mostapha al-turk' | At what Location was the match against Opponent of Mostapha Al-Turk lasting less than 2 Rounds? | CREATE TABLE table_7287 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT exposures FROM table_2583036_1 WHERE total_exposure_time = "105,000s" | how many exposures where there when the total exposure time is 105,000s? | CREATE TABLE table_2583036_1 (exposures VARCHAR, total_exposure_time VARCHAR) |
SELECT seasons FROM table_name_45 WHERE percentage = "13.56%" | Which season has a percentage of 13.56%? | CREATE TABLE table_name_45 (seasons VARCHAR, percentage VARCHAR) |
WITH user_contributions AS (SELECT COUNT(DISTINCT p.Id) AS Posts, OwnerUserId FROM Posts AS p WHERE CreationDate >= '2019-01-01' GROUP BY OwnerUserId HAVING COUNT(DISTINCT p.Id) > 200) SELECT COUNT(*) AS Users, Posts FROM user_contributions GROUP BY Posts ORDER BY Posts | Post count distribution by users this year. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress 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 CloseReasonTypes (
Id number,
Name text,
Description text
)
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 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 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange 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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId 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 ReviewTaskStates (
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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskResultTypes (
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 VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
) |
SELECT camera FROM table_2583036_1 WHERE wavelength = "814nm (I-band)" | what is the camera used when the wavelength is 814nm (i-band)? | CREATE TABLE table_2583036_1 (camera VARCHAR, wavelength VARCHAR) |
SELECT SUM(poles) FROM table_name_57 WHERE percentage = "22.08%" | How many poles has a percentage of 22.08%? | CREATE TABLE table_name_57 (poles INTEGER, percentage VARCHAR) |
SELECT accreditation_type, COUNT(*) FROM phone GROUP BY accreditation_type | Find the number of phones for each accreditation type. | CREATE TABLE screen_mode (
graphics_mode number,
char_cells text,
pixels text,
hardware_colours number,
used_kb number,
map text,
type text
)
CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
bluetooth text
)
CREATE TABLE phone (
company_name text,
hardware_model_name text,
accreditation_type text,
accreditation_level text,
date text,
chip_model text,
screen_mode text
) |
SELECT title FROM table_2582519_6 WHERE director = "Paul Annett" | What is the title of the show with director Paul Annett? | CREATE TABLE table_2582519_6 (title VARCHAR, director VARCHAR) |
SELECT SUM(poles) FROM table_name_83 WHERE driver = "nelson piquet" | How many poles does driver Nelson Piquet have? | CREATE TABLE table_name_83 (poles INTEGER, driver VARCHAR) |
SELECT team_1 FROM table_name_60 WHERE team_2 = "red star (d1)" | What was the team 1 when Red Star (D1) was team 2? | CREATE TABLE table_name_60 (
team_1 VARCHAR,
team_2 VARCHAR
) |
SELECT titles FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew" | What was the title for the Undercard of Stevenson/Bellew? | CREATE TABLE table_25840200_1 (titles VARCHAR, notes VARCHAR) |
SELECT COUNT(loss) FROM table_name_87 WHERE avg_g > 129.2 | How much Loss has an Avg/G larger than 129.2? | CREATE TABLE table_name_87 (loss VARCHAR, avg_g INTEGER) |
SELECT AVG("Loses") FROM table_80280 WHERE "Draws" < '0' | What average Loses has Draws less than 0? | CREATE TABLE table_80280 (
"Year" real,
"Competition" text,
"Wins" real,
"Draws" real,
"Loses" real
) |
SELECT titles FROM table_25840200_1 WHERE date = "November 9" AND division = "Super Bantamweight" | What are the titles for the November 9 Super Bantamweight division? | CREATE TABLE table_25840200_1 (titles VARCHAR, date VARCHAR, division VARCHAR) |
SELECT MIN(loss) FROM table_name_83 WHERE avg_g = 3.5 AND gain < 42 | Which Loss is the lowest one that has an Avg/G of 3.5, and a Gain smaller than 42? | CREATE TABLE table_name_83 (loss INTEGER, avg_g VARCHAR, gain VARCHAR) |
SELECT "Date" FROM table_27707 WHERE "Team" = 'Dayton' | When did they play Dayton? | CREATE TABLE table_27707 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT COUNT(notes) FROM table_25840200_1 WHERE fight = "Devon Alexander vs. Shawn Porter" | How many notes are there for the Devon Alexander vs. Shawn Porter fight? | CREATE TABLE table_25840200_1 (notes VARCHAR, fight VARCHAR) |
SELECT COUNT(avg_g) FROM table_name_41 WHERE loss > 117 AND name = "opponents" AND gain < 2444 | How much Avg/G has a Loss larger than 117, and a Name of opponents, and a Gain smaller than 2444? | CREATE TABLE table_name_41 (avg_g VARCHAR, gain VARCHAR, loss VARCHAR, name VARCHAR) |
SELECT DISTINCT airport_code FROM airport WHERE airport_code = 'ORD' | what is ORD | CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
) |
SELECT division FROM table_25840200_1 WHERE tv = "HBO PPV" | What division was on HBO PPV? | CREATE TABLE table_25840200_1 (division VARCHAR, tv VARCHAR) |
SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 2013 | How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013? | CREATE TABLE table_name_51 (avg_g VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR) |
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4 | during this year what was the four most commonly ordered procedure for patients with 60 or above? | 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT location FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew" | Where was the Undercard of Stevenson/Bellew? | CREATE TABLE table_25840200_1 (location VARCHAR, notes VARCHAR) |
SELECT SUM(avg_g) FROM table_name_32 WHERE name = "robert marve" AND gain < 236 | How much Avg/G has a Name of robert marve, and a Gain smaller than 236? | CREATE TABLE table_name_32 (avg_g INTEGER, name VARCHAR, gain VARCHAR) |
SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 3 | what were the three most common specimen tests carried out? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT COUNT(division) FROM table_25840200_1 WHERE location = "Verona, USA" | What was the division number for Verona, USA? | CREATE TABLE table_25840200_1 (division VARCHAR, location VARCHAR) |
SELECT score FROM table_name_42 WHERE opponent = "saint-amant" AND result = "lost" | What is the score where Saint-Amant lost the match? | CREATE TABLE table_name_42 (score VARCHAR, opponent VARCHAR, result VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | show me all flights from BALTIMORE to SAN FRANCISCO | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
) |
SELECT cvt_hd FROM table_25839957_5 WHERE market = "Mobile" | What mobile markets have cvt hd? | CREATE TABLE table_25839957_5 (cvt_hd VARCHAR, market VARCHAR) |
SELECT location FROM table_name_98 WHERE odds = "p + 1" AND score = "1/3" | Where was the match located when the odds were p + 1 and the score was 1/3? | CREATE TABLE table_name_98 (location VARCHAR, odds VARCHAR, score VARCHAR) |
SELECT StuID FROM Student WHERE Sex = 'M' | Show student ids for all male students. | CREATE TABLE Student (
StuID VARCHAR,
Sex VARCHAR
) |
SELECT COUNT(opengl) FROM table_25839957_5 WHERE code_name = "Ironlake ( Clarkdale )" | How many opengl have the ironlake ( clarkdale ) code name? | CREATE TABLE table_25839957_5 (opengl VARCHAR, code_name VARCHAR) |
SELECT result FROM table_name_61 WHERE location = "n/a" AND odds = "p + 1" | What was the score for an n/a location with the odds of p + 1? | CREATE TABLE table_name_61 (result VARCHAR, location VARCHAR, odds VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "12" | give me the number of patients whose procedure icd9 code is 12? | 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
)
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
) |
SELECT core_clock___mhz__ FROM table_25839957_5 WHERE memory_bandwidth___gb_s__ = "21.3" | What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )? | CREATE TABLE table_25839957_5 (core_clock___mhz__ VARCHAR, memory_bandwidth___gb_s__ VARCHAR) |
SELECT score FROM table_name_36 WHERE odds = "p + 2" AND date > 1847 | What was the score for a game with the odds of p + 2 after 1847? | CREATE TABLE table_name_36 (score VARCHAR, odds VARCHAR, date VARCHAR) |
SELECT name FROM Reviewer UNION SELECT title FROM Movie | Return all reviewer names and movie names together in a single list. | CREATE TABLE Movie (
name VARCHAR,
title VARCHAR
)
CREATE TABLE Reviewer (
name VARCHAR,
title VARCHAR
) |
SELECT MIN(execution_units) FROM table_25839957_5 | What's the minimum number of execution units? | CREATE TABLE table_25839957_5 (execution_units INTEGER) |
SELECT AVG(date) FROM table_name_33 WHERE odds = "q rook" | What was the date of a game that had the odds of q rook? | CREATE TABLE table_name_33 (date INTEGER, odds VARCHAR) |
SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY COUNT(Hometown) DESC | Count the hometown by hometown, and sort from high to low by the y-axis. | CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
) |
SELECT COUNT(shader_model) FROM table_25839957_5 WHERE core_clock___mhz__ = "900" | How many shader models have a 900 core clock ( mhz )? | CREATE TABLE table_25839957_5 (shader_model VARCHAR, core_clock___mhz__ VARCHAR) |
SELECT nationality FROM table_name_33 WHERE round = "7" | What is the nationality of the player in round 7? | CREATE TABLE table_name_33 (nationality VARCHAR, round VARCHAR) |
SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865 | Tell me the week for result of l 31-27, and an Attendance smaller than 85,865 | CREATE TABLE table_name_99 (
week INTEGER,
result VARCHAR,
attendance VARCHAR
) |
SELECT MAX(population__2000_census__) FROM table_2588674_1 WHERE area_km² = "2.33" | What is the population for the place with an area of 2.33 km2? | CREATE TABLE table_2588674_1 (population__2000_census__ INTEGER, area_km² VARCHAR) |
SELECT player FROM table_name_38 WHERE nationality = "united states" AND college_junior_club_team__league_ = "bowling green falcons (ccha)" | Which player is from the United States, and played for the Bowling Green Falcons (CCHA) as their College/Junior/Club Team (League)? | CREATE TABLE table_name_38 (player VARCHAR, nationality VARCHAR, college_junior_club_team__league_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "50946" | how many patients are married and lab tested with item id 50946? | 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
)
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
) |
SELECT COUNT(region) FROM table_2588674_1 WHERE village = "Asan-Maina" | How many places named asan-maina? | CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_98 WHERE round = "6" | Which College/Junior/Club Team (League) did the player in round 6 play for? | CREATE TABLE table_name_98 (college_junior_club_team__league_ VARCHAR, round VARCHAR) |
SELECT date FROM table_name_17 WHERE record = "43-34" | What date had a record of 43-34? | CREATE TABLE table_name_17 (
date VARCHAR,
record VARCHAR
) |
SELECT COUNT(region) FROM table_2588674_1 WHERE village = "Mongmong-Toto-Maite" | How many places named mongmong-toto-maite? | CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR) |
SELECT round FROM table_name_34 WHERE player = "jamie cooke" | What round did Jamie Cooke play in? | CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR) |
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'polyp of corpus uteri')) AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime, admissions.hadm_id FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND t1.hadm_id = t2.hadm_id GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 4) | what were the top four most frequently ordered lab tests for patients in the same hospital encounter after the diagnosis of polyp of corpus uteri? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.