context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGui... | Answer breakdown by which side of score = 10. | SELECT COUNT(1) AS "total", COUNT(CASE WHEN 'score' >= 10 THEN 1 ELSE NULL END) AS "egt10", COUNT(CASE WHEN 'score' < 10 THEN 1 ELSE NULL END) AS "lg10" FROM Posts WHERE 'posttypeid' = 2 AND 'deletiondate' IS NULL AND 'owneruserid' = '##UserId##' | sede |
CREATE TABLE table_23667534_1 (
album_s_ VARCHAR,
episode_title VARCHAR,
song_s__title VARCHAR
) | What album was the song Shimmy Jimmy from the episode titled Toy to the world on? | SELECT album_s_ FROM table_23667534_1 WHERE episode_title = "Toy to the World" AND song_s__title = "Shimmy Jimmy" | sql_create_context |
CREATE TABLE table_15001957_1 (
womens_doubles VARCHAR,
mens_singles VARCHAR
) | How may women doubles winner were there when Philippe Aulner was mens singles winner? | SELECT COUNT(womens_doubles) FROM table_15001957_1 WHERE mens_singles = "Philippe Aulner" | sql_create_context |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
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 te... | 经过门诊确诊为酒精性肝硬化的病患其检测指标200010这一项的参考值范围下限和上限的具体数字是啥? | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJGDM AND mzjzjlb_jybgb.BGDH = jybgb.... | css |
CREATE TABLE table_25084 (
"Year" real,
"Network" text,
"Race caller" text,
"s Host" text,
"s Analyst" text,
"Reporters" text,
"Trophy presentation" text
) | Name the reporters for dave johnson for eddie arcaro and howard cosell | SELECT "Reporters" FROM table_25084 WHERE "Race caller" = 'Dave Johnson' AND "s Analyst" = 'Eddie Arcaro and Howard Cosell' | wikisql |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
... | what is the earliest flight from WASHINGTON to ATLANTA leaving on wednesday september fourth | 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 = 'ATLANTA' AND date_day.day_number = 23 AND date_day.month_number = 4 AND ... | atis |
CREATE TABLE table_64233 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
) | Which Goals have a Player of noel carroll? | SELECT MIN("Goals") FROM table_64233 WHERE "Player" = 'noel carroll' | wikisql |
CREATE TABLE diagnoses_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 outputevents (
row_id number,
subject_id number,
... | until 2103, what was the last hospital admission time of patient 90917 via the clinic referral/premature? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 90917 AND admissions.admission_location = 'clinic referral/premature' AND STRFTIME('%y', admissions.admittime) <= '2103' ORDER BY admissions.admittime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_name_14 (
attendance VARCHAR,
date VARCHAR
) | What was the Attendance of August 26? | SELECT attendance FROM table_name_14 WHERE date = "august 26" | sql_create_context |
CREATE TABLE table_58473 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | What nationality is the la salle team? | SELECT "Nationality" FROM table_58473 WHERE "School/Club Team" = 'la salle' | wikisql |
CREATE TABLE WINE (
Appelation VARCHAR,
YEAR INTEGER,
Area VARCHAR
)
CREATE TABLE APPELLATIONS (
Appelation VARCHAR,
YEAR INTEGER,
Area VARCHAR
) | Find the appelations that produce wines after the year of 2008 but not in Central Coast area. | SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = "Central Coast" | sql_create_context |
CREATE TABLE table_name_63 (
pick VARCHAR,
school VARCHAR
) | what is the pick when the school is jasper hs (jasper, texas)? | SELECT pick FROM table_name_63 WHERE school = "jasper hs (jasper, texas)" | sql_create_context |
CREATE TABLE table_204_579 (
id number,
"code" text,
"district" text,
"headquarters" text,
"population (as of 2011)" number,
"area (km2)" number,
"density (/km2)" number
) | which headquarter has the same district name but has a density of 202 ? | SELECT "headquarters" FROM table_204_579 WHERE "density (/km2)" = 202 | squall |
CREATE TABLE table_train_53 (
"id" int,
"immune_suppression" bool,
"need_hemodialysis" bool,
"steroid_therapy" bool,
"cardiogenic_shock" bool,
"hematologic_disease" bool,
"coronary_syndrome" bool,
"NOUSE" float
) | acute coronary syndrome | SELECT * FROM table_train_53 WHERE coronary_syndrome = 1 | criteria2sql |
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TAB... | display the department id and the total salary for those departments which contains at least two employees. | SELECT department_id, SUM(salary) FROM employees GROUP BY department_id HAVING COUNT(*) >= 2 | spider |
CREATE TABLE table_70543 (
"Production year" text,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
) | What is the average 2006 value for wheat with a 2005 value greater than 7340? | SELECT AVG("2006") FROM table_70543 WHERE "Production year" = 'wheat' AND "2005" > '7340' | wikisql |
CREATE TABLE table_204_776 (
id number,
"site" text,
"date(s)" text,
"designated" number,
"location" text,
"description" text
) | what is the differece in years from date to designated to for gray nuns ' hospital ? | SELECT ABS("date(s)" - "designated") FROM table_204_776 WHERE "site" = "grey nuns' hospital" | squall |
CREATE TABLE table_32655 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | When the crowd was over 15,322 in Richmond what did the Away team score? | SELECT "Away team score" FROM table_32655 WHERE "Crowd" > '15,322' AND "Away team" = 'richmond' | wikisql |
CREATE TABLE Department (
DepartmentID INTEGER,
Name VARCHAR(30),
Head INTEGER
)
CREATE TABLE Undergoes (
Patient INTEGER,
Procedures INTEGER,
Stay INTEGER,
DateUndergoes DATETIME,
Physician INTEGER,
AssistingNurse INTEGER
)
CREATE TABLE Nurse (
EmployeeID INTEGER,
Name VAR... | Find the number of medications prescribed for each brand Plot them as bar chart, and I want to order y axis from high to low order. | SELECT Name, COUNT(*) FROM Medication AS T1 JOIN Prescribes AS T2 ON T1.Code = T2.Medication GROUP BY T1.Brand ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | tell me the cost of a prescription drug called lorazepam 0.5 mg tab? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'lorazepam 0.5 mg tab') | eicu |
CREATE TABLE table_name_44 (
silver INTEGER,
nation VARCHAR,
bronze VARCHAR
) | What's the average number of silver medals for germany (GER) having more than 3 bronze? | SELECT AVG(silver) FROM table_name_44 WHERE nation = "germany (ger)" AND bronze > 3 | sql_create_context |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId n... | Tag coming with these tags most commonly together. | SELECT TagB.TagName AS "tagname", COUNT(*) AS Count FROM Tags AS TagA, PostTags AS PTA, PostTags AS PTB, Tags AS TagB WHERE TagA.TagName = '##TagName:string##' AND TagA.Id = PTA.TagId AND PTA.PostId = PTB.PostId AND PTB.TagId != PTA.TagId AND PTB.TagId = TagB.Id GROUP BY TagB.TagName ORDER BY Count DESC, TagB.TagName | sede |
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... | 朱韵诗这个病人在14年6月5日到18年7月1日期间住过几次院 | SELECT COUNT(*) FROM gwyjzb WHERE gwyjzb.PERSON_NM = '朱韵诗' AND gwyjzb.IN_HOSP_DATE BETWEEN '2014-06-05' AND '2018-07-01' AND gwyjzb.CLINIC_TYPE = '住院' UNION SELECT COUNT(*) FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '朱韵诗' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2014-06-05' AND '2018-07-01' AND fgwyjzb.CLINIC_TYPE = '住院' | css |
CREATE TABLE students (
student_id number,
date_of_registration time,
date_of_latest_logon time,
login_name text,
password text,
personal_name text,
middle_name text,
family_name text
)
CREATE TABLE subjects (
subject_id number,
subject_name text
)
CREATE TABLE courses (
co... | What are the descriptions of the courses with name 'database'? | SELECT course_description FROM courses WHERE course_name = "database" | spider |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | what's the difference between patient 032-21820's total output and total input today? | SELECT (SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-21820')) AND intakeoutput.cellpath L... | eicu |
CREATE TABLE table_57606 (
"Country" text,
"Abbreviation" text,
"Assets US$Billion" text,
"Inception" text,
"Origin" text
) | What's the abbreviation for libya? | SELECT "Abbreviation" FROM table_57606 WHERE "Country" = 'libya' | wikisql |
CREATE TABLE table_19728 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other a" text,
"Total" text
) | which fa cups had a total of 565 (7)? | SELECT "FA Cup" FROM table_19728 WHERE "Total" = '565 (7)' | 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... | 查询患者卫晴波在医疗记录中被开出的药品超过7550.96元有哪几次,查一下医疗就诊的编码 | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '卫晴波' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 7550.96) | css |
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 prescription... | How many patients having main drug prescription had an ammonia lab test done? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "MAIN" AND lab.label = "Ammonia" | mimicsql_data |
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,
... | 患者40108491在2011年9月11日之后的门诊就诊记录里有哪些能对应的检验报告单?这些在就诊时的诊流水号是什么? | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzj... | css |
CREATE TABLE table_17172 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | What school/club team/country did the player fitch, gerald gerald fitch play for? | SELECT "School/Club Team/Country" FROM table_17172 WHERE "Player" = 'Fitch, Gerald Gerald Fitch' | wikisql |
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... | Top 50 Users from Algeria. | SELECT Id AS ID, DisplayName AS Name, Reputation, LastAccessDate AS Seen FROM Users WHERE Location LIKE '%Algeria%' ORDER BY Reputation DESC LIMIT 50 | sede |
CREATE TABLE table_41144 (
"Date" text,
"Rocket" text,
"Type" text,
"Launch site" text,
"Satellite" text
) | What is the type of the gps iif-10 satellite with an unknown date? | SELECT "Type" FROM table_41144 WHERE "Date" = 'unknown' AND "Satellite" = 'gps iif-10' | wikisql |
CREATE TABLE table_3134 (
"Rank" real,
"Team" text,
"Round1" real,
"Round2" real,
"Round3" real,
"Round4" real,
"Total points" real
) | Which team had 342 total points? | SELECT "Team" FROM table_3134 WHERE "Total points" = '342' | wikisql |
CREATE TABLE table_name_6 (
marriage VARCHAR,
ceased_to_be_consort VARCHAR
) | Name the marriagefor ceased to be consort of 29 september 1898 | SELECT marriage FROM table_name_6 WHERE ceased_to_be_consort = "29 september 1898" | sql_create_context |
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 admission type and discharge location of subject id 3623? | SELECT demographic.admission_type, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "3623" | mimicsql_data |
CREATE TABLE table_name_86 (
silver INTEGER,
bronze VARCHAR,
gold VARCHAR
) | What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal? | SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1 | sql_create_context |
CREATE TABLE table_43603 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) | what is the outcome when the date is 10 october 1994? | SELECT "Outcome" FROM table_43603 WHERE "Date" = '10 october 1994' | wikisql |
CREATE TABLE table_27930 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | What is the measure where the yes% is 44.06%? | SELECT "description" FROM table_27930 WHERE "% YES" = '44.06%' | wikisql |
CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE... | authors working on ImageNet | SELECT DISTINCT writes.paperid FROM dataset, paper, paperdataset, writes WHERE dataset.datasetname = 'ImageNet' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid AND writes.paperid = paper.paperid GROUP BY writes.paperid | scholar |
CREATE TABLE table_69488 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | What was the Agg., when Team 1 was VSADC? | SELECT "Agg." FROM table_69488 WHERE "Team 1" = 'vsadc' | wikisql |
CREATE TABLE table_2138 (
"Order" real,
"Couple" text,
"Karen" text,
"Nicky" text,
"Jason" text,
"Ruthie" text,
"Robin" text,
"Total" text,
"Skating song" text,
"Scoreboard" text,
"Public vote" text
) | what is the scoreboard when karen was 4.5 | SELECT "Scoreboard" FROM table_2138 WHERE "Karen" = '4.5' | wikisql |
CREATE TABLE table_34347 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" real
) | What was the amount of the 1st prize when paul azinger (9) was the winner? | SELECT AVG("1st prize ( $ )") FROM table_34347 WHERE "Winner" = 'paul azinger (9)' | wikisql |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | among the patients prescribed with albuterol mdi, what are the five most commonly prescribed drugs at the same time, in the last year? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'albuterol mdi' AND DATETIME(prescriptions.startdate, 'start of ye... | mimic_iii |
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,
... | count the number of patients who received vitamin k within 2 months after being diagnosed until 3 years ago with bone fracture(s) - left lower extremity. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bone fracture(s) - left lower extremity' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '... | eicu |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 从08年10月22日起的2年内,患者66306240的395514指标情况记录 | SELECT * FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH WHERE hz_inf... | css |
CREATE TABLE table_name_17 (
to_par VARCHAR,
country VARCHAR,
name VARCHAR
) | What is the To par of Willie MacFarlane from the country of Scotland? | SELECT to_par FROM table_name_17 WHERE country = "scotland" AND name = "willie macfarlane" | sql_create_context |
CREATE TABLE Player (
HS INTEGER
) | How many players have more than 1000 hours of training? | SELECT COUNT(*) FROM Player WHERE HS > 1000 | sql_create_context |
CREATE TABLE table_52179 (
"Club" text,
"League" text,
"Sport" text,
"Venue" text,
"Established" real,
"Championships" text
) | What venue does the soccer team Pennsylvania Stoners play in? | SELECT "Venue" FROM table_52179 WHERE "Sport" = 'soccer' AND "Club" = 'pennsylvania stoners' | wikisql |
CREATE TABLE table_train_154 (
"id" int,
"systolic_blood_pressure_sbp" int,
"fpg" float,
"hemoglobin_a1c_hba1c" float,
"creatinine_clearance_cl" float,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
) | have hemoglobin a1c 6.75 _ 10 % | SELECT * FROM table_train_154 WHERE hemoglobin_a1c_hba1c >= 6.75 AND hemoglobin_a1c_hba1c <= 10 | criteria2sql |
CREATE TABLE table_75172 (
"Year" real,
"Male" text,
"Female" text,
"Album" text,
"Live Performance" text
) | Which female artist has an album named elephant? | SELECT "Female" FROM table_75172 WHERE "Album" = 'elephant' | wikisql |
CREATE TABLE table_203_781 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
) | what is the name of the first competiton on this chart ? | SELECT "competition" FROM table_203_781 WHERE id = 1 | squall |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | 列出患者70892680所有检验结果指标记录中的检测方法在2012年3月29日到2020年7月23日之间都是什么? | SELECT jyjgzbb.JCFF FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH... | css |
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 the number of white patients who stayed in the hospital for more than 7 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.days_stay > "7" | mimicsql_data |
CREATE TABLE table_47762 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | What is the Week on November 10, 1996? | SELECT "Week" FROM table_47762 WHERE "Date" = 'november 10, 1996' | wikisql |
CREATE TABLE table_61681 (
"Year" real,
"Manufacturer" text,
"Start" real,
"Finish" real,
"Team" text
) | What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is '1973'? | SELECT "Manufacturer" FROM table_61681 WHERE "Finish" > '29' AND "Start" < '23' AND "Year" = '1973' | 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,
... | give the number of patients whose diagnosis icd9 code is 42843 and drug route is ivpca. | 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.icd9_code = "42843" AND prescriptions.route = "IVPCA" | mimicsql_data |
CREATE TABLE table_53702 (
"Year" real,
"Date" text,
"Album" text,
"Label" text,
"Format(s)" text
) | Which Year has a Date of 14 February? | SELECT MIN("Year") FROM table_53702 WHERE "Date" = '14 february' | wikisql |
CREATE TABLE table_name_92 (
april_28 VARCHAR,
mar_24 VARCHAR
) | What is the April 28 rank when the Mar 24 is 17? | SELECT april_28 FROM table_name_92 WHERE mar_24 = "17" | sql_create_context |
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 microlab (
microl... | what is the last ward id of patient 031-17834 since 3 years ago? | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-17834') AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY patient.unitadmittime DESC LIMIT 1 | eicu |
CREATE TABLE table_name_97 (
label VARCHAR,
date VARCHAR
) | Name the label for january 24, 2005 | SELECT label FROM table_name_97 WHERE date = "january 24, 2005" | sql_create_context |
CREATE TABLE table_52606 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | What's the report for the mexican grand prix? | SELECT "Report" FROM table_52606 WHERE "Race" = 'mexican grand prix' | wikisql |
CREATE TABLE table_2781227_1 (
nhl_team VARCHAR,
player VARCHAR
) | How many NHL teams is Denis Pederson a draft pick for? | SELECT COUNT(nhl_team) FROM table_2781227_1 WHERE player = "Denis Pederson" | 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... | find the health insurance and religious background of patient kelly gallardo. | SELECT demographic.religion, demographic.insurance FROM demographic WHERE demographic.name = "Kelly Gallardo" | mimicsql_data |
CREATE TABLE table_204_618 (
id number,
"place" number,
"position" text,
"number" number,
"name" text,
"nasl" number,
"playoffs" number,
"cfu club championship" number,
"concacaf champions league" number,
"total" number
) | tell me a scorer that had at least 3 scores in cfu club championships . | SELECT "name" FROM table_204_618 WHERE "cfu club championship" >= 3 | squall |
CREATE TABLE table_name_16 (
to_par INTEGER,
player VARCHAR
) | What was the total To Par for Craig Wood? | SELECT SUM(to_par) FROM table_name_16 WHERE player = "craig wood" | sql_create_context |
CREATE TABLE table_13397394_1 (
building VARCHAR,
storeys VARCHAR
) | what are all the building with 12 storeys | SELECT building FROM table_13397394_1 WHERE storeys = 12 | sql_create_context |
CREATE TABLE table_75151 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | What is the lowest number of touchdowns for left halfback WIllie Heston who has more than 15 points? | SELECT MIN("Touchdowns") FROM table_75151 WHERE "Position" = 'left halfback' AND "Player" = 'willie heston' AND "Points" > '15' | wikisql |
CREATE TABLE table_name_76 (
date VARCHAR,
visitor VARCHAR
) | Which Date has a Visitor of boston? | SELECT date FROM table_name_76 WHERE visitor = "boston" | sql_create_context |
CREATE TABLE table_name_8 (
competition VARCHAR,
opponent VARCHAR
) | What was the competition when the opponent was the Randers? | SELECT competition FROM table_name_8 WHERE opponent = "randers" | sql_create_context |
CREATE TABLE table_55895 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | What is the pick number for the College of Perpetual help with the Coca-Cola Tigers as a PBA team? | SELECT COUNT("Pick") FROM table_55895 WHERE "College" = 'perpetual help' AND "PBA team" = 'coca-cola tigers' | wikisql |
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... | 看看在医疗机构9046567的记录里,这位窦红旭的患者在01年2月24日到02年7月5日期间,治疗过程中给开出的西药总共有多少 | 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-02-24' AND '2002-07-05' AND gwyjzb.MED_SER_ORG_NO = '9046567' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_... | css |
CREATE TABLE table_name_20 (
candidate VARCHAR,
election VARCHAR
) | Who is the candidate in the 2008 (2) election? | SELECT candidate FROM table_name_20 WHERE election = "2008 (2)" | sql_create_context |
CREATE TABLE table_39905 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
) | Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3? | SELECT "Works number" FROM table_39905 WHERE "Builder" = 'canadian engine & machinery company' AND "Number" < '3' | wikisql |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE ground_service (
... | and what are the flights from NASHVILLE to TACOMA on the 18 again | 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 = 'TACOMA' AND date_day.day_number = 18 AND date_day.month_number = 5 AND da... | atis |
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 (
... | find the number of patients who died in or before the year 2154 and their primary disease was acidosis. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ACIDOSIS" AND demographic.dod_year <= "2154.0" | mimicsql_data |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id numbe... | what is the unabbreviated version of the cord entangle nec-deliv? | SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cord entangle nec-deliv' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cord entangle nec-deliv' | mimic_iii |
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 the number of patients whose ethnicity is american indian/alaska native and drug name is hydromorphone? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND prescriptions.drug = "Hydromorphone" | mimicsql_data |
CREATE TABLE table_17778 (
"Sequencer" text,
"Ion Torrent PGM" text,
"454 GS FLX" text,
"HiSeq 2000" text,
"SOLiDv4" text,
"PacBio" text,
"Sanger 3730xl" text
) | What is 454 gs flx when pacbio is 100-500 mb? | SELECT "454 GS FLX" FROM table_17778 WHERE "PacBio" = '100-500 Mb' | wikisql |
CREATE TABLE table_63599 (
"Date" real,
"Single" text,
"Backed with" text,
"Record label" text,
"Format" text,
"Other details" text
) | What's the format of the single, I Can't Stay? | SELECT "Format" FROM table_63599 WHERE "Single" = 'i can''t stay' | wikisql |
CREATE TABLE diagnoses_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
)
CREATE TABLE labevents (
row_id number,
subject_id number,
h... | what's the drug patient 81562 was prescribed two times until 13 months ago? | SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 81562) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-13 month') GROUP BY prescriptions.dru... | mimic_iii |
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,
... | what is maximum age of patients whose gender is female and insurance is medicare? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.insurance = "Medicare" | mimicsql_data |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, find name and code , and group by attribute headquarter, and visualize them by a bar chart, could you rank names in ascending order? | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name | nvbench |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | 日期均在2021-05-03之后的患者王向卉的哪些门诊就诊记录对应的检验报告单的报告?列出门诊就诊流水号是什么? | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb 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 WHERE person_info.XM = '王向卉' AND NOT mzjzjlb.JZLSH IN (SELECT JZLSH FROM jybgb WHERE BGRQ <= '2021-05-03') | css |
CREATE TABLE table_name_24 (
against INTEGER,
losses VARCHAR,
wins VARCHAR
) | How many against when losses are 11 and wins are fewer than 5? | SELECT AVG(against) FROM table_name_24 WHERE losses = 11 AND wins < 5 | 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_DIRE_CD text,
MED_DIRE_NM text,... | 患者何美华在医疗机构5350296的既往病历里检查过多少次,时间是从02年7月14日到14年8月18日 | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '何美华' AND t_kc22.STA_DATE BETWEEN '2002-07-14' AND '2014-08-18' AND t_kc21.MED_SER_ORG_NO = '5350296' AND t_kc22.MED_INV_ITEM... | css |
CREATE TABLE table_name_43 (
swimsuit INTEGER,
state VARCHAR,
interview VARCHAR
) | What's utah's lowest swimsuit with an interview over 8.53? | SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53 | sql_create_context |
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight te... | what flights leave SEATTLE on sunday on CO | SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day, days, flight WHERE (city.city_code = airport_service.city_code AND city.city_name = 'SEATTLE' AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.day... | atis |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | 28140515这个病人的检验报告单结果指标均异常的有哪些?看看检验报告的单号 | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN mzjzjlb_jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJGDM AND mzjzjlb_jybgb.BGDH ... | css |
CREATE TABLE table_name_90 (
_number_of_phones_as__percentage_of_population INTEGER,
last_updated_date VARCHAR,
number_of_mobile_phones VARCHAR
) | What percent is 327,577,529 people with phones in June 2013? | SELECT MAX(_number_of_phones_as__percentage_of_population) FROM table_name_90 WHERE last_updated_date = "june 2013" AND number_of_mobile_phones = "327,577,529" | sql_create_context |
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... | when is the first time that patient 028-11360 has had a sao2 measured on the last intensive care unit visit? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-11360') AND NOT patient.unitdischargetime IS NU... | eicu |
CREATE TABLE table_40401 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994? | SELECT "Opponent in the final" FROM table_40401 WHERE "Tournament" = 'taipei, taiwan' AND "Date" = 'november 14, 1994' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... | oh what is the average value of cpk-mb index on patient 027-82318? | SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND lab.labname = 'cpk-mb index' | eicu |
CREATE TABLE On_Call (
Nurse INTEGER,
BlockFloor INTEGER,
BlockCode INTEGER,
OnCallStart DATETIME,
OnCallEnd DATETIME
)
CREATE TABLE Trained_In (
Physician INTEGER,
Treatment INTEGER,
CertificationDate DATETIME,
CertificationExpires DATETIME
)
CREATE TABLE Undergoes (
Patient I... | Visualize a scatter chart on what are each physician's employee id and department id primarily affiliated. | SELECT Physician, Department FROM Affiliated_With WHERE PrimaryAffiliation = 1 | nvbench |
CREATE TABLE table_name_55 (
psip_short_name VARCHAR,
channel INTEGER
) | What is the short name for a channelgreater than 63.4? | SELECT psip_short_name FROM table_name_55 WHERE channel > 63.4 | sql_create_context |
CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE market (
Mar... | Return the low and high estimates for all film markets. Show scatter chart. | SELECT Low_Estimate, High_Estimate FROM film_market_estimation | nvbench |
CREATE TABLE table_name_84 (
away_team VARCHAR,
crowd INTEGER
) | When the crowd was larger than 7,500 what was the away teams score? | SELECT away_team AS score FROM table_name_84 WHERE crowd > 7 OFFSET 500 | sql_create_context |
CREATE TABLE mzb (
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... | 5091059这家医院的所有就诊的记录里,按照出院诊断疾病编码与科室的名字差异计算一下医院患者就诊的平均岁数是多少 | SELECT qtb.MED_ORG_DEPT_NM, qtb.OUT_DIAG_DIS_CD, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '5091059' GROUP BY qtb.MED_ORG_DEPT_NM, qtb.OUT_DIAG_DIS_CD UNION SELECT gyb.MED_ORG_DEPT_NM, gyb.OUT_DIAG_DIS_CD, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '5091059' GROUP BY gyb.MED_ORG_DEPT_NM, gyb.... | css |
CREATE TABLE table_name_47 (
work VARCHAR,
year VARCHAR,
award VARCHAR
) | Name the work for years before 2007 that won blockbuster entertainment awards | SELECT work FROM table_name_47 WHERE year < 2007 AND award = "blockbuster entertainment awards" | 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 bdmzjzjlb (
HXPLC number,
HZX... | 在06年1月1日到11年8月25日内病号56134698的所有检验结果指标记录中的仪器编号以及名称分别叫什么? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON 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 = jyjgzbb.YLJGDM AND jybgb.BGDH ... | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.