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
|
---|---|---|---|---|---|---|
eicu | CREATE TABLE bệnh nhân(độc nhất text,bệnh nhânhệ thống sức khỏeở 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,mệ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 nhập viện text,thời gian nhập viện time,thời gian xuất viện time,thời gian xuất viện time,trạng thái xả viện text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) 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 cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,thời gian sạc 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,thời gian quan sát time) CREATE TABLE thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,lộ trình text,thời gian bắt đầu dùng thuốc time,thời gian dừng thuốc time) CREATE TABLE lượng đưa vào(lượng thuốc đưa ra number,bệnh nhân lưu trú number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bàonumber,thời gian đưa vào time) 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 bệnh_nhân(độc_nhất text,bệnh nhânhệ_thống sức khỏeở 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,mệ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 nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện time,thời_gian xuất_viện time,trạng_thái xả_viện text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) 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 cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,thời_gian sạc 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,thời_gian quan_sát time) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,lộ_trình text,thời_gian bắt_đầu dùng thuốc time,thời_gian dừng thuốc time) CREATE TABLE lượng đưa vào(lượng thuốc đưa ra number,bệnh_nhân lưu_trú number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bàonumber,thời_gian đưa vào time) 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) | liều ivpb tối thiểu hàng năm mà bệnh nhân 015-16057 đã dùng kể từ ngày 03/2105 là bao nhiêu? | liều ivpb tối_thiểu hàng năm mà bệnh_nhân 015 - 16057 đã dùng kể từ ngày 03/2105 là bao_nhiêu ? | SELECT MIN ( intakeoutput.cellvaluenumeric ) FROM Intakeoutput WHERE Intakeoutput.Patientunitstayid IN ( SELECT disease.Patientunitstayid FROM Patient WHERE Patient.Patienthealthsystemstayid IN ( SELECT Patient.Patienthealthsystemstayid FROM Patient WHERE Patient.uniquepid = '01516057' ) ) AND Intakeoutput.celllabel = 'ivpb' AND Intakeoutput.cellpath LIKE 'intake' AND STRFTIME ( 'ym',intakeoutput.intakeoutputtime ) >= '210503 ' GROUP BY STRFTIME ( 'y',intakeoutput.intakeoutputtime ) | SELECT MIN ( intakeoutput.cellvaluenumeric ) FROM Intakeoutput WHERE Intakeoutput.Patientunitstayid IN ( SELECT disease.Patientunitstayid FROM Patient WHERE Patient.Patienthealthsystemstayid IN ( SELECT Patient.Patienthealthsystemstayid FROM Patient WHERE Patient.uniquepid = "015 16057" ) ) AND Intakeoutput.celllabel = "ivpb" AND Intakeoutput.cellpath LIKE " intake " AND STRFTIME ( " y m",intakeoutput.intakeoutputtime ) > = "2105 03" GROUP BY STRFTIME ( " y",intakeoutput.intakeoutputtime ) |
mimic_iii | CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title 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 microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) 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,hôn nhân status text,dân tộc text,age 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 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,subject id number,hadm id number,icd9 code text,charttime time) 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 outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE d labitems(row id number,itemid number,label text) 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 cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) 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 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,gender text,dob time,dod time) 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 d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title 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 microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) 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,hôn_nhân_status text,dân_tộc text,age 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 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,subject_id number,hadm_id number,icd9_code text,charttime time) 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 outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE d_labitems(row_id number,itemid number,label text) 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 cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) 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 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,gender text,dob time,dod time) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,số_lượng number) | giá của bentamustine là bao nhiêu? | giá của bentamustine là bao_nhiêu ? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event type = 'prescriptions' AND cost.event id IN ( SELECT đơn thuốc.row id FROM đơn thuốc WHERE đơn thuốc.drug = 'bendamustine' ) | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = "prescriptions" AND cost.event_id IN ( SELECT đơn thuốc.row_id FROM đơn thuốc WHERE đơn thuốc.drug = "bendamustine" ) |
advising | CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLE Course precession(pre course id int,course id int) CREATE TABLE jobs(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE sinh viên record(student id int,course id int,semester int,grade varchar,how varchar,transfer source varchar,earn credit varchar,repeat term varchar,test id varchar) CREATE TABLE Course tags count(course id int,clear grading int,pop quiz int,group projects int,truyền cảm hứng int,bài giảng dài int,extra credit int,vài tests int,phản hồi tốt int,bài kiểm tra khó int,bài tập nặng int,quan tâm cho students int,bài tập nặng int,được tôn trọng int,tham gia int,đọc nặng int,học sinh khó int,vui nhộn int,sẽ làm bài giảng int,bài giảng hay int,no skip int) CREATE TABLE Course offering(offering id int,course id int,semester int,section number int,start time time,end time time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ bảy varchar,chủ nhật varchar,has final project varchar,has final exam varchar,sách giáo khoa varchar,class address varchar,allow audit varchar) CREATE TABLE Offer instructor(offering instructor id int,offering id int,instructor id int) CREATE TABLE gsi(course offering id int,student id int) CREATE TABLEprogram course(program id int,course id int,workload int,category varchar) CREATE TABLE giảng viên(instructor id int,name varchar,uniqname varchar) CREATE TABLE chương trình(program id int,name varchar,college varchar,introduction varchar) CREATE TABLE require(requirement id int,requirement varchar,college varchar) CREATE TABLE chương trình requirement(program id int,category varchar,min credit int,Added req varchar) CREATE TABLE khóa học(course id int,name varchar,department varchar,number varchar,credits varchar,advisory requirement varchar,enforced requirement varchar,mô tả varchar,num semesters int,num enrolled int,has discussion varchar,has lab varchar,has projects varchar,has exams varchar,num reviews int,clarity score int,easiness score int,helpfulness score int) CREATE TABLE học kỳ(semester id int,semester varchar,year int) CREATE TABLE sinh viên(student id int,lastname varchar,firstname varchar,program id int,declare major varchar,total credit int,total gpa float,entered as varchar,kỳ nhập học int,dự đoán tốt nghiệp học kỳ int,bằng cấp varchar,nhỏ varchar,thực tập varchar) CREATE TABLE ta(trường việc làm id int,student id int,địa điểm varchar) CREATE TABLE khu vực(khóa học id int,khu vực varchar) | CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLE Course_precession(pre_course_id int,course_id int) CREATE TABLE jobs(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE sinh viên_record(student_id int,course_id int,semester int,grade varchar,how varchar,transfer_source varchar,earn_credit varchar,repeat_term varchar,test_id varchar) CREATE TABLE Course_tags_count(course_id int,clear_grading int,pop_quiz int,group_projects int,truyền cảm_hứng int,bài giảng dài int,extra_credit int,vài_tests int,phản_hồi tốt int,bài kiểm_tra khó int,bài_tập nặng int,quan_tâm_cho_students int,bài_tập nặng int,được tôn_trọng int,tham_gia int,đọc nặng int,học_sinh khó int,vui nhộn int,sẽ_làm_bài giảng int,bài giảng hay int,no_skip int) CREATE TABLE Course_offering(offering_id int,course_id int,semester int,section_number int,start_time time,end_time time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ_bảy varchar,chủ_nhật varchar,has_final_project varchar,has_final_exam varchar,sách_giáo_khoa varchar,class_address varchar,allow_audit varchar) CREATE TABLE Offer_instructor(offering_instructor_id int,offering_id int,instructor_id int) CREATE TABLE gsi(course_offering_id int,student_id int) CREATE TABLEprogram_course(program_id int,course_id int,workload int,category varchar) CREATE TABLE giảng_viên(instructor_id int,name varchar,uniqname varchar) CREATE TABLE chương_trình(program_id int,name varchar,college varchar,introduction varchar) CREATE TABLE require(requirement_id int,requirement varchar,college varchar) CREATE TABLE chương trình_requirement(program_id int,category varchar,min_credit int,Added_req varchar) CREATE TABLE khóa_học(course_id int,name varchar,department varchar,number varchar,credits varchar,advisory_requirement varchar,enforced_requirement varchar,mô_tả varchar,num_semesters int,num_enrolled int,has_discussion varchar,has_lab varchar,has_projects varchar,has_exams varchar,num_reviews int,clarity_score int,easiness_score int,helpfulness_score int) CREATE TABLE học_kỳ(semester_id int,semester varchar,year int) CREATE TABLE sinh_viên(student_id int,lastname varchar,firstname varchar,program_id int,declare_major varchar,total_credit int,total_gpa float,entered_as varchar,kỳ_nhập học int,dự_đoán_tốt nghiệp_học kỳ int,bằng_cấp varchar,nhỏ varchar,thực_tập varchar) CREATE TABLE ta(trường_việc làm_id int,student_id int,địa_điểm varchar) CREATE TABLE khu_vực(khóa học_id int,khu_vực varchar) | Bạn có thể giới thiệu một lớp học PHÁP dễ dàng không? | Bạn có_thể giới_thiệu một lớp_học PHÁP dễ_dàng không ? | SELECT DISTINCT Course.name,course.number,program course.workload FROM Course,program course WHERE Course.department LIKE 'FRENCH' AND program course.course id = Course.course id AND program course.workload < 3 | SELECT DISTINCT Course.name,course.number,program_course.workload FROM Course,program_course WHERE Course.department LIKE " FRENCH " AND program_course.course_id = Course.course_id AND program_course.workload < 3 |
sql_create_context | CREATE TABLE table 14242137 4(oberliga hessen VARCHAR,oberliga baden württemberg VARCHAR,oberliga tây nam VARCHAR) | CREATE TABLE table_14242137_4(oberliga hessen VARCHAR,oberliga baden württemberg VARCHAR,oberliga tây_nam VARCHAR) | Đặt tên cho oberliga hessen cho sv sandhausen và fsv salmrohr | Đặt tên cho oberliga hessen cho sv sandhausen và fsv salmrohr | SELECT oberliga hessen FROM table 14242137 4 WHERE oberliga baden württemberg = "SV Sandhausen" AND oberliga tây nam = "FSV Salmrohr" | SELECT oberliga hessen FROM table_14242137_4 WHERE oberliga baden württemberg = "SV Sandhausen" AND oberliga tây_nam = "FSV_Salmrohr" |
wikisql | CREATE TABLE table 32332("Tên cuộc đua" text,"Circuit" text,"Thành phố/Địa điểm" text,"Ngày" text,"Vị trí pole" text,"Tay đua chiến thắng" text,"Đội chiến thắng"" text,"Báo cáo" text) | CREATE TABLE table_32332("Tên cuộc đua" text,"Circuit" text,"Thành_phố/Địa_điểm" text,"Ngày" text,"Vị_trí pole" text,"Tay_đua chiến_thắng" text,"Đội chiến_thắng" " text,"Báo_cáo" text) | Budweiser/g ở đâu? Tôi. Joe là 200? | Budweiser / g ở đâu ? Tôi . Joe là 200 ? | SELECT "Thành phốĐịa điểm" FROM table 32332 WHERE "Tên chủng tộc" = 'budweiserg.i.joe''s 200' | SELECT "Thành_phốĐịa_điểm" FROM table_32332 WHERE "Tên chủng_tộc" = "budweiserg.i.joe" "s 200" |
mimic_iii | CREATE TABLE thủ tục 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 d labitems(row id number,itemid number,label text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,thời gian biểu đồ time,itemid number,số tiền 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 d items(row id number,itemid number,label text,linksto 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 microbiologyevents(row id number,topic id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,liều val rx text,dose unit rx text,route text) CREATE TABLE labevents(row id number,subject id number,hadm 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,outtime time) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE d icd diagnoses(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 bệnh nhân(row id number,subject id number,giới tính text,dob time,làm gì time) | CREATE TABLE thủ_tục_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 d_labitems(row_id number,itemid number,label text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,thời_gian biểu_đồ time,itemid number,số tiền 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 d_items(row_id number,itemid number,label text,linksto 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 microbiologyevents(row_id number,topic_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,liều_val_rx text,dose_unit_rx text,route text) CREATE TABLE labevents(row_id number,subject_id number,hadm_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,outtime time) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE d_icd_diagnoses(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 bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,làm gì time) | có bao nhiêu người được chẩn đoán mắc chứng rối loạn ngôn ngữ không cần thiết sau lần chẩn đoán fx surg nck humerus-clos trước đó trong vòng 2 tháng? | có bao_nhiêu người được chẩn_đoán mắc_chứng rối_loạn ngôn_ngữ không cần_thiết sau lần chẩn_đoán fx surg nck humerus-clos trước đó trong vòng 2 tháng ? | SELECT COUNT ( DISTINCT t1.subject id ) FROM ( entrys.subject id,diagnoses icd.charttime SELECT chẩn đoán icd FROM tuyển sinh JOIN chẩn đoán icd.hadm id = tuyển sinh.hadm id ON chẩn đoán icd.icd9 code = ( WHERE d icd diagnoses.icd9 code SELECT d icd diagnoses FROM d icd diagnoses.short title = 'rối loạn ngôn ngữ không cần thiết' ) ) WHERE t1 AS ( JOINentrys.subject id,diagnoses icd.charttime SELECT chẩn đoán icd FROM tuyển sinh JOIN chẩn đoán icd.hadm id = tuyển sinh.hadm id ON chẩn đoán icd.icd9 code = ( WHERE d icd diagnoses.icd9 code SELECT d icd diagnoses FROM d icd diagnoses.short title = 'fx surg nck humerusclos' ) ) WHERE t2 AS t1.subject id = t2.subject id ON t1.charttime < t2.charttime WHERE AND ( t2.charttime ) DATETIME BETWEEN ( t1.charttime ) DATETIME AND ( t1.charttime,'2 tháng' ) | SELECT COUNT ( DISTINCT t1.subject_id ) FROM ( entrys.subject_id,diagnoses_icd.charttime SELECT chẩn_đoán_icd FROM tuyển_sinh JOIN chẩn_đoán_icd.hadm_id = tuyển_sinh.hadm_id ON chẩn_đoán_icd.icd9_code = ( WHERE d_icd_diagnoses.icd9_code SELECT d_icd_diagnoses FROM d_icd_diagnoses.short_title = "rối_loạn ngôn_ngữ không cần_thiết" ) ) WHERE t1 AS ( JOIN entrys.subject_id,diagnoses_icd.charttime SELECT chẩn_đoán_icd FROM tuyển_sinh JOIN chẩn_đoán_icd.hadm_id = tuyển_sinh.hadm_id ON chẩn_đoán_icd.icd9_code = ( WHERE d_icd_diagnoses.icd9_code SELECT d_icd_diagnoses FROM d_icd_diagnoses.short_title = "fx surg nck humerusclos" ) ) WHERE t2 AS t1.subject_id = t2.subject_id ON t1.charttime < t2.charttime WHERE AND ( t2.charttime ) DATETIME BETWEEN ( t1.charttime ) DATETIME AND ( t1.charttime," 2 tháng" ) |
sql_create_context | CREATE TABLE tên bảng 47(năm INTEGER,người chơi VARCHAR) | CREATE TABLE tên_bảng_47(năm INTEGER,người chơi VARCHAR) | Năm gần đây nhất có candace parker là gì? | Năm gần đây nhất có candace parker là gì ? | SELECT MAX ( năm ) FROM tên bảng 47 WHERE player = "candace parker" | SELECT MAX ( năm ) FROM tên_bảng_47 WHERE player = "candace parker" |
spider | CREATE TABLE trạng thái(station id number,bikes available number,docks available number,time text) CREATE TABLE trip(id number,duration number,start date text,start station name text,start station id number,end date text,end station name text,end station id number,bike id number,subscription type text,zip code number) CREATE TABLE thời tiết(date text,max Nhiệt độ f number,mean Nhiệt f number,min Nhiệt f number,max dew point f number,trung bình dew point f number,min dew point f number,độ ẩm tối đa number,độ ẩm trung bình number,độ ẩm tối thiểu number,max sea level Pressure inches number,mean sea level Pressure inches number,min sea level Pressure inches number,max visibility miles number,mean visibility miles number,min visibility miles number,max wind speed mph number,mean wind speed mph number,max gust speed mph number,precipitation inches number,cloud cover number,events text,wind dir degrees number,zip code number) CREATE TABLE station(id number,name text,lat number,long number,dock count number,thành phố text,ngày cài đặt text) | CREATE TABLE trạng_thái(station_id number,bikes_available number,docks_available number,time text) CREATE TABLE trip(id number,duration number,start_date text,start_station_name text,start_station_id number,end_date text,end_station_name text,end_station_id number,bike_id number,subscription_type text,zip_code number) CREATE TABLE thời_tiết(date text,max_ Nhiệt_độ_f number,mean_ Nhiệt_f number,min_ Nhiệt_f number,max_dew_point_f number,trung_bình_dew_point_f number,min_dew_point_f number,độ_ẩm tối_đa number,độ_ẩm trung_bình number,độ_ẩm tối_thiểu number,max_sea_level_ Pressure_inches number,mean_sea_level_ Pressure_inches number,min_sea_level_ Pressure_inches number,max_visibility_miles number,mean_visibility_miles number,min_visibility_miles number,max_wind_speed_ mph number,mean_wind_speed_mph number,max_gust_speed_mph number,precipitation_inches number,cloud_cover number,events text,wind_dir_degrees number,zip_code number) CREATE TABLE station(id number,name text,lat number,long number,dock_count number,thành_phố text,ngày cài_đặt text) | Số thành phố riêng biệt mà các trạm được đặt tại là bao nhiêu? | Số thành_phố riêng_biệt mà các trạm được đặt tại là bao_nhiêu ? | SELECT COUNT ( DISTINCT thành phố ) FROM ga | SELECT COUNT ( DISTINCT thành_phố ) FROM ga |
wikisql | CREATE TABLE table 60205("Benalla DFL" text,"Thắng" real,"Thua" real,"Hòa" real,"Tạm biệt" real,"Thắng" real) | CREATE TABLE table_60205("Benalla_DFL" text,"Thắng" real,"Thua" real,"Hòa" real,"Tạm_biệt" real,"Thắng" real) | Giá trị thấp nhất của Hòa là bao nhiêu, khi Thua là '0' và khi Byes lớn hơn 4? | Giá_trị thấp nhất của Hòa là bao_nhiêu , khi Thua là ' 0 ' và khi Byes lớn hơn 4 ? | SELECT MIN ( "Hòa" ) FROM table 60205 WHERE "Thua" = '0' AND "Tạm biệt" > '4' | SELECT MIN ( "Hòa" ) FROM table_60205 WHERE "Thua" = "0" AND "Tạm_biệt" > "4" |
wikisql | CREATE TABLE table 51559("Quốc gia" text,"Ngày" text,"Nhãn" text,"Định dạng" text,"Danh mục #" text) | CREATE TABLE table_51559("Quốc_gia" text,"Ngày" text,"Nhãn" text,"Định_dạng" text,"Danh_mục #" text) | Nhãn có định dạng LP là gì? | Nhãn có định_dạng LP là gì ? | SELECT "Nhãn" FROM table 51559 WHERE "Định dạng" = 'lp' | SELECT "Nhãn" FROM table_51559 WHERE "Định_dạng" = "lp" |
mimic_iii | CREATE TABLE d icd diagnoses(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 inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount 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,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime 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 Diagnostics icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,thời gian nhập viện time,thời gian nhập viện time,loại nhập học text,địa điểm nhập học 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 microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) 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 bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,giá trị text) | CREATE TABLE d_icd_diagnoses(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 inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount 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,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime 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 Diagnostics_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,thời_gian nhập_viện time,thời_gian nhập_viện time,loại_nhập học text,địa_điểm nhập_học 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 microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) 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 bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,giá_trị text) | Đã bao nhiêu giờ trôi qua kể từ khi bệnh nhân 17667 ở lại bệnh viện lần cuối cùng họ đến khu chăm sóc micu? | Đã bao_nhiêu giờ trôi qua kể từ khi bệnh_nhân 17667 ở lại bệnh_viện lần cuối_cùng họ đến khu chăm_sóc micu ? | SELECT 24 * ( STRFTIME ( 'j',CURRENT TIME ( ) ) STRFTIME ( 'j',transfers.intime ) ) FROM chuyển WHERE chuyển.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 17667 AND tuyển sinh.dischtime IS NULL ) AND chuyển.careunit = 'micu' ORDER BY chuyển.intime DESC LIMIT 1 | SELECT 24 * ( STRFTIME ( " j",CURRENT_TIME ( ) ) STRFTIME ( " j",transfers.intime ) ) FROM chuyển WHERE chuyển.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 17667 AND tuyển sinh.dischtime IS NULL ) AND chuyển.careunit = "micu" ORDER BY chuyển.intime DESC LIMIT 1 |
sql_create_context | CREATE TABLE table 254776 1(thành lập VARCHAR,cơ quan VARCHAR) | CREATE TABLE table_254776_1(thành_lập VARCHAR,cơ_quan VARCHAR) | Cao đẳng Dickinson được thành lập khi nào? | Cao_đẳng Dickinson được thành_lập khi nào ? | SELECT thành lập FROM table 254776 1 WHERE tổ chức = "Dickinson College" | SELECT thành_lập FROM table_254776_1 WHERE tổ_chức = "Dickinson_College" |
sql_create_context | CREATE TABLE table name 90(điểm INTEGER,khung gầm VARCHAR) | CREATE TABLE table_name_90(điểm INTEGER,khung gầm VARCHAR) | Điểm thấp cho khung gầm Jaguar R3 là gì? | Điểm thấp cho khung gầm Jaguar_R3 là gì ? | SELECT MIN ( điểm ) FROM tên bảng 90 WHERE khung xe = "jaguar r3" | SELECT MIN ( điểm ) FROM tên_bảng_90 WHERE khung xe = "jaguar r3" |
sql_create_context | CREATE TABLE table 15187735 19(đoạn b VARCHAR,tập VARCHAR) | CREATE TABLE table_15187735_19(đoạn_b VARCHAR,tập VARCHAR) | Đoạn B của tập 242 là gì? | Đoạn B của tập 242 là gì ? | SELECT đoạn b FROM bảng 15187735 19 WHERE tập = 242 | SELECT đoạn_b FROM bảng_15187735_19 WHERE tập = 242 |
squall | CREATE TABLE table 204 190(id number,"thứ hạng" number,"thành phố" text,"quận" text,"tiểu bang" text,"phần trăm" text) | CREATE TABLE table_204_190(id number,"thứ_hạng" number,"thành_phố" text,"quận" text,"tiểu_bang" text,"phần_trăm" text) | Tổng cộng có bao nhiêu lần New Jersey xuất hiện trong biểu đồ này? | Tổng_cộng có bao_nhiêu lần New_Jersey xuất_hiện trong biểu_đồ này ? | SELECT COUNT ( * ) FROM table 204 190 WHERE "state" = 'áo mới' | SELECT COUNT ( * ) FROM table_204_190 WHERE "state" = "áo mới" |
spider | CREATE TABLE máy bay(viện trợ number,tên text,khoảng cách number) CREATE TABLE chuyến bay(flno number,điểm xuất phát text,điểm đến text,khoảng cách number,ngày khởi hành time,ngày đến time,giá number,aid number) CREATE TABLE giấy chứng nhận(eid number,aid number) CREATE TABLE nhân viên(eid number,tên text,lương number) | CREATE TABLE máy_bay(viện_trợ number,tên text,khoảng_cách number) CREATE TABLE chuyến bay(flno number,điểm xuất_phát text,điểm đến text,khoảng_cách number,ngày_khởi hành time,ngày_đến time,giá number,aid number) CREATE TABLE giấy chứng_nhận(eid number,aid number) CREATE TABLE nhân_viên(eid number,tên text,lương number) | Chúng ta có bao nhiêu chuyến bay? | Chúng_ta có bao_nhiêu chuyến bay ? | SELECT COUNT ( * ) FROM chuyến bay | SELECT COUNT ( * ) FROM chuyến bay |
wikisql | CREATE TABLE table 14886("Rider" text,"Số năm hoạt động" text,"Các cuộc đua" real,"Thắng" real,"Người thứ 2." real,"Người thứ 3." real,"Tiêu đề." real) | CREATE TABLE table_14886("Rider" text,"Số năm hoạt_động" text,"Các cuộc đua" real,"Thắng" real,"Người thứ 2." real,"Người thứ 3." real,"Tiêu_đề." real) | Tổng số trận thắng của các tay đua không về đích ở vị trí thứ 3 là bao nhiêu? | Tổng_số trận thắng của các tay đua không về đích ở vị_trí thứ 3 là bao_nhiêu ? | SELECT SUM ( "Thắng" ) FROM table 14886 WHERE "thứ 3." < '0' | SELECT SUM ( "Thắng" ) FROM table_14886 WHERE "thứ 3." < "0" |
wikisql | CREATE TABLE table 24916("Nhóm" text,"Người quản lý sắp mãn nhiệm" text,"Cách thức khởi hành" text,"Ngày tuyển dụng" text,"Được thay thế bởi" text,"Ngày bổ nhiệm" text) | CREATE TABLE table_24916("Nhóm" text,"Người quản_lý sắp mãn_nhiệm" text,"Cách_thức khởi_hành" text,"Ngày tuyển_dụng" text,"Được thay_thế bởi" text,"Ngày bổ_nhiệm" text) | Farhad Kazemi đã rời bao nhiêu đội? | Farhad Kazemi đã rời bao_nhiêu đội ? | SELECT COUNT ( "Nhóm" ) FROM table 24916 WHERE "Người quản lý sắp ra đi" = 'Farhad Kazemi' | SELECT COUNT ( "Nhóm" ) FROM table_24916 WHERE "Người quản_lý sắp ra đi" = "Farhad_Kazemi" |
nvbench | CREATE TABLE Nhân viên(Employee ID INTEGER,Role Code CHAR(15),Employee Name VARCHAR(255),Gender MFU CHAR(1),Ngày of Birth DATETIME,Other Details VARCHAR(255)) CREATE TABLE Vai trò(Mã Vai CHAR #(15),Role Name VARCHAR(255),Role Description VARCHAR(255)) CREATE TABLE Document Locations(Document ID INTEGER,Location Code CHAR(15),Date in Location From DATETIME,Date in Locaton To DATETIME) CREATE TABLE Ref Locations(Location Code CHAR(15),Location Name VARCHAR(255),Location Description VARCHAR(255)) CREATE TABLE Ref Document Types(Document Type Code CHAR(15),Document Type Name VARCHAR(255),Document Type Description VARCHAR(255)) CREATE TABLE Tham chiếu Calendar(Calendar Date DATETIME,Day Number INTEGER) CREATE TABLE All Documents(Document ID INTEGER,Date Stored DATETIME,Document Type Code CHAR(15),Document Name CHAR(255),Document Description CHAR(255),Other Details VARCHAR(255)) CREATE TABLE Documents to be Destroyed(Document ID INTEGER,Destruction Authorised by Employee ID INTEGER,Destroyed by Employee ID INTEGER,Planned Destruction Date DATETIME,Actual Destruction Date DATETIME,Other Details VARCHAR(255)) | CREATE TABLE Nhân_viên(Employee_ID INTEGER,Role_Code_CHAR(15),Employee_Name VARCHAR(255),Gender_MFU_CHAR(1),Ngày_of_Birth DATETIME,Other_Details VARCHAR(255)) CREATE TABLE Vai_trò(Mã_Vai CHAR_#(15),Role_Name VARCHAR(255),Role_Description VARCHAR(255)) CREATE TABLE Document_Locations(Document_ID INTEGER,Location_Code_CHAR(15),Date_in_Location_From DATETIME,Date_in_Locaton_To DATETIME) CREATE TABLE Ref_Locations(Location_Code_CHAR(15),Location_Name VARCHAR(255),Location_Description VARCHAR(255)) CREATE TABLE Ref_Document_Types(Document_Type_Code_CHAR(15),Document_Type_Name VARCHAR(255),Document_Type_Description VARCHAR(255)) CREATE TABLE Tham_chiếu_Calendar(Calendar_Date DATETIME,Day_Number INTEGER) CREATE TABLE All_Documents(Document_ID INTEGER,Date_Stored DATETIME,Document_Type_Code_CHAR(15),Document_Name_CHAR(255),Document_Description_CHAR(255),Other_Details VARCHAR(255)) CREATE TABLE Documents_to_be_Destroyed(Document_ID INTEGER,Destruction_Authorised_by_Employee_ID INTEGER,Destroyed_by_Employee_ID INTEGER,Planned_Destruction_Date DATETIME,Actual_Destruction_Date DATETIME,Other_Details VARCHAR(255)) | Hiển thị mã vị trí và số lượng tài liệu ở từng vị trí Trực quan hóa bằng biểu đồ thanh, hiển thị theo tổng số từ cao đến thấp. | Hiển thị_mã vị_trí và số_lượng tài_liệu ở từng vị_trí Trực_quan hóa bằng biểu_đồ thanh , hiển_thị theo tổng_số từ cao đến thấp . | SELECT Mã Vị trí, COUNT ( * ) FROM Vị trí Tài liệu GROUP BY Mã vị trí ORDER BY COUNT ( * ) DESC | SELECT Mã_Vị_trí, COUNT ( * ) FROM Vị trí_Tài_liệu GROUP BY Mã_vị_trí ORDER BY COUNT ( * ) DESC |
nvbench | CREATE TABLE Happy hour(HH ID int,Shop ID int,Tháng text,Num of shaff in charge int) CREATE TABLE Happy hour member(HH ID int,Member ID int,Total amount real) CREATE TABLE member(Member ID int,Tên text,Thẻ thành viên text,Tuổi int,Thời gian mua hàng int,Cấp thành viên int,Địa chỉ text) CREATE TABLE shop(Shop ID int,Địa chỉ text,Số nhân viên text,Điểm real,Năm mở text) | CREATE TABLE Happy_hour(HH_ID int,Shop_ID int,Tháng text,Num_of_shaff_in_charge int) CREATE TABLE Happy_hour_member(HH_ID int,Member_ID int,Total_amount real) CREATE TABLE member(Member_ID int,Tên text,Thẻ thành_viên text,Tuổi int,Thời_gian mua hàng int,Cấp_thành_viên int,Địa_chỉ text) CREATE TABLE shop(Shop_ID int,Địa_chỉ text,Số_nhân_viên text,Điểm real,Năm mở text) | Tìm số lượng thành viên sống ở mỗi địa chỉ. Vẽ chúng dưới dạng biểu đồ hình tròn. | Tìm số_lượng thành_viên sống ở mỗi địa_chỉ . Vẽ chúng dưới dạng biểu_đồ hình_tròn . | SELECT Địa chỉ, COUNT ( * ) FROM thành viên GROUP BY Địa chỉ | SELECT Địa_chỉ, COUNT ( * ) FROM thành_viên GROUP BY Địa_chỉ |
sede | CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) 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 VoteTypes(Id number,Name text) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Tiêu đề text,Tags text,RevisionGUID other) 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 Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Điểm number,Số lượt xem number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,Số lượng 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 Đánh giáLý do từ chối(Id number,Tên text,Mô tả text,PostTypeId number) CREATE TABLE Huy hiệu(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 Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) 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,ContentLicens 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 CloseReasonTypes(Id number,Name text,Mô tả text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskTypes(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 Users(Id number,Reputation 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 PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,Ngày đóng time,Ngày sở hữu cộng đồng time,Giấy phép nội dung text) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE Liên kết bài đăng(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) | CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) 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 VoteTypes(Id number,Name text) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Tiêu_đề text,Tags text,RevisionGUID_other) 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 Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Điểm number,Số lượt xem number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,Số_lượng 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 Đánh_giáLý do từ_chối(Id number,Tên text,Mô_tả text,PostTypeId number) CREATE TABLE Huy_hiệu(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 Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) 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,ContentLicens 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 CloseReasonTypes(Id number,Name text,Mô_tả text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskTypes(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 Users(Id number,Reputation 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 PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,Ngày đóng time,Ngày sở_hữu cộng_đồng time,Giấy_phép nội_dung text) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE Liên_kết bài đăng(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) | chọn top 20 từ Bài viết;. | chọn top 20 từ Bài viết ; . | SELECT Tiêu đề,Nội dung,Ngày tạo,Số câu trả lời,Số lượng yêu thích ( 20100 * Số lượng yêu thích ) AS Số số mới FROM Bài đăng | SELECT Tiêu_đề,Nội_dung,Ngày tạo,Số câu trả_lời,Số_lượng yêu thích ( 20100 * Số_lượng yêu_thích ) AS Số_số_mới FROM Bài đăng |
sql_create_context | CREATE TABLE tên bảng 91(home team VARCHAR) | CREATE TABLE tên_bảng_91(home_team VARCHAR) | Tỷ số của đội chủ nhà Melbourne là bao nhiêu? | Tỷ_số của đội chủ nhà Melbourne là bao_nhiêu ? | SELECT home team AS điểm FROM table name 91 WHERE home team = "melbourne" | SELECT home_team AS điểm FROM table_name_91 WHERE home_team = "melbourne" |
squall | CREATE TABLE table 203 752(id number,"thứ hạng" number,"mạch" text,"trụ sở chính" text,"màn hình" number,"trang web" number) | CREATE TABLE table_203_752(id number,"thứ_hạng" number,"mạch" text,"trụ_sở chính" text,"màn_hình" number,"trang_web" number) | có bao nhiêu mạch có ít nhất 2.000 màn hình? | có bao_nhiêu mạch có ít_nhất 2.000 màn_hình ? | SELECT COUNT ( "mạch" ) FROM bảng 203 752 WHERE "màn hình" >= 2000 | SELECT COUNT ( "mạch" ) FROM bảng_203_752 WHERE "màn_hình" > = 2000 |
squall | CREATE TABLE table 204 375(id number,"#" number,"season" number,"cạnh tranh" text,"ngày" text,"vòng" text,"đối thủ" text,"h/a" text,"kết quả" text,"người ghi bàn" text) | CREATE TABLE table_204_375(id number,"#" number,"season" number,"cạnh_tranh" text,"ngày" text,"vòng" text,"đối_thủ" text,"h/a" text,"kết_quả" text,"người ghi_bàn" text) | đội nào ghi nhiều bàn thắng nhất trong một trận đấu với fc seoul trong mùa giải 2011? | đội nào ghi nhiều bàn thắng nhất trong một trận đấu với fc seoul trong mùa giải 2011 ? | SELECT "đối thủ" FROM table 204 375 WHERE "mùa giải" = 2011 ORDER BY "kết quả" DESC LIMIT 1 | SELECT "đối_thủ" FROM table_204_375 WHERE "mùa giải" = 2011 ORDER BY"kết_quả" DESC LIMIT 1 |
wikisql | CREATE TABLE table 55803("Năm" real,"Kỷ lục" text,"Kết thúc" text,"Người quản lý" text,"Playoffs" text) | CREATE TABLE table_55803("Năm" real,"Kỷ_lục" text,"Kết_thúc" text,"Người quản_lý" text,"Playoffs" text) | Đặt tên tổng số năm cho bản ghi 39-31 | Đặt tên tổng_số năm cho bản ghi 39-31 | SELECT COUNT ( "Năm" ) FROM table 55803 WHERE "Bản ghi" = '3931' | SELECT COUNT ( "Năm" ) FROM table_55803 WHERE "Bản_ghi" = "3931" |
sql_create_context | CREATE TABLE bảng 18524 6(du lịch biên lai 2003 as percentage of exports VARCHAR,du lịch cạnh tranh 2011 ttci VARCHAR) | CREATE TABLE bảng_18524_6(du_lịch_biên lai__2003___as__percentage_of_exports_ VARCHAR,du_lịch_cạnh tranh__2011__ttci_ VARCHAR) | Kể tên các khoản thu du lịch năm 2003 để nâng cao năng lực cạnh tranh du lịch 3.26 | Kể tên các khoản thu du_lịch năm 2003 để nâng cao năng_lực cạnh_tranh du_lịch 3.26 | SELECT COUNT ( du lịch doanh thu 2003 as percentage of exports ) FROM bảng 18524 6 WHERE du lịch cạnh tranh 2011 ttci = "3,26" | SELECT COUNT ( du_lịch_doanh thu__2003___as__percentage_of_exports ) FROM bảng_18524_6 WHERE du_lịch_cạnh tranh__2011__ttci = "3,26" |
sql_create_context | CREATE TABLE tên bảng 88(trên VARCHAR,khớp VARCHAR) | CREATE TABLE tên_bảng_88(trên VARCHAR,khớp VARCHAR) | Tỷ lệ vượt quá khi trận đấu là 10 là bao nhiêu? | Tỷ_lệ vượt quá khi trận đấu là 10 là bao_nhiêu ? | SELECT vượt quá FROM tên bảng 88 WHERE trận đấu = "10" | SELECT vượt quá FROM tên_bảng_88 WHERE trận đấu = "10" |
wikisql | CREATE TABLE table 45359("Đội" text,"Cố gắng chống lại" text,"Thử chống lại" text,"Thử khác biệt" text,"Điểm cho" text,"Điểm chống lại" text,"Điểm khác biệt" text) | CREATE TABLE table_45359("Đội" text,"Cố_gắng chống lại" text,"Thử chống lại" text,"Thử khác_biệt" text,"Điểm cho" text,"Điểm chống lại" text,"Điểm khác_biệt" text) | Điểm chống lại là gì khi Try Diff là +22? | Điểm chống lại là gì khi Try_Diff là + 22 ? | SELECT "Điểm ngược" FROM table 45359 WHERE "Thử khác biệt" = '22' | SELECT "Điểm ngược" FROM table_45359 WHERE "Thử khác_biệt" = " 22" |
sql_create_context | CREATE TABLE bảng 20996923 25(nfl team VARCHAR,pick số VARCHAR) | CREATE TABLE bảng_20996923_25(nfl_team VARCHAR,pick__số VARCHAR) | Cầu thủ được chọn số 28 được chọn vào đội NFL nào? | Cầu_thủ được chọn số 28 được chọn vào đội NFL nào ? | SELECT nfl team FROM table 20996923 25 WHERE pick number = 28 | SELECT nfl_team FROM table_20996923_25 WHERE pick__number = 28 |
wikisql | CREATE TABLE table 55188("Độ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_55188("Độ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) | Ai đã chơi Collingwood? | Ai đã chơi Collingwood ? | SELECT "Đội khách" FROM table 55188 WHERE "Đội chủ nhà" = 'collingwood' | SELECT "Đội khách" FROM table_55188 WHERE "Đội chủ nhà" = "collingwood" |
wikisql | CREATE TABLE table 52773("Khu vực" text,"Ngày" text,"Nhãn" text,"Định dạng" text,"Danh mục" text) | CREATE TABLE table_52773("Khu_vực" text,"Ngày" text,"Nhãn" text,"Định_dạng" text,"Danh_mục" text) | Nhãn nào có ký hiệu danh mục là ch-9196? | Nhãn nào có ký_hiệu danh_mục là ch-9196 ? | SELECT "Nhãn" FROM table 52773 WHERE "Danh mục" = 'ch9196' | SELECT "Nhãn" FROM table_52773 WHERE "Danh_mục" = "ch9196" |
mimic_iii | 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 Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,ngày kết thúc time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE d icd diagnoses(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 bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE labevents(row id number,topic id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title 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,outtime time) CREATE TABLE d labitems(row id number,itemid number,label text) 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 tuyển sinh(row id number,subject id number,hadm id number,thời gian nhập viện time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,hôn nhân status text,dân tộc text,tuổi 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 Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,ngày kết_thúc time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE d_icd_diagnoses(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 bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE labevents(row_id number,topic_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title 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,outtime time) CREATE TABLE d_labitems(row_id number,itemid number,label text) 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 tuyển_sinh(row_id number,subject_id number,hadm_id number,thời_gian nhập_viện time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,tuổi number) | Huyết áp động mạch của bệnh nhân 6170 hôm nay có lớn hơn 127,0 không? | Huyết_áp động_mạch của bệnh_nhân 6170 hôm_nay có lớn hơn 127,0 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 = 6170 ) ) 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 > 127.0 AND ( chartevents.charttime,'bắt đầu ngày' ) = DATETIME ( DATETIME ( ) ,'bắt đầu ngày','0 ngày' ) | 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 = 6170 ) ) 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 > 127.0 AND _ ( chartevents.charttime,"bắt_đầu ngày" ) = DATETIME ( DATETIME ( ) ,"bắt_đầu ngày"," 0 ngày" ) |
mimicsql_data | 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 đơ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 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 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 đơ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 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) | số lượng bệnh nhân có độ tuổi dưới 58 và tên xét nghiệm là d-dimer là bao nhiêu? | số_lượng bệnh_nhân có độ tuổi dưới 58 và tên xét_nghiệm là d-dimer là bao_nhiêu ? | 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 < "58" AND lab.label = "DDimer" | 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 <"58" AND lab.label = "DDimer" |
sql_create_context | CREATE TABLE table name 17(đối thủ VARCHAR,date VARCHAR) | CREATE TABLE table_name_17(đối_thủ VARCHAR,date VARCHAR) | ĐỐI THỦ NÀO CÓ NGÀY 28 THÁNG 9? | ĐỐI_THỦ NÀO_CÓ NGÀY 28 THÁNG 9 ? | SELECT đối thủ FROM tên bảng 17 WHERE date = "28 tháng 9" | SELECT đối_thủ FROM tên_bảng_17 WHERE date = "28 tháng 9" |
wikisql | CREATE TABLE table 4321("Trò chơi" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Điểm Vikings" real,"Đối thủ" real,"Kỷ lục" text,"Sự tham dự" real) | CREATE TABLE table_4321("Trò_chơi" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Điểm Vikings" real,"Đối_thủ" real,"Kỷ_lục" text,"Sự tham_dự" real) | Hãy cho tôi biết số người tham dự nhiều nhất đối với trò chơi dưới 1 | Hãy cho tôi biết số người tham_dự nhiều nhất đối_với trò_chơi dưới 1 | SELECT MAX ( "Tham dự" ) FROM table 4321 WHERE "Trò chơi" < '1' | SELECT MAX ( "Tham_dự" ) FROM table_4321 WHERE "Trò_chơi" < "1" |
sede | CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location 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 PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,Ngày tạo time,Ngày xóa time,Điểm number,Số lượt xem number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Thẻ text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE Bài đăng(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 Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Nhận xét(Id number,PostId number,Điểm number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) 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 khác) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostHistoryTypes(Id number,Name 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 Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) 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 ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskResultTypes(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 ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Liên kết bài đăng(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) | CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location 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 PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,Ngày tạo time,Ngày xóa time,Điểm number,Số lượt xem number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Thẻ text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE Bài đăng(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 Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Nhận_xét(Id number,PostId number,Điểm number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) 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 khác) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostHistoryTypes(Id number,Name 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 Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) 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 ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskResultTypes(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 ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Liên_kết bài đăng(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) | chia sẻ của vba q theo thời gian. câu hỏi được gắn thẻ VBA dưới dạng phần trăm của tất cả câu hỏi mỗi tháng | chia_sẻ của vba_q theo thời_gian . câu hỏi được gắn thẻ VBA dưới dạng phần_trăm của tất_cả câu hỏi mỗi tháng | SELECT LAST DATE OF MONTH ( CreationDate ) AS "tháng",1.0 * SUM ( CASE WHEN Thẻ LIKE 'vba>' THEN 1 ELSE 0 END ) COUNT ( * ) AS "vba questions" FROM Bài viết WHERE PostTypeId = 1 AND CreationDate BETWEEN '20080901' AND DATEFROMPARTS ( YEAR ( CURRENT TIMESTAMP ( ) ) ,MONTH ( CURRENT TIMESTAMP ( ) ) ,1 ) GROUP BY LAST DATE OF MONTH ( CreationDate ) ORDER BY LAST DATE OF MONTH ( Ngày tạo ) | SELECT LAST_DATE_OF_MONTH ( CreationDate ) AS"tháng",1.0 * SUM ( CASE WHEN Thẻ LIKE " vba > " THEN 1 ELSE 0 END ) COUNT ( * ) AS"vba_questions " FROM Bài viết WHERE PostTypeId = 1 AND CreationDate BETWEEN "2008 0901" AND DATE FROM PARTS ( YEAR ( CURRENT_TIMESTAMP ( ) ) ,MONTH ( CURRENT_TIMESTAMP ( ) ) ,1 ) GROUP BY LAST_DATE_OF_MONTH ( CreationDate ) ORDER BY LAST_DATE_OF_MONTH ( Ngày tạo ) |
sql_create_context | CREATE TABLE table name 3(giới tính VARCHAR,cưỡi VARCHAR) | CREATE TABLE table_name_3(giới_tính VARCHAR,cưỡi VARCHAR) | Ứng cử viên với Riding of st. John's South Mount Pearl thuộc giới tính nào? | Ứng_cử_viên với Riding of_st . John's_South Mount_Pearl thuộc giới_tính nào ? | SELECT giới tính FROM table name 3 WHERE cưỡi = | SELECT giới_tính FROM table_name_3 WHERE cưỡi = "st.john" s south mount |
sql_create_context | CREATE TABLE tên bảng 13(năm INTEGER,bắt đầu VARCHAR) | CREATE TABLE tên_bảng_13(năm INTEGER,bắt_đầu VARCHAR) | Kể tên năm ít nhất bắt đầu từ ngày 17 | Kể tên năm ít_nhất bắt_đầu từ ngày 17 | SELECT MIN ( năm ) FROM tên bảng 13 WHERE start = "thứ 17" | SELECT MIN ( năm ) FROM tên_bảng_13 WHERE start = "thứ 17" |
sql_create_context | CREATE TABLE table name 31(đội chiến thắng VARCHAR,địa điểm VARCHAR,năm VARCHAR,điểm VARCHAR) | CREATE TABLE table_name_31(đội chiến_thắng VARCHAR,địa_điểm VARCHAR,năm VARCHAR,điểm VARCHAR) | Đội nào là đội chiến thắng khi năm hơn 2003, điểm số là 19 14 và địa điểm là câu lạc bộ golf Harding park? | Đội nào là đội chiến_thắng khi năm hơn 2003 , điểm_số là 19 14 và địa_điểm là câu_lạc_bộ golf Harding_park ? | SELECT đội chiến thắng FROM tên bảng 31 WHERE năm > 2003 AND điểm = "19½14½" AND địa điểm = "câu lạc bộ gôn harding park" | SELECT đội chiến_thắng FROM tên_bảng_31 WHERE năm > 2003 AND điểm = "19 ½ 14 ½" AND địa_điểm = "câu_lạc_bộ gôn harding park" |
wikisql | CREATE TABLE table 28315("Mùa giải" real,"Loạt" text,"Đội" text,"Các cuộc đua" real,"Thắng" real,"Bục vinh quang" real,"Điểm" text,"Vị trí" text) | CREATE TABLE table_28315("Mùa giải" real,"Loạt" text,"Đội" text,"Các cuộc đua" real,"Thắng" real,"Bục vinh_quang" real,"Điểm" text,"Vị_trí" text) | Có bao nhiêu đội tham gia giải Championnat de France Formula Renault 2.0? | Có bao_nhiêu đội tham_gia giải Championnat_de France Formula Renault_2.0 ? | SELECT "Đội" FROM table 28315 WHERE "Series" = 'Giải vô địch Công thức Pháp Renault 2.0' | SELECT "Đội" FROM table_28315 WHERE "Series" = "Giải vô_địch Công_thức Pháp Renault_2.0" |
mimic_iii | 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,amount number) CREATE TABLE Diagnostics icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) 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,hôn nhân status text,dân tộc text,tuổi number) CREATE TABLE d labitems(row id number,itemid number,label 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,outtime time) 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 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 d icd diagnoses(row id number,icd9 code text,short title text,long title 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 microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) 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 bệnh nhân(row id number,subject id number,giới tính text,dob time,dod time) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,giá trị number) | 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,amount number) CREATE TABLE Diagnostics_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) 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,hôn_nhân_status text,dân_tộc text,tuổi number) CREATE TABLE d_labitems(row_id number,itemid number,label 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,outtime time) 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 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 d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title 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 microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) 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 bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod time) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,giá_trị number) | Hãy cho tôi biết bốn loại thuốc hàng đầu được kê đơn thường xuyên nhất cho bệnh nhân từ 60 tuổi trở lên? | Hãy cho tôi biết bốn loại thuốc hàng_đầu được kê đơn thường_xuyên nhất cho bệnh_nhân từ 60 tuổi trở lên ? | SELECT t1.drug FROM ( SELECT đơn thuốc.drug,DENSE RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM đơn thuốc WHERE đơn thuốc.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.tuổi >= 60 ) GROUP BY đơn thuốc.thuốc ) AS t1 WHERE t1.c1 <= 4 | SELECT t1.drug FROM ( SELECT đơn thuốc.drug,DENSE_RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM đơn thuốc WHERE đơn thuốc.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.tuổi > = 60 ) GROUP BY đơn thuốc.thuốc ) AS t1 WHERE t1.c1 < = 4 |
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 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 cảnh text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn flag text,nhập vị trí text,xả vị trí text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện text,dischtime text,năm nhập viện 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 đơ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,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 cảnh text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,nhập_vị_trí text,xả_vị_trí text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện text,dischtime text,năm nhập_viện 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) | Có bao nhiêu bệnh nhân có số ngày nằm viện lớn hơn 1 và được chẩn đoán là tật lỗ thấp? | Có bao_nhiêu bệnh_nhân có số ngày nằm viện lớn hơn 1 và được chẩn_đoán là tật lỗ thấp ? | 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.days stay > "1" AND chẩn đoán.long title = "Hypospadias" | 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.days_stay >"1" AND chẩn_đoán.long_title = "Hypospadias" |
sql_create_context | CREATE TABLE table 1973648 1(vị trí VARCHAR,biệt hiệu VARCHAR) | CREATE TABLE table_1973648_1(vị_trí VARCHAR,biệt_hiệu VARCHAR) | Đặt tên cho vị trí của đại bàng | Đặt tên cho vị_trí của đại_bàng | SELECT vị trí FROM table 1973648 1 WHERE biệt danh = "Đại bàng" | SELECT vị_trí FROM table_1973648_1 WHERE biệt_danh = "Đại_bàng" |
nvbench | CREATE TABLE Chính sách khách hàng(Chính sách ID INTEGER,ID khách hàng INTEGER,Mã loại chính sách CHAR(15),Ngày bắt đầu DATE,Ngày kết thúc DATE) CREATE TABLE Thanh toán(ID thanh toán INTEGER,ID thanh toán INTEGER,Mã phương thức thanh toán VARCHAR(255),Ngày Thanh toán Thực hiện DATE,Số tiền Thanh toán INTEGER) CREATE TABLE Thanh toán(Settlement ID INTEGER,Claim ID INTEGER,Date Claim Made DATE,Date Claim Settled DATE,Amount Claimed INTEGER,Amount Settleled INTEGER,Customer Policy ID INTEGER) CREATE TABLE Khách hàng(Customer ID INTEGER,Chi tiết khách hàng VARCHAR(255)) CREATE TABLE Khiếu nại(ID yêu cầu bồi thường INTEGER,Policy ID INTEGER,Ngày Claim Made DATE,Ngày Claim Giải quyết DATE,Số tiền được yêu cầu INTEGER,Số tiền Đã giải quyết INTEGER) | CREATE TABLE Chính_sách khách_hàng(Chính sách_ID INTEGER,ID khách_hàng INTEGER,Mã_loại_chính_sách CHAR(15),Ngày bắt_đầu DATE,Ngày_kết_thúc DATE) CREATE TABLE Thanh_toán(ID thanh_toán INTEGER,ID_thanh_toán INTEGER,Mã_phương_thức thanh_toán VARCHAR(255),Ngày_Thanh_toán_Thực hiện DATE,Số tiền_Thanh_toán INTEGER) CREATE TABLE Thanh_toán(Settlement_ID INTEGER,Claim_ID INTEGER,Date_Claim_Made_DATE,Date_Claim_Settled_DATE,Amount_Claimed INTEGER,Amount_Settleled INTEGER,Customer_Policy_ID INTEGER) CREATE TABLE Khách_hàng(Customer_ID INTEGER,Chi_tiết khách_hàng VARCHAR(255)) CREATE TABLE Khiếu_nại(ID yêu_cầu bồi_thường INTEGER,Policy_ID INTEGER,Ngày_Claim_Made_DATE,Ngày_Claim_Giải_quyết DATE,Số tiền được yêu_cầu INTEGER,Số tiền_Đã giải_quyết INTEGER) | Vui lòng sử dụng biểu đồ thanh để hiển thị tổng số tiền thanh toán theo từng mã phương thức thanh toán, bạn có thể sắp xếp theo tên từ cao xuống thấp được không? | Vui_lòng sử_dụng biểu_đồ thanh để hiển_thị tổng_số tiền thanh_toán theo từng mã phương_thức thanh_toán , bạn có_thể sắp_xếp theo tên từ cao xuống thấp được không ? | SELECT Payment Method Code, SUM ( Số tiền Thanh toán ) FROM Thanh toán GROUP BY Payment Method Code ORDER BY Payment Method Code DESC | SELECT Payment_Method_Code, SUM ( Số tiền_Thanh_toán ) FROM Thanh_toán GROUP BY Payment_Method_Code ORDER BY Payment_Method_Code DESC |
sql_create_context | CREATE TABLE table 2623498 5(prod code VARCHAR,episode number VARCHAR) | CREATE TABLE table_2623498_5(prod_code VARCHAR,episode__number VARCHAR) | Mã sản xuất tập 78 là gì? | Mã_sản_xuất tập 78 là gì ? | SELECT prod code FROM table 2623498 5 WHERE tập number = "78" | SELECT prod_code FROM table_2623498_5 WHERE tập__number = "78" |
sql_create_context | CREATE TABLE table name 8(thắng INTEGER,người chơi VARCHAR,thứ hạng VARCHAR) | CREATE TABLE table_name_8(thắng INTEGER,người chơi VARCHAR,thứ_hạng VARCHAR) | Chiến thắng thấp nhất của Larry Nelson, người xếp dưới 5 là bao nhiêu? | Chiến_thắng thấp nhất của Larry_Nelson , người xếp dưới 5 là bao_nhiêu ? | SELECT MIN ( thắng ) FROM table name 8 WHERE player = "larry nelson" AND xếp hạng < 5 | SELECT MIN ( thắng ) FROM table_name_8 WHERE player = "larry nelson" AND xếp_hạng < 5 |
sql_create_context | CREATE TABLE table name 40(home ground VARCHAR,khu vực VARCHAR) | CREATE TABLE table_name_40(home_ground VARCHAR,khu_vực VARCHAR) | Sân nhà ở khu vực New Zealand là gì? | Sân_nhà ở khu_vực New_Zealand là gì ? | SELECT sân nhà FROM tên bảng 40 WHERE vùng = "nz" | SELECT sân_nhà FROM tên_bảng 40 WHERE vùng = "nz" |
wikisql | CREATE TABLE table 9273("Wicket" text,"Runs" text,"Đối tác đánh bóng" text,"Đội đánh bóng" text,"Đội đánh bóng" text,"Địa điểm" text,"Ngày" text) | CREATE TABLE table_9273("Wicket" text,"Runs" text,"Đối_tác đánh bóng" text,"Đội đánh bóng" text,"Đội đánh bóng" text,"Địa_điểm" text,"Ngày" text) | Đội đánh bóng Ấn Độ có sự góp mặt của các đối tác Sachin Tendulkar và Rahul Dravid ở địa điểm nào? | Đội đánh bóng Ấn_Độ có sự góp_mặt của các đối_tác Sachin_Tendulkar và Rahul_Dravid ở địa_điểm nào ? | SELECT "Địa điểm" FROM table 9273 WHERE "Đội đánh bóng" = 'Ấn Độ' AND "Đối tác đánh bóng" = 'sachin tensulkar và rahul dravid' | SELECT "Địa_điểm" FROM table_9273 WHERE "Đội đánh bóng" = "Ấn_Độ"_ AND "Đối_tác đánh bóng" = "sachin tensulkar và rahul dravid" |
sql_create_context | CREATE TABLE table 27487336 1(mùa VARCHAR,bao VARCHAR) | CREATE TABLE table_27487336_1(mùa VARCHAR,bao VARCHAR) | Bao nhiêu mùa có 39 bao? | Bao_nhiêu mùa có 39 bao ? | SELECT COUNT ( mùa ) FROM bảng 27487336 1 WHERE bao = "39" | SELECT COUNT ( mùa ) FROM bảng_27487336_1 WHERE bao = "39" |
mimic_iii | CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title 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 cost(row id number,topic id number,hadm id number,event type text,event id number,chargetime time,cost number) 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 Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) 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 bệnh nhân(row id number,subject id number,giới tính text,dob time,dod time) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d items(row id number,itemid number,label text,linksto 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,outtime time) CREATE TABLE icustays(row id number,chủ 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 outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,thời gian nhập viện time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,hôn nhân status text,dân tộc text,tuổi number) | CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title 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 cost(row_id number,topic_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) 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 Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) 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 bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod time) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto 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,outtime time) CREATE TABLE icustays(row_id number,chủ_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 outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,thời_gian nhập_viện time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,tuổi number) | cho tôi biết sự thay đổi giá trị natri của bệnh nhân 60180 đo lần cuối trong lần khám bệnh đầu tiên so với giá trị đầu tiên đo được trong lần khám bệnh đầu tiên? | cho tôi biết sự thay_đổi giá_trị natri của bệnh_nhân 60180 đo lần cuối trong lần khám bệnh đầu_tiên so với giá_trị đầu_tiên đo được trong lần khám bệnh đầu_tiên ? | SELECT ( SELECT labevents.valuenum FROM labevents WHERE labevents.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 60180 AND NOT tuyển sinh.dischtime IS NULL ORDER BY tuyển sinh.admittime LIMIT 1 ) AND labevents.itemid IN ( SELECT d labitems.itemid FROM d labitems WHERE d labitems.label = 'natri' ) ORDER BY labevents.charttime DESC LIMIT 1 ) ( SELECT labevents.valuenum FROM labevents WHERE labevents.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 60180 AND NOT tuyển sinh.dischtime IS NULL ORDER BY tuyển sinh.admittime LIMIT 1 ) AND labevents.itemid IN ( SELECT d labitems.itemid FROM d labitems WHERE d labitems.label = 'natri' ) ORDER BY labevents.charttime LIMIT 1 ) | SELECT ( SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 60180 AND NOT tuyển sinh.dischtime IS NULL ORDER BY tuyển_sinh.admittime LIMIT 1 ) AND labevents.itemid IN ( SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = "natri" ) ORDER BY labevents.charttime DESC LIMIT 1 ) ( SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 60180 AND NOT tuyển sinh.dischtime IS NULL ORDER BY tuyển sinh.admittime LIMIT 1 ) AND labevents.itemid IN ( SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = "natri" ) ORDER BY labevents.charttime LIMIT 1 ) |
atis | CREATE TABLE food service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLE limit(restriction code text,advance purchase int,stopovers text,saturday stay required text,minimum stay int,maximum stay int,ứng dụng text,no discounts text) CREATE TABLE ngăn class(ngăn varchar,loại loại varchar) CREATE TABLE chuyến bay fare(flight id int,fare id int) CREATE TABLE hạng of service(booking class varchar,rank int,class description text) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,kết nối int,departure time int,dual carrier text,flight days text,flight id int,flight number int,from airport varchar,meal code text,stops int,time elapsed int,to airport varchar) CREATE TABLE date day(month number int,day number int,year int,day name varchar) CREATE TABLE chuyến bay chân(chuyến bay id int,leg number int,leg flight int) CREATE TABLE giá vé cơ sở(giá cơ sở mã text,booking class text,class type text,premium text,phổ thông text,giảm giá text,đêm text,mùa text,base days text) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE Dual carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,tên dịch vụ text) CREATE TABLE máy bay(aircraft code varchar,aircraft description varchar,nhà sản xuất varchar,basic type varchar,động cơ int,động cơ đẩy 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,áp suất varchar) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) CREATE TABLE city(city code varchar,city name varchar,state code varchar,country name varchar,time zone code varchar) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE chuyến bay stop(flight id int,stop number int,stop days text,stop airport text,thời gian đến int,hãng hàng không đến text,số chuyến bay đến int,thời gian khởi hành int,hãng hàng không khởi hành text,số chuyến bay khởi hành int,thời gian dừng int) CREATE TABLE code description(code varchar,description text) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE sân bay(airport code varchar,airport name text,airport location text,state code varchar,country name varchar,time zone code varchar,minimum connect time int) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLEfare(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 TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE ngày(days code varchar,tên ngày varchar) CREATE TABLE time interval(thời gian text,thời gian bắt đầu int,thời gian kết thúc int) | CREATE TABLE food_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLE limit(restriction_code text,advance_purchase int,stopovers text,saturday_stay_required text,minimum_stay int,maximum_stay int,ứng_dụng text,no_discounts text) CREATE TABLE ngăn_class(ngăn varchar,loại_loại varchar) CREATE TABLE chuyến bay_fare(flight_id int,fare_id int) CREATE TABLE hạng_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,kết_nối int,departure_time int,dual_carrier text,flight_days text,flight_id int,flight_number int,from_airport varchar,meal_code text,stops int,time_elapsed int,to_airport varchar) CREATE TABLE date_day(month_number int,day_number int,year int,day_name varchar) CREATE TABLE chuyến bay_chân(chuyến bay_id int,leg_number int,leg_flight int) CREATE TABLE giá vé_cơ sở(giá_cơ sở_mã text,booking_class text,class_type text,premium text,phổ_thông text,giảm_giá text,đêm text,mùa text,base_days text) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE Dual_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,tên dịch_vụ text) CREATE TABLE máy_bay(aircraft_code varchar,aircraft_description varchar,nhà_sản_xuất varchar,basic_type varchar,động_cơ int,động_cơ đẩy 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,áp_suất varchar) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) CREATE TABLE city(city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code varchar) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,stop_days text,stop_airport text,thời_gian đến int,hãng hàng_không đến text,số chuyến bay đến int,thời_gian khởi_hành int,hãng hàng_không khởi_hành text,số_chuyến bay khởi_hành int,thời_gian dừng int) CREATE TABLE code_description(code varchar,description text) CREATE TABLE tháng(số_tháng int,tên_tháng text) CREATE TABLE sân_bay(airport_code varchar,airport_name text,airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,minimum_connect_time int) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLEfare(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 TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE ngày(days_code varchar,tên ngày varchar) CREATE TABLE time_interval(thời_gian text,thời_gian bắt_đầu int,thời_gian kết_thúc int) | chỉ cho tôi các chuyến bay Hoa Kỳ từ PITTSBURGH đến SAN FRANCISCO hạng FIRST vào thứ hai | chỉ cho tôi các chuyến bay Hoa_Kỳ từ PITTSBURGH đến SAN_FRANCISCO hạng FIRST vào thứ hai | SELECT DISTINCT chuyến bay.flight id FROM sân bay service AS AIRPORT SERVICE 0,airport service AS AIRPORT SERVICE 1,city AS CITY 0,city AS CITY 1,date day AS DATE DAY 0,date day AS DATE DAY 1,ngày AS DAYS 0,ngày AS DAYS 1,giá vé,cơ sở giá vé AS FARE BASIS 0,cơ sở giá vé AS FARE BASIS 1,chuyến bay,chuyến bay fare WHERE ( ( ( DATE DAY 0.day number = 21 AND DATE DAY 0.month number = 2 AND DATE DAY 0.year = 1991 AND DATE DAY 1.day number = 21 AND DATE DAY 1.month number = 2 AND DATE DAY 1.year = 1991 AND DAYS 0.day name = DATE DAY 0.day name AND DAYS 1.day name = DATE DAY 1.day name AND FARE BASIS 0.class type = 'FIRST' AND FARE BASIS 1.basis days = DAYS 1.days code AND giá vé.fare basis code = FARE BASIS 0.fare basis code AND giá vé.fare basis code = FARE BASIS 1.fare basis code AND chuyến bay fare.fare id = giá vé.fare id AND chuyến bay.flight ngày = DAYS 0.ngày code AND chuyến bay.flight id = chuyến bay fare.flight id ) AND CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'SAN FRANCISCO' AND chuyến bay.to airport = AIRPORT SERVICE 1.airport code ) AND CITY 0.city code = AIRPORT SERVICE 0.city code AND CITY 0.city name = 'PITTSBURGH' AND chuyến bay.from airport = AIRPORT SERVICE 0.airport code ) AND chuyến bay.airline code = 'US' | SELECT DISTINCT chuyến bay.flight_id FROM sân bay_service AS AIRPORT_SERVICE_0,airport_service AS AIRPORT_SERVICE_1,city AS CITY_0,city AS CITY_1,date_day AS DATE_DAY_0,date_day AS DATE_DAY_1,ngày AS DAYS_0,ngày AS DAYS_1,giá vé,cơ_sở giá vé AS FARE_BASIS_0,cơ_sở giá vé AS FARE_BASIS_1,chuyến bay,chuyến bay_fare WHERE ( ( ( DATE_DAY_0.day_number = 21 AND DATE_DAY_0.month_number = 2 AND DATE_DAY_0.year = 1991 AND DATE_DAY_1.day_number = 21 AND DATE_DAY_1.month_number = 2 AND DATE_DAY_1.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND DAYS_1.day_name = DATE_DAY_1.day_name AND FARE_BASIS_0.class_type = "FIRST" AND FARE_BASIS_1.basis_days = DAYS_1.days_code AND giá vé.fare_basis_code = FARE_BASIS_0.fare_basis_code AND giá vé.fare_basis_code = FARE_BASIS_1.fare_basis_code AND chuyến bay_fare.fare_id = giá vé.fare_id AND chuyến bay.flight_ngày = DAYS_0.ngày_code AND chuyến bay.flight_id = chuyến bay_fare.flight_id ) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "SAN_FRANCISCO" AND chuyến bay.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = "PITTSBURGH" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code ) AND chuyến bay.airline_code = "US" |
wikisql | CREATE TABLE table 67753("Tên" text,"Tour" real,"Giro" real,"Vuelta" real,"Tổng cộng" real) | CREATE TABLE table_67753("Tên" text,"Tour" real,"Giro" real,"Vuelta" real,"Tổng_cộng" real) | Tổng số tiền mà Miguel Indur tham gia với Vuelta lớn hơn 1 là bao nhiêu? | Tổng_số tiền mà Miguel_Indur tham_gia với Vuelta lớn hơn 1 là bao_nhiêu ? | SELECT MIN ( "Tổng" ) FROM table 67753 WHERE "Name" = 'miguel induráin' AND "Lap" > '1' | SELECT MIN ( "Tổng" ) FROM table_67753 WHERE "Name" = "miguel induráin" AND "Lap" > "1" |
sede | CREATE TABLE Bài đăng(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 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 SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLicen text) CREATE TABLE VoteTypes(Id number,Name 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 Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE Comments(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,ContentLince text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatPostId number,LinkTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) 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,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Tên text,Mô tả 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 ReviewTaskTypes(Id number,Name text,Description text) 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 PostTypes(Id number,Name text) CREATE TABLE Đề xuấtChỉnh sửa(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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostTags(PostId number,TagId 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 ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) 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 Bài đăng(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 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 SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLicen text) CREATE TABLE VoteTypes(Id number,Name 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 Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE Comments(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,ContentLince text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatPostId number,LinkTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) 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,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Tên text,Mô_tả 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 ReviewTaskTypes(Id number,Name text,Description text) 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 PostTypes(Id number,Name text) CREATE TABLE Đề_xuấtChỉnh sửa(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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostTags(PostId number,TagId 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 ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) 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ố liệu thống kê về tất cả BẢNG SEDE bao gồm thời gian phản hồi và ngày cập nhật lần cuối. số liệu thống kê về tất cả các bảng SEDE bao gồm cả thời gian phản hồi | Số_liệu thống_kê về tất_cả BẢNG_SEDE bao_gồm thời_gian phản_hồi và ngày cập_nhật lần cuối . số_liệu thống_kê về tất_cả các bảng SEDE bao_gồm cả thời_gian phản_hồi | SELECT ' SELECT ''' table name ''' as tbl,max ( creationdate ) upd,getdate ( ) dt from ' table name FROM information schema.columns WHERE columns name = 'CreationDate' | SELECT " SELECT " " " table_name " "" as tbl,max ( creationdate ) upd,getdate ( ) dt from " table_name FROM information_schema.columns WHERE columns_name =" CreationDate " |
sql_create_context | CREATE TABLE table name 28(time VARCHAR,thứ hạng VARCHAR,quốc gia VARCHAR) | CREATE TABLE table_name_28(time VARCHAR,thứ_hạng VARCHAR,quốc_gia VARCHAR) | Thời gian của các tay chèo đến từ Phần Lan có Thứ hạng dưới 4 là bao nhiêu? | Thời_gian của các tay chèo đến từ Phần_Lan có Thứ_hạng dưới 4 là bao_nhiêu ? | SELECT time FROM tên bảng 28 WHERE thứ hạng < 4 AND quốc gia = "phần lan" | SELECT time FROM tên_bảng_28 WHERE thứ_hạng < 4 AND quốc_gia = "phần lan" |
wikisql | CREATE TABLE table 9609("Missouri vs." text,"Thành tích tổng thể" text,"tại Columbia" text,"tại Địa điểm của Đối thủ" text,"tại Địa điểm Trung lập" text,"5 Cuộc họp Gần đây nhất","10 cuộc họp gần đây nhất" văn bản,"Dòng hiện tại","Trong Time in Lớn | CREATE TABLE table_9609("Missouri_vs." text,"Thành_tích tổng_thể" text,"tại Columbia" text,"tại Địa_điểm của Đối_thủ" text,"tại Địa_điểm Trung_lập" text,"5 Cuộc họp Gần đây nhất ","10 cuộc họp gần đây nhất" văn_bản,"Dòng hiện_tại ","Trong Time in Lớn | Kỷ lục của 10 cuộc gặp gần nhất là bao nhiêu khi thành tích tổng thể là *tính đến ngày 14 tháng 3 năm 2013? | Kỷ_lục của 10 cuộc gặp gần nhất là bao_nhiêu khi thành_tích tổng_thể là * tính đến ngày 14 tháng 3 năm 2013 ? | SELECT "10 cuộc họp gần đây nhất" FROM table 9609 WHERE "Bản ghi tổng thể" = '*tính đến ngày 14 tháng 3 năm 2013' | SELECT "10 cuộc họp gần đây nhất" FROM table_9609 WHERE "Bản_ghi tổng_thể" = "* tính đến ngày 14 tháng 3 năm 2013" |
wikisql | CREATE TABLE table 51220("Bàn thắng" real,"Ngày" text,"Điểm" text,"Kết quả" text,"Thi đấu" text) | CREATE TABLE table_51220("Bàn_thắng" real,"Ngày" text,"Điểm" text,"Kết_quả" text,"Thi_đấu" text) | Kết quả trận đấu có 9 bàn thắng như thế nào? | Kết_quả trận đấu có 9 bàn_thắng như_thế_nào ? | SELECT "Kết quả" FROM table 51220 WHERE "Mục tiêu" = '9' | SELECT "Kết_quả" FROM table_51220 WHERE "Mục_tiêu" = "9" |
mimic_iii | 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 inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,chi phí number) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,thời gian thừa nhận time,thời gian phân bổ time,loại nhập viện 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 TABLEthủ tục 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 đơ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 microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name 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 bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE d labitems(row id number,itemid number,label 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 chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,giá trị 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 inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,chi_phí number) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,thời_gian thừa_nhận time,thời_gian phân_bổ time,loại_nhập_viện 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 TABLEthủ_tục_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 đơ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 microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name 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 bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE d_labitems(row_id number,itemid number,label 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 chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,giá_trị text) | sự khác biệt về huyết áp [tâm thu] động mạch của bệnh nhân 32163 giây được đo trong lần khám Icu cuối cùng so với giá trị đo lần đầu tiên trong lần khám Icu cuối cùng là gì? | sự khác_biệt về huyết_áp [_tâm thu ] động_mạch của bệnh_nhân 32163 giây được đo trong lần khám Icu cuối_cùng so với giá_trị đo lần đầu_tiên trong lần khám Icu cuối_cùng là gì ? | SELECT ( SELECT chartevents.valuenum FROMchartevents 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 = 32163 ) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'bp động mạch systolic' AND d items.linksto = 'chartevents' ) ORDER BYchartevents.charttime LIMIT 1 OFF SET 1 ) ( SELECT chartevents.valuenum FROMchartevents 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 = 32163 ) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'bp động mạch tâm thu' AND d items.linksto = 'chartevents' ) ORDER BY Chartevents.charttime LIMIT 1 ) | SELECT ( SELECT chartevents.valuenum 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 = 32163 ) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "bp động_mạch systolic " AND d_items.linksto = "chartevents" ) ORDER BYchartevents.charttime LIMIT 1 OFF SET 1 ) ( SELECT chartevents.valuenum 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 = 32163 ) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "bp động_mạch tâm thu" AND d_items.linksto = "chartevents" ) ORDER BY Chartevents.charttime LIMIT 1 ) |
nvbench | CREATE TABLE GIÁO SƯ(EMP NUM int,DEPT CODE varchar(10),PROF OFFICE varchar(50),PROF EXTENSION varchar(4),PROF HIGH DEGREE varchar(5)) CREATE TABLE NHÂN VIÊN(EMP NUM int,EMP LNAME varchar(15),EMP FNAME varchar(12),EMP INITIAL varchar(1),EMP JOBCODE varchar(5),EMP HIREDATE datetime,EMP DOB datetime) CREATE TABLE ĐĂNG KÝ(CLASS CODE varchar(5),STU NUM int,ENROLL GRADE varchar(50)) CREATE TABLE KHÓA HỌC(CRS CODE varchar(10),DEPT CODE varchar(10),CRS DESCRIPTION varchar(35),CRS CREDIT float(8)) CREATE TABLE DEPARTMENT(DEPT CODE varchar(10),DEPT NAME varchar(30),SCHOOL CODE varchar(8),EMP NUM int,DEPT ADDRESS varchar(20),DEPT EXTENSION varchar(4)) CREATE TABLE SINH VIÊN(STU NUM int,STU LNAME varchar(15),STU FNAME varchar(15),STU INIT varchar(1),STU DOB datetime,STU HRS int,STU CLASS varchar(2),STU GPA float(8),STU TRANSFER numeric,DEPT CODE varchar(18),STU PHONE varchar(4),PROF NUM int) CREATE TABLE LỚP(CLASS CODE varchar(5),CRS CODE varchar(10),CLASS SECTION varchar(2),CLASS TIME varchar(20),CLASS ROOM varchar(8),PROF NUM int) | CREATE TABLE GIÁO_SƯ(EMP_NUM int,DEPT_CODE varchar(10),PROF_OFFICE varchar(50),PROF_EXTENSION varchar(4),PROF_HIGH_DEGREE varchar(5)) CREATE TABLE NHÂN_VIÊN(EMP_NUM int,EMP_LNAME varchar(15),EMP_FNAME varchar(12),EMP_INITIAL varchar(1),EMP_JOBCODE varchar(5),EMP_HIREDATE datetime,EMP_DOB datetime) CREATE TABLE ĐĂNG_KÝ(CLASS_CODE varchar(5),STU_NUM int,ENROLL_GRADE varchar(50)) CREATE TABLE KHÓA_HỌC(CRS_CODE varchar(10),DEPT_CODE varchar(10),CRS_DESCRIPTION varchar(35),CRS_CREDIT float(8)) CREATE TABLE DEPARTMENT(DEPT_CODE varchar(10),DEPT_NAME varchar(30),SCHOOL_CODE varchar(8),EMP_NUM int,DEPT_ADDRESS varchar(20),DEPT_EXTENSION varchar(4)) CREATE TABLE SINH_VIÊN(STU_NUM int,STU_LNAME varchar(15),STU_FNAME varchar(15),STU_INIT varchar(1),STU_DOB datetime,STU_HRS int,STU_CLASS varchar(2),STU_GPA float(8),STU_TRANSFER_numeric,DEPT_CODE varchar(18),STU_PHONE varchar(4),PROF_NUM int) CREATE TABLE LỚP(CLASS_CODE varchar(5),CRS_CODE varchar(10),CLASS_SECTION varchar(2),CLASS_TIME varchar(20),CLASS_ROOM varchar(8),PROF_NUM int) | Vẽ biểu đồ thanh mã phòng so với tổng số, bạn có thể liệt kê asc theo chữ Y được không? | Vẽ biểu_đồ thanh_mã phòng so với tổng_số , bạn có_thể liệt_kê asc theo chữ Y được không ? | SELECT DEPT CODE, COUNT ( * ) FROM SINH VIÊN GROUP BY DEPT CODE ORDER BY COUNT ( * ) | SELECT DEPT_CODE, COUNT ( * ) FROM SINH_VIÊN GROUP BY DEPT_CODE ORDER BY COUNT ( * ) |
wikisql | CREATE TABLE table 25057("Xếp hạng Nam Mỹ" real,"Xếp hạng Thế giới" real,"Quốc gia" text,"2011(IMF)" text,"2008(CIA Factbook)" text) | CREATE TABLE table_25057("Xếp_hạng Nam_Mỹ" real,"Xếp_hạng Thế_giới" real,"Quốc_gia" text,"2011(IMF)" text,"2008(CIA_Factbook)" text) | Kể tên thứ hạng ít nhất thế giới cho Nam Mỹ xếp hạng 3 | Kể tên thứ_hạng ít_nhất thế_giới cho Nam_Mỹ xếp_hạng 3 | SELECT MIN ( "Xếp hạng Thế giới" ) FROM table 25057 WHERE "Xếp hạng Nam Mỹ" = '3' | SELECT MIN ( "Xếp_hạng Thế_giới" ) FROM table_25057 WHERE "Xếp_hạng Nam_Mỹ" = "3" |
wikisql | CREATE TABLE table 42066("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm" text,"Điểm cao" text,"Phản hồi cao" text,"Hỗ trợ cao" text,"Điểm danh theo địa điểm" text,"Bản ghi" text) | CREATE TABLE table_42066("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm" text,"Điểm cao" text,"Phản_hồi cao" text,"Hỗ_trợ cao" text,"Điểm_danh theo địa_điểm" text,"Bản_ghi" text) | Ai có số pha kiến tạo cao nhất trong trận đấu vào ngày 5 tháng 3? | Ai có số pha_kiến _tạo cao nhất trong trận đấu vào ngày 5 tháng 3 ? | SELECT "Hỗ trợ cao" FROM table 42066 WHERE "Ngày" = '5 tháng 3' | SELECT "Hỗ_trợ cao" FROM table_42066 WHERE "Ngày" = "5 tháng 3" |
wikisql | CREATE TABLE table 77569("Vị trí" real,"Câu lạc bộ" text,"Đã chơi" real,"Điểm" text,"Thắng" real,"Hòa" real,"Thua" real,"Bàn thắng cho" real,"Số bàn thắng vào lưới" real,"Chênh lệch bàn thắng bại" real) | CREATE TABLE table_77569("Vị_trí" real,"Câu_lạc_bộ" text,"Đã chơi" real,"Điểm" text,"Thắng" real,"Hòa" real,"Thua" real,"Bàn_thắng cho" real,"Số bàn thắng vào lưới" real,"Chênh_lệch bàn thắng_bại" real) | Số trận thắng cao nhất với hiệu số bàn thắng bại dưới 4 tại Villarreal CF và hơn 38 trận là bao nhiêu? | Số trận thắng cao nhất với hiệu số bàn thắng_bại dưới 4 tại Villarreal_CF và hơn 38 trận là bao_nhiêu ? | SELECT MAX ( "Thắng" ) FROM table 77569 WHERE "Chênh lệch bàn thắng" < '4' AND "Club" = 'villarreal cf' AND "Đã chơi" > '38' | SELECT MAX ( "Thắng" ) FROM table_77569 WHERE "Chênh_lệch bàn thắng" < "4" AND "Club" = "villarreal cf" AND "Đã chơi" > "38" |
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 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 lab(labid number,BNunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,BNunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE đầu ra đầu vào(id đầu ra number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,Intakeoutputtime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,thời gian tính phí time,chi phí number) CREATE TABLE bệnh nhân(duniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,hospitalid number,wardid number,admissionheight number,trọng lượng nhập viện number,trọng lượ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 nhập viện text) CREATE TABLE thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE Diagnostic(diagnosisid 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,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) 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 lab(labid number,BNunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,BNunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE đầu_ra đầu_vào(id đầu_ra number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,Intakeoutputtime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,thời_gian tính phí time,chi_phí number) CREATE TABLE bệnh_nhân(duniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,hospitalid number,wardid number,admissionheight number,trọng_lượng nhập_viện number,trọng_lượ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 nhập_viện text) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) | bệnh nhân 016-18150 có xuất huyết amt-blake trong tháng vừa qua không? | bệnh_nhân 016 - 18150 có xuất_huyết amt-blake trong tháng vừa_qua không ? | SELECT COUNT ( * ) > 0 FROM lượng nhập ra WHERE lượng nhập ra.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 = '01618150' ) ) AND Intakeoutput.cellpath LIKE 'output' AND Intakeoutput.celllabel = 'output amtblake Drain' AND DATETIME ( intakeoutput.intakeoutputtime,'bắt đầu tháng' ) = DATETIME ( CURRENT TIME ( ) ,'đầu tháng','1 tháng' ) | SELECT COUNT ( * ) > 0 FROM lượng nhập ra WHERE lượng nhập ra.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 = "016 18150" ) ) AND Intakeoutput.cellpath LIKE " output " AND Intakeoutput.celllabel = "output amtblake Drain" AND DATETIME ( intakeoutput.intakeoutputtime,"bắt_đầu tháng" ) = DATETIME ( CURRENT_TIME ( ) ,"đầu tháng"," 1 tháng" ) |
wikisql | CREATE TABLE table 20145("Tình trạng" text,"Thời gian Prothombin" text,"Thời gian Thromboplastin một phần" text,"Thời gian chảy máu" text,"Số lượng tiểu cầu" text) | CREATE TABLE table_20145("Tình_trạng" text,"Thời_gian Prothombin" text,"Thời_gian Thromboplastin một phần" text,"Thời_gian chảy_máu" text,"Số_lượng tiểu_cầu" text) | Thời gian protrombin trong bệnh Von willebrand là bao nhiêu? | Thời_gian protrombin trong bệnh Von_willebrand là bao_nhiêu ? | SELECT "Thời gian Prothrobin" FROM table 20145 WHERE "Tình trạng" = 'Bệnh Von Willebrand' | SELECT "Thời_gian Prothrobin" FROM table_20145 WHERE "Tình_trạng" = "Bệnh_Von Willebrand" |
spider | CREATE TABLE cơ sở(id number,cơ sở text,địa điểm text,quận text,năm number) CREATE TABLE môn đăng ký(trường number,ngành number,năm number,đại học number,sau đại học number) CREATE TABLE tuyển sinh(trường number,năm number,tổng số đăng ký ay number,fte ay number) CREATE TABLE giảng viên(trường number,năm number,khoa number) CREATE TABLE csu fees(trường number,năm number,học phí number) CREATE TABLE độ(năm number,trường number,độ number) | CREATE TABLE cơ_sở(id number,cơ_sở text,địa_điểm text,quận text,năm number) CREATE TABLE môn_đăng ký(trường number,ngành number,năm number,đại_học number,sau_đại_học number) CREATE TABLE tuyển_sinh(trường number,năm number,tổng_số đăng ký_ay number,fte_ay number) CREATE TABLE giảng_viên(trường number,năm number,khoa number) CREATE TABLE csu_fees(trường number,năm number,học_phí number) CREATE TABLE độ(năm number,trường number,độ number) | Tổng cộng có bao nhiêu giảng viên vào năm 2002? | Tổng_cộng có bao_nhiêu giảng_viên vào năm 2002 ? | SELECT SUM ( khoa ) FROM khoa WHERE năm = 2002 | SELECT SUM ( khoa ) FROM khoa WHERE năm = 2002 |
nvbench | CREATE TABLE Chính sách khách hàng(Chính sách ID INTEGER,ID khách hàng INTEGER,Mã loại chính sách CHAR(15),Ngày bắt đầu DATE,Ngày kết thúc DATE) CREATE TABLE Thanh toán(ID thanh toán INTEGER,ID yêu cầu bồi thường INTEGER,Ngày Xác nhận Xác nhận DATE,Ngày Claim Giải quyết DATE,Số tiền được yêu cầu INTEGER,Số tiền được giải quyết INTEGER,Chính sách ID khách hàng INTEGER) CREATE TABLE Khách hàng(Customer ID INTEGER,Chi tiết khách hàng VARCHAR(255)) CREATE TABLE Khiếu nại(Claim ID INTEGER,Policy ID INTEGER,Ngày Claim Made DATE,Ngày Claim Giải quyết DATE,Số tiền được xác nhận INTEGER,Số tiền được thanh toán INTEGER) CREATE TABLE Thanh toán(Payment ID INTEGER,Settlement ID INTEGER,Payment Method Code VARCHAR(255),Date Payment Made DATE,Amount Payment INTEGER) | CREATE TABLE Chính_sách khách_hàng(Chính sách_ID INTEGER,ID_khách hàng INTEGER,Mã_loại_chính_sách CHAR(15),Ngày bắt_đầu DATE,Ngày_kết_thúc DATE) CREATE TABLE Thanh_toán(ID thanh_toán INTEGER,ID yêu_cầu bồi_thường INTEGER,Ngày_Xác nhận_Xác nhận DATE,Ngày_Claim_Giải_quyết DATE,Số tiền được yêu_cầu INTEGER,Số tiền được giải_quyết INTEGER,Chính_sách_ID khách_hàng INTEGER) CREATE TABLE Khách_hàng(Customer_ID INTEGER,Chi_tiết khách_hàng VARCHAR(255)) CREATE TABLE Khiếu_nại(Claim_ID INTEGER,Policy_ID INTEGER,Ngày_Claim_Made_DATE,Ngày_Claim_Giải_quyết DATE,Số tiền được xác_nhận INTEGER,Số tiền được thanh_toán INTEGER) CREATE TABLE Thanh_toán(Payment_ID INTEGER,Settlement_ID INTEGER,Payment_Method_Code VARCHAR(255),Date_Payment_Made_DATE,Amount_Payment INTEGER) | Tôi muốn biết tỷ lệ trong tổng số của mỗi mã phương thức thanh toán. | Tôi muốn biết tỷ_lệ trong tổng_số của mỗi mã phương_thức thanh_toán . | SELECT Payment Method Code, COUNT ( Payment Method Code ) FROM Thanh toán GROUP BY Payment Method Code | SELECT Payment_Method_Code, COUNT ( Payment_Method_Code ) FROM Thanh_toán GROUP BY Payment_Method_Code |
sql_create_context | CREATE TABLE table 26476336 2(vị trí VARCHAR,năm VARCHAR) | CREATE TABLE table_26476336_2(vị_trí VARCHAR,năm VARCHAR) | Vị trí nào được liệt kê từ năm 2005-2010? | Vị_trí nào được liệt_kê từ năm 2005 - 2010 ? | SELECT vị trí FROM bảng 26476336 2 WHERE năm = "20052010" | SELECT vị_trí FROM bảng_26476336_2 WHERE năm = "2005 2010" |
spider | CREATE TABLE ứng viên(candidate id number,candidate details text) CREATE TABLE ứng cử viên assessments(candidate id number,qualification text,assessment date time,assessment outcome code text) CREATE TABLE people(person id number,first name text,middle name text,last name text,cell mobile number text,email address text,login name text,password text) CREATE TABLE sinh viên course registrations(student id number,course id number,registration date time) CREATE TABLE sinh viên course attendance(student id number,course id number,date of attendance time) CREATE TABLE địa chỉ(address id number,line 1 text,line 2 text,city text,zip postcode text,state province county text,country text) CREATE TABLE khóa học(Course id text,course name text,course description text,other details text) CREATE TABLE people addresses(person address id number,person id number,address id number,date from time,date to time) CREATE TABLE sinh viên(student id number,chi tiết sinh viên text) | CREATE TABLE ứng_viên(candidate_id number,candidate_details text) CREATE TABLE ứng_cử viên_assessments(candidate_id number,qualification text,assessment_date time,assessment_outcome_code text) CREATE TABLE people(person_id number,first_name text,middle_name text,last_name text,cell_mobile_number text,email_address text,login_name text,password text) CREATE TABLE sinh viên_course_registrations(student_id number,course_id number,registration_date time) CREATE TABLE sinh viên_course_attendance(student_id number,course_id number,date_of_attendance time) CREATE TABLE địa_chỉ(address_id number,line_1 text,line_2 text,city text,zip_postcode text,state_province_county text,country text) CREATE TABLE khóa_học(Course_id text,course_name text,course_description text,other_details text) CREATE TABLE people_addresses(person_address_id number,person_id number,address_id number,date_from time,date_to time) CREATE TABLE sinh_viên(student_id number,chi_tiết sinh_viên text) | Thông tin chi tiết về sinh viên đăng ký nhiều khóa học nhất? | Thông_tin chi_tiết về sinh_viên đăng_ký nhiều khóa_học nhất ? | SELECT T1.student details FROM sinh viên AS T1 JOIN sinh viên khóa đăng ký AS T2 ON T1.student id = T2.student id GROUP BY T1.student id ORDER BY COUNT ( * ) DESC LIMIT 1 | SELECT T1.student_details FROM sinh_viên AS T1 JOIN sinh viên_khóa_đăng ký AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT ( * ) DESC LIMIT 1 |
spider | CREATE TABLE công ty(id number,tên text,trụ sở chính text,ngành text,doanh số tỷ number,lợi nhuận tỷ number,tài sản tỷ number,giá trị thị trường tỷ text) CREATE TABLE tòa nhà(id number,tên text,thành phố text,độ cao number,câu chuyện number,tình trạng text) CREATE TABLE office locations(building id number,company id number,move in year number) | CREATE TABLE công_ty(id number,tên text,trụ_sở chính text,ngành text,doanh_số tỷ number,lợi nhuận_tỷ number,tài_sản_tỷ number,giá_trị thị_trường_tỷ text) CREATE TABLE tòa nhà(id number,tên text,thành_phố text,độ cao number,câu_chuyện number,tình_trạng text) CREATE TABLE office_locations(building_id number,company_id number,move_in_year number) | Các công ty hoạt động trong bao nhiêu ngành công nghiệp khác nhau? | Các công_ty hoạt_động trong bao_nhiêu ngành công_nghiệp khác nhau ? | SELECT COUNT ( DISTINCT ngành ) FROM công ty | SELECT COUNT ( DISTINCT ngành ) FROM công_ty |
wikisql | CREATE TABLE table 64366("Câu lạc bộ" text,"Thắng" real,"Thua" real,"Hòa" real,"Thắng" real) | CREATE TABLE table_64366("Câu_lạc_bộ" text,"Thắng" real,"Thua" real,"Hòa" real,"Thắng" real) | Điều gì phản đối nhiều nhất khi tỷ số hòa lớn hơn 0? | Điều gì phản_đối nhiều nhất khi tỷ_số hòa lớn hơn 0 ? | SELECT MAX ( "Chống" ) FROM table 64366 WHERE "Hòa" > '0' | SELECT MAX ( "Chống" ) FROM table_64366 WHERE "Hòa" > "0" |
wikisql | CREATE TABLE table 10252("Độ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_10252("Độ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) | Đội khách ở Collingwood là đội nào? | Đội khách ở Collingwood là đội nào ? | SELECT "Tỷ số đội khách" FROM table 10252 WHERE "Đội chủ nhà" = 'collingwood' | SELECT "Tỷ_số đội khách" FROM table_10252 WHERE "Đội chủ nhà" = "collingwood" |
wikisql | CREATE TABLE table 13129("Vị trí" real,"Đội" text,"Đã chơi" real,"Hòa" real,"Thua" real,"Bàn thắng ghi được" real,"Bàn thắng vào lưới" real,"Sự khác biệt về mục tiêu" text,"Điểm 1" text) | CREATE TABLE table_13129("Vị_trí" real,"Đội" text,"Đã chơi" real,"Hòa" real,"Thua" real,"Bàn_thắng ghi được" real,"Bàn_thắng vào lưới" real,"Sự khác_biệt về mục_tiêu" text,"Điểm 1" text) | Hiệu số bàn thắng bại nào đã được rút ra lớn hơn 10 và Đội của thành phố lancaster? | Hiệu số bàn thắng_bại nào đã được rút ra lớn hơn 10 và Đội của thành_phố lancaster ? | SELECT "Chênh lệch bàn thắng" FROM table 13129 WHERE "Rút" > '10' AND "Đội" = 'thành phố lancaster' | SELECT "Chênh_lệch bàn thắng" FROM table_13129 WHERE "Rút" > "10" AND "Đội" = "thành_phố lancaster" |
sql_create_context | CREATE TABLE table 2112260 1(vị trí VARCHAR,chuyên môn VARCHAR) | CREATE TABLE table_2112260_1(vị_trí VARCHAR,chuyên_môn VARCHAR) | Đâu là địa điểm có chuyên môn về kỹ thuật dệt may? | Đâu là địa_điểm có chuyên_môn về kỹ_thuật dệt_may ? | SELECT vị trí FROM table 2112260 1 WHERE chuyên môn = "Kỹ thuật dệt" | SELECT vị_trí FROM table_2112260_1 WHERE chuyên_môn = "Kỹ_thuật dệt" |
sede | CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) 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 PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) 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,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung 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 PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) 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 ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) 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 ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Tiêu đề text,Thẻ text,RevisionGUID other) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) 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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) | CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) 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 PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) 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,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung 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 PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) 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 ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) 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 ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Tiêu_đề text,Thẻ text,RevisionGUID_other) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) 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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) | Hầu hết các bài viết 'được liên kết đến' đều có thẻ. | Hầu_hết các bài viết ' được liên_kết đến ' đều có thẻ . | SELECT pl.ReatedPostId AS "post link", COUNT ( pl.ReatedPostId ) AS "number of links",p.Title,p.Score,p.ViewCount,p.Tags,p.AnswerCount FROM PostLinks AS pl JOIN Bài viết AS p ON p.Id = pl.ReatedPostId JOIN PostTags AS pt ON pt.PostId = pl.ReatedPostId JOIN Tags AS t ON t.Id = pt.TagId WHERE t.TagName = 'GROUPTagNameBY' ORDER BY pl.RelationPostId,p.ViewCount,p.Score,p.AnswerCount,p.Title,p.Tags DESC 'number of links' | SELECT pl.ReatedPostId AS "post_link", COUNT ( pl.ReatedPostId ) AS"number_of_links",p.Title,p.Score,p.ViewCount,p.Tags,p.AnswerCount FROM PostLinks AS pl JOIN Bài viết AS p ON p.Id = pl.ReatedPostId JOIN PostTags AS pt ON pt.PostId = pl.ReatedPostId JOIN Tags AS t ON t.Id = pt.TagId WHERE t.TagName = "GROUPTagNameBY" ORDER BY pl.RelationPostId,p.ViewCount,p.Score,p.AnswerCount,p.Title,p.Tags DESC _ "number_of_links" |
nvbench | CREATE TABLE Ship(Ship ID int,Name text,Type text,Build Year real,Class text,Flag text) CREATE TABLE thuyền trưởng(Captain ID int,Name text,Ship ID int,age text,Lớp text,Hạng text) | CREATE TABLE Ship(Ship_ID int,Name text,Type text,Build_Year real,Class text,Flag text) CREATE TABLE thuyền_trưởng(Captain_ID int,Name text,Ship_ID int,age text,Lớp text,Hạng text) | Thanh lớp xếp chồng lên nhau và số lượng lớp được tô màu theo Thứ hạng và thứ tự tăng dần theo trục Y. | Thanh_lớp xếp chồng lên nhau và số_lượng lớp được tô_màu theo Thứ_hạng và thứ_tự tăng dần theo trục Y . | SELECT Hạng, COUNT ( Lớp ) FROM đội trưởng GROUP BY Cấp bậc,Lớp ORDER BY COUNT ( Lớp ) | SELECT Hạng, COUNT ( Lớp ) FROM đội_trưởng GROUP BY Cấp_bậc,Lớp ORDER BY COUNT ( Lớp ) |
wikisql | CREATE TABLE table 36791("Xếp hạng" text,"Quốc gia" text,"Vàng" real,"Bạc" real,"Đồng" real,"Tổng" real) | CREATE TABLE table_36791("Xếp_hạng" text,"Quốc_gia" text,"Vàng" real,"Bạc" real,"Đồng" real,"Tổng" real) | Tổng giá trị của vàng có giá trị đồng trên 0 và tổng giá trị dưới 2 là bao nhiêu? | Tổng giá_trị của vàng có giá_trị đồng trên 0 và tổng giá_trị dưới 2 là bao_nhiêu ? | SELECT SUM ( "Vàng" ) FROM table 36791 WHERE "Đồng" > '0' AND "Tổng cộng" < '2' | SELECT SUM ( "Vàng" ) FROM table_36791 WHERE "Đồng" > "0" AND "Tổng_cộng" < "2" |
wikisql | CREATE TABLE table 56629("Chọn #" real,"Đội CFL" text,"Người chơi" text,"Vị trí" text,"Đại học" text) | CREATE TABLE table_56629("Chọn #" real,"Đội CFL" text,"Người chơi" text,"Vị_trí" text,"Đại_học" text) | Vị trí nào có Nhóm CFL gồm các alouettes montreal (thông qua edmonton)? | Vị_trí nào có Nhóm CFL gồm các alouettes_montreal ( thông_qua edmonton ) ? | SELECT "Vị trí" FROM table 56629 WHERE "Đội CFL" = 'montreal alouettes ( via edmonton ) ' | SELECT "Vị_trí" FROM table_56629 WHERE "Đội CFL" = "montreal alouettes ( via edmonton ) " |
wikisql | CREATE TABLE table 16630("Trường học" text,"Địa điểm" text,"Đăng ký" real,"Thành lập" real,"Học phái" text,"Ngày/Nội trú" text,"Màu sắc của trường" text,"Viết tắt" text,"Đang cạnh tranh kể từ" real) | CREATE TABLE table_16630("Trường_học" text,"Địa_điểm" text,"Đăng_ký" real,"Thành_lập" real,"Học_phái" text,"Ngày/Nội_trú" text,"Màu_sắc của trường" text,"Viết_tắt" text,"Đang cạnh_tranh kể từ" real) | Có bao nhiêu trường có số lượng tuyển sinh là 850? | Có bao_nhiêu trường có số_lượng tuyển_sinh là 850 ? | SELECT COUNT ( "Đã thành lập" ) FROM table 16630 WHERE "Đăng ký" = '850' | SELECT COUNT ( "Đã thành_lập" ) FROM table_16630 WHERE "Đăng_ký" = "850" |
sql_create_context | CREATE TABLE table name 70(year entered league VARCHAR,đại học VARCHAR) | CREATE TABLE table_name_70(year_entered_league VARCHAR,đại_học VARCHAR) | Năm nhập học của Đại học Essex là khi nào? | Năm nhập_học của Đại_học Essex là khi nào ? | SELECT năm entered league FROM table name 70 WHERE đại học = "đại học essex" | SELECT năm_entered_league FROM table_name_70 WHERE đại_học = "đại_học essex" |
wikisql | CREATE TABLE table 32432("Độ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_32432("Độ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) | Số lượng người tham dự các trận đấu diễn ra tại Windy Hill cao nhất là bao nhiêu? | Số_lượng người tham_dự các trận đấu diễn ra tại Windy_Hill cao nhất là bao_nhiêu ? | SELECT MAX ( "Đám đông" ) FROM table 32432 WHERE "Địa điểm" = 'đồi gió' | SELECT MAX ( "Đám đông" ) FROM table_32432 WHERE "Địa_điểm" = "đồi gió" |
nvbench | CREATE TABLE Sinh viên(student id INTEGER,student details VARCHAR(255)) CREATE TABLE Courses(course id VARCHAR(100),course name VARCHAR(120),course description VARCHAR(255),other details VARCHAR(255)) CREATE TABLE Ứng viên(candidate id INTEGER,candidate details VARCHAR(255)) CREATE TABLE Sinh viên Course Attendance(student id INTEGER,course id INTEGER,date of attendance DATETIME) CREATE TABLE Sinh viên Course Registrations(student id INTEGER,course id INTEGER,ngày đăng ký DATETIME) CREATE TABLE Ứng viên Assessments(candidate id INTEGER,qualification CHAR(15),assessment date DATETIME,assessment outcome code CHAR(15)) CREATE TABLE Địa chỉ(address id INTEGER,line 1 VARCHAR(80),line 2 VARCHAR(80),thành phố VARCHAR(50),zip postcode CHAR(20),state province county VARCHAR(50),country VARCHAR(50)) CREATE TABLE People Addresses(person address id INTEGER,person id INTEGER,address id INTEGER,date from DATETIME,date to DATETIME) CREATE TABLE People(person id INTEGER,first name VARCHAR(255),middle name VARCHAR(255),last name VARCHAR(255),cell mobile number VARCHAR(40),email address VARCHAR(40),tên đăng nhập VARCHAR(40),mật khẩu VARCHAR(40)) | CREATE TABLE Sinh_viên(student_id INTEGER,student_details VARCHAR(255)) CREATE TABLE Courses(course_id VARCHAR(100),course_name VARCHAR(120),course_description VARCHAR(255),other_details VARCHAR(255)) CREATE TABLE Ứng_viên(candidate_id INTEGER,candidate_details VARCHAR(255)) CREATE TABLE Sinh_viên_Course_Attendance(student_id INTEGER,course_id INTEGER,date_of_attendance DATETIME) CREATE TABLE Sinh_viên_Course_Registrations(student_id INTEGER,course_id INTEGER,ngày đăng_ký DATETIME) CREATE TABLE Ứng_viên_Assessments(candidate_id INTEGER,qualification_CHAR(15),assessment_date DATETIME,assessment_outcome_code_CHAR(15)) CREATE TABLE Địa_chỉ(address_id INTEGER,line_1 VARCHAR(80),line_2 VARCHAR(80),thành_phố VARCHAR(50),zip_postcode_CHAR(20),state_province_county VARCHAR(50),country VARCHAR(50)) CREATE TABLE People_Addresses(person_address_id INTEGER,person_id INTEGER,address_id INTEGER,date_from DATETIME,date_to DATETIME) CREATE TABLE People(person_id INTEGER,first_name VARCHAR(255),middle_name VARCHAR(255),last_name VARCHAR(255),cell_mobile_number VARCHAR(40),email_address VARCHAR(40),tên_đăng nhập VARCHAR(40),mật_khẩu VARCHAR(40)) | Đối với mỗi id khóa học, có bao nhiêu sinh viên đăng ký và tên khóa học là gì, sắp xếp theo Y giảm dần. | Đối_với mỗi id khóa_học , có bao_nhiêu sinh_viên đăng_ký và tên khóa_học là gì , sắp_xếp theo Y_giảm dần . | SELECT tên khóa học, COUNT ( * ) FROM Sinh viên AS T1 JOIN Đăng ký khóa học AS T2 ON T1.student id = T2.student id JOIN Khóa học AS T3 ON T2.course id = T3.course id GROUP BY T2.Mã khóa học ORDER BY COUNT ( * ) DESC | SELECT tên khóa_học, COUNT ( * ) FROM Sinh_viên AS T1 JOIN Đăng_ký khóa học AS T2 ON T1.student_id = T2.student_id JOIN Khóa_học AS T3 ON T2.course_id = T3.course_id GROUP BY T2.Mã_khóa học ORDER BY COUNT ( * ) DESC |
spider | CREATE TABLE vị trí(location id number,street address text,postal code text,city text,state province text,country id text) CREATE TABLE các quốc gia(country id text,country name text,khu vực id number) CREATE TABLE job history(employee id number,start date time,end date time,job id text,department id number) CREATE TABLE jobs(job id text,job title text,min salary number,max salary number) CREATE TABLE khu vực(khu vực id number,tên khu vực text) CREATE TABLE nhân viên(employee id number,first name text,last name text,email text,phone number text,hire date time,job id text,salary number,commission pct number,manager id number,department id number) CREATE TABLE các phòng ban(department id number,department name text,manager id number,location id number) | CREATE TABLE vị_trí(location_id number,street_address text,postal_code text,city text,state_province text,country_id text) CREATE TABLE các quốc_gia(country_id text,country_name text,khu vực_id number) CREATE TABLE job_history(employee_id number,start_date time,end_date time,job_id text,department_id number) CREATE TABLE jobs(job_id text,job_title text,min_salary number,max_salary number) CREATE TABLE khu_vực(khu vực_id number,tên_khu_vực text) CREATE TABLE nhân_viên(employee_id number,first_name text,last_name text,email text,phone_number text,hire_date time,job_id text,salary number,commission_pct number,manager_id number,department_id number) CREATE TABLE các phòng_ban(department_id number,department_name text,manager_id number,location_id number) | hiển thị id nhân viên và mức lương của tất cả nhân viên báo cáo cho Payam (tên). | hiển_thị id nhân_viên và mức lương của tất_cả nhân_viên báo_cáo cho Payam ( tên ) . | SELECT nhân viên id,lương FROM nhân viên WHERE manager id = ( SELECT nhân viên id FROM nhân viên WHERE first name = 'Payam' ) | SELECT nhân_viên_id,lương FROM nhân_viên WHERE manager_id = ( SELECT nhân viên_id FROM nhân_viên WHERE first_name = "Payam" ) |
sql_create_context | CREATE TABLE table 13833770 3(đương nhiệm VARCHAR,đối thủ VARCHAR) | CREATE TABLE table_13833770_3(đương_nhiệm VARCHAR,đối_thủ VARCHAR) | ai là người đương nhiệm với đối thủ là peter king (r) 56,0% david mejias (d) 44,0% | ai là người đương_nhiệm với đối_thủ là peter_king ( r ) 56,0 % david_mejias ( d ) 44,0 % | Peter King ( R ) 56,0 David Mejias ( D ) 44,0 | Peter King ( R ) 56,0 David_Mejias ( D ) 44,0 |
nvbench | 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 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 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 quốc gia(COUNTRY ID varchar(2),COUNTRY NAME varchar(40),REGION ID decimal(10,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 jobs(JOB ID varchar(10),JOB TITLE varchar(35),MIN SALARY decimal(6,0),MAX SALARY decimal(6,0)) | 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 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 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 quốc_gia(COUNTRY_ID varchar(2),COUNTRY_NAME varchar(40),REGION_ID_decimal(10,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 jobs(JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY_decimal(6,0),MAX_SALARY_decimal(6,0)) | Đối với những nhân viên chưa có việc làm trước đây, hãy cho tôi biết về sự phân bố của ngày thuê ngày và mức lương trung bình ngày thuê ngày theo ngày trong tuần trong biểu đồ thanh. | Đối_với những nhân_viên chưa có việc_làm trước_đây , hãy cho tôi biết về sự phân_bố của ngày thuê_ngày và mức lương trung_bình ngày thuê_ngày theo ngày trong tuần trong biểu_đồ thanh . | SELECT HIRE DATE, AVG ( LƯƠNG ) FROM nhân viên WHERE NOT EMPLOYEE ID IN ( SELECT EMPLOYEE ID FROM job history ) | SELECT HIRE_DATE, AVG ( LƯƠNG ) FROM nhân_viên WHERE NOT EMPLOYEE_ID IN ( SELECT EMPLOYEE_ID FROM job_history ) |
mimic_iii | CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,loại nhập viện 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 đơ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 labitems(row id number,itemid number,label 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,outtime time) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title 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 Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) 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,tiêu đề dài text) | CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,loại_nhập_viện 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 đơ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_labitems(row_id number,itemid number,label 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,outtime time) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title 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 Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) 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,tiêu_đề dài text) | vào ngày 28 tháng trước sự khác biệt giữa tổng lượng đầu vào và đầu ra của bệnh nhân 8016 là bao nhiêu? | vào ngày 28 tháng trước sự khác_biệt giữa tổng_lượng đầu_vào và đầu_ra của bệnh_nhân 8016 là bao_nhiêu ? | SELECT ( SELECT SUM ( inputevents cv.amount ) FROM inputevents cv WHERE inputevents cv.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 8016 ) ) AND DATETIME ( inputevents cv.charttime,'bắt đầu tháng' ) = DATETIME ( CURRENT TIME ( ) ,'bắt đầu tháng','1 tháng' ) AND STRFTIME ( 'd',inputevents cv.charttime ) = '28' ) ( SELECT SUM ( outputevents.value ) FROM outputevents WHERE outevents.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 = 8016 ) ) AND DATETIME ( outputevents.charttime,'bắt đầu tháng' ) = DATETIME ( CURRENT TIME ( ) ,'bắt đầu tháng','1 tháng' ) AND STRFTIME ( 'd',outputevents.charttime ) = '28' ) | SELECT ( SELECT SUM ( inputevents_cv.amount ) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 8016 ) ) AND DATETIME ( inputevents_cv.charttime,"bắt_đầu tháng" ) = DATETIME ( CURRENT_TIME ( ) ,"bắt_đầu tháng"," 1 tháng" ) AND STRFTIME ( " d",inputevents_cv.charttime ) = "28" ) ( SELECT SUM ( outputevents.value ) FROM outputevents WHERE outevents.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 = 8016 ) ) AND DATETIME ( outputevents.charttime,"bắt_đầu tháng" ) = DATETIME ( CURRENT_TIME ( ) ,"bắt_đầu tháng"," 1 tháng" ) AND STRFTIME ( " d",outputevents.charttime ) = "28" ) |
wikisql | CREATE TABLE table 24595("Năm" real,"Ngày" text,"Người lái xe" text,"Đội" text,"Nhà sản xuất" text,"Vòng" text,"Dặm(km)" text,"Thời gian đua" text,"Tốc độ trung bình(mph)" text,"Báo cáo" text) | CREATE TABLE table_24595("Năm" real,"Ngày" text,"Người lái_xe" text,"Đội" text,"Nhà sản_xuất" text,"Vòng" text,"Dặm(km)" text,"Thời_gian đua" text,"Tốc_độ trung_bình(mph)" text,"Báo_cáo" text) | Cuộc đua đã hoàn thành bao nhiêu vòng với thời gian 3:03:50? | Cuộc đua đã hoàn_thành bao_nhiêu vòng với thời_gian 3 : 03 : 50 ? | SELECT "Vòng đua" FROM table 24595 WHERE "Thời gian đua" = '30350' | SELECT "Vòng_đua" FROM table_24595 WHERE "Thời_gian đua" = "3 03 50" |
wikisql | CREATE TABLE table 57867("Mùa giải" text,"Ngày" text,"Người chiến thắng" text,"Điểm số" text,"Á quân" text,"Địa điểm" text,"Địa điểm" text) | CREATE TABLE table_57867("Mùa giải" text,"Ngày" text,"Người chiến_thắng" text,"Điểm_số" text,"Á_quân" text,"Địa_điểm" text,"Địa_điểm" text) | Người chiến thắng mùa nào là Panathinaikos và nằm ở Athens? | Người chiến_thắng mùa nào là Panathinaikos và nằm ở Athens ? | SELECT "Mùa giải" FROM table 57867 WHERE "Vị trí" = 'athens' AND "Người chiến thắng" = 'panathinaikos' | SELECT "Mùa giải" FROM table_57867 WHERE "Vị_trí" = "athens" AND "Người chiến_thắng" = "panathinaikos" |
wikisql | CREATE TABLE table 24319("Vẽ" real,"Bài hát" text,"Nghệ sĩ" text,"Điểm bảng" real,"Televote" real,"Điểm Televote" real,"Điểm" real,"Đặt" text) | CREATE TABLE table_24319("Vẽ" real,"Bài hát" text,"Nghệ_sĩ" text,"Điểm bảng" real,"Televote" real,"Điểm Televote" real,"Điểm" real,"Đặt" text) | Kể tên số lượng nghệ sĩ cho điểm bảng là 5 | Kể tên số_lượng nghệ_sĩ cho điểm bảng là 5 | SELECT COUNT ( "Nghệ sĩ" ) FROM table 24319 WHERE "Điểm bảng" = '5' | SELECT COUNT ( "Nghệ_sĩ" ) FROM table_24319 WHERE "Điểm bảng" = "5" |
sql_create_context | CREATE TABLE table name 42(điểm VARCHAR,home team VARCHAR) | CREATE TABLE table_name_42(điểm VARCHAR,home_team VARCHAR) | Tỷ số trận đấu có đội chủ nhà Kidderminster Harriers là bao nhiêu? | Tỷ_số trận đấu có đội chủ nhà Kidderminster_Harriers là bao_nhiêu ? | SELECT điểm FROM table name 42 WHERE home team = "kidderminster harriers" | SELECT điểm FROM table_name_42 WHERE home_team = "kidderminster harriers" |
nvbench | CREATE TABLE Vai trò(Role Code CHAR(15),Role Name VARCHAR(255),Role Description VARCHAR(255)) CREATE TABLE All Documents(Document ID INTEGER,Date Stored DATETIME,Document Type Code CHAR(15),Document Name CHAR(255),Document Description CHAR(255),Other Details VARCHAR(255)) CREATE TABLE Nhân viên(Employee ID INTEGER,Role Code CHAR(15),Employee Name VARCHAR(255),Gender MFU CHAR(1),Ngày sinh DATETIME,Other Details VARCHAR(255)) CREATE TABLE Ref Locations(Location Code CHAR(15),Location Name VARCHAR(255),Location Description VARCHAR(255)) CREATE TABLE Documents to be Destroyed(Document ID INTEGER,Destruction Authorised by Employee ID INTEGER,Destroyed by Employee ID INTEGER,Planned Destruction Date DATETIME,Actual Destruction Date DATETIME,Other Details VARCHAR(255)) CREATE TABLE Ref Document Types(Document Type Code CHAR(15),Document Type Name VARCHAR(255),Document Type Description VARCHAR(255)) CREATE TABLE Document Locations(Document ID INTEGER,Location Code CHAR(15),Date in Location From DATETIME,Date in Locaton To DATETIME) CREATE TABLE Ref Calendar(Calendar Date DATETIME,Day Number INTEGER) | CREATE TABLE Vai_trò(Role_Code_CHAR(15),Role_Name VARCHAR(255),Role_Description VARCHAR(255)) CREATE TABLE All_Documents(Document_ID INTEGER,Date_Stored DATETIME,Document_Type_Code_CHAR(15),Document_Name_CHAR(255),Document_Description_CHAR(255),Other_Details VARCHAR(255)) CREATE TABLE Nhân_viên(Employee_ID INTEGER,Role_Code_CHAR(15),Employee_Name VARCHAR(255),Gender_MFU_CHAR(1),Ngày_sinh DATETIME,Other_Details VARCHAR(255)) CREATE TABLE Ref_Locations(Location_Code_CHAR(15),Location_Name VARCHAR(255),Location_Description VARCHAR(255)) CREATE TABLE Documents_to_be_Destroyed(Document_ID INTEGER,Destruction_Authorised_by_Employee_ID INTEGER,Destroyed_by_Employee_ID INTEGER,Planned_Destruction_Date DATETIME,Actual_Destruction_Date DATETIME,Other_Details VARCHAR(255)) CREATE TABLE Ref_Document_Types(Document_Type_Code_CHAR(15),Document_Type_Name VARCHAR(255),Document_Type_Description VARCHAR(255)) CREATE TABLE Document_Locations(Document_ID INTEGER,Location_Code_CHAR(15),Date_in_Location_From DATETIME,Date_in_Locaton_To DATETIME) CREATE TABLE Ref_Calendar(Calendar_Date DATETIME,Day_Number INTEGER) | Cung cấp cho tôi biểu đồ dạng đường về tổng số ngày trên toàn thế giới từ số ngày ở vị trí đến ngày trong năm theo vị trí theo thể loại chính Location Id | Cung_cấp cho tôi biểu_đồ dạng đường về tổng_số ngày trên toàn thế_giới từ số ngày ở vị_trí đến ngày trong năm theo vị_trí theo thể_loại chính Location_Id | SELECT Ngày in Locaton To, COUNT ( Date in Locaton To ) FROM Document Locations GROUP BY Location Code | SELECT Ngày_in_Locaton_To, COUNT ( Date_in_Locaton_To ) FROM Document_Locations GROUP BY Location_Code |
wikisql | CREATE TABLE table 65964("Tần số" text,"Ký hiệu cuộc gọi" text,"Thương hiệu" text,"Định dạng" text,"Chủ sở hữu" text) | CREATE TABLE table_65964("Tần_số" text,"Ký_hiệu cuộc_gọi" text,"Thương_hiệu" text,"Định_dạng" text,"Chủ_sở_hữu" text) | Chủ sở hữu tần số với định dạng của đài phát thanh cộng đồng các quốc gia đầu tiên là gì? | Chủ_sở_hữu_tần_số với định_dạng của đài_phát_thanh cộng_đồng các quốc_gia đầu_tiên là gì ? | SELECT "Chủ sở hữu" FROM table 65964 WHERE "Định dạng" = 'đài phát thanh cộng đồng của các quốc gia đầu tiên' | SELECT "Chủ_sở_hữu" FROM table_65964 WHERE "Định_dạng" = "đài_phát_thanh cộng_đồng của các quốc_gia đầu_tiên" |
nvbench | 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) CREATE TABLE Sản_phẩm(Mã INTEGER,Tên VARCHAR(255)),Giá_DECIMAL,Nhà_sản_xuất INTEGER) | Trả về biểu đồ về tên và giá của tất cả các sản phẩm trong cửa hàng?, hiển thị từ thấp đến cao theo tổng số. | Trả về biểu_đồ về tên và giá của tất_cả các sản_phẩm trong cửa_hàng ? , hiển_thị từ thấp đến cao theo tổng_số . | SELECT Tên, AVG ( Giá ) FROM Sản phẩm GROUP BY Tên ORDER BY AVG ( Giá ) | SELECT Tên, AVG ( Giá ) FROM Sản_phẩm GROUP BY Tên ORDER BY AVG ( Giá ) |
wikisql | CREATE TABLE table 58244("Xếp hạng" text,"Quốc gia" text,"Vàng" real,"Bạc" real,"Đồng" real,"Tổng" real) | CREATE TABLE table_58244("Xếp_hạng" text,"Quốc_gia" text,"Vàng" real,"Bạc" real,"Đồng" real,"Tổng" real) | quốc gia là gì khi vàng là 1 và đồng lớn hơn 0? | quốc_gia là gì khi vàng là 1 và đồng lớn hơn 0 ? | SELECT "Quốc gia" FROM table 58244 WHERE "Vàng" = '1' AND "Đồng" > '0' | SELECT "Quốc_gia" FROM table_58244 WHERE "Vàng" = "1" AND "Đồng" > "0" |
nvbench | CREATE TABLE Người(tên varchar(20),tuổi INTEGER,thành phố TEXT,giới tính TEXT,công việc TEXT) CREATE TABLE NgườiBạn(tên varchar(20),bạn varchar(20),năm INTEGER) | CREATE TABLE Người(tên varchar(20),tuổi INTEGER,thành_phố TEXT,giới_tính TEXT,công_việc TEXT) CREATE TABLE NgườiBạn(tên varchar(20),bạn varchar(20),năm INTEGER) | Đưa cho tôi một biểu đồ thanh để hiển thị tên bạn bè và độ tuổi của tất cả những người lớn hơn độ tuổi trung bình của một người | Đưa cho tôi một biểu_đồ thanh để hiển_thị tên bạn_bè và độ tuổi của tất_cả những người_lớn hơn độ tuổi trung_bình của một người | SELECT T1.name,T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > ( SELECT AVG ( age ) FROM Person ) | SELECT T1.name,T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > ( SELECT AVG ( age ) FROM Person ) |
sede | CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) 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 PostTypes(Id number,Name text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Tên text,Mô tả 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 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 PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE CloseReasonTypes(Id number,Tên text,Mô tả text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Texttext,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 ReviewTaskResultTypes(Id number,Tên text,Mô tả 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 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 Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskStates(Id number,Name text,Description 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 Đề xuấtChỉnh sửa(Id number,PostId number,Ngày tạo 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 khác) CREATE TABLE Liên kết bài đăng(Id number,Ngày tạo time,PostId number,RelatedPostId number,LinkTypeId number) 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 Votes(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) 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 PostTags(PostId number,TagId number) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewRejectionLý do(Id number,Name text,Mô tả text,PostTypeId number) CREATE TABLE VoteTypes(Id number,Name text) | CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) 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 PostTypes(Id number,Name text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Tên text,Mô_tả 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 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 PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE CloseReasonTypes(Id number,Tên text,Mô_tả text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Texttext,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 ReviewTaskResultTypes(Id number,Tên text,Mô_tả 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 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 Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskStates(Id number,Name text,Description 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 Đề_xuấtChỉnh sửa(Id number,PostId number,Ngày tạo 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 khác) CREATE TABLE Liên_kết bài đăng(Id number,Ngày tạo time,PostId number,RelatedPostId number,LinkTypeId number) 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 Votes(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) 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 PostTags(PostId number,TagId number) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewRejectionLý do(Id number,Name text,Mô_tả text,PostTypeId number) CREATE TABLE VoteTypes(Id number,Name text) | Câu hỏi mồ côi bằng cách xóa (giới hạn, gửi đến và gửi đi). | Câu hỏi mồ_côi bằng cách xóa ( giới_hạn , gửi đến và gửi đi ) . | SELECT Id AS "post link",Tiêu đề,Thẻ FROM Bài viết WHERE ( Thẻ LIKE '<bounding>' ) OR ( Tags LIKE '<inbound>' ) OR ( Tags LIKE '<outbound>' ) | SELECT Id AS "post_link",Tiêu_đề,Thẻ FROM Bài viết WHERE ( Thẻ LIKE "<bounding >" ) OR ( Tags LIKE "<inbound >" ) OR ( Tags LIKE "<outbound >" ) |
nvbench | CREATE TABLE store(Store ID int,Store Name text,Type text,Area size real,Number of product category real,Xếp hạng int) CREATE TABLE store product(Store ID int,Product ID int) CREATE TABLE store district(Store ID int,District ID int) CREATE TABLE District(District ID int,District name text,Headquartered City text,City Population real,City Area real) CREATE TABLEproduct(product id int,product text,dimensions text,dpi real,pages per Minute color real,max page size text,giao diện text) | CREATE TABLE store(Store_ID int,Store_Name text,Type text,Area_size real,Number_of_product_category real,Xếp_hạng int) CREATE TABLE store_product(Store_ID int,Product_ID int) CREATE TABLE store_district(Store_ID int,District_ID int) CREATE TABLE District(District_ID int,District_name text,Headquartered_City text,City_Population real,City_Area real) CREATE TABLEproduct(product_id int,product text,dimensions text,dpi real,pages_per_ Minute_color real,max_page_size text,giao_diện text) | Tên quận và dân số thành phố của tất cả các quận có từ 200.000 đến 2.000.000 cư dân là gì? Hiển thị biểu đồ thanh, sắp xếp trục x theo thứ tự tăng dần. | Tên quận và dân_số thành_phố của tất_cả các quận có từ 200.000 đến 2.000.000_cư_dân là gì ? Hiển_thị biểu_đồ thanh , sắp_xếp trục x theo thứ_tự tăng dần . | SELECT Tên quận,Thành phố Dân số FROM quận WHERE Dân số thành phố BETWEEN 200000 AND 2000000 ORDER BY Tên quận | SELECT Tên quận,Thành_phố_Dân số FROM quận WHERE Dân_số thành_phố BETWEEN 200000 AND 2000000 ORDER BY Tên quận |
sql_create_context | CREATE TABLE table 24765815 2(điểm VARCHAR,người chơi VARCHAR) | CREATE TABLE table_24765815_2(điểm VARCHAR,người chơi VARCHAR) | Tỷ số của trận đấu mà Samir Nasri thi đấu là bao nhiêu? | Tỷ_số của trận đấu mà Samir_Nasri thi_đấu là bao_nhiêu ? | SELECT điểm FROM bảng 24765815 2 WHERE người chơi = "Samir Nasri" | SELECT điểm FROM bảng_24765815_2 WHERE người chơi = "Samir_Nasri" |
criteria2sql | CREATE TABLE table dev 48("id" int,"gender" string,"systolic blood Pressure sbp" int,"hiv infection" bool,"body weight" float,"diabetic" string,"active hepatitis" bool,"diastolic blood Pressure dbp" int,"gan disease" bool,"high dense lipoprotein cholesterol hdl c" int,"kidney disease" bool,"body mass index bmi" float,"tăng huyết áp" bool,"tuổi" float,"NOUSE" float) | CREATE TABLE table_dev_48("id" int,"gender" string,"systolic_blood_ Pressure_sbp" int,"hiv_infection" bool,"body_weight" float,"diabetic" string,"active_hepatitis" bool,"diastolic_blood_ Pressure_dbp" int,"gan_disease" bool,"high_dense_lipoprotein_cholesterol_hdl_c" int,"kidney_disease" bool,"body_mass_index_bmi" float,"tăng huyết_áp" bool,"tuổi" float,"NOUSE" float) | tiền sử bệnh gan mãn tính, nhiễm trùng viêm gan hoạt động, hiv/aids, bệnh thận mãn tính | tiền sử bệnh gan mãn_tính , nhiễm_trùng viêm gan hoạt_động , hiv / aids , bệnh thận mãn_tính | SELECT * FROM bảng dev 48 WHERE bệnh gan = 1 OR viêm gan hoạt động = 1 OR nhiễm HIV = 1 OR bệnh thận = 1 | SELECT * FROM bảng_dev_48 WHERE bệnh gan = 1 OR viêm gan hoạt_động = 1 OR nhiễm HIV = 1 OR bệnh thận = 1 |
nvbench | CREATE TABLE hãng hàng không(alid integer,name text,iata varchar(2),icao varchar(3),callsign text,country text,active varchar(2)) CREATE TABLE tuyến đường(rid integer,dst apid integer,dst ap varchar(4),src apid bigint,src ap varchar(4),alid bigint,airline varchar(4),codeshare text) CREATE TABLE sân bay(apid integer,tên text,thành phố text,quốc gia text,x real,y real,độ cao bigint,ký tự iata varchar(3),ký tự icao varchar(4)) | CREATE TABLE hãng hàng_không(alid integer,name text,iata varchar(2),icao varchar(3),callsign text,country text,active varchar(2)) CREATE TABLE tuyến đường(rid integer,dst_apid integer,dst_ap varchar(4),src_apid bigint,src_ap varchar(4),alid bigint,airline varchar(4),codeshare text) CREATE TABLE sân_bay(apid integer,tên text,thành_phố text,quốc_gia text,x real,y real,độ cao bigint,ký tự iata varchar(3),ký tự icao varchar(4)) | Các quốc gia của tất cả các hãng hàng không có tên bắt đầu bằng Orbit là gì và đếm chúng bằng biểu đồ thanh | Các quốc_gia của tất_cả các hãng hàng_không có tên bắt_đầu bằng Orbit là gì và đếm chúng bằng biểu_đồ thanh | SELECT quốc gia, COUNT ( quốc gia ) FROM hãng hàng không WHERE tên LIKE 'Orbit' GROUP BY quốc gia | SELECT quốc_gia, COUNT ( quốc_gia ) FROM hãng hàng_không WHERE tên LIKE "Orbit " GROUP BY quốc_gia |
sql_create_context | CREATE TABLE table name 89(đối thủ VARCHAR,tuần VARCHAR) | CREATE TABLE table_name_89(đối_thủ VARCHAR,tuần VARCHAR) | Đối thủ ở Tuần 8 là ai? | Đối_thủ ở Tuần 8 là ai ? | SELECT đối thủ FROM tên bảng 89 WHERE tuần = 8 | SELECT đối_thủ FROM tên_bảng_89 WHERE tuần = 8 |
sede | CREATE TABLE PostTags(PostId number,TagId 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 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 Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Đề xuấtChỉnh sửa(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Liên kết bài đăng(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE FlagTypes(Id number,Name text,Mô tả text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE CloseReasonTypes(Id number,Name text,Description 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 ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE Comments(Id number,PostId number,Score number,Texttext,CreationDate time,UserDisplayName text,UserId number,ContentLicens text) 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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE PostHistoryTypes(Id number,Tên text) 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 PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) | CREATE TABLE PostTags(PostId number,TagId 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 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 Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Đề_xuấtChỉnh sửa(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Liên_kết bài đăng(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE FlagTypes(Id number,Name text,Mô_tả text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE CloseReasonTypes(Id number,Name text,Description 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 ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE Comments(Id number,PostId number,Score number,Texttext,CreationDate time,UserDisplayName text,UserId number,ContentLicens text) 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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE PostHistoryTypes(Id number,Tên text) 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 PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) | Người dùng có hơn 5000 đại diện trong cả SO và Math. | Người dùng có hơn 5000 đại_diện trong cả SO và Math . | SELECT s.DisplayName,m.Reputation AS RepEnglish,s.Reputation AS RepSO, ( s.Reputation m.Reputation ) AS RepAcum FROM "stackexchange.english".Users AS m,"stackoverflow".Users AS s WHERE s.Danh tiếng > 5000 AND m.Danh tiếng > 5000 AND s.EmailHash = m.EmailHash ORDER BY 2 DESC | SELECT s.DisplayName,m.Reputation AS RepEnglish,s.Reputation AS RepSO, ( s.Reputation m.Reputation ) AS RepAcum FROM "stackexchange.english".Users AS m,"stackoverflow".Users AS s WHERE s.Danh_tiếng > 5000 AND m.Danh_tiếng > 5000 AND s.EmailHash = m.EmailHash ORDER BY 2 DESC |
Subsets and Splits