context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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, return a bar chart about the distribution of name and price , and group by attribute name, display by the bar in desc. | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC | nvbench |
CREATE TABLE table_33255 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What team plays at home at Windy Hill? | SELECT "Home team" FROM table_33255 WHERE "Venue" = 'windy hill' | wikisql |
CREATE TABLE table_1130632_1 (
title VARCHAR,
us_viewers__million_ VARCHAR
) | What are the title that have 19.48 million u.s. viewers? | SELECT title FROM table_1130632_1 WHERE us_viewers__million_ = "19.48" | sql_create_context |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | in the last month, was patient 8016's arterial bp [diastolic] greater than 68.0? | SELECT COUNT(*) > 0 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 = 8016)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diast... | mimic_iii |
CREATE TABLE table_75922 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text
) | What is the home score with marek dupnitsa as opponent? | SELECT "Home" FROM table_75922 WHERE "Opponent" = 'marek dupnitsa' | wikisql |
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
)
... | count the number of medicaid patients who have unspecified congestive heart failure diagnoses. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Congestive heart failure, unspecified" | mimicsql_data |
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,
... | 依据不一样的科室与入院诊断疾病的编码,把编码为1511465的医院全部的医疗就诊记录中病人的平均年龄列出来? | SELECT gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_CD, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '1511465' GROUP BY gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_CD UNION SELECT fgwyjzb.MED_ORG_DEPT_CD, fgwyjzb.IN_DIAG_DIS_CD, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '15114... | css |
CREATE TABLE table_12476 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | Which state has a royal house of Jiang? | SELECT "State" FROM table_12476 WHERE "Royal house" = 'jiang' | wikisql |
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname va... | Fetch me some papers on Artificial Neural Network | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Artificial Neural Network' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid | scholar |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... | how many hours have passed since the first time that patient 96833 was prescribed acetazolamide sodium during their current hospital visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 96833 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'acetazolamide sodium' ORDER BY prescriptions... | mimic_iii |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int... | Are there any useful courses to take before taking INSTHUM 212 ? | SELECT DISTINCT advisory_requirement FROM course WHERE department = 'INSTHUM' AND number = 212 | advising |
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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
... | For those employees who did not have any job in the past, give me the comparison about the sum of employee_id over the hire_date bin hire_date by weekday, list total number of employee id from high to low order. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,... | 看看医院0002177有多少科室在门诊就诊中开出少于23张检验报告单,时间为2002年6月17日到2007年12月6日 | SELECT COUNT(*) FROM (SELECT zyjybgb.KSBM FROM mzjzjlb JOIN zyjybgb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '0002177' AND zyjybgb.BGRQ BETWEEN '2002-06-17' AND '2007-12-06' GROUP BY zyjybgb.KSBM HAVING COUNT(*) < 23 UNION SELECT mzjybgb.KSBM FROM mzjzj... | css |
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
)
... | provide the number of patients whose death status is 1 and diagnoses icd9 code is 25040? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "25040" | mimicsql_data |
CREATE TABLE table_204_813 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | where was the location of the last venue held ? | SELECT "venue" FROM table_204_813 ORDER BY "year" DESC LIMIT 1 | squall |
CREATE TABLE table_6924 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"Conservative ticket" text,
"Liberal ticket" text,
"Free Libertarian ticket" text,
"Socialist Labor ticket" text
) | Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket? | SELECT "Liberal ticket" FROM table_6924 WHERE "Free Libertarian ticket" = 'robert s. flanzer' | wikisql |
CREATE TABLE table_67019 (
"Rank" text,
"Games" text,
"Player" text,
"Club" text,
"Career span" text
) | What is the rank that shows 426 games? | SELECT "Rank" FROM table_67019 WHERE "Games" = '426' | wikisql |
CREATE TABLE table_27776266_1 (
directed_by VARCHAR,
us_viewers__million_ VARCHAR
) | Who directed the episode with an audience of 14.11 million? | SELECT directed_by FROM table_27776266_1 WHERE us_viewers__million_ = "14.11" | sql_create_context |
CREATE TABLE wdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 从03年3月14日起到2009年1月3日为止病患柳飞星都进行了什么检测记录在检验结果指标记录里? | SELECT jyjgzbb.JCFF 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.... | css |
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... | Visualize a bar chart about the distribution of ACC_Road and School_ID , and group by attribute ACC_Home, order by the bars in desc. | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road DESC | nvbench |
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... | 在医疗就诊57925867491中患者柏宏阔给哪个项目付的自费金最多 | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '57925867491' GROUP BY SOC_SRT_DIRE_CD ORDER BY SUM(SELF_PAY_AMO) DESC LIMIT 1 | css |
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperfield (
fieldid int,
... | What paper did Michael Armstrong wrote in the 90s ? | SELECT DISTINCT paper.year, writes.paperid FROM author, paper, writes WHERE author.authorname LIKE 'Michael Armstrong' AND paper.year LIKE '199' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | scholar |
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Ra... | Show all the activity names and the number of faculty involved in each activity Show bar chart, and list by the Y in descending. | SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_name_54 (
Id VARCHAR
) | What is 2007, when 2003 is 1R? | SELECT 2007 FROM table_name_54 WHERE 2003 = "1r" | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | count the number of patients whose admission year is less than 2124 and procedure long title is percutaneous [endoscopic] gastrostomy [peg]? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2124" AND procedures.long_title = "Percutaneous [endoscopic] gastrostomy [PEG]" | mimicsql_data |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total... | In Spring-Summer 2000 , what courses does Prof. Lauren Sarringhaus teach ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Lauren Sarringhaus%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructo... | advising |
CREATE TABLE table_486 (
"Season #" real,
"Series #" real,
"Title" text,
"Canadian airdate" text,
"U.S. airdate" text,
"Production code" real
) | what is the minimum production code | SELECT MIN("Production code") FROM table_486 | wikisql |
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 jyjgzbb (
BGDH text,
BGRQ tim... | 慢性牙周炎的患者,门诊诊断的α-羟丁酸脱氢酶数值的平均值以及最值具体均是? | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDSM = '慢性牙周炎' AND jyjgzbb.JCZBMC = '... | css |
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 procedure icd9 code is 309. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "309" | mimicsql_data |
CREATE TABLE match (
Round real,
Location text,
Country text,
Date text,
Fastest_Qualifying text,
Winning_Pilot text,
Winning_Aircraft text
)
CREATE TABLE airport (
Airport_ID int,
Airport_Name text,
Total_Passengers real,
%_Change_2007 text,
International_Passengers rea... | List the names of aircrafts and the number of times it won matches Plot them as bar chart, could you list from low to high by the y-axis please? | SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_34390 (
"Game" real,
"April" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | What is the lowest value in April with New York Rangers as opponent for a game less than 82? | SELECT MIN("April") FROM table_34390 WHERE "Opponent" = 'new york rangers' AND "Game" < '82' | wikisql |
CREATE TABLE table_name_14 (
rank VARCHAR,
total VARCHAR,
gold VARCHAR,
nation VARCHAR
) | How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1? | SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1 | sql_create_context |
CREATE TABLE table_27502 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | What episode number in the series is 'tough love'? | SELECT MAX("No. in series") FROM table_27502 WHERE "Title" = 'Tough Love' | wikisql |
CREATE TABLE table_24639086_3 (
viewers__in_millions_ VARCHAR,
series__number VARCHAR
) | What is the amount of viewers if the series number is 14? | SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14 | sql_create_context |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
... | Positive score questions per month. | SELECT MONTH(CreationDate), PostTypeId, COUNT(Id) FROM Posts WHERE YEAR(CreationDate) = '##Year##' AND PostTypeId <= 2 AND Score <= 0 GROUP BY MONTH(CreationDate), PostTypeId ORDER BY MONTH(CreationDate) | sede |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
... | Return a bar chart about the distribution of meter_700 and ID . | SELECT meter_700, ID FROM swimmer | nvbench |
CREATE TABLE table_59552 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | What is the highest Laps, when Bike is 'Yamaha YZF-R1', when Rider is 'David Checa', and when Grid is greater than 18? | SELECT MAX("Laps") FROM table_59552 WHERE "Bike" = 'yamaha yzf-r1' AND "Rider" = 'david checa' AND "Grid" > '18' | wikisql |
CREATE TABLE table_24600706_1 (
released INTEGER,
song VARCHAR
) | Name the most released for apologize | SELECT MAX(released) FROM table_24600706_1 WHERE song = "Apologize" | sql_create_context |
CREATE TABLE table_45247 (
"Name" text,
"Pinnacle height" text,
"Structure type" text,
"Main use" text,
"Country" text,
"Town" text
) | What country has the SBA Towers Tower Hayneville? | SELECT "Country" FROM table_45247 WHERE "Name" = 'sba towers tower hayneville' | wikisql |
CREATE TABLE table_name_44 (
score VARCHAR,
away_team VARCHAR
) | Which Score has a Away team of walthamstow avenue? | SELECT score FROM table_name_44 WHERE away_team = "walthamstow avenue" | sql_create_context |
CREATE TABLE table_78294 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
) | Which Round is pick 112 in? | SELECT "Round" FROM table_78294 WHERE "Pick" = '112' | wikisql |
CREATE TABLE table_1604579_2 (
country VARCHAR
) | How economically free is the country of Armenia? | SELECT 2013 AS _index_of_economic_freedom FROM table_1604579_2 WHERE country = "Armenia" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TA... | what the last height of patient 002-21509. | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-21509') AND NOT patient.admissionheight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | eicu |
CREATE TABLE table_35963 (
"Team" text,
"Copa Libertadores 1993" text,
"Supercopa Sudamericana 1993" text,
"Copa CONMEBOL 1993" text,
"Recopa Sudamericana 1993" text,
"Intercontinental Cup 1993" text
) | What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16? | SELECT "Intercontinental Cup 1993" FROM table_35963 WHERE "Supercopa Sudamericana 1993" = 'round of 16' | wikisql |
CREATE TABLE table_21192 (
"Months in Malayalam Era" text,
"In Malayalam" text,
"Gregorian Calendar" text,
"Tamil calendar" text,
"Saka era" text,
"Sign of Zodiac" text
) | Name the saka era for sign of zodiac being pisces | SELECT "Saka era" FROM table_21192 WHERE "Sign of Zodiac" = 'Pisces' | wikisql |
CREATE TABLE table_19683 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | How many games were played? | SELECT MIN("Played") FROM table_19683 | wikisql |
CREATE TABLE table_1108394_6 (
staten_island VARCHAR,
brooklyn VARCHAR
) | What was Staten Island when Brooklyn was 940? | SELECT staten_island FROM table_1108394_6 WHERE brooklyn = "940" | sql_create_context |
CREATE TABLE table_name_93 (
built VARCHAR,
builder VARCHAR
) | What year was Stephenson the builder? | SELECT built FROM table_name_93 WHERE builder = "stephenson" | sql_create_context |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
U... | Sh*tty Minecraft questions that have been left undeleted. | SELECT COUNT(*) FROM Posts WHERE DeletionDate IS NULL AND Score <= -1 AND (Tags LIKE '%minecraft-%%' OR Tags LIKE '%minecraft%') AND (ClosedDate IS NULL OR NOT ClosedDate IS NULL) | sede |
CREATE TABLE table_18406 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | what's party with district being tennessee 3 | SELECT "Party" FROM table_18406 WHERE "District" = 'Tennessee 3' | wikisql |
CREATE TABLE table_name_27 (
country VARCHAR,
rank VARCHAR,
time VARCHAR
) | What country has a time of 7:28.66 and a rank less than 3? | SELECT country FROM table_name_27 WHERE rank < 3 AND time = "7:28.66" | sql_create_context |
CREATE TABLE table_22825679_1 (
percentage VARCHAR,
team VARCHAR
) | Name the percentage for ole miss | SELECT percentage FROM table_22825679_1 WHERE team = "Ole Miss" | sql_create_context |
CREATE TABLE table_7287 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | At what Location was the match against Opponent of Mostapha Al-Turk lasting less than 2 Rounds? | SELECT "Location" FROM table_7287 WHERE "Round" < '2' AND "Opponent" = 'mostapha al-turk' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... | Post count distribution by users this year. | WITH user_contributions AS (SELECT COUNT(DISTINCT p.Id) AS Posts, OwnerUserId FROM Posts AS p WHERE CreationDate >= '2019-01-01' GROUP BY OwnerUserId HAVING COUNT(DISTINCT p.Id) > 200) SELECT COUNT(*) AS Users, Posts FROM user_contributions GROUP BY Posts ORDER BY Posts | sede |
CREATE TABLE screen_mode (
graphics_mode number,
char_cells text,
pixels text,
hardware_colours number,
used_kb number,
map text,
type text
)
CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
blu... | Find the number of phones for each accreditation type. | SELECT accreditation_type, COUNT(*) FROM phone GROUP BY accreditation_type | spider |
CREATE TABLE table_name_60 (
team_1 VARCHAR,
team_2 VARCHAR
) | What was the team 1 when Red Star (D1) was team 2? | SELECT team_1 FROM table_name_60 WHERE team_2 = "red star (d1)" | 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 hz_info (
KH text,
KLX number... | 列出在2001-03-25到2020-05-29内患者马欣怿被开出的所有检验报告单的检验报告单号是什么? | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN mzjzjlb_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 = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND mzjzjl... | css |
CREATE TABLE table_80280 (
"Year" real,
"Competition" text,
"Wins" real,
"Draws" real,
"Loses" real
) | What average Loses has Draws less than 0? | SELECT AVG("Loses") FROM table_80280 WHERE "Draws" < '0' | wikisql |
CREATE TABLE table_27707 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | When did they play Dayton? | SELECT "Date" FROM table_27707 WHERE "Team" = 'Dayton' | wikisql |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_fli... | what is ORD | SELECT DISTINCT airport_code FROM airport WHERE airport_code = 'ORD' | atis |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... | during this year what was the four most commonly ordered procedure for patients with 60 or above? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'st... | eicu |
CREATE TABLE qtb (
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... | 把年龄高于20岁的患者医疗记录中的总医疗费平均一下能有多少钱? | SELECT AVG(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_AGE > 20 UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_AGE > 20 UNION SELECT zyb.MED_CLINIC_ID FROM zyb WHERE zyb.PERSON_AGE > 20 UNION SELECT mzb.MED_CLINIC_ID FROM mzb WHERE mzb.PERSON... | css |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | what were the three most common specimen tests carried out? | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 3 | mimic_iii |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB 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... | 患者46795591在2006年9月16日到2014年7月16日内所有检验结果指标记录的检测人为16084519的检验指标流水号都是多少? | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz... | css |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_lo... | show me all flights from BALTIMORE to SAN FRANCISCO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN ... | atis |
CREATE TABLE Student (
StuID VARCHAR,
Sex VARCHAR
) | Show student ids for all male students. | SELECT StuID FROM Student WHERE Sex = 'M' | sql_create_context |
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,
... | 哪些住院就诊记录的病患63342045对应的检验报告单的报告日期均在2007年8月10日之后还有住院就诊的流水号是啥? | SELECT zyjzjlb.JZLSH FROM hz_info JOIN zyjzjlb JOIN hz_info_zyjzjlb ON hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyj... | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | give me the number of patients whose procedure icd9 code is 12? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "12" | mimicsql_data |
CREATE TABLE Movie (
name VARCHAR,
title VARCHAR
)
CREATE TABLE Reviewer (
name VARCHAR,
title VARCHAR
) | Return all reviewer names and movie names together in a single list. | SELECT name FROM Reviewer UNION SELECT title FROM Movie | sql_create_context |
CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City te... | Count the hometown by hometown, and sort from high to low by the y-axis. | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY COUNT(Hometown) DESC | nvbench |
CREATE TABLE table_name_99 (
week INTEGER,
result VARCHAR,
attendance VARCHAR
) | Tell me the week for result of l 31-27, and an Attendance smaller than 85,865 | SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865 | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | how many patients are married and lab tested with item id 50946? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "50946" | mimicsql_data |
CREATE TABLE table_name_17 (
date VARCHAR,
record VARCHAR
) | What date had a record of 43-34? | SELECT date FROM table_name_17 WHERE record = "43-34" | sql_create_context |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE chartevent... | what were the top four most frequently ordered lab tests for patients in the same hospital encounter after the diagnosis of polyp of corpus uteri? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id W... | mimic_iii |
CREATE TABLE table_47765 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | What is the Population of the Parish with an Area km 2 of 236.76? | SELECT MIN("Population") FROM table_47765 WHERE "Area km 2" = '236.76' | 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... | 在医院3915237就诊的患者潘永逸,医院给他开的单价最贵的药品名是什么?编码和单价呢 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '潘永逸' AND gwyjzb.MED_SER_ORG_NO = '3915237' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '潘永逸' AND fgwyjzb.MED_... | css |
CREATE TABLE table_16869 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | For how many players from UTEP can one calculate how many years they've played for Jazz? | SELECT COUNT("Years for Jazz") FROM table_16869 WHERE "School/Club Team" = 'UTEP' | wikisql |
CREATE TABLE table_46072 (
"Religion" text,
"Suriname" text,
"Paramaribo" text,
"Wanica" text,
"Nickerie" text,
"Coronie" text,
"Saramacca" text,
"Commewijne" text,
"Marowijne" text,
"Para" text,
"Brokopondo" text,
"Sipaliwini" text
) | What religion has a para of 56.5%? | SELECT "Religion" FROM table_46072 WHERE "Para" = '56.5%' | wikisql |
CREATE TABLE table_72299 (
"Episode" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | What's the original artist of the song performed in the top 3 episode? | SELECT "Original artist" FROM table_72299 WHERE "Episode" = 'Top 3' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | 结果定量以及定量单位还有结果定性在检验结果指标记录95563962377上是什么? | SELECT jyjgzbb.JCZBJGDX, jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '95563962377' | css |
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password... | List the name and the number of enrolled student for each course in a bar chart, and order total number in desc order. | SELECT course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_75268 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | Which Lead has Katarina Radonic as Skip? | SELECT "Lead" FROM table_75268 WHERE "Skip" = 'katarina radonic' | 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 procedure title is oth periton adhesiolysis and marital status is divorced. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.short_title = "Oth periton adhesiolysis" | mimicsql_data |
CREATE TABLE table_name_46 (
total INTEGER,
rank VARCHAR
) | What is the sum of Total when rank is 2? | SELECT SUM(total) FROM table_name_46 WHERE rank = "2" | sql_create_context |
CREATE TABLE table_54489 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was home team South Melbourne's opponents score? | SELECT "Away team score" FROM table_54489 WHERE "Home team" = 'south melbourne' | wikisql |
CREATE TABLE table_203_174 (
id number,
"rank" number,
"film" text,
"year" number,
"opening weekend\n(three day)" text,
"inflation-adjusted\n(2014 usd)" text
) | what is the average opening weekend gross between iron man 3 and the dark knight ? | SELECT AVG("opening weekend\n(three day)") FROM table_203_174 WHERE "film" IN ('iron man 3', 'the dark knight') | squall |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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),
... | For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the sum of manager_id , and group by attribute job_id, rank by the x-axis in asc. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE table_3486 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Vessel Type" text,
"Vessel Operator" text,
"Narrated by" text,
"Original air date" real
) | Name the vessel type for dof subsea | SELECT "Vessel Type" FROM table_3486 WHERE "Vessel Operator" = 'DOF Subsea' | wikisql |
CREATE TABLE table_name_89 (
record VARCHAR,
visitor VARCHAR
) | Which record has a Visitor of magic? | SELECT record FROM table_name_89 WHERE visitor = "magic" | sql_create_context |
CREATE TABLE table_name_49 (
crowd INTEGER,
away_team VARCHAR
) | What is the smallest crowd that Footscray had as the away team? | SELECT MIN(crowd) FROM table_name_49 WHERE away_team = "footscray" | sql_create_context |
CREATE TABLE table_name_85 (
college VARCHAR,
player VARCHAR
) | Which college is Jordan Phillips playing for? | SELECT college FROM table_name_85 WHERE player = "jordan phillips" | sql_create_context |
CREATE TABLE table_name_82 (
grid INTEGER,
time VARCHAR,
laps VARCHAR
) | which grid did less than 20 laps in a time of +58.353? | SELECT MIN(grid) FROM table_name_82 WHERE time = "+58.353" AND laps < 20 | sql_create_context |
CREATE TABLE table_name_70 (
home_team VARCHAR,
crowd INTEGER
) | What was the home team for the game with more than 25,000 crowd? | SELECT home_team FROM table_name_70 WHERE crowd > 25 OFFSET 000 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE icustays (
row_id number,
s... | bicarbonate,whats the cost of it? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate')) | mimic_iii |
CREATE TABLE table_17961 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
) | Who had all of the blocks in 2012? | SELECT "Blocks" FROM table_17961 WHERE "Year" = '2012' | wikisql |
CREATE TABLE table_46138 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter" real,
"Year named" real
) | What is the latitude of the point with a longitude of 147.1w? | SELECT "Latitude" FROM table_46138 WHERE "Longitude" = '147.1w' | wikisql |
CREATE TABLE table_48320 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | What is the nationality of the forward position on the Grizzlies in 2011? | SELECT "Nationality" FROM table_48320 WHERE "Position" = 'forward' AND "Years for Grizzlies" = '2011' | wikisql |
CREATE TABLE table_29785 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What game in the season does this list start? | SELECT MIN("Game") FROM table_29785 | wikisql |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId... | 40 random off-topic questions from the past 90 days. | SELECT x.* FROM Posts AS p INNER JOIN ReviewTasks AS x ON x.PostId = p.Id LEFT OUTER JOIN PendingFlags AS f ON f.PostId = p.Id LEFT OUTER JOIN PostFeedback AS x ON x.PostId = p.Id WHERE PostHistoryTypeId = 10 AND Comment = '102' AND CreationDate > CURRENT_TIMESTAMP() - 90 ORDER BY NEWID() LIMIT 40 | sede |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperio... | give me the difference between the total input and the output of patient 021-100763 on the last icu visit. | 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 = '021-100763') AND NOT patient.unitdischar... | eicu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.