context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE loan (
cust_id VARCHAR
)
CREATE TABLE customer (
cust_name VARCHAR,
cust_id VARCHAR
) | Find the the name of the customers who have a loan with amount more than 3000. | SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 | sql_create_context |
CREATE TABLE table_6216 (
"Election date" real,
"Party leader" text,
"Number of votes received" text,
"Percentage of votes" text,
"Number of deputies" real
) | What were the number of deputies for the 1964 election year? | SELECT "Number of deputies" FROM table_6216 WHERE "Election date" = '1964' | wikisql |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 名叫袁秀筠的患者检测指标634250从09年10月15日到14年10月24日的情况如何? | SELECT * FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
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 * FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE table_25983027_1 (
rainfall_by_volume__km_3__year_ VARCHAR,
rainfall_by_depth__mm_year_ VARCHAR
) | In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume? | SELECT rainfall_by_volume__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_depth__mm_year_ = 2801 | sql_create_context |
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
)
CRE... | Find your most downvoted answers. | SELECT p.Id AS "post_link", COUNT(dv.Id) AS DownVotes FROM Posts AS p JOIN Votes AS dv ON (p.Id = dv.PostId AND dv.VoteTypeId = 3) WHERE p.PostTypeId = 2 AND p.OwnerUserId = @UserId GROUP BY p.Id, p.Title ORDER BY COUNT(dv.Id) DESC | sede |
CREATE TABLE table_80356 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | Which competition had a 4-1 result, and a score of 4-1? | SELECT "Competition" FROM table_80356 WHERE "Result" = '4-1' AND "Score" = '4-1' | wikisql |
CREATE TABLE table_18710512_3 (
other_details VARCHAR,
single VARCHAR
) | What were the 'other details' (number released) for 'is my love will follow me'? | SELECT other_details FROM table_18710512_3 WHERE single = "My Love Will Follow Me" | sql_create_context |
CREATE TABLE table_name_92 (
opponent VARCHAR,
february VARCHAR,
game VARCHAR
) | What team was the opponent when February shows more than 2, with a game number less than 55? | SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55 | sql_create_context |
CREATE TABLE gwyjzb (
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,
... | 科室72329因疾病J47.822产生的住院的平均费用花了多少在01年4月3日到2005年6月30日之间? | SELECT AVG(gwyjzb.MED_AMOUT) FROM gwyjzb WHERE gwyjzb.MED_ORG_DEPT_CD = '72329' AND gwyjzb.IN_HOSP_DATE BETWEEN '2001-04-03' AND '2005-06-30' AND gwyjzb.IN_DIAG_DIS_CD = 'J47.822' AND gwyjzb.CLINIC_TYPE = '住院' UNION SELECT AVG(fgwyjzb.MED_AMOUT) FROM fgwyjzb WHERE fgwyjzb.MED_ORG_DEPT_CD = '72329' AND fgwyjzb.IN_HOSP_D... | css |
CREATE TABLE table_30014 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | What's the highest series number ? | SELECT MAX("Series #") FROM table_30014 | wikisql |
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 number of patients whose admission location is transfer from hosp/extram and primary disease is pneumonia;human immunodefiency virus;rule out tuberculosis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.diagnosis = "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS" | mimicsql_data |
CREATE TABLE table_63466 (
"Team" text,
"Location" text,
"County" text,
"Division" text,
"Home ground" text,
"Coach" text,
"Captain" text
) | Which division is the Derbyshire Falcons in? | SELECT "Division" FROM table_63466 WHERE "Team" = 'derbyshire falcons' | wikisql |
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
)
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
... | Show the number of courses each instructor taught in a stacked bar chart The x-axis is the instructor's first name and group by course code, list from high to low by the names. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE, EMP_FNAME ORDER BY EMP_FNAME DESC | nvbench |
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE journal (
journalid int,
journalname... | Who wrote Blink ? | SELECT DISTINCT author.authorname FROM author, keyphrase, paperkeyphrase, writes WHERE keyphrase.keyphrasename LIKE 'Blink' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND writes.authorid = author.authorid AND writes.paperid = paperkeyphrase.paperid | scholar |
CREATE TABLE table_10597 (
"Location" text,
"Venue" text,
"Promotion" text,
"Event" text,
"Inductee(s)" text
) | What even was Jerry Lynn the inductee? | SELECT "Event" FROM table_10597 WHERE "Inductee(s)" = 'jerry lynn' | wikisql |
CREATE TABLE table_3340 (
"Settlement" text,
"Cyrillic Name" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | What is the type when the settlement is suboti te? | SELECT "Type" FROM table_3340 WHERE "Settlement" = 'Subotište' | wikisql |
CREATE TABLE table_name_4 (
competition VARCHAR,
date VARCHAR
) | What competition was played on 2 June 1992? | SELECT competition FROM table_name_4 WHERE date = "2 june 1992" | sql_create_context |
CREATE TABLE table_45207 (
"English" text,
"Pali" text,
"Sanskrit" text,
"Chinese" text,
"Tibetan" text
) | Which Sanskrit has an English of mindfulness of breathing? | SELECT "Sanskrit" FROM table_45207 WHERE "English" = 'mindfulness of breathing' | wikisql |
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
)
C... | give me the number of patients born before the year 2049 who have aortic valve insufficiency/aortic valve replacement/sda primary disease. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" AND demographic.dob_year < "2049" | mimicsql_data |
CREATE TABLE table_56657 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What is the smallest crowd of the away team that scored 12.9 (81)? | SELECT MIN("Crowd") FROM table_56657 WHERE "Away team score" = '12.9 (81)' | wikisql |
CREATE TABLE table_44897 (
"Team" text,
"Coach" text,
"Home Ground" text,
"Location" text,
"Founded" real
) | What is the average year that the club located in enfield was founded with an unknown coach? | SELECT AVG("Founded") FROM table_44897 WHERE "Coach" = 'unknown' AND "Location" = 'enfield' | wikisql |
CREATE TABLE table_20387 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
) | What's the content of the Tutti i Pacchetti + Sky HD package? | SELECT "Content" FROM table_20387 WHERE "Package/Option" = 'Tutti i pacchetti + Sky HD' | wikisql |
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 numbe... | what were the five most frequent event in the output since 3 years ago? | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5 | eicu |
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | had patient 5520 excreted urine out foley since 05/2101? | SELECT COUNT(*) > 0 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 = 5520)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urine out foley... | mimic_iii |
CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
value_points real,
quality_rank int
)
CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE repair_assignment (
technician_id int,
... | For each team, how many technicians are there, and list names in desc order. | SELECT Team, COUNT(*) FROM technician GROUP BY Team ORDER BY Team DESC | nvbench |
CREATE TABLE table_203_824 (
id number,
"pick #" number,
"player" text,
"position" text,
"nationality" text,
"nhl team" text,
"college/junior/club team" text
) | was pick # 137 's nationality united states , soviet union , or canada ? | SELECT "nationality" FROM table_203_824 WHERE "pick #" = 137 | squall |
CREATE TABLE table_25368 (
"Player" text,
"Games Played" real,
"Field Goals" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
) | How many interceptions for the team who played 31 games? | SELECT "Steals" FROM table_25368 WHERE "Games Played" = '31' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | what is the last specimen test given to patient 031-17834? | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-17834')) ORDER BY microlab.culturetakentime DESC LIMIT 1 | eicu |
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescript... | Posts deleted on a particular Date. To search for Posts deleted on some particular Date, enter the DeletionDate in YYYY/MM/DD format | SELECT U.Id AS "user_link", P.Id AS "post_link", P.CreationDate, P.Score, P.ViewCount, P.CommentCount FROM Users AS u INNER JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE MONTH(u.LastAccessDate) = MONTH(p.CreationDate) AND YEAR(u.LastAccessDate) = YEAR(p.CreationDate) AND p.PostTypeId = 1 AND p.AnswerCount = 0 AND p.Clo... | sede |
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,
... | 参照医疗就诊37228773011找出与其医疗总花费相同的患者的医疗就诊记录的ID、人员ID以及他们的姓名、公民身份号码、性别和年龄的具体信息? | SELECT gwyjzb.MED_CLINIC_ID, gwyjzb.PERSON_ID, gwyjzb.PERSON_NM, gwyjzb.IDENTITY_CARD, gwyjzb.PERSON_SEX, gwyjzb.PERSON_AGE FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc24.MED_AMOUT = (SELECT t_kc24.MED_AMOUT FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID = '37228773011') UNION SELECT fgwyjz... | css |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
... | What tag wikis can I edit? (Corrected to exclude CW posts). List all tags you have 100 upvotes for. (Excludes CW posts) Remember: tag wikis are located on the tag page under the info tab. | SELECT TagName AS "You can edit the following tag wikis" FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 WHERE Posts.OwnerUserId = @UserId AND Posts.CommunityOwnedDate IS NULL GROUP BY TagName H... | sede |
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
)
... | tell me the number of widowed patients who are less than 82 years of age. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.age < "82" | mimicsql_data |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the sum of department_id bin hire_date by time in a bar chart, I want to list by the sum department id in ascending. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(DEPARTMENT_ID) | nvbench |
CREATE TABLE table_name_88 (
previous_conference VARCHAR,
conference_joined VARCHAR,
mascot VARCHAR
) | What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference? | SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors" | sql_create_context |
CREATE TABLE table_11866 (
"Season" real,
"Premier" text,
"Runner Up" text,
"Score" text,
"Venue" text,
"Attendance" real,
"Premiership" text
) | If the season is before 2000, the runner up was north melbourne, and it's the pre-season cup, what's the sum of attendees? | SELECT SUM("Attendance") FROM table_11866 WHERE "Premiership" = 'pre-season cup' AND "Runner Up" = 'north melbourne' AND "Season" < '2000' | wikisql |
CREATE TABLE table_name_40 (
memory___ram__ VARCHAR,
operating_system_version VARCHAR
) | How much memory (RAM) does the Maemo 5 operating system have? | SELECT memory___ram__ FROM table_name_40 WHERE operating_system_version = "maemo 5" | sql_create_context |
CREATE TABLE table_55337 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | What is the score for the game that is less than 4 and a high points of williams (28)? | SELECT "Score" FROM table_55337 WHERE "Game" < '4' AND "High points" = 'williams (28)' | wikisql |
CREATE TABLE table_45261 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
) | What is the result of the match with Jeff Monson as opponent? | SELECT "Res." FROM table_45261 WHERE "Opponent" = 'jeff monson' | wikisql |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and department_id in a bar chart, rank in ascending by the X. | SELECT EMAIL, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | nvbench |
CREATE TABLE table_204_70 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
) | what is the average number of defensive backs chosen in the seventh round ? | SELECT COUNT(*) FROM table_204_70 WHERE "position" = 'defensive back' | squall |
CREATE TABLE table_26312 (
"Year" real,
"Winner (number of titles)" text,
"Runners-up" text,
"Top Team in Regular Season (points)" text,
"Top Scorer (points)" text,
"Winning Coach" text
) | If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)? | SELECT "Winner (number of titles)" FROM table_26312 WHERE "Top Team in Regular Season (points)" = 'New York Cosmos (200 points)' | wikisql |
CREATE TABLE table_19795 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
) | who is the the womens singles with mixed doubles being bernd frohnwieser hilde themel and year being smaller than 1959.0 | SELECT "Womens singles" FROM table_19795 WHERE "Mixed doubles" = 'Bernd Frohnwieser Hilde Themel' AND "Year" < '1959.0' | wikisql |
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
)
... | get me the long title and short title of procedure for procedure icd9 code 5361. | SELECT procedures.short_title, procedures.long_title FROM procedures WHERE procedures.icd9_code = "5361" | mimicsql_data |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar... | Of all the classes offered this Spring-Summer , which ones are upper-level RACKHAM classes ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'RACKHAM' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spr... | advising |
CREATE TABLE table_34182 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | Which December has a Game of 37 and Points smaller than 47? | SELECT AVG("December") FROM table_34182 WHERE "Game" = '37' AND "Points" < '47' | wikisql |
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE va... | List the number of the first name of all employees with job code PROF ordered by their date of birth. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM EMPLOYEE WHERE EMP_JOBCODE = 'PROF' GROUP BY EMP_FNAME ORDER BY EMP_DOB | nvbench |
CREATE TABLE table_204_576 (
id number,
"year" number,
"best" text,
"location" text,
"date" text,
"world rank" text
) | how many runs are there ? | SELECT COUNT(*) FROM table_204_576 | squall |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 在2008年3月15日到2013年6月1日内,因疾病L40.551住院的平均费用在神经内科是多少钱? | SELECT AVG(MED_AMOUT) FROM t_kc21 WHERE MED_ORG_DEPT_NM = '神经内科' AND IN_HOSP_DATE BETWEEN '2008-03-15' AND '2013-06-01' AND IN_DIAG_DIS_CD = 'L40.551' AND CLINIC_TYPE = '住院' | css |
CREATE TABLE table_9379 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What day did Phoenix play? | SELECT "Date" FROM table_9379 WHERE "Team" = 'phoenix' | wikisql |
CREATE TABLE table_23224961_1 (
oberbayern_b VARCHAR,
oberpfalz VARCHAR
) | When fc schwandorf is the oberpfalz what is the oberbayern b? | SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "FC Schwandorf" | sql_create_context |
CREATE TABLE table_204_598 (
id number,
"name" text,
"state of residence" text,
"took office" text,
"left office" text,
"president served under" text
) | how many years did karl rove stay in office ? | SELECT "left office" - "took office" FROM table_204_598 WHERE "name" = 'karl rove' | squall |
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar,
text ... | find the total checkins in Italian Delis in each state on Sunday | SELECT business.state, SUM(checkin.count) FROM business, category AS CATEGORY_0, category AS CATEGORY_1, checkin WHERE CATEGORY_0.business_id = business.business_id AND CATEGORY_0.category_name = 'Italian' AND CATEGORY_1.business_id = business.business_id AND CATEGORY_1.category_name = 'Delis' AND checkin.business_id =... | yelp |
CREATE TABLE table_64998 (
"Date" text,
"Title" text,
"Peak Position" real,
"Weeks" text,
"Sales" real
) | Which Peak Position has a Date of 10 june 1998? | SELECT "Peak Position" FROM table_64998 WHERE "Date" = '10 june 1998' | wikisql |
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_items (
row_id number,
itemid number,
label text,... | how many times in 05/this year has patient 17944 received tpn? | SELECT COUNT(*) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17944)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'tpn' AND d_i... | mimic_iii |
CREATE TABLE table_name_55 (
total VARCHAR,
rank VARCHAR,
bronze VARCHAR,
silver VARCHAR
) | What is the total having a bronze value over 1, silver under 5, and ranked 9? | SELECT total FROM table_name_55 WHERE bronze > 1 AND silver < 5 AND rank = "9" | sql_create_context |
CREATE TABLE gyb (
CLINIC_ID 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,
INSU_TYPE text,
IN... | 患者32680024以前有过几项疾病? | SELECT qtb.IN_DIAG_DIS_CD, qtb.IN_DIAG_DIS_NM FROM qtb WHERE qtb.PERSON_ID = '32680024' UNION SELECT gyb.IN_DIAG_DIS_CD, gyb.IN_DIAG_DIS_NM FROM gyb WHERE gyb.PERSON_ID = '32680024' UNION SELECT zyb.IN_DIAG_DIS_CD, zyb.IN_DIAG_DIS_NM FROM zyb WHERE zyb.PERSON_ID = '32680024' UNION SELECT mzb.IN_DIAG_DIS_CD, mzb.IN_DIAG... | css |
CREATE TABLE Flight (
origin VARCHAR,
destination VARCHAR
) | Show origins of all flights with destination Honolulu. | SELECT origin FROM Flight WHERE destination = "Honolulu" | sql_create_context |
CREATE TABLE table_24743 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | How many of the writers had 5.35 viewers? | SELECT COUNT("Written by") FROM table_24743 WHERE "U.S. viewers (millions)" = '5.35' | wikisql |
CREATE TABLE table_name_59 (
bronze VARCHAR,
total VARCHAR,
gold VARCHAR,
rank VARCHAR
) | What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4? | SELECT COUNT(bronze) FROM table_name_59 WHERE gold > 0 AND rank = "4" AND total > 4 | sql_create_context |
CREATE TABLE table_name_28 (
extra VARCHAR,
result VARCHAR,
tournament VARCHAR
) | What is the extra when the result is 4th at the NCAA Championships? | SELECT extra FROM table_name_28 WHERE result = "4th" AND tournament = "ncaa championships" | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | tell me the type of admission and primary disease of patient francis baseler. | SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.name = "Francis Baseler" | mimicsql_data |
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num... | Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' by a bar chart, and rank from high to low by the mean num employees please. | SELECT Name, AVG(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name ORDER BY AVG(Num_Employees) DESC | nvbench |
CREATE TABLE table_18274425_1 (
written_by VARCHAR,
production_code VARCHAR
) | Who were the authors of episode having production code 3t7573? | SELECT written_by FROM table_18274425_1 WHERE production_code = "3T7573" | sql_create_context |
CREATE TABLE table_name_64 (
years_in_orlando VARCHAR,
nationality VARCHAR,
school_club_team VARCHAR
) | What years in Orlando have the United States as the nationality, with concord hs as the school/club team? | SELECT years_in_orlando FROM table_name_64 WHERE nationality = "united states" AND school_club_team = "concord hs" | 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 ReviewRejectionReasons (
Id number,
Name text,
Descr... | total voting for a site. | SELECT SUM(UpVotes) AS TotUp, SUM(DownVotes) AS TotDown, SUM(UpVotes + DownVotes) AS TotVotes, SUM(UpVotes) * 1.0 / SUM(UpVotes + DownVotes) AS TotUpVotePercent, MIN(UpVotes * 1.0 / (UpVotes + DownVotes)) AS MinUpVotePercent, SUM(UpVotes + DownVotes) * 1.0 / SUM(DATEDIFF(Day, CreationDate, LastAccessDate)) AS AvgVotesP... | sede |
CREATE TABLE table_27700375_6 (
game INTEGER,
location_attendance VARCHAR
) | Which game number was located in Prudential Center 15,086? | SELECT MIN(game) FROM table_27700375_6 WHERE location_attendance = "Prudential Center 15,086" | sql_create_context |
CREATE TABLE table_name_46 (
goals INTEGER,
name VARCHAR
) | What is the average goals Sawyer has? | SELECT AVG(goals) FROM table_name_46 WHERE name = "sawyer" | sql_create_context |
CREATE TABLE table_name_29 (
score VARCHAR,
opponent VARCHAR,
record VARCHAR
) | What is the score of the game with the San Diego Padres as the opponent and a record of 11-23? | SELECT score FROM table_name_29 WHERE opponent = "san diego padres" AND record = "11-23" | sql_create_context |
CREATE TABLE table_11822 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | What college did john sullivan attend? | SELECT "College" FROM table_11822 WHERE "Player" = 'john sullivan' | wikisql |
CREATE TABLE table_name_55 (
rank INTEGER,
silver VARCHAR,
total VARCHAR
) | What is the total rank with more than 2 silver and total larger than 10? | SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10 | sql_create_context |
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
... | Off all the courses which ones are prerequisites for ANTHRCUL 338 ? | SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.pre_course_id WHERE COURSE_0.department = 'ANTHRCUL' AND COURSE_0.num... | advising |
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE writes (
paperid int,
... | Have emanuel todorov and sergey levine written a paper together ? | SELECT DISTINCT WRITES_0.paperid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'emanuel todorov' AND AUTHOR_1.authorname = 'sergey levine' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0... | scholar |
CREATE TABLE table_24361 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
) | What record was set when the result/game was equal to 9 games (28,595 avg.) | SELECT "Type of Record" FROM table_24361 WHERE "Result/Games" = '9 games (28,595 avg.)' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 参保人蒋光耀购买单一药品最大次数在2001-07-23到2007-04-15内是多少? | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '蒋光耀' AND t_kc22.STA_DATE BETWEEN '2001-07-23' AND '2007-04-15' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.... | css |
CREATE TABLE table_name_70 (
competition VARCHAR,
notes VARCHAR
) | Tell me the competition for half marathon | SELECT competition FROM table_name_70 WHERE notes = "half marathon" | sql_create_context |
CREATE TABLE table_5048 (
"Year" text,
"Title" text,
"Role" text,
"Producer" text,
"Director" text
) | What Title has a Role of Mylene? | SELECT "Title" FROM table_5048 WHERE "Role" = 'mylene' | wikisql |
CREATE TABLE table_66588 (
"Title" text,
"Label" text,
"Year of Release" real,
"Country of Release" text,
"Peaches:" text
) | What's the Peaches: that was released in USA with 2 hot as a Title? | SELECT "Peaches:" FROM table_66588 WHERE "Country of Release" = 'usa' AND "Title" = '2 hot' | wikisql |
CREATE TABLE table_203_598 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | which date had the most attendance ? | SELECT "date" FROM table_203_598 ORDER BY "attendance" DESC LIMIT 1 | squall |
CREATE TABLE table_name_10 (
laps INTEGER,
grid VARCHAR,
constructor VARCHAR,
driver VARCHAR
) | Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gen , and a grid larger than 20? | SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20 | sql_create_context |
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,... | how many married patients have black/african american ethnic background? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.ethnicity = "BLACK/AFRICAN AMERICAN" | mimicsql_data |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | what is the discharge location of Jerry Deberry? | SELECT demographic.discharge_location FROM demographic WHERE demographic.name = "Jerry Deberry" | mimicsql_data |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | 二零零七年十月二十一日到二零一一年七月十一日,4553878医院的4597科室涉及到多少医疗费用 | SELECT SUM(MED_AMOUT) FROM t_kc24 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE MED_SER_ORG_NO = '4553878' AND MED_ORG_DEPT_CD = '4597') AND CLINIC_SLT_DATE BETWEEN '2007-10-21' AND '2011-07-11' | css |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | Between 8:00 and 6:00 , what is the availability of an COMP 638 section ? | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '6:00' AND course_offering.start_time >= '8:00' AND course.course_id = course_offering.course_id AND course.department = 'COMP' AND course.number ... | advising |
CREATE TABLE table_name_71 (
time INTEGER,
name VARCHAR,
rank VARCHAR
) | Name the most time for katrin mei ner and rank less than 5 | SELECT MAX(time) FROM table_name_71 WHERE name = "katrin meißner" AND rank < 5 | sql_create_context |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
na... | As for human computer interaction courses , who will be teaching ? | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN area ON course_offering.course_id = area.course_id WHERE area.area LIKE '%... | advising |
CREATE TABLE table_name_29 (
bronze INTEGER,
total INTEGER
) | What average bronze has a total less than 1? | SELECT AVG(bronze) FROM table_name_29 WHERE total < 1 | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | provide the number of patients whose diagnoses short title is opioid dependence-unspec and drug route is dwell? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Opioid dependence-unspec" AND prescriptions.route = "DWELL" | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | provide the number of patients whose age is less than 45 and procedure long title is endoscopic insertion of stent (tube) into bile duct? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "45" AND procedures.long_title = "Endoscopic insertion of stent (tube) into bile duct" | mimicsql_data |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | provide the number of patients whose primary disease is cerebral aneurysm/sda and lab test fluid is urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND lab.fluid = "Urine" | mimicsql_data |
CREATE TABLE table_203_145 (
id number,
"position" number,
"club" text,
"played" number,
"points" text,
"wins" number,
"draws" number,
"losses" number,
"goals for" number,
"goals against" number,
"goal difference" number
) | how many teams had less than 10 wins ? | SELECT COUNT("club") FROM table_203_145 WHERE "wins" < 10 | squall |
CREATE TABLE table_203_95 (
id number,
"year" text,
"democratic\nparty" number,
"republican\nparty" number,
"independent\n/ other" text,
"majority" number
) | how many years did the democratic party have the majority before 1876 in the south carolina house of representatives ? | SELECT COUNT("year") FROM table_203_95 WHERE "democratic\nparty" > "republican\nparty" AND "democratic\nparty" > "independent\n/ other" AND "year" < 1876 | squall |
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 m... | what were the top four frequent laboratory tests that patients had during the same hospital encounter after they were diagnosed with toxic hepatitis - alcohol related until 2 years ago? | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'toxic hepatitis -... | eicu |
CREATE TABLE table_78800 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17? | SELECT "Score" FROM table_78800 WHERE "Home" = 'chicago black hawks' AND "Visitor" = 'vancouver canucks' AND "Date" = 'november 17' | wikisql |
CREATE TABLE field (
fieldid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
... | how many parsing papers were published at ACL 2014 ? | SELECT DISTINCT COUNT(paper.paperid) FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2014 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' | scholar |
CREATE TABLE table_24522 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | How many U.S. viewers watched the episode directed by Frank Waldeck? | SELECT "U.S. viewers (millions)" FROM table_24522 WHERE "Directed by" = 'Frank Waldeck' | wikisql |
CREATE TABLE table_name_76 (
played INTEGER,
position INTEGER
) | what is the lowest played when the position is more than 9? | SELECT MIN(played) FROM table_name_76 WHERE position > 9 | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | what is drug type of drug name vitamin d? | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Vitamin D" | mimicsql_data |
CREATE TABLE t_kc21 (
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,
... | 医疗就诊09451368223中药品9811-p的医疗机构三大目录编码是什么?名称是什么? | SELECT t_kc22.MED_DIRE_CD, t_kc22.MED_DIRE_NM FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '09451368223' AND t_kc22.SOC_SRT_DIRE_CD = '9811-p' | css |
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 airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE restrict... | list flights from MIAMI to INDIANAPOLIS on sunday | 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 = 'INDIANAPOLIS' AND date_day.day_number = 27 AND date_day.month_number = 8 ... | atis |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.