source
stringclasses 25
values | schema_syll
stringlengths 26
5.37k
| schema_word
stringlengths 26
5.37k
| question_syll
stringlengths 0
1.08k
| question_word
stringlengths 0
1.11k
| query_syll
stringlengths 0
4.53k
| query_word
stringlengths 0
4.53k
|
---|---|---|---|---|---|---|
sql_create_context | CREATE TABLE table name 90(mạng VARCHAR,lap by lap VARCHAR) | CREATE TABLE table_name_90(mạng VARCHAR,lap_by_lap VARCHAR) | Mạng nào có Bill Weber cho từng vòng? | Mạng nào có Bill_Weber cho từng vòng ? | SELECT mạng FROM table name 90 WHERE lap by lap = "bill weber" | SELECT mạng FROM table_name_90 WHERE lap_by_lap = "bill weber" |
wikisql | CREATE TABLE table 48253("Quê hương" text,"sơ bộ" real,"Phỏng vấn" real,"Áo tắm" real,"Áo choàng dạ hội" real,"Trung bình" real) | CREATE TABLE table_48253("Quê_hương" text,"sơ_bộ" real,"Phỏng_vấn" real,"Áo_tắm" real,"Áo_choàng dạ_hội" real,"Trung_bình" real) | Số phỏng vấn ở Louisiana là bao nhiêu và số áo tắm lớn hơn 9,1? | Số phỏng_vấn ở Louisiana là bao_nhiêu và số áo_tắm lớn hơn 9,1 ? | SELECT COUNT ( "Phỏng vấn" ) FROM table 48253 WHERE "Quê hương" = 'louisiana' AND "Áo tắm" > '9.1' | SELECT COUNT ( "Phỏng_vấn" ) FROM table_48253 WHERE "Quê_hương" = "louisiana" AND "Áo_tắm" > "9.1" |
wikisql | CREATE TABLE table 48019("Res." text,"Record" text,"Đối thủ" text,"Phương thức" text,"Sự kiện" text,"Vòng" text) | CREATE TABLE table_48019("Res." text,"Record" text,"Đối_thủ" text,"Phương_thức" text,"Sự_kiện" text,"Vòng" text) | Phương pháp giành chiến thắng ở hiệp 2 trước Nick Gilardi là gì? | Phương_pháp giành chiến_thắng ở hiệp 2 trước Nick_Gilardi là gì ? | SELECT "Phương thức" FROM table 48019 WHERE "Vòng" = '2' AND "Res." = 'thắng' AND "Đối thủ" = 'nick gilardi' | SELECT "Phương_thức" FROM table_48019 WHERE "Vòng" = "2" AND "Res." = "thắng" AND "Đối_thủ" = "nick gilardi" |
squall | CREATE TABLE table 203 621(id number,"player" text,"trận đấu đã chơi" number,"số phút đã chơi" number,"số phút chơi mỗi trận" number,"số lần bật lại" number,"số lần bật lại mỗi trò chơi" number,"hỗ trợ" number,"hỗ trợ mỗi trận" number,"số bàn thắng trên sân %" number,"ném phạt %" number,"3 điểm %" number,"điểm" number,"điểm mỗi trò chơi" number) | CREATE TABLE table_203_621(id number,"player" text,"trận đấu đã chơi" number,"số phút đã chơi" number,"số phút chơi mỗi trận" number,"số lần bật lại" number,"số lần bật lại mỗi trò_chơi" number,"hỗ_trợ" number,"hỗ_trợ mỗi trận" number,"số bàn thắng trên sân %" number,"ném phạt %" number,"3 điểm %" number,"điểm" number,"điểm mỗi trò_chơi" number) | Allan Houston đã chơi nhiều hơn Mark Jackson bao nhiêu trò chơi? | Allan Houston đã chơi nhiều hơn Mark_Jackson bao_nhiêu trò_chơi ? | SELECT ( SELECT "trò chơi đã chơi" FROM table 203 621 WHERE "player" = 'allan houston' ) ( SELECT "trò chơi đã chơi" FROM table 203 621 WHERE "player" = 'mark jackson' ) | SELECT ( SELECT "trò_chơi đã chơi" FROM table_203_621 WHERE "player" = "allan houston" ) ( SELECT "trò_chơi đã chơi" FROM table_203_621 WHERE "player" = "mark jackson" ) |
sql_create_context | CREATE TABLE table 19810459 1(origin team VARCHAR,kết quả VARCHAR) | CREATE TABLE table_19810459_1(origin_team VARCHAR,kết_quả VARCHAR) | Thí sinh đứng ở vị trí thứ 10 ban đầu là đội nào? | Thí_sinh đứng ở vị_trí thứ 10 ban_đầu là đội nào ? | SELECT original team FROM table 19810459 1 WHERE result = "vị trí thứ 10" | SELECT original_team FROM table_19810459_1 WHERE result = "vị_trí thứ 10" |
squall | CREATE TABLE table 204 246(id number,"bộ" text,"tổng số đại biểu" number,"đại biểu đơn danh" number,"đại biểu đa danh" number,"đại biểu bản địa đặc biệt hoặc đại biểu campesino" number,"thượng nghị sĩ" number) | CREATE TABLE table_204_246(id number,"bộ" text,"tổng_số đại_biểu" number,"đại_biểu đơn_danh" number,"đại_biểu đa_danh" number,"đại_biểu bản_địa đặc_biệt hoặc đại_biểu campesino" number,"thượng_nghị_sĩ" number) | mỗi cơ quan lập pháp của Bolivia có ít nhất bao nhiêu đại biểu . | mỗi cơ_quan lập_pháp của Bolivia có ít_nhất bao_nhiêu đại_biểu . | SELECT MIN ( "tổng số đại biểu" ) FROM bảng 204 246 | SELECT MIN ( "tổng_số đại_biểu" ) FROM bảng_204_246 |
nvbench | CREATE TABLE Sản phẩm(Mã INTEGER,Tên VARCHAR(255),Giá DECIMAL,Nhà sản xuất INTEGER) CREATE TABLE Nhà sản xuất(Mã INTEGER,Tên VARCHAR(255),Trụ sở chính VARCHAR(255),Người sáng lập VARCHAR(255),Doanh thu REAL) | CREATE TABLE Sản_phẩm(Mã INTEGER,Tên VARCHAR(255),Giá_DECIMAL,Nhà_sản_xuất INTEGER) CREATE TABLE Nhà_sản_xuất(Mã INTEGER,Tên VARCHAR(255),Trụ_sở chính VARCHAR(255),Người sáng_lập VARCHAR(255),Doanh_thu REAL) | Chọn tên của từng nhà sản xuất cùng với giá của sản phẩm đắt nhất bằng biểu đồ thanh, xếp hạng Tên theo thứ tự tăng dần. | Chọn tên của từng nhà_sản_xuất cùng với giá của sản_phẩm đắt nhất bằng biểu_đồ thanh , xếp_hạng Tên theo thứ_tự tăng dần . | SELECT T2.Name, MAX ( T1.Price ) FROM Sản phẩm AS T1 JOIN Nhà sản xuất AS T2 ON T1.Nhà sản xuất = T2.Code GROUP BY T2.Name ORDER BY Tên | SELECT T2.Name, MAX ( T1.Price ) FROM Sản_phẩm AS T1 JOIN Nhà_sản_xuất AS T2 ON T1.Nhà_sản_xuất = T2.Code GROUP BY T2.Name ORDER BY Tên |
sql_create_context | CREATE TABLE table name 12(tiền tệ VARCHAR,tỷ giá trung tâm VARCHAR) | CREATE TABLE table_name_12(tiền_tệ VARCHAR,tỷ_giá trung_tâm VARCHAR) | Loại tiền tệ nào có tỷ giá trung tâm là 0,702804? | Loại tiền_tệ nào có tỷ_giá trung_tâm là 0,702804 ? | SELECT tiền tệ FROM tên bảng 12 WHERE central rate = "0,702804" | SELECT tiền_tệ FROM tên_bảng_12 WHERE central_rate = "0,702804" |
eicu | CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLEallergy(allergyid number,BNunitstayid number,drugname text,allergyname text,thời gian dị ứng time) CREATE TABLE điều trị(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE lab(labid number,Patientunitstayid number,tên phòng thí nghiệm text,kết quả xét nghiệm number,labresulttime time) CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE bệnh nhân(duy nhất text,bệnh nhânhệ thống sức khỏelưu trúid number,bệnh nhânđơn vị ở lạiid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu trú number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn tiếp nhận bệnh viện text,thời gian nhập viện của đơn vị time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) | CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLEallergy(allergyid number,BNunitstayid number,drugname text,allergyname text,thời_gian dị_ứng time) CREATE TABLE điều_trị(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE lab(labid number,Patientunitstayid number,tên phòng_thí_nghiệm text,kết_quả xét_nghiệm number,labresulttime time) CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE bệnh_nhân(duy_nhất text,bệnh nhânhệ_thống sức khỏelưu trúid number,bệnh nhânđơn_vị ở lạiid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu trú number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn tiếp_nhận bệnh_viện text,thời_gian nhập_viện của đơn_vị time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) | hiển thị sự thay đổi cân nặng của bệnh nhân 006-232166 thứ hai đo được trong lần khám bệnh gần đây nhất so với giá trị đo được lần đầu tiên trong lần khám bệnh gần đây nhất? | hiển_thị_sự thay_đổi cân nặng của bệnh_nhân 006 - 232166 thứ hai đo được trong lần khám bệnh gần đây nhất so với giá_trị đo được lần đầu_tiên trong lần khám bệnh gần đây nhất ? | SELECT ( SELECT bệnh nhân.admissionweight FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '006232166' AND NOT bệnh nhân.hospitaldischargetime IS NULL ORDER BY bệnh nhân.thời gian nhập viện DESC LIMIT 1 ) AND NOT bệnh nhân.cân nặng nhập viện IS NULL ORDER BY bệnh nhân.thời gian nhập viện LIMIT 1 OFF SET 1 ) ( SELECT bệnh nhân.cân nặng nhập viện FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '006232166' AND NOT bệnh nhân.thời gian xuất viện bệnh nhân IS NULL ORDER BY bệnh nhân.hospitaladmittime DESC LIMIT 1 ) AND NOT bệnh nhân.cân nặng nhập viện IS NULL ORDER BY bệnh nhân.đơn vị thời gian nhập viện LIMIT 1 ) | SELECT ( SELECT bệnh_nhân.admissionweight FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "006 232166" AND NOT bệnh_nhân.hospitaldischargetime IS NULL ORDER BY bệnh_nhân.thời_gian nhập_viện DESC LIMIT 1 ) AND NOT bệnh_nhân.cân nặng nhập_viện IS NULL ORDER BY bệnh_nhân.thời_gian nhập_viện LIMIT 1 OFF SET 1 ) ( SELECT bệnh_nhân.cân nặng nhập_viện FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "006 232166" AND NOT bệnh_nhân.thời_gian xuất_viện bệnh_nhân IS NULL ORDER BY bệnh_nhân.hospitaladmittime DESC LIMIT 1 ) AND NOT bệnh_nhân.cân nặng nhập_viện IS NULL ORDER BY bệnh_nhân.đơn_vị thời_gian nhập_viện LIMIT 1 ) |
squall | CREATE TABLE table 203 788(id number,"năm" number,"tác giả" text,"họa sĩ minh họa" text,"tiêu đề" text,"nhà xuất bản" text) | CREATE TABLE table_203_788(id number,"năm" number,"tác_giả" text,"họa_sĩ minh_họa" text,"tiêu_đề" text,"nhà_xuất_bản" text) | Đã bao nhiêu lần Anthony Browne giành được giải thưởng Kurt Maschler về minh họa? | Đã bao_nhiêu lần Anthony_Browne giành được giải_thưởng Kurt_Maschler về minh_họa ? | SELECT COUNT ( * ) FROM table 203 788 WHERE "họa sĩ minh họa" = 'Anthony browne' | SELECT COUNT ( * ) FROM table_203_788 WHERE "họa_sĩ minh_họa" = "Anthony_browne" |
mimic_iii | CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) 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 tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,địa điểm nhập viện text,địa điểm xuất viện text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,money number) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE đơn thuốc(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 thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,Charttime time) 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 cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,giá trị text) | CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) 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 tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,địa_điểm nhập_viện text,địa_điểm xuất_viện text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,money number) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE đơn thuốc(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 thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,Charttime time) 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 cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,giá_trị text) | cho tôi biết liệu huyết áp động mạch của bệnh nhân 1798 có lớn hơn 94,0 kể từ 153 tháng trước không? | cho tôi biết liệu huyết_áp động_mạch của bệnh_nhân 1798 có lớn hơn 94,0 kể từ 153 tháng trước không ? | SELECT COUNT ( * ) > 0 FROM Chartevents WHERE Chartevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 1798 ) ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'trung bình bp động mạch' AND d items.linksto = 'chartevents' ) AND Chartevents.valuenum > 94.0 AND ( chartevents.charttime ) >= DATETIME ( DATETIME ( ) ,'153 tháng' ) | SELECT COUNT ( * ) > 0 FROM Chartevents WHERE Chartevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 1798 ) ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "trung_bình bp động_mạch" AND d_items.linksto = "chartevents" ) AND Chartevents.valuenum > 94.0 AND _ ( chartevents.charttime ) > = DATETIME ( DATETIME ( ) ," 153 tháng" ) |
sql_create_context | CREATE TABLE table name 60(res VARCHAR,record VARCHAR) | CREATE TABLE table_name_60(res VARCHAR,record VARCHAR) | Giải pháp cho trận đấu mà kỷ lục của Andre Robert là 9-1 là gì? | Giải_pháp cho trận đấu mà kỷ_lục của Andre_Robert là 9-1 là gì ? | SELECT res FROM table name 60 WHERE record = "91" | SELECT res FROM table_name_60 WHERE record = "91" |
mimicsql_data | CREATE TABLE đơn thuốc(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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,vị trí nhập viện text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian thừa nhận text,dischtime text,admityear text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) | CREATE TABLE đơn thuốc(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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,vị trí_nhập_viện text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian thừa_nhận text,dischtime text,admityear text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) | Số ngày nằm viện tối đa của bệnh nhân mắc bệnh nguyên phát là s/p treo là bao nhiêu? | Số ngày nằm viện tối_đa của bệnh_nhân mắc bệnh nguyên_phát là s / p treo là bao_nhiêu ? | SELECT MAX ( demographic.days stay ) FROM nhân khẩu học WHERE nhân khẩu học.diagnosis = "SP TREO" | SELECT MAX ( demographic.days_stay ) FROM nhân_khẩu học WHERE nhân_khẩu học.diagnosis = "SP TREO" |
mimicsql_data | CREATE TABLE đơn thuốc(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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian phân bổ text,năm nhập học text) | CREATE TABLE đơn thuốc(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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian phân_bổ text,năm nhập_học text) | Hãy cho biết số bệnh nhân dưới 27 tuổi có kết quả xét nghiệm bất thường là delta. | Hãy cho biết số bệnh_nhân dưới 27 tuổi có kết_quả xét_nghiệm bất_thường là delta . | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN lab ON nhân khẩu học.hadm id = lab.hadm id WHERE nhân khẩu học.age < "27" AND lab.flag = "delta" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN lab ON nhân_khẩu học.hadm_id = lab.hadm_id WHERE nhân_khẩu học.age <"27" AND lab.flag = "delta" |
sql_create_context | CREATE TABLE table name 54(kết quả VARCHAR,điểm danh VARCHAR) | CREATE TABLE table_name_54(kết_quả VARCHAR,điểm danh VARCHAR) | Điểm số khi có 50.514 người tham dự là bao nhiêu? | Điểm_số khi có 50.514 người tham_dự là bao_nhiêu ? | SELECT kết quả FROM tên bảng 54 WHERE điểm danh = "50,514" | SELECT kết_quả FROM tên_bảng_54 WHERE điểm_danh = "50,514" |
sql_create_context | CREATE TABLE tên bảng 78(tuần 3 VARCHAR,tuần 6 VARCHAR) | CREATE TABLE tên_bảng_78(tuần_3 VARCHAR,tuần_6 VARCHAR) | Tuần 3 là thứ mấy khi tuần 6 là 26,05? | Tuần 3 là thứ_mấy khi tuần 6 là 26,05 ? | SELECT tuần 3 FROM tên bảng 78 WHERE tuần 6 = "26,05" | SELECT tuần_3 FROM tên_bảng_78 WHERE tuần_6 = "26,05" |
sede | CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Người dùng(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID khác,Ngày tạo time,UserId number,Tên hiển thị người dùng text,Nhận xét text,Text text,Giấy phép nội dung text) CREATE TABLE Huy hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,Ngày phê duyệt time,ApprovalModeratorId number,Ngày hủy kích hoạt time,DeactivationModeratorId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Các chỉnh sửa được đề xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostTypes(Id number,Tên text) CREATE TABLE Nhận xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển thị người dùng text,UserId number,Giấy phép nội dung text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Tiêu đề text,Thẻ text,Đếm trả lời number,Đếm bình luận number,Đếm yêu thích number,Ngày đóng time,Ngày sở hữu cộng đồng time,Giấy phép nội dung text) CREATE TABLE ReviewTaskResultTypes(Id number,Tên text,Mô tả text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) | CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Người dùng(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID khác,Ngày tạo time,UserId number,Tên hiển_thị người dùng text,Nhận_xét text,Text text,Giấy_phép nội_dung text) CREATE TABLE Huy_hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,Ngày phê_duyệt time,ApprovalModeratorId number,Ngày hủy_kích hoạt time,DeactivationModeratorId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Các chỉnh_sửa được đề_xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostTypes(Id number,Tên text) CREATE TABLE Nhận_xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển_thị người dùng text,UserId number,Giấy_phép nội_dung text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Tiêu_đề text,Thẻ text,Đếm trả_lời number,Đếm bình_luận number,Đếm_yêu thích number,Ngày đóng time,Ngày sở_hữu cộng_đồng time,Giấy_phép nội_dung text) CREATE TABLE ReviewTaskResultTypes(Id number,Tên text,Mô_tả text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) | Số lượt tán thành bài đăng của một người dùng nhất định trong một thẻ nhất định. | Số lượt tán_thành bài đăng của một người dùng nhất_định trong một thẻ nhất_định . | SELECT COUNT ( * ) AS "Số lượt tán thành" FROM Bài viết AS p INNER JOIN PostTags AS pt ON COALESCE ( p.ParentId,p.Id ) = pt.PostId INNER JOIN Tags AS t ON t.Id = pt.TagId INNER JOIN Phiếu bầu AS v ON v.PostId = p.Id WHERE v.VoteTypeId = 2 AND p.OwnerUserId = ' AND UserIdint ' t.TagName = 'TagNamestring' | SELECT COUNT ( * ) AS"Số lượt tán_thành" FROM Bài viết AS p INNER JOIN PostTags AS pt ON COALESCE ( p.ParentId,p.Id ) = pt.PostId INNER JOIN Tags AS t ON t.Id = pt.TagId INNER JOIN Phiếu bầu AS v ON v.PostId = p.Id WHERE v.VoteTypeId = 2 AND p.OwnerUserId = " AND UserId int _" t.TagName = " TagName string _" |
mimicsql_data | CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện text,thời gian xuất viện text,năm nhập học text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(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,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện text,thời_gian xuất_viện text,năm nhập_học text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(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,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | bao nhiêu bệnh nhân có giới tính f và được chẩn đoán ngắn gọn là nhiễm trùng huyết gram âm nec? | bao_nhiêu bệnh_nhân có giới_tính f và được chẩn_đoán ngắn_gọn là nhiễm_trùng huyết_gram âm_nec ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id WHERE nhân khẩu học.gender = "F" AND chẩn đoán.short title = "Nhiễm trùng huyết gram âm NEC" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN chẩn_đoán ON nhân_khẩu học.hadm_id = chẩn_đoán.hadm_id WHERE nhân_khẩu học.gender = "F" AND chẩn_đoán.short_title = "Nhiễm_trùng huyết_gram âm_NEC" |
squall | CREATE TABLE table 204 845(id number,"vòng" number,"mạch" text,"vị trí" text,"ngày" text,"vị trí pole" text,"vòng nhanh nhất" text,"chiến thắng driver" text,"sự kiện tiêu đề" text) | CREATE TABLE table_204_845(id number,"vòng" number,"mạch" text,"vị_trí" text,"ngày" text,"vị_trí pole" text,"vòng nhanh nhất" text,"chiến_thắng driver" text,"sự_kiện tiêu_đề" text) | có tổng cộng bao nhiêu cuộc đua được tổ chức vào tháng sáu? | có tổng_cộng bao_nhiêu cuộc đua được tổ_chức vào tháng sáu ? | SELECT COUNT ( "mạch" ) FROM bảng 204 845 WHERE "ngày" = 6 | SELECT COUNT ( "mạch" ) FROM bảng_204_845 WHERE "ngày" = 6 |
sql_create_context | CREATE TABLE table name 55(track VARCHAR,năm VARCHAR) | CREATE TABLE table_name_55(track VARCHAR,năm VARCHAR) | Bài hát nào đã được sử dụng vào năm 1926? | Bài hát nào đã được sử_dụng vào năm 1926 ? | SELECT theo dõi FROM tên bảng 55 WHERE năm = "1926" | SELECT theo_dõi FROM tên_bảng_55 WHERE năm = "1926" |
wikisql | CREATE TABLE table 42335("Tiểu bang/Lãnh thổ" text,"Tòa nhà" text,"Chiều cao" text,"Số tầng" real,"Đã hoàn thành" real) | CREATE TABLE table_42335("Tiểu_bang/Lãnh_thổ" text,"Tòa nhà" text,"Chiều cao" text,"Số tầng" real,"Đã hoàn_thành" real) | Tiểu bang/lãnh thổ nào có chiều cao 121 m? | Tiểu_bang / lãnh_thổ nào có chiều cao 121 m ? | SELECT "Tiểu bangLãnh thổ" FROM table 42335 WHERE "Chiều cao" = '121 m' | SELECT "Tiểu_bangLãnh_thổ" FROM table_42335 WHERE "Chiều cao" = "121 m" |
wikisql | CREATE TABLE table 40317("Mùa" text,"Hội nghị" text,"Phân chia" text,"Kết thúc" text,"Thắng" text,"Thua" text,"Thắng%" text,"Giải thưởng" text) | CREATE TABLE table_40317("Mùa" text,"Hội_nghị" text,"Phân_chia" text,"Kết_thúc" text,"Thắng" text,"Thua" text,"Thắng %" text,"Giải_thưởng" text) | Giải thưởng Vancouver Grizzlies ở đâu, hội nghị là gì? | Giải_thưởng Vancouver_Grizzlies ở đâu , hội_nghị là gì ? | SELECT "Hội nghị" FROM table 40317 WHERE "Giải thưởng" = 'vancouver Grizzlies' | SELECT "Hội_nghị" FROM table_40317 WHERE "Giải_thưởng" = "vancouver Grizzlies" |
sql_create_context | CREATE TABLE có sẵn policies(chính sách loại mã VARCHAR) | CREATE TABLE có sẵn_policies(chính sách_loại_mã VARCHAR) | Tìm loại chính sách được hơn 4 khách hàng sử dụng. | Tìm loại chính_sách được hơn 4 khách_hàng sử_dụng . | SELECT mã loại chính sách FROM chính sách có sẵn GROUP BY mã loại chính sách HAVING COUNT ( * ) > 4 | SELECT mã_loại chính_sách FROM chính_sách có sẵn GROUP BY mã_loại chính_sách HAVING COUNT ( * ) > 4 |
sql_create_context | CREATE TABLE table name 25(thứ hạng VARCHAR,vàng VARCHAR,bạc VARCHAR) | CREATE TABLE table_name_25(thứ_hạng VARCHAR,vàng VARCHAR,bạc VARCHAR) | Hạng nào có vàng nhỏ hơn 1 và bạc lớn hơn 0? | Hạng nào có vàng nhỏ hơn 1 và bạc lớn hơn 0 ? | SELECT hạng FROM tên bảng 25 WHERE vàng < 1 AND bạc > 0 | SELECT hạng FROM tên_bảng_25 WHERE vàng < 1 AND bạc > 0 |
wikisql | CREATE TABLE table 19989("Điều kiện/Thông số" text,"Vận tốc tọa độ v dx/dt theo đơn vị c" text,"Góc vận tốc\u03b7 tính bằng i-radian" text,"Vận tốc thích hợp w dx/d\u03c4 tính theo đơn vị c" text,"Hệ số Lorentz\u03b3 dt/d\u03c4 = E/mc 2" text) | CREATE TABLE table_19989("Điều_kiện/Thông_số" text,"Vận_tốc tọa độ v dx/dt theo đơn_vị c" text,"Góc vận_tốc\u03b7_tính bằng i-radian" text,"Vận_tốc thích_hợp w dx/d\u03c4_tính theo đơn_vị c" text,"Hệ_số Lorentz\u03b3 dt/d\_u03c4 = E/mc 2" text) | Nếu góc vận tốc là ln[(1 + 5)/2] 0,481 thì điều kiện/tham số là gì? | Nếu góc vận_tốc là ln [ ( 1 + 5 ) / 2 ]_0,481 thì điều_kiện / tham_số là gì ? | SELECT "Điều kiệnThông số" FROM table 19989 WHERE "Góc vận tốcu03b7 tính bằng iradian" = 'ln ( 1 5 ) 2 0,481' | SELECT "Điều_kiệnThông_số" FROM table_19989 WHERE "Góc vận_tốcu03b7_tính bằng iradian" = "ln ( 1 5 ) 2 0,481" |
sql_create_context | CREATE TABLE table 10975034 4(pick số INTEGER,cfl team VARCHAR) | CREATE TABLE table_10975034_4(pick__số INTEGER,cfl_team VARCHAR) | Số lượt chọn tối đa cho đội CFL Calgary Stampeders là bao nhiêu? | Số lượt chọn tối_đa cho đội CFL Calgary_Stampeders là bao_nhiêu ? | SELECT MAX ( pick number ) FROM table 10975034 4 WHERE cfl team = "Calgary Stampeders" | SELECT MAX ( pick__number ) FROM table_10975034_4 WHERE cfl_team = "Calgary_Stampeders" |
wikisql | CREATE TABLE table 28692("Vai diễn" text,"Dàn diễn viên gốc Broadway" text,"phim 2005" text,"Phim trình diễn cuối cùng năm 2008" text,"Dàn diễn viên Hollywood Bowl" text,"Sự hồi sinh ngoài sân khấu Broadway năm 2011" text) | CREATE TABLE table_28692("Vai diễn" text,"Dàn diễn_viên gốc Broadway" text,"phim 2005" text,"Phim trình_diễn cuối_cùng năm 2008" text,"Dàn diễn_viên Hollywood Bowl" text,"Sự hồi_sinh ngoài sân_khấu Broadway năm 2011" text) | Mj Rodriguez đã được chọn bao nhiêu lần? | Mj Rodriguez đã được chọn bao_nhiêu lần ? | SELECT COUNT ( "Vai trò" ) FROM table 28692 WHERE "Sự hồi sinh của OffBroadway năm 2011" = 'MJ Rodriguez' | SELECT COUNT ( "Vai_trò" ) FROM table_28692 WHERE "Sự hồi_sinh của OffBroadway năm 2011" = "MJ_Rodriguez" |
sql_create_context | CREATE TABLE table name 4(đội khách VARCHAR,điểm VARCHAR,điểm danh VARCHAR) | CREATE TABLE table_name_4(đội khách VARCHAR,điểm VARCHAR,điểm danh VARCHAR) | Đội khách trong trận đấu có tỷ số 1 0 và số người tham dự là 1.791 là đội nào? | Đội khách trong trận đấu có tỷ số 1 0 và số người tham_dự là 1.791 là đội nào ? | SELECT đội khách FROM tên bảng 4 WHERE điểm = "1 0" AND tham dự = "1.791" | SELECT đội khách FROM tên_bảng_4 WHERE điểm = "1 0" AND tham_dự = "1.791" |
sql_create_context | CREATE TABLE tên bảng 52(date VARCHAR,bản ghi VARCHAR) | CREATE TABLE tên_bảng_52(date VARCHAR,bản ghi VARCHAR) | Khi nào có Bản ghi 1 0? | Khi nào có Bản_ghi 1 0 ? | SELECT date FROM tên bảng 52 WHERE bản ghi = "10" | SELECT date FROM tên_bảng_52 WHERE bản ghi = "1 0" |
sede | CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Votes(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,Ngày phê duyệt time,Ngày từ chối time,OwnerUserId number,Nhận xét text,Text text,Tiêu đề text,Thẻ text,RevisionGUID other) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE ReviewRejectionReasons(Id number,Tên text,Mô tả text,PostTypeId number) CREATE TABLE Người dùng(Id number,Danh tiếng number,Ngày tạo time,Tên hiển thị text,Ngày truy cập cuối cùng time,Url trang web text,Vị trí text,Giới thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,Ngày hết hạn time,Nội dung text,OwnerUserId number,DeletionUserId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) | CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Votes(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,Ngày phê_duyệt time,Ngày từ_chối time,OwnerUserId number,Nhận_xét text,Text text,Tiêu_đề text,Thẻ text,RevisionGUID_other) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE ReviewRejectionReasons(Id number,Tên text,Mô_tả text,PostTypeId number) CREATE TABLE Người dùng(Id number,Danh_tiếng number,Ngày tạo time,Tên hiển_thị text,Ngày truy_cập cuối_cùng time,Url trang_web text,Vị_trí text,Giới_thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,Ngày hết hạn time,Nội_dung text,OwnerUserId number,DeletionUserId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) | Bài viết có hoạt động sau bình luận cuối cùng của bạn. | Bài viết có hoạt_động sau bình_luận cuối_cùng của bạn . | SELECT P.Id AS "post link",P.LastActivityDate,C.Id AS "comment link",C.CreationDate,P.OwnerUserId AS "user link",P.LastEditorUserId AS "user link" FROM Comments AS C INNER JOIN Bài viết AS P ON P.Id = C.PostId WHERE C.UserId = ' AND UserIdint SELECT ' MAX C.CreationDate = ( FROM AS ( a.CreationDate ) WHERE Bình luận AND a AND a.UserId = C.UserId AND a.PostId = C.PostId ) AND ( C.CreationDate < P.LastActivityDate ) ORDER ( P.OwnerUserId = C.UserId ) BY ( P.LastEditorUserId = C.UserId ) DESC P.LastActivityDate | SELECT P.Id AS "post_link",P.LastActivityDate,C.Id AS "comment_link",C.CreationDate,P.OwnerUserId AS "user_link",P.LastEditorUserId AS "user_link" FROM Comments AS C INNER JOIN Bài viết AS P ON P.Id = C.PostId WHERE C.UserId = " AND UserId int SELECT " MAX _C.CreationDate = ( FROM AS ( a.CreationDate ) WHERE Bình_luận AND a AND a.UserId =C.UserId AND a.PostId = C.PostId ) AND ( C.CreationDate <P.LastActivityDate ) ORDER ( P.OwnerUserId = C.UserId ) BY ( P.LastEditorUserId = C.UserId ) DESC _ P.LastActivityDate |
sql_create_context | CREATE TABLE table name 49(điểm VARCHAR,home VARCHAR,date VARCHAR) | CREATE TABLE table_name_49(điểm VARCHAR,home VARCHAR,date VARCHAR) | Tỷ số Toronto Maple Leafs ngày 10/11 là bao nhiêu? | Tỷ số Toronto_Maple Leafs ngày 10/11 là bao_nhiêu ? | SELECT điểm FROM tên bảng 49 WHERE home = "lá phong toronto" AND date = "ngày 10 tháng 11" | SELECT điểm FROM tên_bảng_49 WHERE home = "lá phong_toronto" AND date = "ngày 10 tháng 11" |
sql_create_context | CREATE TABLE table name 16(wind m s INTEGER,quốc gia VARCHAR,vận động viên VARCHAR) | CREATE TABLE table_name_16(wind__m_s_ INTEGER,quốc_gia VARCHAR,vận_động_viên VARCHAR) | Tốc độ gió khi Brenda Morehead ở Hoa Kỳ là bao nhiêu? | Tốc_độ gió khi Brenda_Morehead ở Hoa_Kỳ là bao_nhiêu ? | SELECT MIN ( wind m s ) FROM table name 16 WHERE country = "United States" AND vận động viên = "brenda morehead" | SELECT MIN ( wind__m_s ) FROM table_name_16 WHERE country = "United_States" AND vận_động_viên = "brenda morehead" |
wikisql | CREATE TABLE table 47635("Đối thủ" text,"Res." text,"Hạng" text,"Điểm" text,"Ngày" text,"Thi đấu" text,"Ghi chú" text) | CREATE TABLE table_47635("Đối_thủ" text,"Res." text,"Hạng" text,"Điểm" text,"Ngày" text,"Thi_đấu" text,"Ghi_chú" text) | ĐỐI THỦ NÀO CÓ ĐIỂM 5:5? | ĐỐI_THỦ NÀO CÓ ĐIỂM 5 : 5 ? | SELECT "Đối thủ" FROM table 47635 WHERE "Điểm" = '55' | SELECT "Đối_thủ" FROM table_47635 WHERE "Điểm" = "5 5" |
sql_create_context | CREATE TABLE table 11964154 11(bản ghi VARCHAR,rebounds cao VARCHAR) | CREATE TABLE table_11964154_11(bản ghi VARCHAR,rebounds cao VARCHAR) | Kỷ lục về số lần bật lại cao của Nick Collison (11) là gì? | Kỷ_lục về số lần bật lại cao của Nick_Collison ( 11 ) là gì ? | SELECT bản ghi FROM bảng 11964154 11 WHERE high rebounds = "Nick Collison ( 11 ) " | SELECT bản ghi FROM bảng_11964154_11 WHERE high_rebounds = "Nick_Collison ( 11 ) " |
sql_create_context | CREATE TABLE table name 56(game bắn súng VARCHAR,thứ điểm VARCHAR,score points VARCHAR) | CREATE TABLE table_name_56(game bắn súng VARCHAR,thứ_điểm VARCHAR,score_points VARCHAR) | Ai là người bắn súng có 15 điểm xếp hạng và 0 điểm? | Ai là người bắn súng có 15 điểm xếp_hạng và 0 điểm ? | SELECT game bắn súng FROM table name 56 WHERE Rank points = "15" AND Score points = "0" | SELECT game bắn súng FROM table_name_56 WHERE Rank_points = "15" AND Score_points = "0" |
spider | CREATE TABLE tài khoản(account id number,customer id number,date account opened time,account name text,other account details text) CREATE TABLE sản phẩm(product id number,parent product id number,production type code text,unit price number,product name text,product color text,product size text) CREATE TABLE tài chính transactions(transaction id number,account id number,invoice number number,transaction type text,transaction date time,transaction amount number,transaction comment text,other transaction details text) CREATE TABLE khách hàng(customer id number,customer first name text,customer middle initial text,customer last name text,gender text,email address text,login name text,login password text,phone number text,town city text,state county province text,country text) CREATE TABLE đơn hàng(order id number,customer id number,date order placed time,order details text) CREATE TABLE hóa đơn(invoice number number,order id number,invoice date time) CREATE TABLE order items(order item id number,order id number,product id number,product quantity text,other order item details text) CREATE TABLEvoice line items(order item id number,invoice number number,product id number,product title text,product quantity text,product price number,der product cost number,có nguồn gốc vat có thể thanh toán number,có nguồn gốc tổng chi phí number) CREATE TABLE danh mục sản phẩm(mã loại sản xuất text,loại mô tả sản phẩm text,xếp hạng giá trị number) | CREATE TABLE tài_khoản(account_id number,customer_id number,date_account_opened time,account_name text,other_account_details text) CREATE TABLE sản_phẩm(product_id number,parent_product_id number,production_type_code text,unit_price number,product_name text,product_color text,product_size text) CREATE TABLE tài_chính_transactions(transaction_id number,account_id number,invoice_number number,transaction_type text,transaction_date time,transaction_amount number,transaction_comment text,other_transaction_details text) CREATE TABLE khách_hàng(customer_id number,customer_first_name text,customer_middle_initial text,customer_last_name text,gender text,email_address text,login_name text,login_password text,phone_number text,town_city text,state_county_province text,country text) CREATE TABLE đơn hàng(order_id number,customer_id number,date_order_placed time,order_details text) CREATE TABLE hóa_đơn(invoice_number number,order_id number,invoice_date time) CREATE TABLE order_items(order_item_id number,order_id number,product_id number,product_quantity text,other_order_item_details text) CREATE TABLEvoice_line_items(order_item_id number,invoice_number number,product_id number,product_title text,product_quantity text,product_price number,der_product_cost number,có nguồn gốc_vat_có_thể thanh_toán number,có nguồn gốc_tổng_chi phí number) CREATE TABLE danh_mục sản_phẩm(mã_loại_sản xuất text,loại_mô_tả sản_phẩm text,xếp_hạng giá_trị number) | Số tiền giao dịch trung bình, tối thiểu, tối đa và tổng số tiền là bao nhiêu? | Số tiền giao_dịch trung_bình , tối_thiểu , tối_đa và tổng_số tiền là bao_nhiêu ? | SELECT AVG ( số tiền giao dịch ) , MIN ( số tiền giao dịch ) , MAX ( số tiền giao dịch ) , SUM ( số tiền giao dịch ) FROM giao dịch tài chính | SELECT AVG ( số_tiền giao_dịch ) , MIN ( số tiền_giao dịch ) , MAX ( số tiền_giao dịch ) , SUM ( số tiền_giao dịch ) FROM giao_dịch tài_chính |
eicu | CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,sinh vật text,thời gian nuôi cấy time) CREATE TABLE chẩn đoán(chẩn đoán number,BNunitstayid number,tên chẩn đoán text,thời gian chẩn đoán time,icd9code text) CREATE TABLE dị ứng(dị ứng number,BNunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,thời gian quan sát time) CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE drug(thuốc number,BNunitstayid number,tên thuốc text,liều lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện đơn vị time,thời gian xuất viện đơn vị time,thời gian xuất viện time,trạng thái nhập viện text) | CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,sinh_vật text,thời_gian nuôi_cấy time) CREATE TABLE chẩn_đoán(chẩn_đoán number,BNunitstayid number,tên chẩn_đoán text,thời_gian chẩn_đoán time,icd9code text) CREATE TABLE dị_ứng(dị_ứng number,BNunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,thời_gian quan_sát time) CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE drug(thuốc number,BNunitstayid number,tên thuốc text,liều_lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện đơn_vị time,thời_gian xuất_viện đơn_vị time,thời_gian xuất_viện time,trạng_thái nhập_viện text) | Ba xét nghiệm thường xuyên nhất được yêu cầu đối với bệnh nhân cho đến 1 năm trước trong cùng một lần đến bệnh viện sau khi được chẩn đoán tăng thể tích máu - trong trường hợp không có bệnh chf là gì? | Ba xét_nghiệm thường_xuyên nhất được yêu_cầu đối_với bệnh_nhân cho đến 1 năm trước trong cùng một lần đến bệnh_viện sau khi được chẩn_đoán tăng thể_tích máu - trong trường_hợp không có bệnh chf là gì ? | SELECT t3.labname FROM ( SELECT t2.labname,DENSE RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,diagnosis.diagnosistime,Patient.bệnh nhânhealthsystemstayid FROM chẩn đoán JOIN bệnh nhân ON chẩn đoán.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE chẩn đoán.diagnosisname = 'tăng thể tích máu trong trường hợp không có chf' AND DATETIME ( diagnosis.diagnosistime ) <= DATETIME ( CURRENT TIME ( ) ,'1 năm' ) ) AS t1 JOIN ( SELECT disease.uniquepid,lab.labname,lab.labresulttime,bệnh nhân.bệnh nhânhealthsystemstayid FROM lab JOIN bệnh nhân ON lab.bnunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE DATETIME ( lab.labresulttime ) <= DATETIME ( CURRENT TIME ( ) ,'1 năm' ) ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.labresulttime AND t1.Patienthealthsystemstayid = t2.bệnh nhânhealthsystemstayid GROUP BY t2.labname ) AS t3 WHERE t3.c1 <= 3 | SELECT t3.labname FROM ( SELECT t2.labname,DENSE_RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,diagnosis.diagnosistime,Patient.bệnh nhânhealthsystemstayid FROM chẩn_đoán JOIN bệnh_nhân ON chẩn_đoán.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE chẩn_đoán.diagnosisname = "tăng thể_tích máu trong trường_hợp không có chf" AND DATETIME ( diagnosis.diagnosistime ) <_= DATETIME ( CURRENT_TIME ( ) ," 1 năm" ) ) AS t1 JOIN ( SELECT disease.uniquepid,lab.labname,lab.labresulttime,bệnh_nhân.bệnh nhânhealthsystemstayid FROM lab JOIN bệnh_nhân ON lab.bnunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE DATETIME ( lab.labresulttime ) <_= DATETIME ( CURRENT_TIME ( ) ," 1 năm" ) ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime <t2.labresulttime AND t1.Patienthealthsystemstayid = t2.bệnh nhânhealthsystemstayid GROUP BY t2.labname ) AS t3 WHERE t3.c1 < = 3 |
eicu | CREATE TABLE drug(medicidid number,Patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLEallergy(allergyid number,Patientunitstayid number,drugname text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE chẩn đoán(Diagnosticid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Patient(Uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,hospitalid number,wardid number,chiều cao nhập viện number,trọng lượng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,tâm thu hệ thống number,tâm trương hệ thống number,trung bình hệ thống number,thời gian quan sát time) CREATE TABLE đầu ra đầu vào(id đầu ra number,BNunitstayid number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bào number,thời gian đầu ra time) | CREATE TABLE drug(medicidid number,Patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLEallergy(allergyid number,Patientunitstayid number,drugname text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE chẩn_đoán(Diagnosticid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Patient(Uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,hospitalid number,wardid number,chiều cao nhập_viện number,trọng_lượng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,tâm_thu hệ_thống number,tâm_trương hệ_thống number,trung_bình hệ_thống number,thời_gian quan_sát time) CREATE TABLE đầu_ra đầu_vào(id đầu_ra number,BNunitstayid number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bào number,thời_gian đầu_ra time) | Đã bao nhiêu ngày kể từ lần chẩn đoán rối loạn chức năng gan cuối cùng của bệnh nhân 035-4312 trong lần khám bệnh hiện tại của họ? | Đã bao_nhiêu ngày kể từ lần chẩn_đoán rối_loạn chức_năng gan cuối_cùng của bệnh_nhân 035 - 4312 trong lần khám bệnh hiện_tại của họ ? | SELECT 1 * ( STRFTIME ( 'j',CURRENT TIME ( ) ) STRFTIME ( 'j',diagnosis.diagnosistime ) ) FROM chẩn đoán WHERE chẩn đoán. bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '0354312' IN bệnh nhân.hospitaldischargetime SELECT FROM ) ) WHERE chẩn đoán.diagnosisname = 'rối loạn chức năng gan' AND IS chẩn đoán.thời gian chẩn đoán NULL AND 1 | SELECT 1 * ( STRFTIME ( " j",CURRENT_TIME ( ) ) STRFTIME ( " j",diagnosis.diagnosistime ) ) FROM chẩn_đoán WHERE chẩn_đoán. bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "035 4312" IN bệnh_nhân.hospitaldischargetime SELECT FROM ) ) WHERE chẩn_đoán.diagnosisname = "rối_loạn chức_năng gan" AND IS chẩn_đoán.thời_gian chẩn_đoán NULL AND 1 |
sql_create_context | CREATE TABLE bảng 17256857 1(lưới VARCHAR,trình điều khiển VARCHAR) | CREATE TABLE bảng_17256857_1(lưới VARCHAR,trình điều_khiển VARCHAR) | Có bao nhiêu tay đua trên lưới được gọi là Vitor Meira? | Có bao_nhiêu tay_đua trên lưới được gọi_là Vitor_Meira ? | SELECT COUNT ( lưới ) FROM bảng 17256857 1 WHERE driver = "Vitor Meira" | SELECT COUNT ( lưới ) FROM bảng_17256857_1 WHERE driver = "Vitor_Meira" |
sql_create_context | CREATE TABLE table 24689168 5(tập VARCHAR,người xem hàng triệu VARCHAR) | CREATE TABLE table_24689168_5(tập VARCHAR,người xem__hàng triệu_ VARCHAR) | Có bao nhiêu tập có 11,47 triệu người xem? | Có bao_nhiêu tập có 11,47 triệu người xem ? | SELECT COUNT ( tập ) FROM table 24689168 5 WHERE người xem millions = "11,47" | SELECT COUNT ( tập ) FROM table_24689168_5 WHERE người xem__millions = "11,47" |
wikisql | CREATE TABLE table 76127("Tuần" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Tham dự" real) | CREATE TABLE table_76127("Tuần" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Tham_dự" real) | Tuần nào thấp nhất khi có kết quả là ngày 13/10, ngày 30/11/1975 với hơn 44.982 người tham dự? | Tuần nào thấp nhất khi có kết_quả là ngày 13/10 , ngày 30/11/1975 với hơn 44.982 người tham_dự ? | SELECT MIN ( "Tuần" ) FROM table 76127 WHERE "Kết quả" = 'l 1310' AND "Ngày" = '30 tháng 11 năm 1975' AND "Tham dự" > '44,982' | SELECT MIN ( "Tuần" ) FROM table_76127 WHERE "Kết_quả" = "l 13 10" AND "Ngày" = "30 tháng 11 năm 1975" AND "Tham_dự" > "44,982" |
sql_create_context | CREATE TABLE table name 15(người chơi VARCHAR,vị trí VARCHAR,cao đẳng VARCHAR) | CREATE TABLE table_name_15(người chơi VARCHAR,vị_trí VARCHAR,cao_đẳng VARCHAR) | Ai chơi vị trí f cho depauw? | Ai chơi vị_trí f cho depauw ? | SELECT người chơi FROM tên bảng 15 WHERE vị trí = "f" AND đại học = "depauw" | SELECT người chơi FROM tên_bảng_15 WHERE vị_trí = "f" AND đại_học = "depauw" |
spider | CREATE TABLE danh sách phát(danh sách phát number,tên text) CREATE TABLE khách hàng(mã khách hàng number,tên text,họ text,công ty text,địa chỉ text,thành phố text,tiểu bang text,quốc gia text,mã bưu điện text,điện thoại text,fax text,email text,supportrepid number) CREATE TABLE track(trackid number,name text,albumid number,mediatypeid number,genreid number,composer text,mili giây number,byte number,đơn giá number) CREATE TABLE album(albumid number,title text,artistid number) CREATE TABLEvoiceline(invoicelineid number,invoiceid number,trackid number,đơn giá number,số lượng number) CREATE TABLE nghệ sĩ(nghệ sĩ number,tên text) CREATE TABLE hóa đơn(invoiceid number,customerid number,ngày hóa đơn time,địa chỉ thanh toán text,thành phố thanh toán text,tiểu bang thanh toán text,quốc gia thanh toán text,mã bưu điện thanh toán text,total number) CREATE TABLE nhân viên(mã nhân viên number,họ text,tên text,chức danh text,báo cáo number,ngày sinh time,ngày thuê time,địa chỉ text,thành phố text,tiểu bang text,quốc gia text,mã bưu chính text,điện thoại text,fax text,email text) CREATE TABLE mediatype(mediatypeid number,name text) CREATE TABLE thể loại(genreid number,name text) CREATE TABLE playlist(playlistid number,trackid number) | CREATE TABLE danh_sách phát(danh_sách phát number,tên text) CREATE TABLE khách_hàng(mã khách_hàng number,tên text,họ text,công_ty text,địa_chỉ text,thành_phố text,tiểu_bang text,quốc_gia text,mã bưu_điện text,điện_thoại text,fax text,email text,supportrepid number) CREATE TABLE track(trackid number,name text,albumid number,mediatypeid number,genreid number,composer text,mili giây number,byte number,đơn_giá number) CREATE TABLE album(albumid number,title text,artistid number) CREATE TABLEvoiceline(invoicelineid number,invoiceid number,trackid number,đơn_giá number,số_lượng number) CREATE TABLE nghệ_sĩ(nghệ_sĩ number,tên text) CREATE TABLE hóa_đơn(invoiceid number,customerid number,ngày hóa đơn time,địa_chỉ thanh_toán text,thành_phố thanh_toán text,tiểu_bang thanh_toán text,quốc_gia thanh_toán text,mã bưu_điện thanh_toán text,total number) CREATE TABLE nhân_viên(mã nhân_viên number,họ text,tên text,chức_danh text,báo_cáo number,ngày sinh time,ngày thuê time,địa_chỉ text,thành_phố text,tiểu_bang text,quốc_gia text,mã bưu_chính text,điện_thoại text,fax text,email text) CREATE TABLE mediatype(mediatypeid number,name text) CREATE TABLE thể_loại(genreid number,name text) CREATE TABLE playlist(playlistid number,trackid number) | Họ và tên nhân viên giúp khách hàng với tên Leonie là gì? | Họ và tên nhân_viên giúp khách_hàng với tên Leonie là gì ? | SELECT T2.firstname,T2.lastname FROM khách hàng AS T1 JOIN nhân viên AS T2 ON T1.supportrepid = T2.employeeid WHERE T1.firstname = "Leonie" | SELECT T2.firstname,T2.lastname FROM khách_hàng AS T1 JOIN nhân_viên AS T2 ON T1.supportrepid = T2.employeeid WHERE T1.firstname = "Leonie" |
mimicsql_data | CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,tên text,tình trạng hôn nhân text,tuổi text,nghề nghiệp text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn flag text,admission location text,discharge location text,diagnosis text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(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 thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,tên text,tình_trạng hôn_nhân text,tuổi text,nghề_nghiệp text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) | cho tôi biết số bệnh nhân nhập viện cấp cứu và được chẩn đoán dài hạn là dị tật tim bẩm sinh chưa xác định? | cho tôi biết số bệnh_nhân nhập_viện cấp_cứu và được chẩn_đoán dài_hạn là dị_tật tim bẩm_sinh chưa xác_định ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id WHERE nhân khẩu học.admission type =" KHẨN CẤP" AND chẩn đoán.long title = "Dị tật tim bẩm sinh không xác định" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN chẩn_đoán ON nhân_khẩu học.hadm_id = chẩn_đoán.hadm_id WHERE nhân_khẩu học.admission_type = "KHẨN_CẤP" AND chẩn_đoán.long_title = "Dị_tật tim bẩm_sinh không xác_định" |
squall | CREATE TABLE table 203 412(id number,"school" text,"conference" text,"record(conference)" text,"huấn luyện viên trưởng" text,"cws xuất hiện" text,"cws kết thúc tốt nhất" text,"bản ghi cws" text) | CREATE TABLE table_203_412(id number,"school" text,"conference" text,"record(conference)" text,"huấn_luyện_viên trưởng" text,"cws xuất_hiện" text,"cws kết_thúc tốt nhất" text,"bản ghi cws" text) | Clemson hay Western Michigan có nhiều cws xuất hiện hơn không? | Clemson hay Western_Michigan có nhiều cws xuất_hiện hơn không ? | SELECT "trường học" FROM table 203 412 WHERE "trường học" IN ( 'clemson','western michigan' ) ORDER BY "cws xuất hiện" DESC LIMIT 1 | SELECT "trường_học" FROM table_203_412 WHERE "trường_học" IN ( "clemson","western michigan" ) ORDER BY"cws xuất_hiện" DESC LIMIT 1 |
nvbench | CREATE TABLE bầu cử(Bầu cử ID int,Quận đại diện text,Quận int,Đại biểu text,Đảng int,Đảng real,Đảng được bầu đầu tiên text,Ủy ban CREATE) TABLE int đảng(Đảng ID real,Năm text,Đảng text,Thống đốc text,Trung úy Thống đốc text,Kiểm soát viên text,Attorney General text,US Senate CREATE) TABLE int quận(Quận Id text,Tên quận real,Dân số text,Zip code ##) | CREATE TABLE bầu_cử(Bầu cử_ID int,Quận_đại_diện text,Quận int,Đại_biểu text,Đảng int,Đảng real,Đảng_được_bầu đầu_tiên text,Ủy_ban CREATE) TABLE int đảng(Đảng_ID real,Năm text,Đảng text,Thống_đốc text,Trung_úy_Thống đốc text,Kiểm_soát_viên text,Attorney_General text,US_Senate_CREATE) TABLE int quận(Quận_Id text,Tên_quận real,Dân_số text,Zip_code #_#) | Hiển thị có bao nhiêu đại biểu ở mỗi quận bằng biểu đồ thanh, sắp xếp tăng dần theo trục x. | Hiển_thị có bao_nhiêu đại_biểu ở mỗi quận bằng biểu_đồ thanh , sắp_xếp tăng dần theo trục x . | SELECT County name, COUNT ( County name ) FROM quận AS T1 JOIN bầu cử AS T2 ON T1.County Id = T2.District GROUP BY County name ORDER BY County name | SELECT County_name, COUNT ( County_name ) FROM quận AS T1 JOIN bầu_cử AS T2 ON T1.County_Id = T2.District GROUP BY County_name ORDER BY County_name |
atis | CREATE TABLE code description(code varchar,description text) CREATE TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE limit(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 Airport(airport code varchar,airport name text,airport location text,state code varchar,country name varchar,time zone code varchar,thời gian kết nối tối thiểu int) CREATE TABLE time interval(thời gian text,begin time int,end time int) CREATE TABLE ngày(days code varchar,day name varchar) CREATE TABLE kép carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLEfood service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE ngăn class(compartment varchar,class type varchar) CREATE TABLE city(city code varchar,city name varchar,state code varchar,country name varchar,time zone code varchar) CREATE TABLE chuyến bay stop(flight id int,stop number int,stop days text,stop airport text,arrival time int,arrival airline text,arrival flight number int,departure time int,departure airline text,số chuyến bay khởi hành int,thời gian dừng int) CREATE TABLE hạng of dịch vụ(hạng đặt chỗ varchar,thứ hạng int,mô tả hạng text) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,kết nối int,thời gian khởi hành int,hãng vận chuyển kép text,ngày bay text,id chuyến bay int,số chuyến bay int,từ sân bay varchar,mã bữa ăn text,điểm dừng int,thời gian đã trôi qua int,đến sân bay varchar) CREATE TABLE ngày ngày(số tháng int,số ngày int,năm int,tên ngày varchar) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE máy bay(mã máy bay varchar,mô tả máy bay varchar,nhà sản xuất varchar,loại cơ bản varchar,động cơ int,động cơ varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,tải trả int,tốc độ bay int,phạm vi dặm int,có áp suất varchar) CREATE TABLE giá vé(fare id int,from airport varchar,to airport varchar,fare basis code text,fare airline text,restriction code text,one direction cost int,round trip cost int,round trip required varchar) CREATE TABLEfare basis(fare basis code text,booking class text,class type text,premium text,economy text,discounted text,night text,season text,basis days text) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) CREATE TABLE chuyến bay fare(flight id int,fare id int) CREATE TABLE chuyến bay leg(flight id int,leg number int,leg flight int) | CREATE TABLE code_description(code varchar,description text) CREATE TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE limit(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 Airport(airport_code varchar,airport_name text,airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,thời_gian kết_nối tối_thiểu int) CREATE TABLE time_interval(thời_gian text,begin_time int,end_time int) CREATE TABLE ngày(days_code varchar,day_name varchar) CREATE TABLE kép_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLEfood_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE ngăn_class(compartment varchar,class_type varchar) CREATE TABLE city(city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code varchar) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,stop_days text,stop_airport text,arrival_time int,arrival_airline text,arrival_flight_number int,departure_time int,departure_airline text,số chuyến bay khởi_hành int,thời_gian dừng int) CREATE TABLE hạng_of_dịch_vụ(hạng_đặt chỗ varchar,thứ_hạng int,mô_tả hạng text) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,kết_nối int,thời_gian khởi_hành int,hãng vận_chuyển kép text,ngày bay text,id chuyến bay int,số chuyến bay int,từ_sân bay varchar,mã_bữa ăn text,điểm dừng int,thời_gian đã trôi qua int,đến_sân bay varchar) CREATE TABLE ngày_ngày(số_tháng int,số_ngày int,năm int,tên_ngày varchar) CREATE TABLE tháng(số_tháng int,tên_tháng text) CREATE TABLE máy_bay(mã_máy bay varchar,mô_tả máy_bay varchar,nhà_sản_xuất varchar,loại_cơ bản varchar,động_cơ int,động_cơ varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,tải_trả int,tốc_độ bay int,phạm vi_dặm int,có áp_suất varchar) CREATE TABLE giá vé(fare_id int,from_airport varchar,to_airport varchar,fare_basis_code text,fare_airline text,restriction_code text,one_direction_cost int,round_trip_cost int,round_trip_required varchar) CREATE TABLEfare_basis(fare_basis_code text,booking_class text,class_type text,premium text,economy text,discounted text,night text,season text,basis_days text) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) CREATE TABLE chuyến bay_fare(flight_id int,fare_id int) CREATE TABLE chuyến bay_leg(flight_id int,leg_number int,leg_flight int) | cho tôi xem giá vé khứ hồi từ SAN JOSE đến THÀNH PHỐ SALT LAKE | cho tôi xem giá vé khứ hồi từ SAN_JOSE đến THÀNH_PHỐ SALT LAKE | SELECT DISTINCT fare.fare id FROM Airport service AS AIRPORT SERVICE 0,airport service AS AIRPORT SERVICE 1,city AS CITY 0,city AS CITY 1,fare,flight,flight fare WHERE CITY 0.city code = AIRPORT SERVICE 0.city code AND CITY 0.city name = ' SAN JOSE' AND CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'THÀNH PHỐ SALT LAKE' AND chuyến bay fare.fare id = giá vé.fare id AND chuyến bay.flight id = chuyến bay fare.flight id AND chuyến bay.from airport = AIRPORT SERVICE 0.airport code AND chuyến bay.to airport = AIRPORT SERVICE 1.airport code | SELECT DISTINCT fare.fare_id FROM Airport_service AS AIRPORT_SERVICE_0,airport_service AS AIRPORT_SERVICE_1,city AS CITY_0,city AS CITY_1,fare,flight,flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = "SAN_JOSE" AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "THÀNH_PHỐ SALT_LAKE" AND chuyến bay_fare.fare_id = giá vé.fare_id AND chuyến bay.flight_id = chuyến bay_fare.flight_id AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code AND chuyến bay.to_airport = AIRPORT_SERVICE_1.airport_code |
wikisql | CREATE TABLE table 52194("Ngày phát hành" text,"Vị trí bảng xếp hạng cao nhất" real,"Doanh số tuần đầu tiên" real,"Số bản sao đã bán" real,"Album" text) | CREATE TABLE table_52194("Ngày phát_hành" text,"Vị_trí bảng xếp_hạng cao nhất" real,"Doanh_số tuần đầu_tiên" real,"Số bản_sao đã bán" real,"Album" text) | Tổng số bản bán được của đĩa đơn bán được 206.030 bản trong tuần đầu tiên là bao nhiêu? | Tổng_số bản bán được của đĩa đơn bán được 206.030_bản trong tuần đầu_tiên là bao_nhiêu ? | SELECT COUNT ( "Đã bán bản sao" ) FROM table 52194 WHERE "Doanh số tuần đầu tiên" = '206.030' | SELECT COUNT ( "Đã bán bản_sao" ) FROM table_52194 WHERE "Doanh_số tuần đầu_tiên" = "206.030" |
squall | CREATE TABLE table 203 30(id number,"place" number,"đội" text,"đã chơi" number,"thắng" number,"hòa" number,"thua" number,"bàn thắng\ghi" number,"bàn thắng\thừa lưới" number,"+/-" number,"điểm" number) | CREATE TABLE table_203_30(id number,"place" number,"đội" text,"đã chơi" number,"thắng" number,"hòa" number,"thua" number,"bàn thắng_\ghi" number,"bàn thắng_\thừa lưới" number,"+/-" number,"điểm" number) | đội nào có nhiều điểm nhất? | đội nào có nhiều điểm nhất ? | SELECT "đội" FROM bảng 203 30 ORDER BY "điểm" DESC LIMIT 1 | SELECT "đội" FROM bảng_203_30 ORDER BY"điểm" DESC LIMIT 1 |
wikisql | CREATE TABLE table 46478("Res." text,"Record" text,"Đối thủ" text,"Phương thức" text,"Sự kiện" text,"Vòng" real,"Thời gian" text,"Vị trí" text) | CREATE TABLE table_46478("Res." text,"Record" text,"Đối_thủ" text,"Phương_thức" text,"Sự_kiện" text,"Vòng" real,"Thời_gian" text,"Vị_trí" text) | Phương pháp của trận đấu với tỷ số thắng, 1 hiệp và thành tích 3-2 là gì? | Phương_pháp của trận đấu với tỷ_số thắng , 1 hiệp và thành_tích 3-2 là gì ? | SELECT "Phương thức" FROM table 46478 WHERE "Res." = 'thắng' AND "Vòng" = '1' AND "Ghi" = '32' | SELECT "Phương_thức" FROM table_46478 WHERE "Res." = "thắng" AND "Vòng" = "1" AND "Ghi" = "32" |
mimicsql_data | CREATE TABLE đơn thuốc(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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian nhập viện text,năm nhập học text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE đơn thuốc(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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian nhập_viện text,năm nhập_học text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | thời gian nhập viện và chẩn đoán tiêu đề ngắn của tên chủ đề thomas nazario là gì? | thời_gian nhập_viện và chẩn_đoán tiêu_đề_ngắn của tên chủ_đề thomas_nazario là gì ? | SELECT nhân khẩu học.admittime,diagnoses.short title FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id WHERE nhân khẩu học.name = "Thomas Nazario" | SELECT nhân_khẩu học.admittime,diagnoses.short_title FROM nhân_khẩu học INNER JOIN chẩn_đoán ON nhân_khẩu học.hadm_id = chẩn_đoán.hadm_id WHERE nhân_khẩu học.name = "Thomas_Nazario" |
sql_create_context | CREATE TABLE table 23346303 3(bản ghi VARCHAR,vị trí VARCHAR,đối thủ VARCHAR) | CREATE TABLE table_23346303_3(bản ghi VARCHAR,vị_trí VARCHAR,đối_thủ VARCHAR) | kỷ lục mà vị trí là tampa, fl và đối thủ là louisville là gì? | kỷ_lục mà vị_trí là tampa , fl và đối_thủ là louisville là gì ? | SELECT bản ghi FROM bảng 23346303 3 WHERE location = "Tampa,FL" AND đối thủ = "Louisville" | SELECT bản ghi FROM bảng_23346303_3 WHERE location = "Tampa,FL" AND đối_thủ = "Louisville" |
wikisql | CREATE TABLE table 69472("Năm" real,"Vòng 1" text,"Vòng 2" text,"Địa điểm" real,"Tiền($)" real) | CREATE TABLE table_69472("Năm" real,"Vòng 1" text,"Vòng 2" text,"Địa_điểm" real,"Tiền($)" real) | Vòng 1 trong số 70 và Số tiền ($) lớn hơn 500.000 có năm cao nhất? | Vòng 1 trong số 70 và Số tiền ( $ ) lớn hơn 500.000 có năm cao nhất ? | SELECT MAX ( "Năm" ) FROM table 69472 WHERE "Vòng 1" = '70' AND "Tiền ( ) " > '500.000' | SELECT MAX ( "Năm" ) FROM table_69472 WHERE "Vòng 1" = "70" AND "Tiền ( ) " > "500.000" |
sql_create_context | CREATE TABLE tên bảng 38(đám đông INTEGER,đội khách VARCHAR) | CREATE TABLE tên_bảng_38(đám đông INTEGER,đội khách VARCHAR) | Lượng khán giả trung bình khi đội Collingwood vắng mặt là bao nhiêu? | Lượng khán_giả trung_bình khi đội Collingwood vắng_mặt là bao_nhiêu ? | SELECT AVG ( đám đông ) FROM tên bảng 38 WHERE đi team = "collingwood" | SELECT AVG ( đám đông ) FROM tên_bảng_38 WHERE đi_team = "collingwood" |
sql_create_context | CREATE TABLE table 15739098 1(tập INTEGER,được chuyển thể bởi VARCHAR) | CREATE TABLE table_15739098_1(tập INTEGER,được chuyển_thể bởi VARCHAR) | Kể tên tập phim được Leon Griffiths chuyển thể nhiều nhất | Kể tên tập phim được Leon_Griffiths chuyển_thể nhiều nhất | SELECT MAX ( tập ) FROM table 15739098 1 WHERE Adapt by = "Leon Griffiths" | SELECT MAX ( tập ) FROM table_15739098_1 WHERE Adapt_by = "Leon_Griffiths" |
sql_create_context | CREATE TABLE table name 95(sân vận động VARCHAR,date VARCHAR) | CREATE TABLE table_name_95(sân_vận_động VARCHAR,date VARCHAR) | Trận đấu ngày 29 tháng 12 năm 2008 diễn ra ở sân vận động nào? | Trận đấu ngày 29 tháng 12 năm 2008 diễn ra ở sân_vận_động nào ? | SELECT sân vận động FROM table name 95 WHERE date = "29 tháng 12 năm 2008" | SELECT sân_vận_động FROM table_name_95 WHERE date = "29 tháng 12 năm 2008" |
mimic_iii | CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,chi phí number) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,ngày bắt đầu time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,lộ trình text) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,thời gian biểu đồ time,spec type desc text,org name text) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) 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 inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE biểu đồ(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,tiêu đề dài text) | CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,chi_phí number) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,ngày bắt_đầu time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,lộ_trình text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,thời_gian biểu_đồ time,spec_type_desc text,org_name text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) 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 inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE biểu_đồ(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,tiêu_đề dài text) | có bao nhiêu đơn thuốc được cấp cho hydrocerin vào năm 2105? | có bao_nhiêu đơn thuốc được cấp cho hydrocerin vào năm 2105 ? | SELECT COUNT ( * ) FROM đơn thuốc WHERE đơn thuốc.drug = 'hydrocerin' AND STRFTIME ( 'y',prescriptions.startdate ) = '2105' | SELECT COUNT ( * ) FROM đơn thuốc WHERE đơn thuốc.drug = "hydrocerin" AND STRFTIME ( " y",prescriptions.startdate ) = "2105" |
wikisql | CREATE TABLE table 48840("Thành viên" text,"Đảng" text,"Cử tri" text,"Tiểu bang" text,"Nhiệm kỳ" text) | CREATE TABLE table_48840("Thành_viên" text,"Đảng" text,"Cử_tri" text,"Tiểu_bang" text,"Nhiệm_kỳ" text) | Bang nào có Khu bầu cử Tây Sydney? | Bang nào có Khu bầu_cử Tây_Sydney ? | SELECT "Tiểu bang" FROM table 48840 WHERE "Khu vực bầu cử" = 'tây sydney' | SELECT "Tiểu_bang" FROM table_48840 WHERE "Khu_vực bầu_cử" = "tây sydney" |
sql_create_context | CREATE TABLE table 1553485 1(city of license market VARCHAR,channel tv dt VARCHAR) | CREATE TABLE table_1553485_1(city_of_license__market VARCHAR,channel_tv__dt__ VARCHAR) | Thành phố được cấp phép/thị trường nào có 3 (26) kênh truyền hình (dt) của họ? | Thành_phố được cấp phép / thị_trường nào có 3 ( 26 ) kênh_truyền_hình ( dt ) của họ ? | SELECT thành phố of license thị trường FROM bảng 1553485 1 WHERE kênh tv dt = "3 ( 26 ) " | SELECT thành phố_of_license__thị trường FROM bảng_1553485_1 WHERE kênh_tv__dt_ = "3 ( 26 ) " |
sql_create_context | CREATE TABLE table name 69(xếp hạng INTEGER,vàng VARCHAR,đồng VARCHAR,bạc VARCHAR) | CREATE TABLE table_name_69(xếp_hạng INTEGER,vàng VARCHAR,đồng VARCHAR,bạc VARCHAR) | Đội nào có thứ hạng thấp nhất với 0 đồng, 1 bạc và hơn 0 vàng? | Đội nào có thứ_hạng thấp nhất với 0 đồng , 1 bạc và hơn 0 vàng ? | SELECT MIN ( thứ hạng ) FROM tên bảng 69 WHERE đồng = 0 AND bạc = 1 AND vàng > 0 | SELECT MIN ( thứ_hạng ) FROM tên_bảng_69 WHERE đồng = 0 AND bạc = 1 AND vàng > 0 |
wikisql | CREATE TABLE table 891("Quận" real,"Đảng đương nhiệm" text,"Đảng" text,"Được bầu" real,"Trạng thái" text,"Đối thủ" text) | CREATE TABLE table_891("Quận" real,"Đảng đương_nhiệm" text,"Đảng" text,"Được bầu" real,"Trạng_thái" text,"Đối_thủ" text) | quận tối thiểu với người đương nhiệm là Tom Reynolds | quận tối_thiểu với người đương_nhiệm là Tom Reynolds | SELECT MIN ( "Quận" ) FROM table 891 WHERE "Đương nhiệm" = 'Tom Reynolds' | SELECT MIN ( "Quận" ) FROM table_891 WHERE "Đương_nhiệm" = "Tom_Reynolds" |
wikisql | CREATE TABLE table 56861("Năm" real,"Chủ đề" text,"Nghệ sĩ" text,"Mintage" text,"Giá phát hành" real,"Ghi chú đặc biệt" text) | CREATE TABLE table_56861("Năm" real,"Chủ_đề" text,"Nghệ_sĩ" text,"Mintage" text,"Giá phát_hành" real,"Ghi_chú đặc_biệt" text) | Việc đúc tiền xu có chủ đề Toronto Maple Leafs và giá phát hành dưới 24,95 là bao nhiêu? | Việc đúc tiền xu có chủ_đề Toronto Maple_Leafs và giá phát_hành dưới 24,95 là bao_nhiêu ? | SELECT "Mintage" FROM table 56861 WHERE "Theme" = 'lá phong toronto' AND "Giá phát hành" < '24,95' | SELECT "Mintage" FROM table_56861 WHERE "Theme" = "lá phong_toronto" AND "Giá phát_hành" < "24,95" |
wikisql | CREATE TABLE table 31098("Giai đoạn" real,"Người chiến thắng" text,"Phân loại chung" text,"Phân loại miền núi" text,"Phân loại nước rút" text,"Phân loại tay đua trẻ" text,"Phân loại đội" text,"Kỵ sĩ hung hãn" text) | CREATE TABLE table_31098("Giai_đoạn" real,"Người chiến_thắng" text,"Phân_loại chung" text,"Phân_loại miền núi" text,"Phân_loại nước_rút" text,"Phân_loại tay đua trẻ" text,"Phân_loại đội" text,"Kỵ_sĩ hung_hãn" text) | Luke Durbridge là tay đua năng nổ được xếp vào hạng tay đua trẻ ở đâu? | Luke Durbridge là tay đua_năng nổ được xếp vào hạng tay đua trẻ ở đâu ? | SELECT "Phân loại tay đua trẻ" FROM table 31098 WHERE "Kỵ sĩ hung hãn" = 'Luke Durbridge' | SELECT "Phân_loại tay đua trẻ" FROM table_31098 WHERE "Kỵ_sĩ hung_hãn" = "Luke_Durbridge" |
nvbench | CREATE TABLE khóa học(course id varchar(8),title varchar(50),dept name varchar(20),credits numeric(2,0)) CREATE TABLE take(ID varchar(5),course id varchar(8),sec id varchar(8),học kỳ varchar(6),năm numeric(4,0),lớp varchar(2)) CREATE TABLE cố vấn(s ID varchar(5),i ID varchar(5)) CREATE TABLE prereq(course id varchar(8),prereq id varchar(8)) CREATE TABLE phần(course id varchar(8),sec id varchar(8),học kỳ varchar(6),năm numeric(4,0),tòa nhà varchar(15),số phòng varchar(7),time slot id varchar(4)) CREATE TABLE bộ phận(tên phòng varchar(20),tòa nhà varchar(15),ngân sách numeric(12,2)) CREATE TABLE lớp học(tòa nhà varchar(15),số phòng varchar(7),sức chứa numeric(4,0)) CREATE TABLE dạy(ID varchar(5),course id varchar(8),sec id varchar(8),học kỳ varchar(6),năm numeric(4,0)) CREATE TABLE sinh viên(ID varchar(5),tên varchar(20),dept name varchar(20),tot cred numeric(3,0)) CREATE TABLE giảng viên(ID varchar(5),name varchar(20),dept name varchar(20),lương numeric(8,2)) CREATE TABLE time slot(time slot id varchar(4),day varchar(1),start hr numeric(2),start min numeric(2),end hr numeric(2),end min numeric(2)) | CREATE TABLE khóa_học(course_id varchar(8),title varchar(50),dept_name varchar(20),credits numeric(2,0)) CREATE TABLE take(ID varchar(5),course_id varchar(8),sec_id varchar(8),học kỳ varchar(6),năm numeric(4,0),lớp varchar(2)) CREATE TABLE cố_vấn(s_ID varchar(5),i_ID varchar(5)) CREATE TABLE prereq(course_id varchar(8),prereq_id varchar(8)) CREATE TABLE phần(course_id varchar(8),sec_id varchar(8),học kỳ varchar(6),năm numeric(4,0),tòa nhà varchar(15),số_phòng varchar(7),time_slot_id varchar(4)) CREATE TABLE bộ_phận(tên phòng varchar(20),tòa nhà varchar(15),ngân_sách numeric(12,2)) CREATE TABLE lớp_học(tòa nhà varchar(15),số_phòng varchar(7),sức chứa numeric(4,0)) CREATE TABLE dạy(ID varchar(5),course_id varchar(8),sec_id varchar(8),học kỳ varchar(6),năm numeric(4,0)) CREATE TABLE sinh_viên(ID varchar(5),tên varchar(20),dept_name varchar(20),tot_cred numeric(3,0)) CREATE TABLE giảng_viên(ID varchar(5),name varchar(20),dept_name varchar(20),lương numeric(8,2)) CREATE TABLE time_slot(time_slot_id varchar(4),day varchar(1),start_hr numeric(2),start_min numeric(2),end_hr numeric(2),end_min numeric(2)) | Có bao nhiêu khóa học được cung cấp mỗi năm? Hãy trực quan hóa biểu đồ đường và tôi muốn liệt kê trục x theo thứ tự tăng dần. | Có bao_nhiêu khóa_học được cung_cấp mỗi năm ?_Hãy trực_quan hóa biểu_đồ đường và tôi muốn liệt_kê trục x theo thứ_tự tăng dần . | SELECT năm, COUNT ( * ) FROM phần GROUP BY năm ORDER BY năm | SELECT năm, COUNT ( * ) FROM phần GROUP BY năm ORDER BY năm |
sql_create_context | CREATE TABLE table name 23(khía cạnh VARCHAR,kênh VARCHAR) | CREATE TABLE table_name_23(khía_cạnh VARCHAR,kênh VARCHAR) | Khía cạnh của Kênh 26.5 là gì? | Khía_cạnh của Kênh_26.5 là gì ? | SELECT khía cạnh FROM tên bảng 23 WHERE kênh = 26,5 | SELECT khía_cạnh FROM tên_bảng_23 WHERE kênh = 26,5 |
wikisql | CREATE TABLE table 39164("Hạng" real,"Rider" text,"Đội" text,"Tốc độ" text,"Thời gian" text) | CREATE TABLE table_39164("Hạng" real,"Rider" text,"Đội" text,"Tốc_độ" text,"Thời_gian" text) | Rider nào có Tốc độ 108,347 mph và Thời gian 1: 02,40,93? | Rider nào có Tốc_độ 108,347_mph và Thời_gian 1 : 02,40,93 ? | SELECT "Người lái" FROM table 39164 WHERE "Tốc độ" = '108,347 mph' AND "Thời gian" = '102,40,93' | SELECT "Người lái" FROM table_39164 WHERE "Tốc_độ" = "108,347_mph" AND "Thời_gian" = "1 02,40,93" |
wikisql | CREATE TABLE table 77098("Người chơi" text,"Quốc gia" text,"Năm thắng" text,"Tổng" real,"Sang bằng" real) | CREATE TABLE table_77098("Người chơi" text,"Quốc_gia" text,"Năm_thắng" text,"Tổng" real,"Sang bằng" real) | Andy North có To par lớn hơn 8 Country là gì? | Andy North có To_par lớn hơn 8 Country là gì ? | SELECT "Quốc gia" FROM table 77098 WHERE "Sang đẳng" > '8' AND "Người chơi" = 'andy bắc' | SELECT "Quốc_gia" FROM table_77098 WHERE "Sang_đẳng" > "8" AND "Người chơi" = "andy bắc" |
sql_create_context | CREATE TABLE table name 3(năm INTEGER,giám đốc VARCHAR) | CREATE TABLE table_name_3(năm INTEGER,giám_đốc VARCHAR) | Giám đốc christophe barratier có năm cao nhất là năm nào? | Giám_đốc christophe barratier có năm cao nhất là năm nào ? | SELECT MAX ( năm ) FROM tên bảng 3 WHERE giám đốc = "christophe barratier" | SELECT MAX ( năm ) FROM tên_bảng_3 WHERE giám_đốc = "christophe barratier" |
wikisql | CREATE TABLE table 71702("Tên" text,"Năm" text,"Giới tính" text,"Khu vực" text,"Thẩm quyền" text,"Thập phân khúc" real,"Cuộn" real) | CREATE TABLE table_71702("Tên" text,"Năm" text,"Giới_tính" text,"Khu_vực" text,"Thẩm_quyền" text,"Thập phân_khúc" real,"Cuộn" real) | Kể tên những năm thập phân dưới 7 của trường Waitoa | Kể tên những năm thập_phân dưới 7 của trường Waitoa | SELECT "Năm" FROM table 71702 WHERE "Decile" < '7' AND "Name" = 'waitoa school' | SELECT "Năm" FROM table_71702 WHERE "Decile" < "7" AND "Name" = "waitoa school" |
mimic_iii | CREATE TABLE d labitems(row id number,itemid number,label text) 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 chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE cost(row id number,topic id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,số lượng number) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính text,dob time,dod time) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,admission location text,vị trí xuất viện text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,ngày bắt đầu time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,route text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE labevents(row id number,topic id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) 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 chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,ngoài giờ time) | CREATE TABLE d_labitems(row_id number,itemid number,label text) 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 chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE cost(row_id number,topic_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,số_lượng number) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod time) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,vị_trí xuất_viện text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,ngày bắt_đầu time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE labevents(row_id number,topic_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) 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 chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,ngoài giờ time) | cho tôi biết lần đầu tiên bệnh nhân 20603 đo huyết áp động mạch là khi nào? | cho tôi biết lần đầu_tiên bệnh_nhân 20603 đo huyết_áp động_mạch là khi nào ? | SELECT Chartevents.charttime FROM Chartevents WHERE Chartevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 20603 ) ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'trung bình bp động mạch' AND d items.linksto = 'chartevents' ) ORDER BY Chartevents.charttime LIMIT 1 | SELECT Chartevents.charttime FROM Chartevents WHERE Chartevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 20603 ) ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "trung_bình bp động_mạch" AND d_items.linksto = "chartevents" ) ORDER BY Chartevents.charttime LIMIT 1 |
wikisql | CREATE TABLE table 40730("Trạm" text,"Chính quyền địa phương [a ]" text,"Được phục vụ bởi" text,"Người dùng trạm 2004\u201305" real,"Người dùng trạm 2005\u201306" real) | CREATE TABLE table_40730("Trạm" text,"Chính_quyền địa_phương [ a_]" text,"Được phục_vụ bởi" text,"Người dùng trạm 2004\_u201305" real,"Người dùng trạm 2005\_u201306" real) | Có bao nhiêu người dùng Trạm 2005 06 có số người dùng Trạm 2004 05 là 1.455.700? | Có bao_nhiêu người dùng Trạm 2005 06 có số người dùng Trạm 2004 05 là 1.455.700 ? | SELECT COUNT ( "Người dùng trạm 2005u201306" ) FROM table 40730 WHERE "Người dùng trạm 2004u201305" = '1.455.700' | SELECT COUNT ( "Người dùng trạm 2005u201306" ) FROM table_40730 WHERE "Người dùng trạm 2004u201305" = "1.455.700" |
sql_create_context | CREATE TABLE table name 16(loạt VARCHAR,đội VARCHAR,game VARCHAR) | CREATE TABLE table_name_16(loạt VARCHAR,đội VARCHAR,game VARCHAR) | chuỗi là gì khi đội là @boston và trò chơi nhỏ hơn 3? | chuỗi là gì khi đội là @_boston và trò_chơi nhỏ hơn 3 ? | SELECT series FROM table name 16 WHERE team = "boston" AND game < 3 | SELECT series FROM table_name_16 WHERE team = "boston" AND game < 3 |
sql_create_context | CREATE TABLE table 29997112 3(nghĩa là VARCHAR,phiên âm VARCHAR) | CREATE TABLE table_29997112_3(nghĩa_là VARCHAR,phiên âm VARCHAR) | Ý nghĩa của lá cờ có tên phiên âm thành dvojka là gì? | Ý_nghĩa của lá cờ có tên phiên âm_thành dvojka là gì ? | SELECT nghĩa FROM table 29997112 3 WHERE phiên âm = "dvojka" | SELECT nghĩa FROM table_29997112_3 WHERE phiên âm= "dvojka" |
wikisql | CREATE TABLE table 53319("Xếp hạng" real,"Hãng hàng không" text,"Quốc gia" text,"Hành khách vận chuyển" real,"Nhận xét" text,"Liên minh" text) | CREATE TABLE table_53319("Xếp_hạng" real,"Hãng hàng_không" text,"Quốc_gia" text,"Hành_khách vận_chuyển" real,"Nhận_xét" text,"Liên_minh" text) | Nhận xét gì về mục được xếp hạng lớn hơn 2 với liên minh skyteam (2012)? | Nhận_xét gì về mục được xếp_hạng lớn hơn 2 với liên_minh skyteam ( 2012 ) ? | SELECT "Ghi chú" FROM table 53319 WHERE "Xếp hạng" > '2' AND "Liên minh" = 'skyteam ( 2012 ) ' | SELECT "Ghi_chú" FROM table_53319 WHERE "Xếp_hạng" > "2" AND "Liên_minh" = "skyteam ( 2012 ) " |
wikisql | CREATE TABLE table 62045("Quận" text,"Thu nhập bình quân đầu người" text,"Thu nhập hộ gia đình trung bình" text,"Thu nhập hộ gia đình trung bình" text,"Dân số" real,"Số hộ gia đình" real) | CREATE TABLE table_62045("Quận" text,"Thu_nhập bình_quân đầu người" text,"Thu_nhập hộ gia_đình trung_bình" text,"Thu_nhập hộ gia_đình trung_bình" text,"Dân_số" real,"Số hộ gia_đình" real) | Dân số cao nhất trong số 1.819 hộ gia đình của quận Deuel là bao nhiêu? | Dân_số cao nhất trong số 1.819_hộ gia_đình của quận Deuel là bao_nhiêu ? | SELECT MAX ( "Dân số" ) FROM table 62045 WHERE "Quận" = 'deuel' AND "Số hộ gia đình" < '1.819' | SELECT MAX ( "Dân_số" ) FROM table_62045 WHERE "Quận" = "deuel" AND "Số hộ gia_đình" < "1.819" |
sql_create_context | CREATE TABLE table 2668243 18(kết quả VARCHAR,ứng viên VARCHAR) | CREATE TABLE table_2668243_18(kết_quả VARCHAR,ứng_viên VARCHAR) | Đặt tên kết quả cho augustine h. shepperd (j) 100% | Đặt tên kết_quả cho augustine h . shepperd ( j ) 100 % | SELECT kết quả FROM bảng 2668243 18 WHERE ứng viên = "Augustine H.Shepperd ( J ) 100" | SELECT kết_quả FROM bảng_2668243_18 WHERE ứng_viên = "Augustine_H.Shepperd ( J ) 100 " |
eicu | CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng đầu ra(lượng đầu vào number,BNunitstayid number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bào number,thời gian đưa vào đầu ra time) 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 TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,hospitalid number,phường bệnh number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện đơn vị time,thời gian xuất viện đơn vị time,thời gian xuất viện time,trạng thái nhập viện text) CREATE TABLE chẩn đoán(chẩn đoán number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,tâm thu hệ thống number,hệ thống tâm trương number,trung bình hệ thống number,thời gian quan sát time) CREATE TABLE dị ứng(dị ứng number,bệnh nhân đơn vị ở lại number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE thuốc(thuốc number,bệnh nhân ở lại number,tên thuốc text,liều lượng text,routeadmin text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE điều trị(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) | CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng đầu_ra(lượng đầu vào number,BNunitstayid number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bào number,thời_gian đưa vào đầu_ra time) 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 TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,hospitalid number,phường bệnh number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện đơn_vị time,thời_gian xuất_viện đơn_vị time,thời_gian xuất_viện time,trạng_thái nhập_viện text) CREATE TABLE chẩn_đoán(chẩn_đoán number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,tâm_thu hệ_thống number,hệ_thống tâm_trương number,trung_bình hệ_thống number,thời_gian quan_sát time) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân đơn_vị ở lại number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE thuốc(thuốc number,bệnh_nhân ở lại number,tên thuốc text,liều_lượng text,routeadmin text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE điều_trị(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) | Tên dị ứng là gì, bệnh nhân 005-76770 mắc phải cho đến ngày 05/2104? | Tên dị_ứng là gì , bệnh_nhân 005 - 76770 mắc phải cho đến ngày 05/2104 ? | SELECT dị ứng.allergyname FROM dị ứng WHERE dị ứng.bệnh nhânunitstayid IN ( SELECT bệnh nhân.bệnh nhânunitstayid FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '00576770 ' ) ) AND STRFTIME ( 'ym',allergy.allergytime ) <= '210405' | SELECT dị_ứng.allergyname FROM dị_ứng WHERE dị_ứng.bệnh nhânunitstayid IN ( SELECT bệnh_nhân.bệnh nhânunitstayid FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "005 76770" ) ) AND STRFTIME ( " y m",allergy.allergytime ) < = "2104 05" |
mimicsql_data | CREATE TABLE đơn thuốc(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 thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,tên text,tình trạng hôn nhân text,tuổi text,nghề nghiệp text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn flag text,admission location text,discharge location text,diagnosis text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) | CREATE TABLE đơn thuốc(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 thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,tên text,tình_trạng hôn_nhân text,tuổi text,nghề_nghiệp text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) | chẩn đoán mã icd9 là gì và chẩn đoán tiêu đề dài của id chủ đề 42820? | chẩn_đoán mã_icd9 là gì và chẩn_đoán tiêu_đề dài của id chủ_đề 42820 ? | SELECT mã chẩn đoán.icd 9,diagnoses.long title FROM chẩn đoán WHERE chẩn đoán.subject id = "42820" | SELECT mã chẩn_đoán.icd 9,diagnoses.long title FROM chẩn_đoán WHERE chẩn_đoán.subject_id = "42820" |
sql_create_context | CREATE TABLE table name 34(năm VARCHAR,cuộc thi VARCHAR,điểm VARCHAR) | CREATE TABLE table_name_34(năm VARCHAR,cuộc thi VARCHAR,điểm VARCHAR) | Khi nào nswrfl có số điểm 8-21? | Khi nào nswrfl có số điểm 8-21 ? | SELECT năm FROM tên bảng 34 WHERE cuộc thi = "nswrfl" AND điểm = "821" | SELECT năm FROM tên_bảng_34 WHERE cuộc thi = "nswrfl" AND điểm = "821" |
spider | CREATE TABLE người(người id number,giới tính text,tên text,ngày sinh text,chiều cao number,cân nặng number) CREATE TABLE ứng cử viên(candidate id number,people id number,poll source text,date text,tỷ lệ hỗ trợ number,tỷ lệ cân nhắc number,tỷ lệ phản đối number,tỷ lệ không chắc chắn number) | CREATE TABLE người(người_id number,giới_tính text,tên text,ngày_sinh text,chiều cao number,cân nặng number) CREATE TABLE ứng_cử_viên(candidate_id number,people_id number,poll_source text,date text,tỷ_lệ hỗ_trợ number,tỷ_lệ cân_nhắc number,tỷ_lệ phản_đối number,tỷ_lệ không chắc_chắn number) | Tìm tên các ứng cử viên có tỷ lệ phản đối thấp nhất ở mỗi giới tính. | Tìm tên các ứng_cử_viên có tỷ_lệ phản_đối thấp nhất ở mỗi giới_tính . | SELECT t1.name,t1.sex, MIN ( oppose rate ) FROM people AS t1 JOIN ứng cử viên AS t2 ON t1.people id = t2.people id GROUP BY t1.sex | SELECT t1.name,t1.sex, MIN ( oppose_rate ) FROM people AS t1 JOIN ứng_cử_viên AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex |
eicu | CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE bệnh nhân(độc nhất text,bệnh nhânhệ thốngở lạiid number,bệnh nhânđơn vị ở lạiid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,mã bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn bệnh viện text,thời gian nhập viện time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE dị ứng(dị ứng number,bệnh nhân đơn vị lưu trú number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE điều trị(điều trịid number,bệnh nhân đơn vị lưu trú number,tên điều trị text,thời gian điều trị time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE đầu vào đầu ra(lượng đầu raid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE drug(medicidid number,Patientunitstayid number,tên thuốc text,liều lượng text,routeadmin text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE chi phí(chi phí number,uniquepid text,bệnh nhânhealthsystemstayid number,loại sự kiện text,eventid number,thời gian tính phí time,chi phí number) | CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE bệnh_nhân(độc_nhất text,bệnh nhânhệ thốngở lạiid number,bệnh nhânđơn_vị ở lạiid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,mã bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn bệnh_viện text,thời_gian nhập_viện time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE điều_trị(điều trịid number,bệnh_nhân đơn_vị lưu_trú number,tên điều_trị text,thời_gian điều_trị time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE đầu_vào đầu_ra(lượng đầu raid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE drug(medicidid number,Patientunitstayid number,tên thuốc text,liều_lượng text,routeadmin text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE chi_phí(chi_phí number,uniquepid text,bệnh nhânhealthsystemstayid number,loại sự_kiện text,eventid number,thời_gian tính phí time,chi_phí number) | Thời gian nằm trong phòng hồi sức lần cuối của bệnh nhân 015-67291 là bao lâu? | Thời_gian nằm trong phòng hồi_sức lần cuối của bệnh_nhân 015 - 67291 là bao_lâu ? | SELECT STRFTIME ( 'j',Patient.unitdischargetime ) STRFTIME ( 'j',Patient.unitadmittime ) FROM bệnh nhân WHERE bệnh nhân.bệnh nhân.healthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '01567291' ) AND NOT disease.unitadmittime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 | SELECT STRFTIME ( " j",Patient.unitdischargetime ) STRFTIME ( " j",Patient.unitadmittime ) FROM bệnh_nhân WHERE bệnh_nhân.bệnh_nhân.healthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "015 67291" ) AND NOT disease.unitadmittime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 |
sql_create_context | CREATE TABLE table name 63(country name VARCHAR,numeric code VARCHAR,latin 3 letter code VARCHAR) | CREATE TABLE table_name_63(country_name VARCHAR,numeric_code VARCHAR,latin_3_letter_code VARCHAR) | Tên quốc gia có mã số nhỏ hơn 246 và mã slv gồm 3 chữ cái Latinh là gì? | Tên quốc_gia có mã_số nhỏ hơn 246 và mã slv gồm 3 chữ_cái Latinh là gì ? | SELECT country name FROM table name 63 WHERE num code < 246 AND latin 3 letter code = "slv" | SELECT country_name FROM table_name_63 WHERE num_code < 246 AND latin_3_letter_code = "slv" |
wikisql | CREATE TABLE table 69925("Xếp hạng" real,"Quốc gia" text,"Vàng" real,"Bạc" real,"Đồng" real,"Tổng" real) | CREATE TABLE table_69925("Xếp_hạng" real,"Quốc_gia" text,"Vàng" real,"Bạc" real,"Đồng" real,"Tổng" real) | Tổng số điểm của Nga với hơn 1 huy chương vàng và ít hơn 10 huy chương đồng là bao nhiêu? | Tổng_số điểm của Nga với hơn 1 huy_chương vàng và ít hơn 10 huy_chương đồng là bao_nhiêu ? | SELECT SUM ( "Tổng" ) FROM table 69925 WHERE "Vàng" > '1' AND "Quốc gia" = 'russia' AND "Đồng" < '10' | SELECT SUM ( "Tổng" ) FROM table_69925 WHERE "Vàng" > "1" AND "Quốc_gia" = "russia" AND "Đồng" < "10" |
mimic_iii | 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,thời gian tính phí time,chi phí number) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLEchartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) 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 chuyển(row id number,topic id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,số tiền number) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE chẩn đoán icd(row id number,topic id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,ngày bắt đầu time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,route text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính text,dob time,làm gì time) | 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,thời_gian tính phí time,chi_phí number) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLEchartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) 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 chuyển(row_id number,topic_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,số tiền number) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE chẩn_đoán_icd(row_id number,topic_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,ngày bắt_đầu time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,làm gì time) | Bệnh nhân 30509 đã được cho ăn bằng ống cho đến ngày 21/11 chưa? | Bệnh_nhân 30509 đã được cho ăn bằng ống cho đến ngày 21/11 chưa ? | SELECT COUNT ( * ) > 0 FROM inputevents cv WHERE inputevents cv.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 30509 ) ) AND inputevents cv.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'cho ăn bằng ống' AND d items.linksto = 'inputevents cv' ) AND STRFTIME ( 'ym',inputevents cv.charttime ) <= '210511' | SELECT COUNT ( * ) > 0 FROM inputevents_cv WHERE inputevents_cv.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 30509 ) ) AND inputevents_cv.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "cho ăn bằng ống" AND d_items.linksto = "inputevents_cv" ) AND STRFTIME ( " y m",inputevents_cv.charttime ) < = "2105 11" |
sql_create_context | CREATE TABLE table name 25(pos VARCHAR,name VARCHAR) | CREATE TABLE table_name_25(pos VARCHAR,name VARCHAR) | Michael Lee đã chơi ở vị trí nào? | Michael Lee đã chơi ở vị_trí nào ? | SELECT pos FROM table name 25 WHERE name = "michael lee" | SELECT pos FROM table_name_25 WHERE name = "michael lee" |
wikisql | CREATE TABLE table 2804("Mùa" text,"Trung Franconia phía Bắc" text,"Trung Franconia S\u00fcd" text,"Lower Franconia West" text,"Lower Franconia East" text,"Thượng Franconia Tây" text,"Thượng Franconia Đông" text) | CREATE TABLE table_2804("Mùa" text,"Trung_Franconia phía Bắc" text,"Trung_Franconia S\_u00fcd" text,"Lower Franconia_West" text,"Lower Franconia_East" text,"Thượng_Franconia Tây" text,"Thượng_Franconia_Đông" text) | Khi sv neuses là phía tây oberfranken mùa là gì? | Khi sv neuses là phía tây oberfranken mùa là gì ? | SELECT "Mùa" FROM table 2804 WHERE "Thượng Franconia Tây" = 'SV Neuses' | SELECT "Mùa" FROM table_2804 WHERE "Thượng_Franconia Tây" = "SV Neuses" |
sql_create_context | CREATE TABLE bảng 25965003 3(access using a croatian identity card VARCHAR,countries and territories VARCHAR) | CREATE TABLE bảng_25965003_3(access_using_a_croatian_identity_card VARCHAR,countries_and_territories VARCHAR) | Một người có thể vào lãnh thổ Jersey bằng chứng minh nhân dân Croatia không? | Một người có_thể vào lãnh_thổ Jersey bằng_chứng_minh nhân_dân Croatia không ? | SELECT access using a croatian identity card FROM table 25965003 3 WHERE country and territories = "Jersey" | SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE country_and_territories = "Jersey" |
sql_create_context | CREATE TABLE table 2668329 11(đảng VARCHAR,đương nhiệm VARCHAR) | CREATE TABLE table_2668329_11(đảng VARCHAR,đương_nhiệm VARCHAR) | Bữa tiệc của Samuel Smith là gì? | Bữa tiệc của Samuel_Smith là gì ? | SELECT đảng FROM table 2668329 11 WHERE đương nhiệm = "Samuel Smith" | SELECT đảng FROM table_2668329_11 WHERE đương_nhiệm = "Samuel_Smith" |
sql_create_context | CREATE TABLE tên bảng 37(kết quả f a VARCHAR,date VARCHAR) | CREATE TABLE tên_bảng_37(kết_quả_f_a VARCHAR,date VARCHAR) | Ngày 24 tháng 9 năm 2002 có kết quả F-A như thế nào? | Ngày 24 tháng 9 năm 2002 có kết_quả F-A như_thế_nào ? | SELECT result f a FROM tên bảng 37 WHERE date = "24 tháng 9 năm 2002" | SELECT result_f_a FROM tên_bảng_37 WHERE date = "24 tháng 9 năm 2002" |
mimicsql_data | CREATE TABLE đơn thuốc(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 thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian phân bổ text,năm nhập học text) | CREATE TABLE đơn thuốc(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 thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian phân_bổ text,năm nhập_học text) | có bao nhiêu bệnh nhân dưới 41 tuổi nằm viện trên 3 ngày? | có bao_nhiêu bệnh_nhân dưới 41 tuổi nằm viện trên 3 ngày ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học WHERE nhân khẩu học.tuổi < "41" AND nhân khẩu học.ngày stay > "3" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học WHERE nhân_khẩu học.tuổi <"41" AND nhân_khẩu học.ngày_stay >"3" |
sql_create_context | CREATE TABLE tên bảng 18(chấm dứt nhiệm vụ VARCHAR,do chỉ định VARCHAR,người đại diện VARCHAR) | CREATE TABLE tên_bảng_18(chấm dứt_nhiệm vụ VARCHAR,do_chỉ_định VARCHAR,người đại_diện VARCHAR) | Nêu tên việc chấm dứt nhiệm vụ của Woodrow Wilson do người đại diện của Benton Mcmillin bổ nhiệm | Nêu tên việc chấm_dứt nhiệm_vụ của Woodrow_Wilson do người đại_diện của Benton_Mcmillin bổ_nhiệm | SELECT chấm dứt of mission FROM table name 18 WHERE được chỉ định by = "woodrow wilson" AND đại diện = "benton mcmillin" | SELECT chấm dứt_of_mission FROM table_name_18 WHERE được chỉ định_by = "woodrow wilson" AND đại_diện = "benton mcmillin" |
sql_create_context | CREATE TABLE table name 22(lưới INTEGER,trình điều khiển VARCHAR,vòng VARCHAR) | CREATE TABLE table_name_22(lưới INTEGER,trình điều_khiển VARCHAR,vòng VARCHAR) | Tổng lưới cho kazuyoshi hoshino với dưới 71 vòng là bao nhiêu? | Tổng_lưới cho kazuyoshi hoshino với dưới 71 vòng là bao_nhiêu ? | SELECT SUM ( lưới ) FROM Tabe lick 22 WHERE khô hơn = "Kazuyoshi Hoshino" AND aps < 71 | SELECT SUM ( lưới ) FROM Tabe_lick_22 WHERE khô hơn = "Kazuyoshi_Hoshino" AND aps < 71 |
sql_create_context | CREATE TABLE tên bảng 11(date VARCHAR,bản ghi VARCHAR) | CREATE TABLE tên_bảng_11(date VARCHAR,bản ghi VARCHAR) | Bạn có thể cho tôi biết Ngày có Hồ sơ ngày 9-10-2 không? | Bạn có_thể cho tôi biết Ngày có Hồ_sơ ngày 9-10-2 không ? | SELECT date FROM tên bảng 11 WHERE record = "9102" | SELECT date FROM tên_bảng_11 WHERE record = "9102" |
wikisql | CREATE TABLE table 10003("Kết quả" text,"Năm" real,"Vô địch" text,"Bề mặt" text,"Đối thủ" text,"Xếp hạng" real,"Vòng" text) | CREATE TABLE table_10003("Kết_quả" text,"Năm" real,"Vô_địch" text,"Bề_mặt" text,"Đối_thủ" text,"Xếp_hạng" real,"Vòng" text) | Vòng là gì khi Thứ hạng nhỏ hơn 117? | Vòng là gì khi Thứ_hạng nhỏ hơn 117 ? | SELECT "Vòng" FROM bảng 10003 WHERE "Xếp hạng" < '117' | SELECT "Vòng" FROM bảng_10003 WHERE "Xếp_hạng" < "117" |
wikisql | CREATE TABLE table 10442("Đội chủ nhà" text,"Tỷ số đội chủ nhà" text,"Đội khách" text,"Tỷ số đội khách" text,"Địa điểm" text,"Đám đông" real,"Ngày" text) | CREATE TABLE table_10442("Đội chủ nhà" text,"Tỷ_số đội chủ nhà" text,"Đội khách" text,"Tỷ_số đội khách" text,"Địa_điểm" text,"Đám đông" real,"Ngày" text) | North Melbourne đã chơi ở đâu với tư cách là đội khách? | North Melbourne đã chơi ở đâu với tư_cách là đội khách ? | SELECT "Địa điểm" FROM table 10442 WHERE "Đội khách" = 'bắc melbourne' | SELECT "Địa_điểm" FROM table_10442 WHERE "Đội khách" = "bắc melbourne" |
wikisql | CREATE TABLE table 42456("Trò chơi" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Điểm của Oilers" real,"Đối thủ" real,"Đối thủ đầu tiên bị hạ gục" real,"Ghi" text,"Đi học" real) | CREATE TABLE table_42456("Trò_chơi" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Điểm của Oilers" real,"Đối_thủ" real,"Đối_thủ đầu_tiên bị hạ gục" real,"Ghi" text,"Đi học" real) | Điểm nào của Oilers có Kỷ lục là 10 6 và lần đầu tiên Oilers giảm điểm lớn hơn 14? | Điểm nào của Oilers có Kỷ_lục là 10 6 và lần đầu_tiên Oilers giảm điểm lớn hơn 14 ? | SELECT AVG ( "Điểm của thợ dầu" ) FROM table 42456 WHERE "Bản ghi" = '106' AND "Điểm đầu tiên của thợ dầu" > '14' | SELECT AVG ( "Điểm của thợ dầu" ) FROM table_42456 WHERE "Bản_ghi" = "10 6" AND "Điểm đầu_tiên của thợ dầu" > "14" |
mimicsql_data | CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện text,thời gian xuất viện text,năm nhập học text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(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 nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện text,thời_gian xuất_viện text,năm nhập_học text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) | Có bao nhiêu bệnh nhân nhập viện theo chương trình đã được kiểm tra máy chuyển nhịp/máy khử rung tim (aicd) tự động? | Có bao_nhiêu bệnh_nhân nhập_viện theo chương_trình đã được kiểm_tra máy chuyển nhịp / máy khử rung tim ( aicd ) tự_động ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN thủ tục ON nhân khẩu học.hadm id = thủ tục.hadm id WHERE nhân khẩu học.admission type = "ELECTIVE" AND thủ tục.long title = "Máy khử rung timmáy khử rung tim cấy ghép tự động ( AICD ) kiểm tra" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN thủ_tục ON nhân_khẩu học.hadm_id = thủ_tục.hadm_id WHERE nhân_khẩu học.admission_type = "ELECTIVE" AND thủ_tục.long_title = "Máy_khử rung timmáy khử rung tim cấy_ghép tự_động ( AICD ) kiểm_tra" |
nvbench | CREATE TABLE nhân viên(EMPLOYEE ID decimal(6,0),FIRST NAME varchar(20),LAST NAME varchar(25),EMAIL varchar(25),PHONE NUMBER varchar(20),HIRE DATE date,JOB ID varchar(10),LƯƠNG decimal(8,2),COMMISSION PCT decimal(2,2),MANAGER ID decimal(6,0),DEPARTMENT ID decimal(4,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 khu vực(REGION ID decimal(5,0),REGION NAME varchar(25)) CREATE TABLE công việc(JOB ID varchar(10),JOB TITLE varchar(35),MIN SALARY decimal(6,0),MAX SALARY decimal(6,0)) CREATE TABLE vị trí(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 phòng ban(DEPARTMENT ID decimal(4,0),DEPARTMENT NAME varchar(30),MANAGER ID decimal(6,0),LOCATION ID decimal(4,0)) CREATE TABLE quốc gia(COUNTRY ID varchar(2),COUNTRY NAME varchar(40),REGION ID decimal(10,0)) | CREATE TABLE nhân_viên(EMPLOYEE_ID_decimal(6,0),FIRST_NAME varchar(20),LAST_NAME varchar(25),EMAIL varchar(25),PHONE_NUMBER varchar(20),HIRE_DATE_date,JOB_ID varchar(10),LƯƠNG_decimal(8,2),COMMISSION_PCT_decimal(2,2),MANAGER_ID_decimal(6,0),DEPARTMENT_ID_decimal(4,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 khu_vực(REGION_ID_decimal(5,0),REGION_NAME varchar(25)) CREATE TABLE công_việc(JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY_decimal(6,0),MAX_SALARY_decimal(6,0)) CREATE TABLE vị_trí(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 phòng_ban(DEPARTMENT_ID_decimal(4,0),DEPARTMENT_NAME varchar(30),MANAGER_ID_decimal(6,0),LOCATION_ID_decimal(4,0)) CREATE TABLE quốc_gia(COUNTRY_ID varchar(2),COUNTRY_NAME varchar(40),REGION_ID_decimal(10,0)) | Đối với những nhân viên không làm việc trong các phòng ban có người quản lý có id từ 100 đến 200, hãy tìm email và manager id và hiển thị chúng bằng biểu đồ thanh, hiển thị Y theo thứ tự mô tả. | Đối_với những nhân_viên không làm_việc trong các phòng_ban có người_quản_lý có id từ 100 đến 200 , hãy tìm email và manager_id và hiển_thị chúng bằng biểu_đồ thanh , hiển_thị Y theo thứ_tự mô_tả . | SELECT EMAIL,MANAGER ID FROM nhân viên WHERE NOT DEPARTMENT ID IN ( SELECT DEPARTMENT ID FROM phòng ban WHERE MANAGER ID BETWEEN 100 AND 200 ) ORDER BY MANAGER ID DESC | SELECT EMAIL,MANAGER_ID FROM nhân_viên WHERE NOT DEPARTMENT_ID IN ( SELECT DEPARTMENT_ID FROM phòng_ban WHERE MANAGER_ID BETWEEN 100 AND 200 ) ORDER BY MANAGER_ID DESC |
wikisql | CREATE TABLE table 57385("Người chơi" text,"Ngày sinh" text,"Phong cách đánh bóng" text,"Phong cách chơi bowling" text,"Đội hạng nhất" text) | CREATE TABLE table_57385("Người chơi" text,"Ngày_sinh" text,"Phong_cách đánh bóng" text,"Phong_cách chơi bowling" text,"Đội hạng nhất" text) | Phong cách đánh bóng của Jonty Rhodes là gì? | Phong_cách đánh_bóng của Jonty_Rhodes là gì ? | SELECT "Phong cách đánh bóng" FROM table 57385 WHERE "Người chơi" = 'jonty rhodes' | SELECT "Phong_cách đánh bóng" FROM table_57385 WHERE "Người chơi" = "jonty rhodes" |
nvbench | CREATE TABLE record(ID int,Result text,Swimmer ID int,Event ID int) CREATE TABLE sự kiện(ID int,Tên text,Stadium ID int,Năm text) CREATE TABLE vận động viên bơi lội(ID int,tên text,Quốc tịch text,meter 100 real,meter 200 text,meter 300 text,meter 400 text,meter 500 text,meter 600 text,meter 700 text,Time text) CREATE TABLE sân vận động(ID int,tên text,Sức chứa int,Thành phố text,Quốc gia text,Năm khai trương int) | CREATE TABLE record(ID int,Result text,Swimmer_ID int,Event_ID int) CREATE TABLE sự_kiện(ID int,Tên text,Stadium_ID int,Năm text) CREATE TABLE vận_động_viên bơi_lội(ID int,tên text,Quốc_tịch text,meter_100 real,meter_200 text,meter_300 text,meter_400 text,meter_500 text,meter_600 text,meter_700 text,Time text) CREATE TABLE sân_vận_động(ID int,tên text,Sức chứa int,Thành_phố text,Quốc_gia text,Năm khai_trương int) | Trả về biểu đồ thanh về phân bố Thời gian và ID và sắp xếp theo trục Y từ cao xuống thấp. | Trả về biểu_đồ thanh về phân_bố Thời_gian và ID và sắp_xếp theo trục Y từ cao xuống thấp . | SELECT Time,ID FROM vận động viên bơi lội ORDER BY ID DESC | SELECT Time,ID FROM vận_động_viên bơi lội ORDER BY ID DESC |
Subsets and Splits