context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | Tag Similarity by common occurance. | SELECT COUNT(t1.PostId) AS count_match, t1.TagId, tag1.TagName, tag1.Count, t2.TagId, tag2.TagName, tag2.Count FROM PostTags AS t1 INNER JOIN PostTags AS t2 ON t1.PostId = t2.PostId INNER JOIN Tags AS tag1 ON tag1.Id = t1.TagId INNER JOIN Tags AS tag2 ON tag2.Id = t2.TagId INNER JOIN Posts ON t1.PostId = Posts.Id WHERE... | sede |
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
... | Which is the first paper by richard bellman ? | SELECT DISTINCT paper.paperid, paper.year FROM author, paper, writes WHERE author.authorname = 'richard bellman' AND paper.year = (SELECT MIN(PAPERalias1.year) FROM author AS AUTHORalias1, paper AS PAPERalias1, writes AS WRITESalias1 WHERE AUTHORalias1.authorname = 'richard bellman' AND WRITESalias1.authorid = AUTHORal... | scholar |
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
... | How many students play each sport Show bar chart, and sort from high to low by the Y. | SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_203_43 (
id number,
"polling firm" text,
"month" text,
"link" text,
"favor" number,
"oppose" number
) | which polling firm was the only poll done in 2008 ? | SELECT "polling firm" FROM table_203_43 WHERE "month" = 2008 | squall |
CREATE TABLE table_22475 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | What is the smallest ansi code? | SELECT MIN("ANSI code") FROM table_22475 | wikisql |
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 microlab (
microlabid ... | has patient 021-95970 had any allergies in 2105? | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-95970')) AND STRFTIME('%y', allergy.allergytime) = '2105' | eicu |
CREATE TABLE table_254234_1 (
area³ INTEGER,
density² VARCHAR
) | What is the area of the province with a density of 533.59? | SELECT MAX(area³) FROM table_254234_1 WHERE density² = "533.59" | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM tex... | 从2005年11月22日到2012年7月6日这一段时间里,曹玉轩病患的所有检验报告单中的标本采集分别是哪几个部位? | SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '曹玉轩' AND jy... | css |
CREATE TABLE table_1334 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | Who is the original artist for the theme 'Year they were born? | SELECT "Original artist" FROM table_1334 WHERE "Theme" = 'Year They Were Born' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | count the number of patients diagnosed under icd9 code 57450. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "57450" | mimicsql_data |
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule... | For each film, return the number of cinemas showing that fim in a bar chart, and display by the X-axis in descending. | SELECT Title, COUNT(Title) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Title ORDER BY Title DESC | nvbench |
CREATE TABLE table_203_56 (
id number,
"star" text,
"start\nyear" number,
"end\nyear" number,
"maximum\nyear" number,
"maximum\nmagnitude" number,
"distance at\nmaximum (ly)" number,
"current\ndistance" number,
"current\nmagnitude" number
) | what is the difference in the nearest current distance and farthest current distance ? | SELECT MAX("current\ndistance") - MIN("current\ndistance") FROM table_203_56 | squall |
CREATE TABLE broadcast (
Channel_ID int,
Program_ID int,
Time_of_day text
)
CREATE TABLE broadcast_share (
Channel_ID int,
Program_ID int,
Date text,
Share_in_percent real
)
CREATE TABLE program (
Program_ID int,
Name text,
Origin text,
Launch real,
Owner text
)
CREATE... | Show me a bar chart for what is the total rating of channel for each channel owner?, and I want to list by the sum rating in percent in desc. | SELECT Owner, SUM(Rating_in_percent) FROM channel GROUP BY Owner ORDER BY SUM(Rating_in_percent) DESC | nvbench |
CREATE TABLE table_name_7 (
date VARCHAR,
year VARCHAR,
result VARCHAR,
score VARCHAR
) | What day was the result a win, the score 2-1, and the year before 2012? | SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012 | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | Users with sufficient score for a tag badge - missing number of answers. | WITH scorestags_cte AS (SELECT pt.TagId AS TagId, p.OwnerUserId AS uid, p.OwnerDisplayName AS udn, SUM(p.Score) AS sco, COUNT(p.Id) AS num FROM Posts AS p INNER JOIN Posts AS q ON q.Id = p.ParentId INNER JOIN PostTags AS pt ON q.Id = pt.PostId WHERE (p.CommunityOwnedDate IS NULL) GROUP BY pt.TagId, p.OwnerUserId, p.Own... | sede |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 患者彭云亭的检验报告结果指标均异常的检验报告单号是什么 | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.person_info_XM = '彭云亭' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM jyjgz... | css |
CREATE TABLE table_11677691_2 (
position VARCHAR,
school VARCHAR
) | WHAT POSITION DOES THE PLAYER FROM SOUTH POINTE HIGH SCHOOL PLAY? | SELECT position FROM table_11677691_2 WHERE school = "South Pointe High school" | sql_create_context |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | 统计一下在医疗机构2632106里,使用次数排在top19的项目 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '2632106' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 19 | css |
CREATE TABLE table_name_52 (
manufacturer VARCHAR,
year_withdrawn VARCHAR
) | Who manufactured the vehicle that was withdrawn in 1927? | SELECT manufacturer FROM table_name_52 WHERE year_withdrawn = 1927 | sql_create_context |
CREATE TABLE table_60709 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
) | What was the week 2 prior to the when Brittany Alyse was week 3? | SELECT "Week 2" FROM table_60709 WHERE "Week 3" = 'brittany alyse' | wikisql |
CREATE TABLE table_204_269 (
id number,
"week" number,
"room" text,
"winning couple" text,
"2nd couple" text,
"3rd couple" text,
"chumps" text
) | which couple was the chumps the same amount of times as chantelle and steve ? | SELECT "chumps" FROM table_204_269 WHERE "chumps" <> 'chantelle and steve' GROUP BY "chumps" HAVING COUNT(*) = (SELECT COUNT(*) FROM table_204_269 WHERE "chumps" = 'chantelle and steve') | squall |
CREATE TABLE table_name_53 (
name VARCHAR,
country VARCHAR
) | What is the name of the person whose country is West Indies. | SELECT name FROM table_name_53 WHERE country = "west indies" | sql_create_context |
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 CloseAsOffTopicReasonTypes (
Id number,
IsUniversal bool... | Answers which have outscored [user]'s answers. | SELECT ParentId AS "post_link", Id AS "Post Link", PostTypeId AS "Post Type", OwnerUserId AS "User Link", Score AS "Score", COUNT(*) AS Count FROM Posts AS P WHERE ParentId IN (SELECT ParentId AS "Post Link" FROM Posts AS TargetP WHERE OwnerUserId = '##TargetUserId##' AND P.Score > TargetP.Score) GROUP BY OwnerUserId, ... | sede |
CREATE TABLE table_name_16 (
intergiro_classification VARCHAR,
mountains_classification VARCHAR,
points_classification VARCHAR,
trofeo_super_team VARCHAR
) | What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is Jos Rujano? | SELECT intergiro_classification FROM table_name_16 WHERE points_classification = "paolo bettini" AND trofeo_super_team = "davitamon-lotto" AND mountains_classification = "josé rujano" | sql_create_context |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
... | what is patient 13536's last urine out foley output time on 05/03/this year? | SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13536)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urin... | mimic_iii |
CREATE TABLE table_14325653_2 (
publisher_s_ VARCHAR,
video_game VARCHAR
) | Name the total number of publishers for flushed away | SELECT COUNT(publisher_s_) FROM table_14325653_2 WHERE video_game = "Flushed Away" | sql_create_context |
CREATE TABLE table_49712 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text
) | What is Mult, when Model Number is Pentium II 450? | SELECT "Mult." FROM table_49712 WHERE "Model number" = 'pentium ii 450' | wikisql |
CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE apartments (
apt_id number,
building_id number,
apt_type_code text,
apt_number text,
bathroom_count number,
bedroom_count number,
room_count text
)
CREATE TABLE guests (
guest_id number,
ge... | Show each apartment type code, and the maximum and minimum number of rooms for each type. | SELECT apt_type_code, MAX(room_count), MIN(room_count) FROM apartments GROUP BY apt_type_code | spider |
CREATE TABLE table_name_1 (
score VARCHAR,
game INTEGER
) | What is Score, when Game is greater than 4? | SELECT score FROM table_name_1 WHERE game > 4 | sql_create_context |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
... | Number of questions per day for given tag name(s). | SELECT TIME_TO_STR(Posts.CreationDate, '%Y') AS "Year", TIME_TO_STR(Posts.CreationDate, '%m') AS "Month", TIME_TO_STR(Posts.CreationDate, '%d') AS "Day", Tags.TagName, COUNT(*) AS "Total" FROM PostTags AS pt JOIN Posts AS posts ON pt.PostId = Posts.Id JOIN Tags AS tags ON pt.TagId = Tags.Id WHERE Tags.TagName IN ('r') ... | sede |
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real,
accession_number text,
sequence_length real,
sequence_identity_to_human_protein text,
Institution_id text
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location ... | Show institution names along with the number of proteins for each institution, sort Y-axis from high to low order. | SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_204_671 (
id number,
"airing\ndate" text,
"english title\n(chinese title)" text,
"number of episodes" number,
"main cast" text,
"theme song (t)\nsub-theme song (st)" text,
"genre" text,
"notes" text,
"official website" text
) | which was the longest running ? | SELECT "english title\n(chinese title)" FROM table_204_671 ORDER BY "airing\ndate" - "airing\ndate" DESC LIMIT 1 | squall |
CREATE TABLE table_204_679 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
) | which country produced the player who placed last ? | SELECT "country" FROM table_204_679 ORDER BY "place" DESC LIMIT 1 | squall |
CREATE TABLE table_22965 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"U.S. Open Cup" text,
"Avg. Attendance" real
) | What league has an average attendance of 1452? | SELECT "League" FROM table_22965 WHERE "Avg. Attendance" = '1452' | wikisql |
CREATE TABLE services (
service_id number,
service_name text
)
CREATE TABLE claims (
claim_id number,
fnol_id number,
effective_date time
)
CREATE TABLE available_policies (
policy_id number,
policy_type_code text,
customer_phone text
)
CREATE TABLE customers (
customer_id number,... | What is the name of the customer who has the most policies listed? | SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 看看参保人华俊迈从2007.7.28到2017.9.6这期间,在门诊发生的检查费有多少总额 | SELECT SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '华俊迈' AND gwyjzb.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2007-07-28' AND '2017-09-06' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb... | css |
CREATE TABLE table_74227 (
"Series no." real,
"Season no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) | at most what number in the series was the episode 'chet episode'? | SELECT MAX("Series no.") FROM table_74227 WHERE "Title" = 'Chet Episode' | wikisql |
CREATE TABLE table_74684 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the largest crowd to view a game where the away team scored 17.8 (110)? | SELECT MAX("Crowd") FROM table_74684 WHERE "Away team score" = '17.8 (110)' | wikisql |
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 ... | give me the number of patients whose age is less than 67 and drug name is theophylline sr? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "67" AND prescriptions.drug = "Theophylline SR" | mimicsql_data |
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_Per... | Give me the comparison about the average of School_ID over the ACC_Road , and group by attribute ACC_Road by a bar chart, I want to sort in desc by the y axis. | SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(School_ID) DESC | nvbench |
CREATE TABLE table_27734286_1 (
score VARCHAR,
date VARCHAR
) | What`s the score in October 7. | SELECT score FROM table_27734286_1 WHERE date = "October 7" | sql_create_context |
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_... | flights on sunday from TAMPA to CHARLOTTE | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHARLOTTE' AND date_day.day_number = 27 AND date_day.month_number = 8 AND... | atis |
CREATE TABLE table_name_89 (
laps VARCHAR,
year VARCHAR
) | How many laps were in 1955? | SELECT COUNT(laps) FROM table_name_89 WHERE year = "1955" | sql_create_context |
CREATE TABLE table_7467 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | What years did Orlando have stanley roberts on the team? | SELECT "Years in Orlando" FROM table_7467 WHERE "Player" = 'stanley roberts' | wikisql |
CREATE TABLE table_name_52 (
draw INTEGER,
points INTEGER
) | Which average draw has points greater than 12? | SELECT AVG(draw) FROM table_name_52 WHERE points > 12 | sql_create_context |
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
... | Find the number of students whose age is younger than the average age and group by students' last name in a bar chart, and I want to rank by the total number in ascending. | SELECT LName, COUNT(LName) FROM Student WHERE Age < (SELECT AVG(Age) FROM Student) GROUP BY LName ORDER BY COUNT(LName) | nvbench |
CREATE TABLE table_name_84 (
away_team VARCHAR
) | How many points did the away team of st kilda score? | SELECT away_team AS score FROM table_name_84 WHERE away_team = "st kilda" | sql_create_context |
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_Per... | Return a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home, sort by the y-axis in asc please. | SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(School_ID) | nvbench |
CREATE TABLE table_1342149_24 (
result VARCHAR,
first_elected VARCHAR
) | Name the result for first elected of 1920 | SELECT result FROM table_1342149_24 WHERE first_elected = 1920 | sql_create_context |
CREATE TABLE diagnoses (
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,
... | what is drug type and drug route of drug name tuberculin protein? | SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Tuberculin Protein" | mimicsql_data |
CREATE TABLE table_35189 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | What is the sum of the points when Carlos drove for repsol honda in 8th place? | SELECT SUM("Points") FROM table_35189 WHERE "Team" = 'repsol honda' AND "Rank" = '8th' | wikisql |
CREATE TABLE table_12392 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | What is the Year(s) won of the Player with a To par of 5? | SELECT "Year(s) won" FROM table_12392 WHERE "To par" = '5' | wikisql |
CREATE TABLE table_name_39 (
laps VARCHAR,
driver VARCHAR
) | How many Laps does Eddie Cheever have? | SELECT laps FROM table_name_39 WHERE driver = "eddie cheever" | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | 13年3月8日到21年5月12日,医疗机构4227077的检查费总额是多少 | SELECT SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '4227077' AND t_kc22.STA_DATE BETWEEN '2013-03-08' AND '2021-05-12' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc... | css |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of first_name and employee_id , could you sort total number from low to high order? | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID | nvbench |
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as ... | When Rose Wheeler was taking the HISTORY 473 class , who was teaching it ? | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_... | advising |
CREATE TABLE table_name_64 (
driver VARCHAR,
laps VARCHAR,
team VARCHAR
) | Which driver had less than 65 laps for Sigma Autosport? | SELECT driver FROM table_name_64 WHERE laps < 65 AND team = "sigma autosport" | sql_create_context |
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... | Top 600 SO Users from India. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%belgaum' ORDER BY Reputation DESC LIMIT 600 | sede |
CREATE TABLE table_name_73 (
position VARCHAR,
points VARCHAR,
goals_for VARCHAR
) | How many positions have Points of 30-8 and more than 25 goals? | SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 25 | sql_create_context |
CREATE TABLE Restaurant (
Address VARCHAR,
ResName VARCHAR
) | What is the address of the restaurant Subway? | SELECT Address FROM Restaurant WHERE ResName = "Subway" | sql_create_context |
CREATE TABLE table_name_44 (
year INTEGER,
result VARCHAR
) | What is the latest year they were nominated? | SELECT MAX(year) FROM table_name_44 WHERE result = "nominated" | sql_create_context |
CREATE TABLE table_49319 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Attendance" real,
"Record" text,
"Points" real
) | Which Date has a Record of 11 10 2? | SELECT "Date" FROM table_49319 WHERE "Record" = '11–10–2' | wikisql |
CREATE TABLE table_20683381_3 (
for___percentage_ VARCHAR,
against___percentage_ VARCHAR
) | When 17,874 (33.2) is the percentage against what is the percentage for? | SELECT for___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "17,874 (33.2)" | sql_create_context |
CREATE TABLE table_19625 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | List all opponents in the September 23, 1984 game? | SELECT "Opponent" FROM table_19625 WHERE "Date" = 'September 23, 1984' | wikisql |
CREATE TABLE table_name_5 (
chassis VARCHAR,
entrant VARCHAR,
points VARCHAR,
year VARCHAR
) | Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille? | SELECT chassis FROM table_name_5 WHERE points = 13 AND year = 1975 AND entrant = "scuderia citta del mille" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | provide the number of patients whose diagnoses short title is human immuno virus dis and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Human immuno virus dis" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_204_389 (
id number,
"rnd." number,
"pick #" number,
"nfl team" text,
"player" text,
"pos." text,
"college" text,
"conf." text,
"notes" text
) | how many players are qbs ? | SELECT COUNT("player") FROM table_204_389 WHERE "pos." = 'qb' | squall |
CREATE TABLE table_12984 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | Which 1st Party has a 1st Member of sir john tyssen tyrell, bt, and a 2nd Party of conservative, and a 2nd Member of john payne elwes? | SELECT "1st Party" FROM table_12984 WHERE "1st Member" = 'sir john tyssen tyrell, bt' AND "2nd Party" = 'conservative' AND "2nd Member" = 'john payne elwes' | wikisql |
CREATE TABLE table_74487 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | Tell me the rank for bronze less than 17 and gold less than 1 | SELECT "Rank" FROM table_74487 WHERE "Bronze" < '17' AND "Silver" > '1' AND "Gold" < '1' | wikisql |
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 t... | what is the number of patients whose admission year is less than 2127 and item id is 50998? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2127" AND lab.itemid = "50998" | mimicsql_data |
CREATE TABLE table_name_72 (
highest_score INTEGER,
dance VARCHAR,
lowest_score VARCHAR
) | What is the lowest of the Highest score for the Quickstep Dance and the Lowest score under 16? | SELECT MIN(highest_score) FROM table_name_72 WHERE dance = "quickstep" AND lowest_score < 16 | sql_create_context |
CREATE TABLE table_12828723_5 (
won VARCHAR,
tries_against VARCHAR
) | What was the amount won with tries against at 54? | SELECT won FROM table_12828723_5 WHERE tries_against = "54" | sql_create_context |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location te... | indicate the daily maximum sao2 of patient 12454 on the last icu visit. | SELECT MAX(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12454) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.it... | mimic_iii |
CREATE TABLE table_name_7 (
set_3 VARCHAR,
score VARCHAR,
set_2 VARCHAR
) | What is the Set 3 with a Score of 3 1, and has a Set 2 of 13 15? | SELECT set_3 FROM table_name_7 WHERE score = "3–1" AND set_2 = "13–15" | sql_create_context |
CREATE TABLE table_203_160 (
id number,
"rank" number,
"heat" number,
"nation" text,
"competitors" text,
"time" text,
"notes" text
) | what team came in last , not counting teams disqualified or teams that did not finish ? | SELECT "nation" FROM table_203_160 ORDER BY "rank" DESC LIMIT 1 | squall |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code tex... | what was the last drug prescribed in 12/2103 to patient 31880? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31880) AND STRFTIME('%y-%m', prescriptions.startdate) = '2103-12' ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_46159 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland? | SELECT COUNT("Year") FROM table_46159 WHERE "Result" = '3rd' AND "Venue" = 'edinburgh, scotland' | wikisql |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
a... | what are connecting flights from CHICAGO into SEATTLE on 6 5 | 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND date_day.day_number = 5 AND date_day.month_number = 6 AND d... | atis |
CREATE TABLE table_name_73 (
year INTEGER,
chassis VARCHAR,
points VARCHAR
) | What is the average Year with a Veritas rs chassis and more than 0 points? | SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" AND points > 0 | sql_create_context |
CREATE TABLE table_name_61 (
club VARCHAR,
date_of_birth VARCHAR
) | What is the Club of the Player with a Date of Birth of 1977-02-03? | SELECT club FROM table_name_61 WHERE date_of_birth = "1977-02-03" | sql_create_context |
CREATE TABLE table_60331 (
"Name" text,
"No. Specimens" real,
"Abbr." text,
"Country" text,
"City" text
) | Which country has the city of London, England with more than 150,000 specimens? | SELECT "Country" FROM table_60331 WHERE "No. Specimens" > '150,000' AND "City" = 'london, england' | wikisql |
CREATE TABLE table_name_53 (
wins INTEGER,
percent VARCHAR,
teams VARCHAR
) | what is the average wins when percent is more than 0.4 and teams is chargers~? | SELECT AVG(wins) FROM table_name_53 WHERE percent > 0.4 AND teams = "chargers~" | sql_create_context |
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 t... | count the number of patients who had arteriography of cerebral arteries and died on or before 2148. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2148.0" AND procedures.long_title = "Arteriography of cerebral arteries" | mimicsql_data |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by weekday. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | nvbench |
CREATE TABLE table_32865 (
"Club" text,
"Played" real,
"Lost" real,
"Drawn" real,
"Against" real,
"Diff." real,
"Points" real
) | What is the highest draws when more than 6 are played and the points against are 54? | SELECT MAX("Drawn") FROM table_32865 WHERE "Against" = '54' AND "Played" > '6' | wikisql |
CREATE TABLE table_name_95 (
nominated_work VARCHAR,
year INTEGER
) | What was the Nominated Work earlier than 2003? | SELECT nominated_work FROM table_name_95 WHERE year < 2003 | sql_create_context |
CREATE TABLE table_35414 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" real
) | What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time? | SELECT MIN("Rank") FROM table_35414 WHERE "Year" > '1999' AND "Accolade" = 'the 100 greatest indie rock albums of all time' | wikisql |
CREATE TABLE table_17282875_2 (
points VARCHAR,
team__number2 VARCHAR
) | What was the game's points against Team 2 Deportivo Anzo tegui? | SELECT points FROM table_17282875_2 WHERE team__number2 = "Deportivo Anzoátegui" | sql_create_context |
CREATE TABLE table_name_61 (
name VARCHAR,
year_retired VARCHAR,
position VARCHAR,
team VARCHAR
) | Who was the player in Position G on the Petron Blaze Boosters and retired in 2000? | SELECT name FROM table_name_61 WHERE position = "g" AND team = "petron blaze boosters" AND year_retired = "2000" | sql_create_context |
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE membership_register_branch (
Member_ID int,
Branch_I... | For each branch id, what are the names of the branches that were registered after 2015 Visualize by bar chart, could you order the total number in asc order? | SELECT Name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.Branch_ID = T2.Branch_ID WHERE T1.Register_Year > 2015 GROUP BY T2.Branch_ID ORDER BY COUNT(*) | nvbench |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
me... | has the heartrate of patient 030-31704 until 303 days ago ever been less than 61.0? | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-31704')) AND vitalperiodic.heartrate < 61.0 AND NOT vitalperiodi... | eicu |
CREATE TABLE table_name_92 (
top_25 VARCHAR,
top_10 VARCHAR,
cuts_made VARCHAR
) | What is the total number of top-25 with a top-10 bigger than 2 and less than 29 cuts? | SELECT COUNT(top_25) FROM table_name_92 WHERE top_10 > 2 AND cuts_made < 29 | sql_create_context |
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CRE... | Find the capacity and gender type of the dorm whose name has substring Donor . | SELECT student_capacity, gender FROM dorm WHERE dorm_name LIKE '%Donor%' | spider |
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | what is the average days of hospital stay of patients whose primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement? | SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " | mimicsql_data |
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 lab (
subject_id text,
hadm_id text,
... | provide the number of patients whose ethnicity is black/african american and year of death is less than or equal to 2126? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dod_year <= "2126.0" | mimicsql_data |
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,... | on 9 4 i'll be traveling from PITTSBURGH to ATLANTA can you tell me what flight would be the cheapest | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, da... | atis |
CREATE TABLE table_203_362 (
id number,
"school" text,
"location" text,
"outright titles" number,
"shared titles" number,
"runners-up" number,
"total finals" number,
"last title" number,
"last final" number
) | what was the last year that the regent house grammar school won a title ? | SELECT "last title" FROM table_203_362 WHERE "school" = 'regent house grammar school' | squall |
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 t... | provide the number of patients with personal history of tobacco use diagnoses who were admitted before 2156. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2156" AND diagnoses.long_title = "Personal history of tobacco use" | mimicsql_data |
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 ... | what number of patients who stayed in the hospital for more than 4 days were given the drug labetol hcl? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "4" AND prescriptions.drug = "Labetalol HCl" | mimicsql_data |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | calculate the maximum age of patients with primary disease st-segment elevation myocardial infarction/cardiac catheterization who were discharged to home health care. | SELECT MAX(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.diagnosis = "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\CARDIAC CATH" | mimicsql_data |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.