context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE gyb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
排序出团伙成员18716926最常去的医院名称?
SELECT qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_ID = '18716926' GROUP BY qtb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_ID = '18716926' GROUP BY gyb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC UNION SELECT zyb.MED_SER_ORG_NO FROM zyb WHERE zyb.PERSON_ID = '18716926' GR...
css
CREATE TABLE table_name_66 ( score VARCHAR, opponent VARCHAR )
What was the score against fabrice martin?
SELECT score FROM table_name_66 WHERE opponent = "fabrice martin"
sql_create_context
CREATE TABLE table_31915 ( "Pick #" real, "MLS team" text, "Player" text, "Position" text, "Affiliation" text )
The position that has a pick # of 16 is what?
SELECT "Position" FROM table_31915 WHERE "Pick #" = '16'
wikisql
CREATE TABLE Document_locations ( location_code VARCHAR, date_in_location_from VARCHAR, date_in_locaton_to VARCHAR )
Show the location code, the starting date and ending data in that location for all the documents.
SELECT location_code, date_in_location_from, date_in_locaton_to FROM Document_locations
sql_create_context
CREATE TABLE table_name_56 ( away_team VARCHAR, venue VARCHAR )
Who was the away team when the VFL played at MCG?
SELECT away_team FROM table_name_56 WHERE venue = "mcg"
sql_create_context
CREATE TABLE train ( Train_ID int, Train_Num text, Name text, From text, Arrival text, Railway_ID int ) CREATE TABLE railway_manage ( Railway_ID int, Manager_ID int, From_Year text ) CREATE TABLE manager ( Manager_ID int, Name text, Country text, Working_year_starts...
Create a bar chart showing how many arrival across arrival, rank in desc by the y axis.
SELECT Arrival, COUNT(Arrival) FROM train GROUP BY Arrival ORDER BY COUNT(Arrival) DESC
nvbench
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, ...
specify birthdate and death status of patient james sloan
SELECT demographic.dob, demographic.expire_flag FROM demographic WHERE demographic.name = "James Sloan"
mimicsql_data
CREATE TABLE table_name_41 ( date VARCHAR, game_site VARCHAR )
What is the date of the game that took place at the Resch Center?
SELECT date FROM table_name_41 WHERE game_site = "resch center"
sql_create_context
CREATE TABLE table_41822 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
How many Gold medals did Japan receive who had a Total of more than 1 medals?
SELECT SUM("Gold") FROM table_41822 WHERE "Nation" = 'japan' AND "Total" > '1'
wikisql
CREATE TABLE table_52046 ( "Current Governor" text, "State" text, "Past" text, "Took office" real, "Current term" text )
What state is susana martinez from?
SELECT "State" FROM table_52046 WHERE "Current Governor" = 'susana martinez'
wikisql
CREATE TABLE Performers_in_Bookings ( Order_ID INTEGER, Performer_ID INTEGER ) CREATE TABLE Products ( Product_ID VARCHAR(100), Product_Name VARCHAR(255), Product_Price DECIMAL(20,4), Product_Description VARCHAR(255), Other_Product_Service_Details VARCHAR(255) ) CREATE TABLE Addresses ( ...
Show me a bar chart for how many drama workshop groups are there in each city? Return both the city and the count, rank by the y axis in desc please.
SELECT City_Town, COUNT(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town ORDER BY COUNT(*) DESC
nvbench
CREATE TABLE table_8925 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Location" text )
What is Location, when Result is 28-21?
SELECT "Location" FROM table_8925 WHERE "Result" = '28-21'
wikisql
CREATE TABLE table_128 ( "1953" text, "party" text, "Manhattan" text, "The Bronx" text, "Brooklyn" text, "Queens" text, "Richmond [Staten Is.]" text, "Total" real, "%" text )
What number of voters did the Bronx have when the total number was 2054?
SELECT "The Bronx" FROM table_128 WHERE "Total" = '2054'
wikisql
CREATE TABLE table_16851 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text )
What years were the Iowa State school/club team have a jazz club?
SELECT "Years for Jazz" FROM table_16851 WHERE "School/Club Team" = 'Iowa State'
wikisql
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
count the number of patients whose marital status is divorced and diagnoses short title is ocl crtd art wo infrct?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "DIVORCED" AND diagnoses.short_title = "Ocl crtd art wo infrct"
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, ...
在编码为5841169的医院中列出患者马幼安门诊诊断名称包含后的门诊就诊记录啊?
SELECT * FROM person_info JOIN hz_info JOIN wdmzjzjlb 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 WHERE person_info.XM = '马幼安' AND hz_info.YLJGDM = '5841169' AND wdmzjzjlb.JZZDSM LIKE '%后%' UNION SELECT * FROM person_info JOIN hz...
css
CREATE TABLE table_name_70 ( series_4 VARCHAR, series_1 VARCHAR )
What is the series 4 with sarah newman in series 1?
SELECT series_4 FROM table_name_70 WHERE series_1 = "sarah newman"
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 ) ...
How many female patients have a government insurance policy?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.insurance = "Government"
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, ...
09年10月8日到13年11月23日期间,患者84974890的369859指标是怎样的
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.RYBH = '...
css
CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal bool...
Answer count by days since question asked.
WITH sub AS (SELECT Id, CAST((JULIANDAY((SELECT CreationDate FROM Posts AS a WHERE a.Id = q.AcceptedAnswerId)) - JULIANDAY(CreationDate)) * 1440.0 AS INT) AS mins FROM Posts AS q WHERE PostTypeId = 1) SELECT mins, COUNT(Id) FROM sub GROUP BY mins HAVING mins >= 0 ORDER BY mins
sede
CREATE TABLE table_33463 ( "Network" text, "Origin of Programming" text, "Language" text, "Genre" text, "Service" text )
What genre is Set Max's Hindi programming?
SELECT "Genre" FROM table_33463 WHERE "Language" = 'hindi' AND "Network" = 'set max'
wikisql
CREATE TABLE table_25548630_1 ( fl VARCHAR, series VARCHAR )
How many F.L. are listed for Formula Three Euroseries?
SELECT COUNT(fl) FROM table_25548630_1 WHERE series = "Formula Three Euroseries"
sql_create_context
CREATE TABLE table_name_24 ( road_team VARCHAR, game VARCHAR )
what team played in game 2
SELECT road_team FROM table_name_24 WHERE game = "game 2"
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, ...
count the number of patients whose lab test abnormal status is delta and lab test name is c-reactive protein.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "delta" AND lab.label = "C-Reactive Protein"
mimicsql_data
CREATE TABLE table_name_92 ( successes VARCHAR, rocket VARCHAR, type VARCHAR, launches VARCHAR, country VARCHAR )
What is the number of successes for rockets that have more than 3 launches, were based in Russia, are type soyuz and a rocket type of soyuz-u?
SELECT COUNT(successes) FROM table_name_92 WHERE launches > 3 AND country = "russia" AND type = "soyuz" AND rocket = "soyuz-u"
sql_create_context
CREATE TABLE table_16937 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real )
what's the location with tournament value of quicksilver classic
SELECT "Location" FROM table_16937 WHERE "Tournament" = 'Quicksilver Classic'
wikisql
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_diag...
is the level of heart rate in patient 3911 last measured on the last intensive care unit visit less than the value second to last measured on the last intensive care unit visit?
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3911) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents....
mimic_iii
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( ...
calculate the number of times that patient 006-158338 has had volume (ml) insulin intake on this month/27.
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-158338')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.c...
eicu
CREATE TABLE table_18156 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Results" text, "Candidates" text )
What were the candidates in the district that first elected in 1980?
SELECT "Candidates" FROM table_18156 WHERE "First elected" = '1980'
wikisql
CREATE TABLE table_name_21 ( position VARCHAR, main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR )
What position is there when the main contestant is Vishal Singh and the scores are 1 + 7 + 5 = 13?
SELECT position FROM table_name_21 WHERE main_contestant = "vishal singh" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13
sql_create_context
CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, View...
Most used tags without excerpts.
SELECT * FROM Tags AS t WHERE t.Count > 0 AND t.ExcerptPostId IS NULL ORDER BY t.Count DESC LIMIT 50
sede
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text ) 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 te...
患者92569406自二零零九年三月十六日开始,截止到二零一八年十一月二十五日,由哪几位医务人员为其检测指标591618的,查查这些医务人员的工号及姓名
SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info JOIN person_info 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 ...
css
CREATE TABLE table_16770037_3 ( tries_against INTEGER, team VARCHAR, Bridgend VARCHAR )
What are the tries against when they played against Bridgend?
SELECT MAX(tries_against) FROM table_16770037_3 WHERE team = Bridgend
sql_create_context
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE procedures_icd ( row_id number, subject_id number, ...
what was the name of the procedure that's been performed to patient 94293 two or more times in 01/last year?
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 942...
mimic_iii
CREATE TABLE table_67751 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
On which Date was there a record of 11-8?
SELECT "Date" FROM table_67751 WHERE "Record" = '11-8'
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
which type of drug is voriconazole?
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Voriconazole"
mimicsql_data
CREATE TABLE table_name_69 ( transfer_window VARCHAR, name VARCHAR )
What is the transfer window for Hleb?
SELECT transfer_window FROM table_name_69 WHERE name = "hleb"
sql_create_context
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number...
this year, what are the three most frequently performed procedures for patients within 2 months after receiving a arterial catheterization?
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admi...
mimic_iii
CREATE TABLE table_67027 ( "Title" text, "Year" text, "Developer" text, "Publisher" text, "Platform" text )
For what platform does Mindark publish?
SELECT "Platform" FROM table_67027 WHERE "Publisher" = 'mindark'
wikisql
CREATE TABLE table_24599 ( "Season no." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. Viewers (millions)" text )
What was the season number episode directed by John David Coles?
SELECT "Season no." FROM table_24599 WHERE "Directed by" = 'John David Coles'
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...
在2008年12月3日到2009年2月15日期间参保人号码为25470826的在门诊西药费花了多少?
SELECT SUM(t_kc22.AMOUNT) 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_ID = '25470826' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2008-12-03' AND '2009-02-15' AND t_kc22.MED_I...
css
CREATE TABLE table_name_30 ( player VARCHAR, round VARCHAR, pick VARCHAR )
Who was pick 16 and before round 10?
SELECT player FROM table_name_30 WHERE round < 10 AND pick = 16
sql_create_context
CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, ...
on 8 30 i would like a flight from DENVER to SAN FRANCISCO in the early am
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 = 'SAN FRANCISCO' AND date_day.day_number = 30 AND date_day.month_number = ...
atis
CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
0655431这家医院全部医疗就诊的记录里患者平均是多少岁,按照科室名字和入院诊断的病名不一样查询一下,再把里面平均年龄比3岁小的记录保留下来
SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '0655431' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM HAVING AVG(t_kc21.PERSON_AGE) < 3
css
CREATE TABLE table_204_712 ( id number, "rank" number, "athlete" text, "nationality" text, "time" text, "notes" text )
which competitor was ranked first ?
SELECT "athlete" FROM table_204_712 WHERE id = 1
squall
CREATE TABLE table_63573 ( "# [a ]" text, "Manager" text, "Years" text, "Wins" real, "Losses" real, "WPct" real )
Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904?
SELECT "Manager" FROM table_63573 WHERE "Losses" < '287' AND "Wins" < '80' AND "Years" = '1904' AND "WPct" = '0.296'
wikisql
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...
手术量第一与手术量倒数第一的科室在13年5月14日到2017年6月20日内的手术量相差多少?
SELECT (SELECT COUNT(*) FROM t_kc22 WHERE STA_DATE BETWEEN '2013-05-14' AND '2017-06-20' AND MED_INV_ITEM_TYPE = '手术费' GROUP BY MED_ORG_DEPT_CD ORDER BY COUNT(*) DESC LIMIT 1) - (SELECT COUNT(*) FROM t_kc22 WHERE STA_DATE BETWEEN '2013-05-14' AND '2017-06-20' AND MED_INV_ITEM_TYPE = '手术费' GROUP BY MED_ORG_DEPT_CD ORDER...
css
CREATE TABLE table_24584 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
who wrote the no 2?
SELECT "Written by" FROM table_24584 WHERE "No." = '2'
wikisql
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9cod...
today', what was first sao2 value of patient 027-82318?
SELECT vitalperiodic.sao2 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND NOT vitalperiodic.sao2 IS NULL AND DATETIME(v...
eicu
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name te...
what was the total amount of br milk fs po that patient 13329 has been taking on the first intensive care unit visit?
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13329) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND inputevents_...
mimic_iii
CREATE TABLE table_name_25 ( gold INTEGER, nation VARCHAR, total VARCHAR )
How many golds for uganda with under 3 total medals?
SELECT MAX(gold) FROM table_name_25 WHERE nation = "uganda" AND total < 3
sql_create_context
CREATE TABLE table_178242_1 ( premiere___aired VARCHAR, channel VARCHAR )
When did the program air on Vier?
SELECT premiere___aired FROM table_178242_1 WHERE channel = "VIER"
sql_create_context
CREATE TABLE table_name_9 ( street_address VARCHAR, name VARCHAR )
What is the street address of the van antwerp building?
SELECT street_address FROM table_name_9 WHERE name = "van antwerp building"
sql_create_context
CREATE TABLE table_204_928 ( id number, "year" number, "album" text, "territory" text, "label" text, "notes" text )
what is the name of blokshok records third studio album ?
SELECT "album" FROM table_204_928 WHERE "label" = 'blokshok records' AND "notes" = 'third studio album'
squall
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...
自二零零七年五月二十六日开始,截止到二零一四年五月十一日,患者金清懿的病历里最主要的是哪种病
SELECT qtb.IN_DIAG_DIS_CD, qtb.IN_DIAG_DIS_NM FROM qtb WHERE qtb.PERSON_NM = '金清懿' AND qtb.IN_HOSP_DATE BETWEEN '2007-05-26' AND '2014-05-11' GROUP BY qtb.IN_DIAG_DIS_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT gyb.IN_DIAG_DIS_CD, gyb.IN_DIAG_DIS_NM FROM gyb WHERE gyb.PERSON_NM = '金清懿' AND gyb.IN_HOSP_DATE BETWEEN '...
css
CREATE TABLE table_name_91 ( second VARCHAR, third VARCHAR )
Which second's third is Jean-Michel Arsenault?
SELECT second FROM table_name_91 WHERE third = "jean-michel arsenault"
sql_create_context
CREATE TABLE table_11960944_4 ( team VARCHAR, high_points VARCHAR )
Which team was played when the high points was from Wallace (20)?
SELECT team FROM table_11960944_4 WHERE high_points = "Wallace (20)"
sql_create_context
CREATE TABLE table_675 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
what are all the result for New York 7 district
SELECT "Result" FROM table_675 WHERE "District" = 'New York 7'
wikisql
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, val...
what were the three most common specimen tests performed until 2 years ago?
SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 3
mimic_iii
CREATE TABLE table_name_82 ( notes VARCHAR, vehicle VARCHAR, ceased_operation VARCHAR )
What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?
SELECT notes FROM table_name_82 WHERE vehicle = "scout x-4" AND ceased_operation = "june 1971"
sql_create_context
CREATE TABLE table_21092444_1 ( date VARCHAR, result VARCHAR, opponent VARCHAR )
Name the date for result loss for duke
SELECT date FROM table_21092444_1 WHERE result = "Loss" AND opponent = "Duke"
sql_create_context
CREATE TABLE table_13299 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance?
SELECT SUM("Week") FROM table_13299 WHERE "Opponent" = 'tampa bay buccaneers' AND "Attendance" < '60,320'
wikisql
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost numb...
what's the cost for a chloride, ascites laboratory test?
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 = 'chloride, ascites'))
mimic_iii
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,...
16057841828的医疗就诊记录里花费的全部医疗费用
SELECT t_kc21.MED_AMOUT FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '16057841828'
css
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...
医疗就诊94037456658中天冬酸氨基转移酶线粒在三大目录类别里面是哪个类别的
SELECT t_kc22.DIRE_TYPE FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '94037456658' AND t_kc22.SOC_SRT_DIRE_NM = '天冬酸氨基转移酶线粒'
css
CREATE TABLE table_24540893_6 ( pick__number VARCHAR, school VARCHAR )
Where was the player from se missouri state drafted?
SELECT COUNT(pick__number) FROM table_24540893_6 WHERE school = "SE Missouri State"
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...
what is primary disease and procedure long title of subject id 2560?
SELECT demographic.diagnosis, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560"
mimicsql_data
CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Documents_with_Expenses ( Document_ID INTEG...
Show the number of documents in each day for all documents on project with details 'Graph Database project' and bin document date by year interval with a line chart, I want to sort in ascending by the x axis please.
SELECT Document_Date, COUNT(Document_Date) FROM Documents AS T1 JOIN Projects AS T2 ON T1.Project_ID = T2.Project_ID WHERE T2.Project_Details = 'Graph Database project' ORDER BY Document_Date
nvbench
CREATE TABLE table_56375 ( "State" text, "Swimsuit" real, "Evening gown" real, "Interview" real, "Average" real )
How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?
SELECT SUM("Average") FROM table_56375 WHERE "Swimsuit" = '8.42' AND "Evening gown" < '8.71'
wikisql
CREATE TABLE table_name_28 ( game VARCHAR, record VARCHAR )
Which game had a 9-7 record?
SELECT game FROM table_name_28 WHERE record = "9-7"
sql_create_context
CREATE TABLE mzjzjlb ( YLJGDM text, JZLSH text, KH text, KLX number, MJZH text, HZXM text, NLS number, NLY number, ZSEBZ number, JZZTDM number, JZZTMC text, JZJSSJ time, TXBZ number, ZZBZ number, WDBZ number, JZKSBM text, JZKSMC text, JZKSRQ time, ...
在15年1月24号到17年7月1号期间医疗机构6950309住院时长超过27天的住院就诊记录数是多少?
SELECT COUNT(*) FROM zyjzjlb WHERE YLJGDM = '6950309' AND RYDJSJ BETWEEN '2015-01-24' AND '2017-07-01' AND DATEDIFF(CYSJ, RYSJ) > 27
css
CREATE TABLE table_197638_7 ( french_open INTEGER, player VARCHAR )
When is the French Open when serena williams is the player?
SELECT MIN(french_open) FROM table_197638_7 WHERE player = "Serena Williams"
sql_create_context
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 ...
被门诊诊断为D87.114这个病的患者04324529,看看他的检测指标451191的结果定量及其单位
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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...
css
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...
calculate the number of dead patients who were admitted to hospital before 2123.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.admityear < "2123"
mimicsql_data
CREATE TABLE table_64610 ( "Rider" text, "Bike" text, "Laps" real, "Time" text, "Grid" real )
What is the highest grid that has +44.866 as the time, with laps greater than 25?
SELECT MAX("Grid") FROM table_64610 WHERE "Time" = '+44.866' AND "Laps" > '25'
wikisql
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TA...
how much is the difference between the total amount of input and the output of patient 030-53416 on 06/02/this year.
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 = '030-53416')) AND intakeoutput.cellpath L...
eicu
CREATE TABLE table_27537518_7 ( date VARCHAR, first_star VARCHAR )
What date was M. Grabovski the first start of the game?
SELECT date FROM table_27537518_7 WHERE first_star = "M. Grabovski"
sql_create_context
CREATE TABLE Guests ( guest_id INTEGER, gender_code CHAR(1), guest_first_name VARCHAR(80), guest_last_name VARCHAR(80), date_of_birth DATETIME ) CREATE TABLE Apartments ( apt_id INTEGER, building_id INTEGER, apt_type_code CHAR(15), apt_number CHAR(10), bathroom_count INTEGER, ...
Show the number of start dates of all the apartment bookings for each weekday with a bar chart.
SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id
nvbench
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...
病号13405731在19年2月9日到20年11月19日内被开出过哪些检验报告单它们的检验报告单号都是啥?
SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '13405731' AND jybgb.BGRQ BETWEEN '2019-02-09' AND '2020-11-19' UNION...
css
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, U...
LogScale reputation distribution, 1% bin precision.
SELECT POWER(1.02, bin) AS approx_rep, COUNT(*) AS n FROM (SELECT FLOOR(LN(Reputation) / LN(1.02) + 0.5) AS bin FROM Users WHERE Reputation < 1000 AND Reputation > 101) AS temp GROUP BY bin ORDER BY bin
sede
CREATE TABLE table_name_46 ( score_in_the_final VARCHAR, date VARCHAR )
What was the final score on the February 19, 2012 final?
SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012"
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...
在患者任英媛的医疗记录中,他的药品消费金额在2878.63元以上的医疗就诊有哪几次?编号是什么
SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '任英媛' AND NOT qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT < 2878.63) UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '任英媛' AND NOT gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT...
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 )
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and code , and group by attribute name, I want to order in asc by the x axis.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name
nvbench
CREATE TABLE table_26945 ( "Name" text, "Position" text, "Period" text, "Appearances\u00b9" real, "Goals\u00b9" real, "Nationality\u00b2" text )
How many periods had 15 goals?
SELECT COUNT("Period") FROM table_26945 WHERE "Goals\u00b9" = '15'
wikisql
CREATE TABLE table_60777 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text )
What team 1 has a team 2 of universidad nacional?
SELECT "Team 1" FROM table_60777 WHERE "Team 2" = 'universidad nacional'
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...
Count the number of patients whose ethnicity is Hispanic or Latino and have a lab test name of specific gravity.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND lab.label = "Specific Gravity"
mimicsql_data
CREATE TABLE flight ( id int, Vehicle_Flight_number text, Date text, Pilot text, Velocity real, Altitude real, airport_id int, company_id int ) CREATE TABLE airport ( id int, City text, Country text, IATA text, ICAO text, name text ) CREATE TABLE operate_company...
Return a histogram on what are the ids and names of the companies that operated more than one flight?, display in asc by the x axis please.
SELECT T1.name, T1.id FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id ORDER BY T1.name
nvbench
CREATE TABLE church ( church_id number, name text, organized_by text, open_date number, continuation_of text ) CREATE TABLE wedding ( church_id number, male_id number, female_id number, year number ) CREATE TABLE people ( people_id number, name text, country text, i...
How many churches have a wedding in year 2016?
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE year = 2016
spider
CREATE TABLE table_name_63 ( result VARCHAR, week VARCHAR )
Can you tell me the Result that has the Week of 5?
SELECT result FROM table_name_63 WHERE week = 5
sql_create_context
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, Cr...
Low scoring questions with high scoring answers.
SELECT q.Id AS question_id, q.Title AS question_title, q.ViewCount AS views, q.Score AS question_score, a.Score AS answer_score, a.Id AS answer_id, a.OwnerUserId AS answer_user, Users.DisplayName AS username, a.OwnerDisplayName AS unregistered_name FROM Posts AS q JOIN Posts AS a ON a.ParentId = q.Id JOIN (SELECT Paren...
sede
CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
阿戈美拉汀片的检查记录,在医疗机构8564108有多少?
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.MED_SER_ORG_NO = '8564108' AND t_kc22.SOC_SRT_DIRE_NM = '阿戈美拉汀片'
css
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
had patient 14990's arterial bp [systolic] levels been normal since 09/2100?
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 = 14990)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [syst...
mimic_iii
CREATE TABLE table_name_6 ( national_team VARCHAR, year VARCHAR )
Which National team has a Year of total?
SELECT national_team FROM table_name_6 WHERE year = "total"
sql_create_context
CREATE TABLE table_11892 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
On which date did Footscray play an away game?
SELECT "Date" FROM table_11892 WHERE "Away team" = 'footscray'
wikisql
CREATE TABLE table_11481 ( "Year" real, "Chassis" text, "Engine" text, "Tyres" text, "Points" real )
Tell me the average points with tyres of b and chassis of tf109
SELECT AVG("Points") FROM table_11481 WHERE "Tyres" = 'b' AND "Chassis" = 'tf109'
wikisql
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number...
Quality of questions For an answer.
SELECT AVG(CAST(q.Score AS FLOAT(15, 5))) FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE a.OwnerUserId = '##UserId##'
sede
CREATE TABLE table_59641 ( "Team" text, "Driver" text, "Class" text, "Chassis" text, "Engine" text, "Rounds" text )
How many rounds did shirley van der lof go?
SELECT "Rounds" FROM table_59641 WHERE "Driver" = 'shirley van der lof'
wikisql
CREATE TABLE table_75669 ( "Call sign" text, "Frequency MHz" text, "City of license" text, "ERP W" text, "FCC info" text )
Which ERP W has a Frequency MHz of 88.5 FM?
SELECT "ERP W" FROM table_75669 WHERE "Frequency MHz" = '88.5 fm'
wikisql
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) 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 ( LOCATIO...
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a line chart about the change of employee_id over hire_date , and rank by the x axis in asc.
SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE
nvbench
CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_proje...
Are there any section available after 10:00 for BIT 601 ?
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'BIT' AND course.number = 601 AND semester.semester = 'WN' AND s...
advising