context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_38612 (
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text,
"Streak" text
) | what's the result with streak of won 6? | SELECT "Result" FROM table_38612 WHERE "Streak" = 'won 6' | wikisql |
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 locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | For those employees who was hired before 2002-06-21, draw a line chart about the change of manager_id over hire_date . | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE medicine_enzyme_interaction (
enzyme_id int,
medicine_id int,
interaction_type text
)
CREATE TABLE enzyme (
id int,
name text,
Location text,
Product text,
Chromosome text,
OMIM int,
Porphyria text
)
CREATE TABLE medicine (
id int,
name text,
Trade_Name... | A bar chart about what are the ids and names of the medicine that can interact with two or more enzymes?, could you show total number from low to high order? | SELECT name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id | nvbench |
CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE repair_assignment (
technician_id int,
repair_ID int,
Machine_ID int
)
CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
val... | List the names of technicians in ascending order of age, and count them by a bar chart | SELECT Name, COUNT(Name) FROM technician GROUP BY Name ORDER BY Age | nvbench |
CREATE TABLE table_27374004_2 (
team_captain VARCHAR,
shirt_sponsor VARCHAR
) | What is the team captain when the shirt sponser is quick? | SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = "Quick" | sql_create_context |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | show me the top four most frequent diagnoses until 2101? | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE STRFTIME('%y', diagnosis.diagnosistime) <= '2101' GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4 | eicu |
CREATE TABLE table_name_59 (
year VARCHAR,
total_for_year INTEGER
) | How many years in all was less than 105,005 the total for the year? | SELECT COUNT(year) FROM table_name_59 WHERE total_for_year < 105 OFFSET 005 | 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 prescription... | provide the number of patients whose marital status is married and admission year is less than 2175? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2175" | mimicsql_data |
CREATE TABLE table_41235 (
"Goal" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | What was the score for a goal of 6? | SELECT "Score" FROM table_41235 WHERE "Goal" = '6' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
... | patient 027-61708 had received a diagnosis during their current hospital encounter? | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-61708' AND patient.hospitaldischargetime IS NULL)) | eicu |
CREATE TABLE table_27081 (
"Year" real,
"Engine" text,
"Power" text,
"Torque" text,
"Transmission" text,
"0\u2013100km/h (60mph)" text,
"Top speed" text,
"CO2" text
) | when co2 is 192g/km, what is the power? | SELECT "Power" FROM table_27081 WHERE "CO2" = '192g/km' | wikisql |
CREATE TABLE table_19631 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
) | What is the largest loss for the Tacuary team? | SELECT MAX("Losses") FROM table_19631 WHERE "Team" = 'Tacuary' | wikisql |
CREATE TABLE table_name_94 (
street_address VARCHAR,
floors VARCHAR
) | What is the street address of the building with 40 floors? | SELECT street_address FROM table_name_94 WHERE floors = "40" | sql_create_context |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0... | 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 salary bin hire_date by time in a bar chart, rank in desc by the Y. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY) DESC | nvbench |
CREATE TABLE table_11670 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | How many laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1? | SELECT SUM("Laps") FROM table_11670 WHERE "Manufacturer" = 'aprilia' AND "Rider" = 'jorge lorenzo' AND "Grid" > '1' | wikisql |
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 number of office admission patients who had a monocyte count lab test done. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.label = "Monocytes" | mimicsql_data |
CREATE TABLE table_44808 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | What date was the score 3 0, and set 1 was 25 22? | SELECT "Date" FROM table_44808 WHERE "Score" = '3–0' AND "Set 1" = '25–22' | wikisql |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuest... | Top Stack Overflow Users located in Toru. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE LOWER('%toru%') ORDER BY Reputation DESC | sede |
CREATE TABLE table_1137142_1 (
group_a_winner VARCHAR,
group_c_winner VARCHAR
) | What is the group a winner for vis pesaro? | SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro" | sql_create_context |
CREATE TABLE table_16479 (
"City of license/Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Year of affiliation" text,
"Owned since" text
) | What channels have stations that were affiliated in 2002? | SELECT "Channel TV ( DT )" FROM table_16479 WHERE "Year of affiliation" = '2002' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by time, could you rank by the total number of manager id from high to low? | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(MANAGER_ID) DESC | nvbench |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | How many years has ENSCEN 475 been offered ? | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ENSCEN' AND course.number = 475 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | advising |
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... | 二零零二年五月二十日到二零一四年二月二十六日,编号为7012895的这个医疗机构的患者对医疗项目自付比例的平均数值是多少 | SELECT AVG(t_kc22.SELF_PAY_PRO) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '7012895' AND t_kc22.STA_DATE BETWEEN '2002-05-20' AND '2014-02-26' UNION SELECT AVG(t_kc22.SELF_PAY_PRO) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO ... | css |
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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
... | what are the total number of open liver biopsy procedures performed? | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'open liver biopsy') | mimic_iii |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE cost (
row_id number,
... | when was patient 27362 first prescribed the medication via the irr route in the last hospital visit? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27362 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND prescriptions.route = 'irr' ORDER BY prescriptions.startdate LIMIT 1 | mimic_iii |
CREATE TABLE table_52626 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Who was the home team when the venue was Junction Oval? | SELECT "Home team" FROM table_52626 WHERE "Venue" = 'junction oval' | wikisql |
CREATE TABLE table_31693 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) | What region is the city of Philadelphia located in? | SELECT "Region" FROM table_31693 WHERE "City" = 'philadelphia' | wikisql |
CREATE TABLE table_71278 (
"Rank" real,
"Team" text,
"Country" text,
"Value ($M)" real,
"Debt as %of value" real,
"% change on year" text,
"Revenue ($M)" real,
"Operating income($m)" real
) | What was the total amount of Value ($M), when the Rank was higher than 6, and the % change on year was -27? | SELECT COUNT("Value ($M)") FROM table_71278 WHERE "Rank" > '6' AND "% change on year" = '-27' | wikisql |
CREATE TABLE table_14906 (
"School" text,
"Team" text,
"Division Record" text,
"Overall Record" text,
"Season Outcome" text
) | The wildcats belong to what school? | SELECT "School" FROM table_14906 WHERE "Team" = 'wildcats' | wikisql |
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num... | Show the number of heads of departments born in each state with a bar chart. | SELECT born_state, COUNT(born_state) FROM head GROUP BY born_state | nvbench |
CREATE TABLE table_9503 (
"Rank" text,
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" real,
"Total" real
) | How many golds does Germany have? | SELECT "Gold" FROM table_9503 WHERE "Nation" = 'germany' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
d... | provide a list of the four most frequent procedures that patients took within the same month following their antiarrhythmics - class iv antiarrhythmic treatment. | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antiarrhythmics - class iv antiarrhythmi... | eicu |
CREATE TABLE table_13740 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the sum of silvers for countries in rank 8 with totals over 3? | SELECT SUM("Silver") FROM table_13740 WHERE "Rank" = '8' AND "Total" > '3' | 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | For those employees who did not have any job in the past, a bar chart shows the distribution of job_id and the amount of job_id , and group by attribute job_id, and show X-axis in asc order please. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE table_54855 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | Tell me the school with a height of 6-9 | SELECT "School" FROM table_54855 WHERE "Height" = '6-9' | wikisql |
CREATE TABLE table_68138 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | What is the average Heat for anjelika solovieva? | SELECT AVG("Heat") FROM table_68138 WHERE "Name" = 'anjelika solovieva' | wikisql |
CREATE TABLE table_32650 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What date did VFL play MCG? | SELECT "Date" FROM table_32650 WHERE "Venue" = 'mcg' | wikisql |
CREATE TABLE table_14650373_1 (
position VARCHAR,
pick__number VARCHAR
) | What position(s) does the player drafted #34 play? | SELECT position FROM table_14650373_1 WHERE pick__number = 34 | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | calculate the number of patients with diagnoses icd9 code 42842. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "42842" | mimicsql_data |
CREATE TABLE table_2626495_1 (
directed_by VARCHAR,
written_by VARCHAR
) | who directed the episode james clavell wrote? | SELECT directed_by FROM table_2626495_1 WHERE written_by = "James Clavell" | sql_create_context |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE T... | Find short unanswered questions with one tag and a specific string of code. | SELECT P.Id AS "post_link", P.Tags, P.Body FROM Posts AS P, PostTags AS Pt, Tags AS T WHERE P.Id = Pt.PostId AND T.Id = Pt.TagId AND T.TagName = '##tag1##' AND P.PostTypeId = 1 AND P.AnswerCount = 0 AND P.Body LIKE '%##text##%' AND P.ClosedDate IS NULL AND P.CommunityOwnedDate IS NULL AND LENGTH(p.Body) < 1000 | sede |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text,
person_info_CSD text,
person_info_CSRQ time,
person_info_GJDM text,
person_info_GJMC text,
person_info_JGDM text,
person_info_JGMC text,
person_info_MZDM text,
person_info_MZMC text,
person_info_XBDM ... | 给我看钱天逸患者过往的门诊诊疗记录 | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.person_info_XM = '钱天逸' | css |
CREATE TABLE table_27409644_1 (
manager VARCHAR,
club VARCHAR
) | Who is the p rnu manager? | SELECT manager FROM table_27409644_1 WHERE club = "Pärnu" | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | how many medications is patient 025-39356 ordered in 2104? | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-39356')) AND STRFTIME('%y', medication.drugstarttime) = '2104' | eicu |
CREATE TABLE table_name_80 (
denomination VARCHAR,
year VARCHAR
) | What denomination was produced in 2006? | SELECT denomination FROM table_name_80 WHERE year = 2006 | sql_create_context |
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 is the method for ingestion of danazol? | SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'danazol' | mimic_iii |
CREATE TABLE table_name_18 (
film_title_used_in_nomination VARCHAR,
country VARCHAR
) | What was the film title nominated from the Netherlands? | SELECT film_title_used_in_nomination FROM table_name_18 WHERE country = "netherlands" | sql_create_context |
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... | 从01年3月9号到14年4月7号,患者姜和玉,836622这个指标怎么样 | SELECT * 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_info.person_i... | css |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | Create a bar chart showing maximal revenue across name, and rank in asc by the X. | SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter ORDER BY Name | nvbench |
CREATE TABLE table_15224 (
"Animal" text,
"Bahia" real,
"Pernambuco" real,
"Cear\u00e1" real,
"Rio G do Norte" real,
"Alagoas" real,
"Northeast Total" text,
"BR Ranking & %" text
) | What was the lowest number in Pernambuco where the Northeast had a total of 119978? | SELECT MIN("Pernambuco") FROM table_15224 WHERE "Northeast Total" = '119978' | wikisql |
CREATE TABLE table_54402 (
"Athlete" text,
"Event" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text
) | What was the final round result of Mohammad Reza Samadi? | SELECT "Final" FROM table_54402 WHERE "Athlete" = 'mohammad reza samadi' | wikisql |
CREATE TABLE table_name_54 (
attendance VARCHAR,
result VARCHAR
) | Which Attendance has a Result of l 29 23? | SELECT attendance FROM table_name_54 WHERE result = "l 29–23" | sql_create_context |
CREATE TABLE table_58097 (
"Year" real,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text
) | Who trained the horse with time of 1:09.40? | SELECT "Trainer" FROM table_58097 WHERE "Time" = '1:09.40' | wikisql |
CREATE TABLE table_203_782 (
id number,
"year" number,
"actor" text,
"award" text,
"category" text,
"role" text,
"episode" text,
"result" text
) | what was the number of awards received by nancy cartwright for her voice work on the simpsons between 1992 and 2011 . | SELECT COUNT(*) FROM table_203_782 WHERE "actor" = 'nancy cartwright' AND "year" >= 1992 AND "year" < 2011 | squall |
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
) | How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges. Show bar chart. | SELECT state, enr FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' | nvbench |
CREATE TABLE table_name_37 (
highway_commissioners VARCHAR
) | When Treasurer was treasurer, who was the highway commissioner? | SELECT highway_commissioners FROM table_name_37 WHERE "treasurer" = "treasurer" | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Visualize the relationship between Team_ID and School_ID , and group by attribute All_Neutral. | SELECT Team_ID, School_ID FROM basketball_match GROUP BY All_Neutral | nvbench |
CREATE TABLE table_49638 (
"Rank" real,
"1-year peak" text,
"5-year peak" text,
"10-year peak" text,
"15-year peak" text,
"20-year peak" text
) | What is the 20-year peak with emanuel lasker, 2816 as the 15-year peak? | SELECT "20-year peak" FROM table_49638 WHERE "15-year peak" = 'emanuel lasker, 2816' | wikisql |
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | Show me about the distribution of Sex and the sum of Weight , and group by attribute Sex in a bar chart, list in desc by the x axis. | SELECT Sex, SUM(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC | nvbench |
CREATE TABLE table_61388 (
"Season" text,
"Premier" real,
"First" real,
"Second" real,
"Total" real
) | What is the total number of Premier, when Second is '55'? | SELECT COUNT("Premier") FROM table_61388 WHERE "Second" = '55' | wikisql |
CREATE TABLE table_name_47 (
assembled VARCHAR,
elected VARCHAR
) | What is the assembled date of the parliament elected in 1620/21? | SELECT assembled FROM table_name_47 WHERE elected = "1620/21" | sql_create_context |
CREATE TABLE table_50513 (
"Rank" real,
"Name" text,
"Team(s)" text,
"Birth date" text,
"Death date" text,
"Age (as of 1 February 2014)" text,
"Nationality" text
) | What is the age of Fred Gibson? | SELECT "Age (as of 1 February 2014)" FROM table_50513 WHERE "Name" = 'fred gibson' | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | how many patients whose diagnoses long title is malignant neoplasm of descending colon and lab test category is hematology? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Malignant neoplasm of descending colon" AND lab."CATEGORY" = "Hematology" | mimicsql_data |
CREATE TABLE table_203_281 (
id number,
"season" number,
"pitcher" text,
"decision" text,
"final\nscore" text,
"opponent" text,
"location" text
) | what was the last season when mike scott was the opening day starter for the astros ? | SELECT MAX("season") FROM table_203_281 WHERE "pitcher" = 'mike scott' | squall |
CREATE TABLE table_36556 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
) | What school year has a AAAA class of college station a&m consolidated? | SELECT "School Year" FROM table_36556 WHERE "Class AAAA" = 'college station a&m consolidated' | wikisql |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm... | count the number of times that bupropion hcl has been prescribed during the previous year. | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'bupropion hcl' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | mimic_iii |
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
) | A bar chart showing how many representatives in each party. | SELECT Party, COUNT(Party) FROM representative GROUP BY Party | nvbench |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | 在2000年12月5日到2001年9月30日这段时间,优生咨询专科开的药品826917的开药量是多少? | SELECT COUNT(*) FROM t_kc22 WHERE MED_ORG_DEPT_NM = '优生咨询专科' AND STA_DATE BETWEEN '2000-12-05' AND '2001-09-30' AND SOC_SRT_DIRE_CD = '826917' | css |
CREATE TABLE table_54215 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
) | How many wins did Hale Irwin get with earnings smaller than 20,592,965? | SELECT SUM("Wins") FROM table_54215 WHERE "Player" = 'hale irwin' AND "Earnings( $ )" < '20,592,965' | wikisql |
CREATE TABLE table_34515 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
) | Game Site of hoosier dome, and a Result of l 7 31 involved what attendance? | SELECT "Attendance" FROM table_34515 WHERE "Game Site" = 'hoosier dome' AND "Result" = 'l 7–31' | wikisql |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 employees (
EMPLO... | For those employees who did not have any job in the past, for commission_pct, hire_date, visualize the trend. | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | nvbench |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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_... | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, sort by the y axis from low to high. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) | nvbench |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
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... | 从二00四年十月五日到二00八年十一月八日这段时间,患者苗宏壮检测指标938237找的哪些医务人员做的,这些医务人员的工号和姓名报一下 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 =... | css |
CREATE TABLE table_name_99 (
balls_faced INTEGER,
average VARCHAR,
sr VARCHAR,
innings VARCHAR
) | What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5? | SELECT SUM(balls_faced) FROM table_name_99 WHERE sr > 48.28 AND innings = 3 AND average < 5 | sql_create_context |
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,
... | 二零零二年三月二十五号之后患者18605753的住院就诊记录对应的检验报告单都有哪些都是什么住院就诊流水号? | 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 Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
) | Return me a scatter chart to show the star rating of the movie for each reviewer. | SELECT rID, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID | nvbench |
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 patients whose age is less than 50 and days of hospital stay is greater than 14? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "50" AND demographic.days_stay > "14" | 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,... | what is the number of patients whose diagnoses long title is candidiasis of mouth? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Candidiasis of mouth" | mimicsql_data |
CREATE TABLE table_10982 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | What bike does dean ellison ride? | SELECT "Bike" FROM table_10982 WHERE "Rider" = 'dean ellison' | wikisql |
CREATE TABLE table_62479 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What is Date, when Home Team is 'Everton'? | SELECT "Date" FROM table_62479 WHERE "Home team" = 'everton' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | what is the age and date of birth of patient id 2560? | SELECT demographic.age, demographic.dob FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_1176371_1 (
fc_matches INTEGER,
name_of_ground VARCHAR
) | What is the maximum fc matches at the racecourse? | SELECT MAX(fc_matches) FROM table_1176371_1 WHERE name_of_ground = "The Racecourse" | sql_create_context |
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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
d... | when was the first hospital discharge time until 3 years ago for patient 30763? | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 30763 AND DATETIME(admissions.dischtime) <= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
CREATE TABLE city (
City_ID int,
County_ID int,
Name text,
White real,
Black real,
Amerindian real,
Asian real,
Multiracial real,
Hispanic real
)
CREATE TABLE county_public_safety (
County_ID int,
Name text,
Population int,
Police_officers int,
Residents_per_offi... | I want to know the proportion of the number of counties for each police force. | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force | nvbench |
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 ... | 找一下患者鲁霞飞在医院8557825时的就诊记录里患者的入院科室名字不包括导管的住院记录 | SELECT * FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '鲁霞飞' AND hz_info.YLJGDM = '8557825' AND NOT zyjzjlb.JZKSMC LIKE '%导管%' | css |
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 ... | 列出所有检验指标在检验报告单60569450506里的代码、名称、结果定性、结果定量单位、结果定量、参考值范围下限与上限都是什么呢? | SELECT jyjgzbb.JCZBDM, jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDX, jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW, jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM jyjgzbb WHERE jyjgzbb.BGDH = '60569450506' | css |
CREATE TABLE table_22481 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | What is the GEO ID of the township with area of 32.532 square miles? | SELECT MAX("GEO ID") FROM table_22481 WHERE "Land ( sqmi )" = '32.532' | wikisql |
CREATE TABLE table_23811 (
"Date of opinion poll" text,
"Conductor" text,
"Sample size" real,
"For" text,
"Against" text,
"Undecided" text
) | When was Quantum Research's poll conducted? | SELECT "Date of opinion poll" FROM table_23811 WHERE "Conductor" = 'Quantum Research' | wikisql |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABL... | since 4 years ago, what are the top three most frequent specimen tests ordered for patients within 2 months after the diagnosis of exam-clincal trial? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | mimic_iii |
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... | 医院8988339从两千年五月十六日到一一年八月六日的门诊就诊中,有多少科室开出的检验报告单没超过1张 | 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 = '8988339' AND zyjybgb.BGRQ BETWEEN '2000-05-16' AND '2011-08-06' GROUP BY zyjybgb.KSBM HAVING COUNT(*) <= 1 UNION SELECT mzjybgb.KSBM FROM mzjzj... | css |
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,
... | 病人年龄7岁以上的医疗记录的平均医疗费总额有多少 | SELECT AVG(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_AGE > 7 UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_AGE > 7) | css |
CREATE TABLE table_name_44 (
mandate_end VARCHAR,
office VARCHAR,
name_a VARCHAR
) | When did Prime Minister Agathe Uwilingiyimana's mandate end? | SELECT mandate_end FROM table_name_44 WHERE office = "prime minister" AND name_a = "agathe uwilingiyimana" | sql_create_context |
CREATE TABLE Video_games (
gameid VARCHAR
)
CREATE TABLE Plays_games (
gameid VARCHAR
) | Show the game name that has most number of hours played. | SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_2897457_3 (
position VARCHAR,
nhl_team VARCHAR
) | Which position has new Jersey Devils as the nhl team? | SELECT position FROM table_2897457_3 WHERE nhl_team = "New Jersey Devils" | sql_create_context |
CREATE TABLE table_66857 (
"Year" real,
"Date" text,
"Title" text,
"Format(s)" text,
"Award description(s)" text,
"Result(s)" text
) | What is the title for year 1991 and a date of March 21? | SELECT "Title" FROM table_66857 WHERE "Year" = '1991' AND "Date" = 'march 21' | wikisql |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Give me a bar chart for total number of team id of each acc road, and sort in descending by the X. | SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC | nvbench |
CREATE TABLE table_33795 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | On what date is Hawthorn the home team? | SELECT "Date" FROM table_33795 WHERE "Home team" = 'hawthorn' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | provide the number of patients whose lab test abnormal status is abnormal and lab test name is rbc, joint fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "RBC, Joint Fluid" | mimicsql_data |
CREATE TABLE table_24231638_3 (
position_in_table VARCHAR,
date_of_vacancy VARCHAR
) | How many times was the date of vacancy 14 february 2011? | SELECT COUNT(position_in_table) FROM table_24231638_3 WHERE date_of_vacancy = "14 February 2011" | sql_create_context |
CREATE TABLE table_name_90 (
rank INTEGER,
location VARCHAR,
current_seating_capacity VARCHAR
) | What is the highest Rank, when Location is Kinshasa, DR Congo, and when Current Seating Capacity is less than 80,000? | SELECT MAX(rank) FROM table_name_90 WHERE location = "kinshasa, dr congo" AND current_seating_capacity < 80 OFFSET 000 | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.