source
stringclasses 25
values | schema_syll
stringlengths 26
5.37k
| schema_word
stringlengths 26
5.37k
| question_syll
stringlengths 0
1.08k
| question_word
stringlengths 0
1.11k
| query_syll
stringlengths 0
4.53k
| query_word
stringlengths 0
4.53k
|
---|---|---|---|---|---|---|
sql_create_context | CREATE TABLE table name 27(grade VARCHAR,priority entry rights to derby VARCHAR) | CREATE TABLE table_name_27(grade VARCHAR,priority_entry_rights_to_derby VARCHAR) | Hạng có sân cỏ 1600m là gì? | Hạng có sân cỏ 1600 m là gì ? | SELECT hạng FROM table name 27 WHERE Prior entry rights to derby = "sân cỏ 1600m" | SELECT hạng FROM table_name_27 WHERE Prior_entry_rights_to_derby = "sân cỏ 1600 m" |
wikisql | CREATE TABLE table 69541("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Ghi chép" text) | CREATE TABLE table_69541("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Ghi_chép" text) | Đối thủ bị mất Leal (1 4) là ai? | Đối_thủ bị mất Leal ( 1 4 ) là ai ? | SELECT "Đối thủ" FROM table 69541 WHERE "Thua" = 'leal ( 14 ) ' | SELECT "Đối_thủ" FROM table_69541 WHERE "Thua" = "leal ( 1 4 ) " |
mimicsql_data | 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,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,đị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,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE 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 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,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,đị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,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE 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) | có bao nhiêu bệnh nhân gốc Tây Ban Nha hoặc dân tộc Latino/Puerto Rico được chẩn đoán mắc mã icd9 51889? | có bao_nhiêu bệnh_nhân gốc Tây_Ban_Nha hoặc dân_tộc Latino / Puerto Rico được chẩn_đoán mắc_mã icd9 51889 ? | 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.dân tộc = "HISPANICLATINO PUERTO RICAN" AND chẩn đoán.icd9 code = "51889 " | 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.dân_tộc = "HISPANICLATINO PUERTO_RICAN" AND chẩn_đoán.icd9_code = "51889" |
criteria2sql | CREATE TABLE table test 23("id" int,"previous mi" bool,"anemia" bool,"left vent ejection frag lvef" int,"tolerate gadolinium contrast media" bool,"renal disease" bool,"creatinine clearance cl" float,"estimated glomerular filter rate egfr" int,"dung nạp cộng hưởng hình ảnh" bool,"bệnh viêm mạn tính" bool,"số lượng tiểu cầu" float,"giảm tiểu cầu" float,"bệnh gan" bool,"evidence of hepatobiliary disease" bool,"kidney disease" bool,"hb" float,"body mass index bmi" float,"tuổi" float,"KHÔNG SỬ DỤNG" float) | CREATE TABLE table_test_23("id" int,"previous_mi" bool,"anemia" bool,"left_vent_ejection_frag_lvef" int,"tolerate_gadolinium_contrast_media" bool,"renal_disease" bool,"creatinine_clearance_cl" float,"estimated_glomerular_filter_rate_egfr" int,"dung nạp_cộng hưởng_hình ảnh" bool,"bệnh_viêm_mạn_tính" bool,"số_lượng tiểu_cầu" float,"giảm tiểu_cầu" float,"bệnh gan" bool,"evidence_of_hepatobiliary_disease" bool,"kidney_disease" bool,"hb" float,"body_mass_index_bmi" float,"tuổi" float,"KHÔNG SỬ_DỤNG" float) | thiếu máu ( hb < 8,5 mg/dl ), giảm tiểu cầu ( < 100000 / ul ) | thiếu máu ( hb < 8,5 mg / dl ) , giảm tiểu_cầu ( < 100000 / ul ) | SELECT * FROM table test 23 WHERE thiếu máu = 1 OR hb < 8,5 OR giảm tiểu cầu = 1 OR số lượng tiểu cầu < 100000 | SELECT * FROM table_test_23 WHERE thiếu máu = 1 OR hb < 8,5_OR giảm tiểu_cầu = 1 OR số_lượng tiểu_cầu < 100000 |
sql_create_context | CREATE TABLE table name 68(thừa nhận INTEGER,vị trí VARCHAR,thắng VARCHAR) | CREATE TABLE table_name_68(thừa_nhận INTEGER,vị_trí VARCHAR,thắng VARCHAR) | Số lần thủng lưới trung bình của đội có vị trí thấp hơn 8 và nhiều hơn 2 trận thắng là bao nhiêu? | Số lần thủng lưới trung_bình của đội có vị_trí thấp hơn 8 và nhiều hơn 2 trận thắng là bao_nhiêu ? | SELECT AVG ( thừa nhận ) FROM table name 68 WHERE vị trí > 8 AND thắng > 2 | SELECT AVG ( thừa_nhận ) FROM table_name_68 WHERE vị_trí > 8 AND thắng > 2 |
wikisql | CREATE TABLE table 34467("Kết quả" text,"Ngày" text,"Vô địch" text,"Bề mặt" text,"Đối thủ trong trận chung kết" text,"Tỷ số trong trận chung kết" text) | CREATE TABLE table_34467("Kết_quả" text,"Ngày" text,"Vô_địch" text,"Bề_mặt" text,"Đối_thủ trong trận chung_kết" text,"Tỷ_số trong trận chung_kết" text) | Đối thủ nào là á quân vào ngày 2 tháng 3 năm 1998? | Đối_thủ nào là á_quân vào ngày 2 tháng 3 năm 1998 ? | SELECT "Đối thủ trong trận chung kết" FROM table 34467 WHERE "Kết quả" = 'á quân' AND "Ngày" = '2 tháng 3 năm 1998' | SELECT "Đối_thủ trong trận chung_kết" FROM table_34467 WHERE "Kết_quả" = "á_quân" AND "Ngày" = "2 tháng 3 năm 1998" |
spider | CREATE TABLE sqlite sequence(name text,seq text) CREATE TABLE customer(id number,first name text,last name text,company text,address text,city text,state text,country text,mã bưu điện text,điện thoại text,fax text,email text,support rep id number) CREATE TABLE nghệ sĩ(id number,tên text) CREATE TABLE nhân viên(id number,họ text,first name text,title text,reports to number,birth date time,hire date time,address text,city text,state text,country text,postal code text,phone text,fax text,email text) CREATE TABLEhóa đơn(id number,customer id number,invoice date time,billing address text,billing city text,billing state text,billing country text,billing postal code text,total number) CREATE TABLE theo dõi(id number,name text,album id number,media type id number,genre id number,composer text,milliseconds number,bytes number,unit price number) CREATE TABLE album(id number,title text,artist id number) CREATE TABLE thể loại(id number,name text) CREATE TABLEvoice lines(id number,invoice id number,track id number,unit price number,quantity number) CREATE TABLE danh sách phát tracks(playlist id number,track id number) CREATE TABLE media types(id number,name text) CREATE TABLE danh sách phát(id number,name text) | CREATE TABLE sqlite_sequence(name text,seq text) CREATE TABLE customer(id number,first_name text,last_name text,company text,address text,city text,state text,country text,mã bưu_điện text,điện_thoại text,fax text,email text,support_rep_id number) CREATE TABLE nghệ_sĩ(id number,tên text) CREATE TABLE nhân_viên(id number,họ text,first_name text,title text,reports_to number,birth_date time,hire_date time,address text,city text,state text,country text,postal_code text,phone text,fax text,email text) CREATE TABLEhóa_đơn(id number,customer_id number,invoice_date time,billing_address text,billing_city text,billing_state text,billing_country text,billing_postal_code text,total number) CREATE TABLE theo_dõi(id number,name text,album_id number,media_type_id number,genre_id number,composer text,milliseconds number,bytes number,unit_price number) CREATE TABLE album(id number,title text,artist_id number) CREATE TABLE thể_loại(id number,name text) CREATE TABLEvoice_lines(id number,invoice_id number,track_id number,unit_price number,quantity number) CREATE TABLE danh_sách phát_tracks(playlist_id number,track_id number) CREATE TABLE media_types(id number,name text) CREATE TABLE danh_sách phát(id number,name text) | Liệt kê tên tất cả các bản nhạc trong danh sách phát của Phim. | Liệt_kê tên tất_cả các bản_nhạc trong danh_sách phát của Phim . | SELECT T1.name FROM bài hát AS T1 JOIN danh sách phát tracks AS T2 ON T1.id = T2.track id JOIN danh sách phát AS T3 ON T3.id = T2.playlist id WHERE T3.name = "Phim" | SELECT T1.name FROM bài hát AS T1 JOIN danh_sách phát_tracks AS T2 ON T1.id = T2.track_id JOIN danh_sách phát AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Phim" |
sql_create_context | CREATE TABLE table name 85(năm INTEGER,ghi chú VARCHAR,cuộc thi VARCHAR) | CREATE TABLE table_name_85(năm INTEGER,ghi_chú VARCHAR,cuộc thi VARCHAR) | Giải vô địch trẻ thế giới có nội dung 1500 m sớm nhất là năm nào? | Giải vô_địch trẻ thế_giới có nội_dung 1500 m sớm nhất là năm nào ? | SELECT MIN ( năm ) FROM table name 85 WHERE ghi chú = "1500 m" AND cạnh tranh = "giải vô địch trẻ thế giới" | SELECT MIN ( năm ) FROM table_name_85 WHERE ghi_chú = "1500 m" AND cạnh_tranh = "giải vô_địch trẻ thế_giới" |
wikisql | CREATE TABLE table 40299("Tuần" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Tham dự" real) | CREATE TABLE table_40299("Tuần" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Tham_dự" real) | Tổng số tuần có 49.980 người tham dự? | Tổng_số tuần có 49.980 người tham_dự ? | SELECT SUM ( "Tuần" ) FROM table 40299 WHERE "Tham dự" = '49.980' | SELECT SUM ( "Tuần" ) FROM table_40299 WHERE "Tham_dự" = "49.980" |
sql_create_context | CREATE TABLE table name 96(điểm INTEGER,so với INTEGER) | CREATE TABLE table_name_96(điểm INTEGER,so với INTEGER) | Tổng số điểm của tất cả các đội có số điểm dưới 14 là bao nhiêu? | Tổng_số điểm của tất_cả các đội có số điểm dưới 14 là bao_nhiêu ? | SELECT SUM ( điểm ) FROM tên bảng 96 WHERE so với < 14 | SELECT SUM ( điểm ) FROM tên_bảng_96 WHERE so với < 14 |
squall | CREATE TABLE table 202 191(id number,"party" text,"votes" number,"%" number,"ghế" number,"+/-" number) | CREATE TABLE table_202_191(id number,"party" text,"votes" number,"%" number,"ghế" number,"+/-" number) | kể tên ba bên hàng đầu? | kể tên ba bên hàng_đầu ? | SELECT "bữa tiệc" FROM table 202 191 ORDER BY "phiếu bầu" DESC LIMIT 3 | SELECT "bữa tiệc" FROM table_202_191 ORDER BY"phiếu bầu" DESC LIMIT 3 |
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 học location text,discharge location text,diagnosis text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,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 học_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | có bao nhiêu bệnh nhân có tiêu đề ngắn được chẩn đoán là bmi dưới 19, người lớn và loại thuốc là phụ gia? | có bao_nhiêu bệnh_nhân có tiêu_đề ngắn được chẩn_đoán là bmi dưới 19 , người_lớn và loại thuốc là phụ_gia ? | 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 INNER JOIN đơn thuốc ON nhân khẩu học.hadm id = đơn thuốc.hadm id WHERE chẩn đoán.short title = "BMI dưới 19,người lớn" AND đơn thuốc.drug type = "THÊM" | 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 INNER JOIN đơn thuốc ON nhân_khẩu học.hadm_id = đơn thuốc.hadm_id WHERE chẩn_đoán.short_title = "BMI dưới 19,người_lớn" AND đơn thuốc.drug_type = "THÊM" |
nvbench | CREATE TABLE Sản phẩm(Mã INTEGER,Tên VARCHAR(255),Giá DECIMAL,Nhà sản xuất INTEGER) CREATE TABLE Nhà sản xuất(Mã INTEGER,Tên VARCHAR(255),Trụ sở chính VARCHAR(255),Người sáng lập VARCHAR(255),Doanh thu REAL) | CREATE TABLE Sản_phẩm(Mã INTEGER,Tên VARCHAR(255),Giá_DECIMAL,Nhà_sản_xuất INTEGER) CREATE TABLE Nhà_sản_xuất(Mã INTEGER,Tên VARCHAR(255),Trụ_sở chính VARCHAR(255),Người sáng_lập VARCHAR(255),Doanh_thu REAL) | Đưa cho tôi một biểu đồ thanh về trụ sở chính và doanh thu của các nhà sản xuất, sắp xếp theo doanh thu giảm dần. | Đưa cho tôi một biểu_đồ thanh về trụ_sở chính và doanh_thu của các nhà_sản_xuất , sắp_xếp theo doanh_thu giảm dần . | SELECT Trụ sở chính,Doanh thu FROM Nhà sản xuất ORDER BY Doanh thu DESC | SELECT Trụ_sở chính,Doanh_thu FROM Nhà_sản_xuất ORDER BY Doanh_thu DESC |
wikisql | CREATE TABLE table 14017("Vị trí" text,"Người chơi" text,"Quốc gia" text,"Điểm" real,"Sang bằng" text) | CREATE TABLE table_14017("Vị_trí" text,"Người chơi" text,"Quốc_gia" text,"Điểm" real,"Sang bằng" text) | Những gì ngang bằng có 65 là điểm? | Những gì ngang bằng có 65 là điểm ? | SELECT "Sang bằng" FROM table 14017 WHERE "Điểm" = '65' | SELECT "Sang bằng" FROM table_14017 WHERE "Điểm" = "65" |
sql_create_context | CREATE TABLE tên bảng 94(agg VARCHAR,team 2 VARCHAR) | CREATE TABLE tên_bảng_94(agg VARCHAR,team_2 VARCHAR) | Agg là gì khi đội 2 là Cementarnica? | Agg là gì khi đội 2 là Cementarnica ? | SELECT agg FROM table name 94 WHERE team 2 = "xi măng" | SELECT agg FROM table_name_94 WHERE team_2 = "xi_măng" |
sql_create_context | CREATE TABLE table name 12(báo cáo VARCHAR,điểm VARCHAR,set 1 VARCHAR) | CREATE TABLE table_name_12(báo_cáo VARCHAR,điểm VARCHAR,set_1 VARCHAR) | Báo cáo có Điểm 3 1 và Tập 1 là 19 25 là gì? | Báo_cáo có Điểm 3 1 và Tập 1 là 19 25 là gì ? | SELECT báo cáo FROM tên bảng 12 WHERE điểm = "31" AND set 1 = "1925" | SELECT báo_cáo FROM tên_bảng_12 WHERE điểm = "3 1" AND set_1 = "19 25" |
spider | CREATE TABLE hoạt động(actid number,activity name text) CREATE TABLE tham gia in(stuid number,actid number) CREATE TABLEgiảng viên participates in(fcid number,actid number) CREATE TABLE sinh viên(stuid number,lname text,fname text,age number,sex text,major number,advisor number,city code text) CREATE TABLE giảng viên(facid number,lname text,fname text,rank text,giới tính text,điện thoại number,phòng text,tòa nhà text) | CREATE TABLE hoạt_động(actid number,activity_name text) CREATE TABLE tham_gia_in(stuid number,actid number) CREATE TABLEgiảng_viên_participates_in(fcid number,actid number) CREATE TABLE sinh_viên(stuid number,lname text,fname text,age number,sex text,major number,advisor number,city_code text) CREATE TABLE giảng_viên(facid number,lname text,fname text,rank text,giới_tính text,điện_thoại number,phòng text,tòa nhà text) | Hiển thị tất cả các cấp bậc giảng viên và số lượng sinh viên được tư vấn theo từng cấp bậc. | Hiển_thị tất_cả các cấp_bậc giảng_viên và số_lượng sinh_viên được tư_vấn theo từng cấp_bậc . | SELECT T1.rank, COUNT ( * ) FROM giảng viên AS T1 JOIN sinh viên AS T2 ON T1.fcid = T2.cố vấn GROUP BY T1.rank | SELECT T1.rank, COUNT ( * ) FROM giảng_viên AS T1 JOIN sinh_viên AS T2 ON T1.fcid = T2.cố_vấn GROUP BY T1.rank |
squall | CREATE TABLE table 203 731(id number,"pos." text,"city" text,"dân số\n(ab)" number,"bề mặt\n(km2)" number,"mật độ\n(ab/km2)" number,"độ cao\n(mslm)" number) | CREATE TABLE table_203_731(id number,"pos." text,"city" text,"dân_số\_n(ab)" number,"bề_mặt\_n(km2)" number,"mật_độ\_n(ab/km2)" number,"độ cao\_n(mslm)" number) | thành phố nào có diện tích bề mặt ít nhất? | thành_phố nào có diện_tích bề_mặt ít_nhất ? | SELECT "thành phố" FROM table 203 731 ORDER BY "bề mặtn ( km2 ) " LIMIT 1 | SELECT "thành_phố" FROM table_203_731 ORDER BY"bề_mặtn ( km2 ) " LIMIT 1 |
wikisql | CREATE TABLE table 41037("Vòng" real,"Chọn #" real,"Người chơi" text,"Vị trí" text,"Đại học" text) | CREATE TABLE table_41037("Vòng" real,"Chọn #" real,"Người chơi" text,"Vị_trí" text,"Đại_học" text) | Tổng lượt chọn của người chơi ở vòng 4 là bao nhiêu? | Tổng_lượt chọn của người chơi ở vòng 4 là bao_nhiêu ? | SELECT SUM ( "Chọn " ) FROM table 41037 WHERE "Vòng" = '4' | SELECT SUM ( "Chọn " ) FROM table_41037 WHERE "Vòng" = "4" |
sql_create_context | CREATE TABLE table name 1(địa điểm VARCHAR,điểm VARCHAR) | CREATE TABLE table_name_1(địa_điểm VARCHAR,điểm VARCHAR) | Địa điểm nào có Điểm 120-108? | Địa_điểm nào có Điểm 120 - 108 ? | SELECT địa điểm FROM tên bảng 1 WHERE điểm = "120108" | SELECT địa_điểm FROM tên_bảng_1 WHERE điểm = "120 108" |
nvbench | CREATE TABLE tên gọi(No INTEGER,Tên gọi TEXT,Quận TEXT,Tiểu bang TEXT,Khu vực TEXT,isAVA TEXT) CREATE TABLE nho(ID INTEGER,Nho TEXT,Màu TEXT) CREATE TABLE rượu vang(No INTEGER,Nho TEXT,Nhà máy rượu TEXT,Tên gọi TEXT,Tiểu bang TEXT,Tên TEXT,Năm INTEGER,Giá INTEGER,Điểm INTEGER,Trường hợp INTEGER,Đồ uống TEXT) | CREATE TABLE tên gọi(No INTEGER,Tên gọi TEXT,Quận TEXT,Tiểu_bang TEXT,Khu_vực TEXT,isAVA TEXT) CREATE TABLE nho(ID INTEGER,Nho TEXT,Màu TEXT) CREATE TABLE rượu_vang(No INTEGER,Nho TEXT,Nhà_máy rượu TEXT,Tên gọi TEXT,Tiểu_bang TEXT,Tên TEXT,Năm INTEGER,Giá INTEGER,Điểm INTEGER,Trường_hợp INTEGER,Đồ uống TEXT) | So sánh số lượng nhà máy rượu có giá lớn hơn 100, tôi muốn hiển thị theo trục y từ cao đến thấp. | So_sánh số_lượng nhà_máy rượu có_giá lớn hơn 100 , tôi muốn hiển_thị theo trục_y từ cao đến thấp . | SELECT Nhà máy rượu, COUNT ( Nhà máy rượu ) FROM rượu WHERE Giá > 100 GROUP BY Nhà máy rượu ORDER BY COUNT ( Nhà máy rượu ) DESC | SELECT Nhà_máy rượu, COUNT ( Nhà_máy rượu ) FROM rượu WHERE Giá > 100 GROUP BY Nhà_máy rượu ORDER BY COUNT ( Nhà_máy rượu ) DESC |
wikisql | CREATE TABLE table 4404("Res." text,"Record" text,"Đối thủ" text,"Phương thức" text,"Sự kiện" text,"Vòng" real,"Thời gian" text,"Vị trí" text) | CREATE TABLE table_4404("Res." text,"Record" text,"Đối_thủ" text,"Phương_thức" text,"Sự_kiện" text,"Vòng" real,"Thời_gian" text,"Vị_trí" text) | Kỷ lục tại WEC 24 là gì? | Kỷ_lục tại WEC 24 là gì ? | SELECT "Bản ghi" FROM table 4404 WHERE "Sự kiện" = 'thứ 24' | SELECT "Bản_ghi" FROM table_4404 WHERE "Sự_kiện" = "thứ 24" |
sql_create_context | CREATE TABLE tên bảng 67(time VARCHAR,điểm VARCHAR) | CREATE TABLE tên_bảng_67(time VARCHAR,điểm VARCHAR) | Tỉ số là 0 3 lúc mấy giờ? | Tỉ_số là 0 3 lúc mấy giờ ? | SELECT time FROM tên bảng 67 WHERE điểm = "03" | SELECT time FROM tên_bảng_67 WHERE điểm = "0 3" |
advising | 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,admit term int,predicted graduation semester int,degree varchar,nhỏ varchar,thực tập varchar) CREATE TABLE giảng viên(instructor id int,name varchar,uniqname varchar) CREATE TABLE khu vực(khóa học id int,khu vực varchar) CREATE TABLE comment instructor(instructor id int,sinh viên id int,điểm int,văn bản nhận xét varchar) CREATE TABLE chương trình course(program id int,course id int,workload int,category varchar) CREATE TABLEprogram requirement(program id int,category varchar,min credit int,extra req varchar) CREATE TABLE Course tags count(course id int,clear grading int,pop quiz int,group projects int,inspiral int,long lectures int,extra credit int,few tests int,good feedback int,tough tests int,bài nặng int,quan tâm cho học sinh 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 lại bài int,bài giảng hay int,không bỏ qua int) CREATE TABLE gsi(course offering id int,student id int) CREATE TABLEoffering instructor(offering instructor id int,offering id int,instructor id int) CREATE TABLE Course precondition(pre course id int,course id int) CREATE TABLE ta(campus job id int,student id int,location varchar) CREATE TABLE require(requirement id int,requirement varchar,college varchar) CREATE TABLEprogram(program id int,name varchar,college varchar,introduction varchar) CREATE TABLE khóa học(course id int,name varchar,department varchar,number varchar,credits varchar,advisory requirement varchar,enforced requirement varchar,description 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 jobs(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE Course offering(offering id int,course id int,semester int,số phần int,thời gian bắt đầu time,thời gian bắt đầu 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,địa chỉ lớp varchar,allow audit varchar) CREATE TABLE sinh viên record(student id int,course id int,học kỳ int,lớp varchar,làm thế nào varchar,chuyển nguồn varchar,kiếm tín chỉ varchar,repeat term varchar,id id varchar) | 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,admit_term int,predicted_graduation_semester int,degree varchar,nhỏ varchar,thực_tập varchar) CREATE TABLE giảng_viên(instructor_id int,name varchar,uniqname varchar) CREATE TABLE khu_vực(khóa học_id int,khu_vực varchar) CREATE TABLE comment_instructor(instructor_id int,sinh viên_id int,điểm int,văn_bản nhận_xét varchar) CREATE TABLE chương trình_course(program_id int,course_id int,workload int,category varchar) CREATE TABLEprogram_requirement(program_id int,category varchar,min_credit int,extra_req varchar) CREATE TABLE Course_tags_count(course_id int,clear_grading int,pop_quiz int,group_projects int,inspiral int,long_lectures int,extra_credit int,few_tests int,good_feedback int,tough_tests int,bài nặng int,quan_tâm_cho_học sinh 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 lại bài int,bài giảng hay int,không_bỏ qua int) CREATE TABLE gsi(course_offering_id int,student_id int) CREATE TABLEoffering_instructor(offering_instructor_id int,offering_id int,instructor_id int) CREATE TABLE Course_precondition(pre_course_id int,course_id int) CREATE TABLE ta(campus_job_id int,student_id int,location varchar) CREATE TABLE require(requirement_id int,requirement varchar,college varchar) CREATE TABLEprogram(program_id int,name varchar,college varchar,introduction varchar) CREATE TABLE khóa_học(course_id int,name varchar,department varchar,number varchar,credits varchar,advisory_requirement varchar,enforced_requirement varchar,description 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 jobs(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE Course_offering(offering_id int,course_id int,semester int,số_phần int,thời_gian bắt_đầu time,thời_gian bắt_đầu 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,địa_chỉ lớp varchar,allow_audit varchar) CREATE TABLE sinh viên_record(student_id int,course_id int,học kỳ int,lớp varchar,làm thế_nào varchar,chuyển_nguồn varchar,kiếm_tín chỉ varchar,repeat_term varchar,id_id varchar) | 542 có dành cho sinh viên đại học không? | 542 có dành cho sinh_viên đại_học không ? | SELECT DISTINCT Advisory requirement,enforced requirement,name FROM khóa học WHERE bộ phận = 'EECS' AND number = 542 | SELECT DISTINCT Advisory_requirement,enforced_requirement,name FROM khóa_học WHERE bộ_phận = "EECS" AND number = 542 |
wikisql | CREATE TABLE table 53904("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Tham dự" text,"Ghi chép" text) | CREATE TABLE table_53904("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Tham_dự" text,"Ghi_chép" text) | Đặt tên cho ngày mất schilling (5 2) | Đặt tên cho ngày mất schilling ( 5 2 ) | SELECT "Ngày" FROM table 53904 WHERE "Mất" = 'schilling ( 52 ) ' | SELECT "Ngày" FROM table_53904 WHERE "Mất" = "schilling ( 5 2 ) " |
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 d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,route 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 outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value 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 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 thủ tục icd(row id number,chủ 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 cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,số 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,insurance text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLEmicrobiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,tiêu đề dài 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 d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,route 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 outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value 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 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 thủ_tục_icd(row_id number,chủ_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 cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,số 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,insurance text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLEmicrobiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,tiêu_đề dài text) | Ba chẩn đoán được chẩn đoán thường xuyên nhất đối với những bệnh nhân đã được chẩn đoán sinh non vào thời điểm 2000-2499g trước đó trong cùng một tháng, kể từ 5 năm trước là gì? | Ba chẩn_đoán được chẩn_đoán thường_xuyên nhất đối_với những bệnh_nhân đã được chẩn_đoán sinh non vào thời_điểm 2000 - 2499 g trước đó trong cùng một tháng , kể từ 5 năm trước là gì ? | SELECT d icd diagnoses.short title FROM d icd diagnoses WHERE d icd diagnoses.icd9 code IN ( SELECT t3.icd9 code FROM ( SELECT t2.icd9 code,DENSE RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT tuyển sinh.subject id,diagnoses icd.charttime FROM chẩn đoán icd JOIN tuyển sinh ON chẩn đoán icd.hadm id = tuyển sinh.hadm id WHERE chẩn đoán icd.icd9 code = ( SELECT d icd diagnoses.icd9 code FROM d icd diagnoses WHERE d icd diagnoses.short title = ' sinh non nec 20002499g' ) AND DATETIME ( diagnoses icd.charttime ) >= DATETIME ( CURRENT TIME ( ) ,'5 năm' ) ) AS t1 JOIN ( SELECT entrys.subject id,diagnoses icd.icd9 code,diagnoses icd.charttime FROM chẩn đoán icd JOIN tuyển sinh ON chẩn đoán icd.hadm id = tuyển sinh.hadm id WHERE DATETIME ( diagnoses icd.charttime ) >= DATETIME ( CURRENT TIME ( ) ,'5 năm' ) ) AS t2 ON t1.topic id = t2.subject id WHERE t1.charttime < t2.charttime AND DATETIME ( t1.charttime,'bắt đầu tháng' ) = DATETIME ( t2.charttime,'bắt đầu tháng' ) GROUP BY t2.icd9 code ) AS t3 WHERE t3.c1 <= 3 ) | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN ( SELECT t3.icd9_code FROM ( SELECT t2.icd9_code,DENSE_RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT tuyển_sinh.subject_id,diagnoses_icd.charttime FROM chẩn_đoán_icd JOIN tuyển_sinh ON chẩn_đoán_icd.hadm_id = tuyển_sinh.hadm_id WHERE chẩn_đoán_icd.icd9_code = ( SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = "sinh non_nec 2000 2499 g" ) AND DATETIME ( diagnoses_icd.charttime ) > = DATETIME ( CURRENT_TIME ( ) ," 5 năm" ) ) AS t1 JOIN ( SELECT entrys.subject_id,diagnoses_icd.icd9_code,diagnoses_icd.charttime FROM chẩn_đoán_icd JOIN tuyển_sinh ON chẩn_đoán_icd.hadm_id = tuyển_sinh.hadm_id WHERE DATETIME ( diagnoses_icd.charttime ) > = DATETIME ( CURRENT_TIME ( ) ," 5 năm" ) ) AS t2 ON t1.topic_id = t2.subject_id WHERE t1.charttime <t2.charttime AND DATETIME ( t1.charttime,"bắt_đầu tháng" ) = DATETIME ( t2.charttime,"bắt_đầu tháng" ) GROUP BY t2.icd9_code ) AS t3 WHERE t3.c1 < = 3 ) |
sql_create_context | CREATE TABLE table name 84(tonnage grt INTEGER,date VARCHAR,ship name VARCHAR) | CREATE TABLE table_name_84(tonnage__grt__ INTEGER,date VARCHAR,ship_name VARCHAR) | Trọng tải nào có ngày 26 tháng 9 năm 1940 và tên tàu là Ashantian? | Trọng_tải nào có ngày 26 tháng 9 năm 1940 và tên tàu là Ashantian ? | SELECT MIN ( trọng tải grt ) FROM table name 84 WHERE date = "26 tháng 9 năm 1940" AND ship name = "ashantian" | SELECT MIN ( trọng_tải__grt_ ) FROM table_name_84 WHERE date = "26 tháng 9 năm 1940" AND ship_name = "ashantian" |
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 của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE thuốc(mã thuốc number,bệnh nhân ở lại đơn vị number,tên thuốc text,liều lượng text,lộ trìnhquản trị text,thời gian bắt đầu dùng thuốc time,thời gian ngừng dùng thuốc time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE đầu ra đầu vào(đầu ra đầu vào number,bệnh nhân đơn vị ở lại number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bàosốnumber,thời gian đưa vào đầu ra time) CREATE TABLE dị ứng(dị ứng number,bệnh nhân đơn vị ở lạiid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE chi phí(giá thành number,Uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Vital Periodic(Vital Periodicid number,Patientunitstayid number,Nhiệt độ number,sao2 number,Nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) | 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 của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân ở lại đơn_vị number,tên thuốc text,liều_lượng text,lộ trìnhquản_trị text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng dùng thuốc time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE đầu_ra đầu_vào(đầu_ra đầu vào number,bệnh_nhân đơn_vị ở lại number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bàosốnumber,thời_gian đưa vào đầu_ra time) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân đơn_vị ở lạiid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE chi_phí(giá_thành number,Uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Vital_Periodic(Vital Periodicid number,Patientunitstayid number,Nhiệt_độ number,sao2 number,Nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) | Trong năm nay, bệnh nhân 031-17228 đã đến thăm Er? | Trong năm nay , bệnh_nhân 031 - 17228 đã đến thăm Er ? | SELECT COUNT ( * ) > 0 FROM bệnh nhân WHERE bệnh nhân.uniquepid = '03117228' AND bệnh nhân.hospitaladmitsource = 'khoa cấp cứu' AND DATETIME ( bệnh nhân.unitadmittime,'đầu năm' ) = DATETIME ( CURRENT TIME ( ) ,'đầu năm','0 năm' ) | SELECT COUNT ( * ) > 0 FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "031 17228" AND bệnh_nhân.hospitaladmitsource = "khoa cấp_cứu" AND DATETIME ( bệnh_nhân.unitadmittime,"đầu năm" ) = DATETIME ( CURRENT_TIME ( ) ,"đầu năm"," 0 năm" ) |
wikisql | CREATE TABLE table 57378("Kênh" real,"Video" text,"Khía cạnh" text,"Tên viết tắt PSIP" text,"Lập trình" text) | CREATE TABLE table_57378("Kênh" real,"Video" text,"Khía_cạnh" text,"Tên viết tắt PSIP" text,"Lập_trình" text) | Khía cạnh của Kênh 26.5 là gì? | Khía_cạnh của Kênh_26.5 là gì ? | SELECT "Khía cạnh" FROM table 57378 WHERE "Kênh" = '26,5' | SELECT "Khía_cạnh" FROM table_57378 WHERE "Kênh" = "26,5" |
wikisql | CREATE TABLE table 59072("TUẦN NGÀY" text,"5:55" text,"10:00" text,"15:00" text,"16:00" text,"17:30" text,"18:00" text,"19:15" text,"19:26" text,"20:00" text,"20:30" text,"21:00" text,"21:30" text,"22:00" text,"23:00" text) | CREATE TABLE table_59072("TUẦN _ NGÀY" text,"5 : 55" text,"10 : 00" text,"15 : 00" text,"16 : 00" text,"17 : 30" text,"18 : 00" text,"19 : 15" text,"19 : 26" text,"20 : 00" text,"20 : 30" text,"21 : 00" text,"21 : 30" text,"22 : 00" text,"23 : 00" text) | Chương trình nào chiếu lúc 21:00 khi Dot Above I chiếu lúc 20:00? | Chương_trình nào chiếu lúc 21 : 00 khi Dot_Above I_chiếu lúc 20 : 00 ? | SELECT "2100" FROM table 59072 WHERE "2000" = 'dấu chấm phía trên i' | SELECT "21 00" FROM table_59072 WHERE "20 00" = "dấu chấm phía trên i" |
sql_create_context | CREATE TABLE table name 75(năm VARCHAR,guernsey record VARCHAR) | CREATE TABLE table_name_75(năm VARCHAR,guernsey_record VARCHAR) | Kỷ lục 2-3-12 của Guernsey được thiết lập vào năm nào? | Kỷ_lục 2-3-12 của Guernsey được thiết_lập vào năm nào ? | SELECT năm FROM table name 75 WHERE guernsey record = "2312" | SELECT năm FROM table_name_75 WHERE guernsey_record = "2312" |
nvbench | CREATE TABLE khu vực(REGION ID decimal(5,0),REGION NAME varchar(25)) 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 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 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 khu_vực(REGION_ID_decimal(5,0),REGION_NAME varchar(25)) 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 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 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)) | Hiển thị cho tôi manager id theo họ trong biểu đồ, bạn có thể hiển thị MANAGER ID theo thứ tự giảm dần được không? | Hiển_thị cho tôi manager_id theo họ trong biểu_đồ , bạn có_thể hiển_thị MANAGER_ID theo thứ_tự giảm dần được không ? | SELECT LAST NAME,MANAGER ID FROM nhân viên ORDER BY MANAGER ID DESC | SELECT LAST_NAME,MANAGER_ID FROM nhân_viên ORDER BY MANAGER_ID DESC |
wikisql | CREATE TABLE table 13300("Tuần" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Tham dự" real) | CREATE TABLE table_13300("Tuần" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Tham_dự" real) | Tuần cao nhất có kết quả w 33-14 là gì? | Tuần cao nhất có kết_quả w 33-14 là gì ? | SELECT MAX ( "Tuần" ) FROM table 13300 WHERE "Kết quả" = 'w 3314' | SELECT MAX ( "Tuần" ) FROM table_13300 WHERE "Kết_quả" = "w 3314" |
eicu | CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE dị ứng(dị ứng number,bệnh nhânunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE lab(labid number,Patientunitstayid number,tên phòng thí nghiệm text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,tâm thu hệ thống number,tâm trương hệ thống number,trung bình hệ thống number,thời gian quan sát time) CREATE TABLE điều trị(mã điều trị number,bệnh nhân đơn vị lưu trú number,tên điều trị text,thời gian điều trị time) CREATE TABLE lượng đưa vào(đầu vào number,diseaseunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện đơn vị time,thời gian xuất viện đơn vị time,thời gian xuất viện time,trạng thái nhập viện text) | CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE dị_ứng(dị_ứng number,bệnh nhânunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE lab(labid number,Patientunitstayid number,tên phòng_thí_nghiệm text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,tâm_thu hệ_thống number,tâm_trương hệ_thống number,trung_bình hệ_thống number,thời_gian quan_sát time) CREATE TABLE điều_trị(mã điều_trị number,bệnh_nhân đơn_vị lưu_trú number,tên điều_trị text,thời_gian điều_trị time) CREATE TABLE lượng đưa vào(đầu vào number,diseaseunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện đơn_vị time,thời_gian xuất_viện đơn_vị time,thời_gian xuất_viện time,trạng_thái nhập_viện text) | Ba thủ tục được yêu cầu phổ biến nhất đối với những bệnh nhân trước đây đã nhận được thuốc kháng khuẩn điều trị - clindamycin trong vòng 2 tháng là gì? | Ba thủ_tục được yêu_cầu phổ_biến nhất đối_với những bệnh_nhân trước_đây đã nhận được thuốc kháng_khuẩn điều_trị - clindamycin trong vòng 2 tháng là gì ? | SELECT t3.Treatmentname FROM ( SELECT t2.Treatmentname,DENSE RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,Treatment.Treatmenttime FROM Treatment JOIN bệnh nhân ON điều trị.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE điều trị.Treatmentname = 'thuốc kháng khuẩn trị liệu clindamycin' ) AS t1 JOIN ( SELECT bệnh nhân.uniquepid,Treatment.Treatmentname,Treatment.Treatmenttime FROM điều trị JOIN bệnh nhân ON điều trị.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.thời gian điều trị < t2.thời gian điều trị AND DATETIME ( t2.thời gian điều trị ) BETWEEN DATETIME ( t1.thời gian điều trị ) AND DATETIME ( t1.Treatmenttime,'2 tháng' ) GROUP BY t2.Treatmentname ) AS t3 WHERE t3.c1 <= 3 | SELECT t3.Treatmentname FROM ( SELECT t2.Treatmentname,DENSE_RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,Treatment.Treatmenttime FROM Treatment JOIN bệnh_nhân ON điều_trị.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE điều_trị.Treatmentname = "thuốc kháng_khuẩn trị_liệu clindamycin" ) AS t1 JOIN ( SELECT bệnh_nhân.uniquepid,Treatment.Treatmentname,Treatment.Treatmenttime FROM điều_trị JOIN bệnh_nhân ON điều_trị.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.thời_gian điều_trị <t2.thời_gian điều_trị AND DATETIME ( t2.thời_gian điều_trị ) BETWEEN DATETIME ( t1.thời_gian điều_trị ) AND DATETIME ( t1.Treatmenttime," 2 tháng" ) GROUP BY t2.Treatmentname ) AS t3 WHERE t3.c1 < = 3 |
wikisql | CREATE TABLE table 79248("Trường học" text,"Địa điểm" text,"Linh vật" text,"#/Quận" text,"Ghi danh" real,"Lớp IHSAA/Bóng đá/Bóng đá" text,"Năm tham gia" real,"Hội nghị trước" text,"Năm còn lại" real,"Đã tham gia hội nghị" text) | CREATE TABLE table_79248("Trường_học" text,"Địa_điểm" text,"Linh_vật" text,"#/Quận" text,"Ghi_danh" real,"Lớp IHSAA/Bóng_đá/Bóng_đá" text,"Năm tham_gia" real,"Hội_nghị trước" text,"Năm còn lại" real,"Đã tham_gia hội_nghị" text) | Số lượng tuyển sinh trung bình có xúc xích làm linh vật là bao nhiêu, với một năm tham gia muộn hơn năm 1926? | Số_lượng tuyển_sinh trung_bình có xúc_xích làm linh_vật là bao_nhiêu , với một năm tham_gia muộn hơn năm 1926 ? | SELECT AVG ( "Đăng ký" ) FROM table 79248 WHERE "Mascot" = 'hot dogs' AND "Năm gia nhập" > '1926' | SELECT AVG ( "Đăng_ký" ) FROM table_79248 WHERE "Mascot" = "hot dogs" AND "Năm gia_nhập" > "1926" |
sql_create_context | CREATE TABLE table name 29(thành phố VARCHAR,abbr VARCHAR) | CREATE TABLE table_name_29(thành_phố VARCHAR,abbr VARCHAR) | MUB nằm ở thành phố nào? | MUB nằm ở thành_phố nào ? | SELECT thành phố FROM tên bảng 29 WHERE abbr = "mub" | SELECT thành_phố FROM tên_bảng_29 WHERE abbr = "mub" |
nvbench | CREATE TABLE Theme Parks(Theme Park ID INTEGER,Theme Park Details VARCHAR(255)) CREATE TABLE Vị trí(Location ID INTEGER,Location Name VARCHAR(255),Address VARCHAR(255),Other Details VARCHAR(255)) CREATE TABLE Du lịch Attraction Features(Tourist Attraction ID INTEGER,Feature ID INTEGER) CREATE TABLE Ref Hotel Star Ratings(star rated code CHAR(15),star rated description VARCHAR(80)) CREATE TABLE Khách truy cập(Tourist ID INTEGER,Du lịch Chi tiết VARCHAR(255)) CREATE TABLE Lượt truy cập(Visit ID INTEGER,Tourist Attraction ID INTEGER,Tourist ID INTEGER,Ngày tham quan DATETIME,Chi tiết lượt truy cập VARCHAR(40)) CREATE TABLE Du lịch Điểm tham quan(Tourist Attraction ID INTEGER,Attraction Type Code CHAR(15),Location ID INTEGER,How to Get There VARCHAR(255),Tên VARCHAR(255),Mô tả VARCHAR(255),Opening Hours VARCHAR(255),Other Chi tiết VARCHAR(255)) CREATE TABLE Khách sạn(khách sạn id INTEGER,mã xếp sao CHAR(15),pets allowed yn CHAR(1),price range real,other hotel details VARCHAR(255)) CREATE TABLE Ref Attraction Types(Attraction Type Code CHAR(15),Attraction Type Description VARCHAR(255)) CREATE TABLE Museums(Museum ID INTEGER,Museum Details VARCHAR(255)) CREATE TABLE Royal Family(Royal Family ID INTEGER,Royal Family Details VARCHAR(255)) CREATE TABLE Cửa hàng(Shop ID INTEGER,Shop Details VARCHAR(255)) CREATE TABLE Nhân viên(Staff ID INTEGER,Du lịch Attraction ID INTEGER,Tên VARCHAR(40),Other Details VARCHAR(255)) CREATE TABLE Tính năng(Feature ID INTEGER,Feature Details VARCHAR(255)) CREATE TABLE Street Markets(Market ID INTEGER,Market Details VARCHAR(255)) CREATE TABLE Ảnh(Photo ID INTEGER,Tourist Attraction ID INTEGER,Tên VARCHAR(255),Mô tả VARCHAR(255),Tên tệp VARCHAR(255),Other Details VARCHAR(255)) | CREATE TABLE Theme_Parks(Theme_Park_ID INTEGER,Theme_Park_Details VARCHAR(255)) CREATE TABLE Vị_trí(Location_ID INTEGER,Location_Name VARCHAR(255),Address VARCHAR(255),Other_Details VARCHAR(255)) CREATE TABLE Du_lịch_Attraction_Features(Tourist_Attraction_ID INTEGER,Feature_ID INTEGER) CREATE TABLE Ref_Hotel_Star_Ratings(star_rated_code CHAR(15),star_rated_description VARCHAR(80)) CREATE TABLE Khách truy_cập(Tourist_ID INTEGER,Du_lịch_Chi tiết VARCHAR(255)) CREATE TABLE Lượt truy_cập(Visit_ID INTEGER,Tourist_Attraction_ID INTEGER,Tourist_ID INTEGER,Ngày_tham_quan DATETIME,Chi_tiết lượt truy_cập VARCHAR(40)) CREATE TABLE Du_lịch_Điểm tham_quan(Tourist_Attraction_ID INTEGER,Attraction_Type_Code_CHAR(15),Location_ID INTEGER,How_to_Get_There VARCHAR(255),Tên VARCHAR(255),Mô_tả VARCHAR(255),Opening_Hours VARCHAR(255),Other_Chi_tiết VARCHAR(255)) CREATE TABLE Khách_sạn(khách_sạn_id INTEGER,mã_xếp_sao_CHAR(15),pets_allowed_yn CHAR(1),price_range real,other_hotel_details VARCHAR(255)) CREATE TABLE Ref_Attraction_Types(Attraction_Type_Code_CHAR(15),Attraction_Type_Description VARCHAR(255)) CREATE TABLE Museums(Museum_ID INTEGER,Museum_Details VARCHAR(255)) CREATE TABLE Royal_Family(Royal_Family_ID INTEGER,Royal_Family_Details VARCHAR(255)) CREATE TABLE Cửa_hàng(Shop_ID INTEGER,Shop_Details VARCHAR(255)) CREATE TABLE Nhân_viên(Staff_ID INTEGER,Du_lịch_Attraction_ID INTEGER,Tên VARCHAR(40),Other_Details VARCHAR(255)) CREATE TABLE Tính_năng(Feature_ID INTEGER,Feature_Details VARCHAR(255)) CREATE TABLE Street_Markets(Market_ID INTEGER,Market_Details VARCHAR(255)) CREATE TABLE Ảnh(Photo_ID INTEGER,Tourist_Attraction_ID INTEGER,Tên VARCHAR(255),Mô_tả VARCHAR(255),Tên tệp VARCHAR(255),Other_Details VARCHAR(255)) | Liệt kê tất cả các cách có thể để đến các điểm tham quan, cùng với số lượng điểm tham quan có thể tiếp cận được bằng các phương pháp này trong biểu đồ thanh. | Liệt_kê tất_cả các cách có_thể để đến các điểm tham_quan , cùng_với số_lượng điểm tham_quan có_thể tiếp_cận được bằng các phương_pháp này trong biểu_đồ thanh . | SELECT Làm sao đến đến đó, COUNT ( * ) FROMĐiểm tham quan du lịch GROUP BY Làm thế nào đến đến đó | SELECT Làm sao_đến_đến_đó, COUNT ( * ) FROM Điểm tham_quan_du lịch GROUP BY Làm thế nào_đến_đến_đó |
mimicsql_data | 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,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,đị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,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,Formulary drug cd text,route text,drug dose text) CREATE TABLE 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 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,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,đị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,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,Formulary_drug_cd text,route text,drug_dose text) CREATE TABLE 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) | số bệnh nhân mắc bệnh nguyên phát là ngất; đo từ xa là bao nhiêu? | số bệnh_nhân mắc bệnh nguyên_phát là ngất ; đo từ xa là bao_nhiêu ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học WHERE nhân khẩu học.diagnosis = "SYNCOPE;TELEMETRY" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học WHERE nhân_khẩu học.diagnosis = "SYNCOPE ; TELEMETRY" |
mimic_iii | CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) 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 cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) 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 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 TABLE chuyển trường(row id number,topic id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE chẩn đoán 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,amount 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 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 labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,giá trị text) | CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) 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 cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) 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 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 TABLE chuyển_trường(row_id number,topic_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE chẩn_đoán_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,amount 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 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 labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,giá_trị text) | có bao nhiêu bệnh nhân đã được tiêm chủng hai lần vào năm trước? | có bao_nhiêu bệnh_nhân đã được tiêm_chủng hai lần vào năm trước ? | SELECT COUNT ( DISTINCT t1.subject id ) FROM ( SELECT tuyển sinh.subject id, COUNT ( * ) AS c1 FROM thủ tục icd JOIN tuyển sinh ON thủ tục icd.hadm id = tuyển sinh.hadm id WHERE thủ tục icd.icd9 code = ( SELECT d icd procedures.icd9 code FROM d icd procedures WHERE d icd procedures.short title = 'không cần tiêm chủng' ) AND DATETIME ( procedures icd.charttime,'bắt đầu năm' ) = DATETIME ( CURRENT TIME ( ) ,'bắt đầu năm',' 1 năm' ) GROUP BY tuyển sinh.subject id ) AS t1 WHERE t1.c1 = 2 | SELECT COUNT ( DISTINCT t1.subject_id ) FROM ( SELECT tuyển_sinh.subject_id, COUNT ( * ) AS c1 FROM thủ_tục_icd JOIN tuyển_sinh ON thủ_tục_icd.hadm_id = tuyển_sinh.hadm_id WHERE thủ_tục_icd.icd9_code = ( SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = "không cần tiêm_chủng" ) AND DATETIME ( procedures_icd.charttime,"bắt_đầu năm" ) = DATETIME ( CURRENT_TIME ( ) ,"bắt_đầu năm"," 1 năm" ) GROUP BY tuyển_sinh.subject_id ) AS t1 WHERE t1.c1 = 2 |
wikisql | CREATE TABLE table 61012("2006" real,"2007" real,"2008" real,"2009" real,"2010" real) | CREATE TABLE table_61012("2006" real,"2007" real,"2008" real,"2009" real,"2010" real) | Có bao nhiêu năm 2007 có 0,2 như năm 2006 và năm 2010 nhỏ hơn 0,1? | Có bao_nhiêu năm 2007 có 0,2 như năm 2006 và năm 2010 nhỏ hơn 0,1 ? | SELECT SUM ( "2007" ) FROM bảng 61012 WHERE "2006" = '0,2' AND "2010" < '0,1' | SELECT SUM ( "2007" ) FROM bảng_61012 WHERE "2006" = "0,2" AND "2010" < "0,1" |
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 nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,đị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,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,Formulary drug cd text,route text,drug dose text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,đị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,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,Formulary_drug_cd text,route text,drug_dose text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | số lượng bệnh nhân có bảo hiểm tư nhân và nằm viện trên 6 ngày là bao nhiêu? | số_lượng bệnh_nhân có bảo_hiểm tư_nhân và nằm viện trên 6 ngày là bao_nhiêu ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học WHERE nhân khẩu học.insurance = "Riêng tư" AND nhân khẩu học.ngày stay > "6" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học WHERE nhân_khẩu học.insurance = "Riêng_tư" AND nhân_khẩu học.ngày_stay >"6" |
spider | CREATE TABLE club rank(thứ hạng number,club id number,gold number,silver number,đồng number,total number) CREATE TABLE club(club id number,name text,khu vực text,start year text) CREATE TABLE player(player id number,name text,position text,club id number,apps number,tries number,goals text,points number) CREATE TABLE thi đấu(competition id number,năm number,loại thi đấu text,quốc gia text) CREATE TABLEkết quả thi đấu(id cạnh tranh number,id câu lạc bộ number,id 2 number,điểm text) | CREATE TABLE club_rank(thứ_hạng number,club_id number,gold number,silver number,đồng number,total number) CREATE TABLE club(club_id number,name text,khu_vực text,start_year text) CREATE TABLE player(player_id number,name text,position text,club_id number,apps number,tries number,goals text,points number) CREATE TABLE thi_đấu(competition_id number,năm number,loại_thi đấu text,quốc_gia text) CREATE TABLEkết_quả thi_đấu(id_cạnh tranh number,id_câu_lạc_bộ number,id_2 number,điểm text) | Số người chơi có điểm dưới 30 cho mỗi vị trí là bao nhiêu? | Số người chơi có điểm dưới 30 cho mỗi vị_trí là bao_nhiêu ? | SELECT COUNT ( * ) ,vị trí FROM người chơi WHERE điểm < 30 GROUP BY vị trí | SELECT COUNT ( * ) ,vị_trí FROM người chơi WHERE điểm < 30 GROUP BY vị_trí |
wikisql | CREATE TABLE table 28325("Số sê-ri." real,"Số tập." real,"Tiêu đề" text,"Đạo diễn" text,"Viết bởi" text,"Ngày phát sóng ban đầu" text,"Người xem ở Hoa Kỳ(triệu)" text) | CREATE TABLE table_28325("Số sê-ri." real,"Số tập." real,"Tiêu_đề" text,"Đạo_diễn" text,"Viết bởi" text,"Ngày phát_sóng ban_đầu" text,"Người xem ở Hoa_Kỳ(triệu)" text) | Tập nào trong mùa có 1,05 triệu người xem ở Hoa Kỳ? | Tập nào trong mùa có 1,05 triệu người xem ở Hoa_Kỳ ? | SELECT MAX ( "Số tập." ) FROM table 28325 WHERE "Người xem ở Hoa Kỳ ( hàng triệu ) " = '1,05' | SELECT MAX ( "Số tập." ) FROM table_28325 WHERE "Người xem ở Hoa_Kỳ ( hàng triệu ) " = "1,05" |
wikisql | CREATE TABLE table 66015("Tiêu đề" text,"Thời gian" text,"Người viết" text,"Người biểu diễn" text,"Người sản xuất" text,"Được ghi tại" text) | CREATE TABLE table_66015("Tiêu_đề" text,"Thời_gian" text,"Người viết" text,"Người biểu_diễn" text,"Người sản_xuất" text,"Được ghi tại" text) | Ai đã thể hiện bài hát được thu âm tại Cabin in the Woods Studio với thời gian là 3:16? | Ai đã thể_hiện bài hát được thu_âm tại Cabin in the Woods_Studio với thời_gian là 3 : 16 ? | SELECT "Người biểu diễn" FROM table 66015 WHERE "Được ghi tại" = 'cabin trong studio trong rừng' AND "Thời gian" = '316' | SELECT "Người biểu_diễn" FROM table_66015 WHERE "Được ghi tại" = "cabin trong studio trong rừng" AND "Thời_gian" = "3 16" |
eicu | CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE đầu ra đầu vào(đầu ra đầu vào number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu bệnh number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện đơn vị time,thời gian xuất viện time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE dị ứng(dị ứng number,BNunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE điều trị(Treatmentid number,Patientunitstayid number,tên điều trị text,thời gian điều trị time) | CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE đầu_ra đầu_vào(đầu_ra đầu vào number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu bệnh number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện đơn_vị time,thời_gian xuất_viện time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE dị_ứng(dị_ứng number,BNunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE điều_trị(Treatmentid number,Patientunitstayid number,tên điều_trị text,thời_gian điều_trị time) | có bao nhiêu đơn thuốc tiêm methylprednisolone 125 mg đã được kê cho đến 1 năm trước? | có bao_nhiêu đơn thuốc tiêm methylprednisolone 125 mg đã được kê cho đến 1 năm trước ? | SELECT COUNT ( * ) FROM thuốc WHERE drug.drugname = 'methylprednisolone 125 mg tiêm' AND DATETIME ( medication.drugstarttime ) <= DATETIME ( CURRENT TIME ( ) ,'1 năm' ) | SELECT COUNT ( * ) FROM thuốc WHERE drug.drugname = "methylprednisolone 125 mg tiêm" AND DATETIME ( medication.drugstarttime ) <_= DATETIME ( CURRENT_TIME ( ) ," 1 năm" ) |
sql_create_context | CREATE TABLE table name 12(Hòa INTEGER,so với VARCHAR,thua VARCHAR,điểm VARCHAR) | CREATE TABLE table_name_12(Hòa INTEGER,so với VARCHAR,thua VARCHAR,điểm VARCHAR) | Trận hòa cao nhất là bao nhiêu khi thua là 7 và số điểm lớn hơn 4, và tỷ số ngược nhỏ hơn 22? | Trận hòa cao nhất là bao_nhiêu khi thua là 7 và số điểm lớn hơn 4 , và tỷ_số ngược nhỏ hơn 22 ? | SELECT MAX ( hòa ) FROM tên bảng 12 WHERE thua = 7 AND điểm > 4 AND so với < 22 | SELECT MAX ( hòa ) FROM tên_bảng_12 WHERE thua = 7 AND điểm > 4 AND so với < 22 |
wikisql | CREATE TABLE table 78991("Mẫu xe" text,"Khung xe" real,"Động cơ" real,"Năm từ" real,"Năm tới" real) | CREATE TABLE table_78991("Mẫu xe" text,"Khung xe" real,"Động_cơ" real,"Năm từ" real,"Năm tới" real) | Năm nào có Động cơ 119.972 và Khung gầm nhỏ hơn 129.067? | Năm nào có Động_cơ_119.972 và Khung_gầm nhỏ hơn 129.067 ? | SELECT MIN ( "Năm tới" ) FROM table 78991 WHERE "Động cơ" = '119.972' AND "Khung xe" < '129.067' | SELECT MIN ( "Năm tới" ) FROM table_78991 WHERE "Động_cơ" = "119.972" AND "Khung xe" < "129.067" |
wikisql | CREATE TABLE table 5112("Loạt Ep." text,"Tập" real,"Phân đoạn A" text,"Phân đoạn B" text,"Phân đoạn C" text,"Phân đoạn D" text) | CREATE TABLE table_5112("Loạt Ep." text,"Tập" real,"Phân_đoạn A" text,"Phân_đoạn B" text,"Phân_đoạn C" text,"Phân_đoạn D" text) | Tập cao nhất của Sáo Gỗ đoạn c là gì? | Tập cao nhất của Sáo_Gỗ đoạn c là gì ? | SELECT MAX ( "Tập" ) FROM table 5112 WHERE "Đoạn C" = 'sáo gỗ' | SELECT MAX ( "Tập" ) FROM table_5112 WHERE "Đoạn C" = "sáo gỗ" |
sql_create_context | CREATE TABLE table name 16(thứ hai VARCHAR,quốc gia VARCHAR) | CREATE TABLE table_name_16(thứ hai VARCHAR,quốc_gia VARCHAR) | Thứ hai nào có Quốc gia latvia? | Thứ hai nào có Quốc_gia latvia ? | SELECT giây FROM tên bảng 16 WHERE quốc gia = "latvia" | SELECT giây FROM tên_bảng_16 WHERE quốc_gia = "latvia" |
sql_create_context | CREATE TABLE bảng 2187333 1(năm VARCHAR,team s VARCHAR,cực VARCHAR) | CREATE TABLE bảng_2187333_1(năm VARCHAR,team_s_ VARCHAR,cực VARCHAR) | Đặt tên năm cho cuộc đua roush số 16 để giành các pole nhỏ hơn 1,0 | Đặt tên năm cho cuộc đua roush số 16 để giành các pole nhỏ hơn 1,0 | SELECT năm FROM table 2187333 1 WHERE team s = "16 Roush Racing" AND pole < 1,0 | SELECT năm FROM table_2187333_1 WHERE team_s = " 16 Roush_Racing" AND pole < 1,0 |
mimicsql_data | CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện text,thời gian xuất viện text,năm nhập học text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,Formulary drug cd text,route text,drug dose text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện text,thời_gian xuất_viện text,năm nhập_học text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,Formulary_drug_cd text,route text,drug_dose text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | Loại thuốc và liều lượng thuốc tên thuốc amaryl là gì? | Loại thuốc và liều_lượng thuốc tên thuốc amaryl là gì ? | SELECT đơn thuốc.drug type,prescriptions.drug dose FROM đơn thuốc WHERE đơn thuốc.drug = "Amaryl" | SELECT đơn thuốc.drug_type,prescriptions.drug_dose FROM đơn thuốc WHERE đơn thuốc.drug = "Amaryl" |
squall | CREATE TABLE table 203 591(id number,"high school" text,"join\nyear" text,"from" text,"left" text,"league left to" text) | CREATE TABLE table_203_591(id number,"high school" text,"join\_nyear" text,"from" text,"left" text,"league left to" text) | có bao nhiêu trường còn lại vào năm 1960? | có bao_nhiêu trường còn lại vào năm 1960 ? | SELECT COUNT ( "trung học" ) FROM bảng 203 591 WHERE "trái" = 1960 | SELECT COUNT ( "trung_học" ) FROM bảng_203_591 WHERE "trái" = 1960 |
criteria2sql | CREATE TABLE table train 276("id" int,"hbv" bool,"systolic blood pens sbp" int,"hiv infection" bool,"hcv" bool,"diastolic blood Pressure dbp" int,"body mass index bmi" float,"tăng huyết áp" bool,"KHÔNG" float) | CREATE TABLE table_train_276("id" int,"hbv" bool,"systolic_blood_pens_sbp" int,"hiv_infection" bool,"hcv" bool,"diastolic_blood_ Pressure_dbp" int,"body_mass_index_bmi" float,"tăng huyết_áp" bool,"KHÔNG" float) | tiền sử dương tính với kháng thể virus gây suy giảm miễn dịch ở người (hiv) | tiền sử_dương_tính với kháng_thể virus gây suy_giảm miễn_dịch ở người ( hiv ) | SELECT * FROM table train 276 WHERE hiv infection = 1 | SELECT * FROM table_train_276 WHERE hiv_infection = 1 |
sql_create_context | CREATE TABLE bảng 28677723 9(total INTEGER,kiểu VARCHAR) | CREATE TABLE bảng_28677723_9(total INTEGER,kiểu VARCHAR) | Tổng số điểm nhỏ nhất cho phong cách Pasodoble là bao nhiêu? | Tổng_số điểm nhỏ nhất cho phong_cách Pasodoble là bao_nhiêu ? | SELECT MIN ( total ) FROM table 28677723 9 WHERE style = "Pasodoble" | SELECT MIN ( total ) FROM table_28677723_9 WHERE style = "Pasodoble" |
wikisql | CREATE TABLE table 14100("Động cơ" text,"Dịch chuyển" text,"Năm" text,"Cách sử dụng" text,"Công suất" text) | CREATE TABLE table_14100("Động_cơ" text,"Dịch_chuyển" text,"Năm" text,"Cách sử_dụng" text,"Công_suất" text) | Việc sử dụng động cơ f136e là gì? | Việc sử_dụng động_cơ f136e là gì ? | SELECT "Cách sử dụng" FROM table 14100 WHERE "Động cơ" = 'f136e' | SELECT "Cách sử_dụng" FROM table_14100 WHERE "Động_cơ" = "f136e" |
sql_create_context | CREATE TABLE table 1341472 45(được bầu đầu tiên VARCHAR,đương nhiệm VARCHAR) | CREATE TABLE table_1341472_45(được bầu đầu_tiên VARCHAR,đương_nhiệm VARCHAR) | Larry comb được bầu vào năm nào | Larry comb được bầu vào năm nào | SELECT first elected FROM table 1341472 45 WHERE đương nhiệm = "Larry Combest" | SELECT first_elected FROM table_1341472_45 WHERE đương_nhiệm = "Larry_Combest" |
sql_create_context | CREATE TABLE table 18461045 1(kentucky VARCHAR,illinois VARCHAR) | CREATE TABLE table_18461045_1(kentucky VARCHAR,illinois VARCHAR) | Đội bóng nhỏ từ Kentucky là gì khi đội bóng nhỏ từ Illinois là Rock Falls LL Rock Falls? | Đội bóng nhỏ từ Kentucky là gì khi đội bóng nhỏ từ Illinois là Rock_Falls LL_Rock Falls ? | SELECT kentucky FROM table 18461045 1 WHERE illinois = "Thác đá LL Thác đá" | SELECT kentucky FROM table_18461045_1 WHERE illinois = "Thác đá LL Thác đá" |
sql_create_context | CREATE TABLE table 2226817 12(no in series VARCHAR,directed by VARCHAR) | CREATE TABLE table_2226817_12(no_in_series VARCHAR,directed_by VARCHAR) | Mark K. Samuels đã đạo diễn bao nhiêu tập phim? | Mark K._Samuels đã đạo_diễn bao_nhiêu tập phim ? | SELECT COUNT ( no in series ) FROM table 2226817 12 WHERE direct by = "Mark K.Samuels" | SELECT COUNT ( no_in_series ) FROM table_2226817_12 WHERE direct_by = "Mark_K.Samuels" |
wikisql | CREATE TABLE table 3026("Hội nghị" text,"Người chiến thắng mùa giải thường xuyên" text,"Cầu thủ hội nghị của năm" text,"Giải đấu hội nghị" text,"Địa điểm giải đấu(Thành phố)" text,"Người chiến thắng giải đấu" text) | CREATE TABLE table_3026("Hội_nghị" text,"Người chiến_thắng mùa giải thường_xuyên" text,"Cầu_thủ hội_nghị của năm" text,"Giải đấu hội_nghị" text,"Địa_điểm giải đấu(Thành_phố)" text,"Người chiến_thắng giải đấu" text) | Giải đấu của Big Sky Conference được gọi là gì? | Giải đấu của Big Sky_Conference được gọi_là gì ? | SELECT "Giải đấu hội nghị" FROM table 3026 WHERE "Hội nghị" = 'Hội nghị bầu trời lớn' | SELECT "Giải đấu hội_nghị" FROM table_3026 WHERE "Hội_nghị" = "Hội_nghị bầu_trời lớn" |
sql_create_context | CREATE TABLE table name 66(to par VARCHAR,player VARCHAR) | CREATE TABLE table_name_66(to_par VARCHAR,player VARCHAR) | To par là gì khi Lanny Wadkins là người chơi? | To par là gì khi Lanny_Wadkins là người chơi ? | SELECT to par FROM table name 66 WHERE player = "lanny wadkins" | SELECT to_par FROM table_name_66 WHERE player = "lanny wadkins" |
wikisql | CREATE TABLE table 7896("Tổng" real,"Điểm" text,"Đội thắng" text,"Đội thua" text,"Địa điểm" text,"Ngày" text) | CREATE TABLE table_7896("Tổng" real,"Điểm" text,"Đội thắng" text,"Đội_thua" text,"Địa_điểm" text,"Ngày" text) | Điểm nào có Đội gà trống Sydney thua và Tổng số là 88? | Điểm nào có Đội gà trống Sydney_thua và Tổng_số là 88 ? | SELECT "Điểm" FROM table 7896 WHERE "Đội thua" = 'những chú gà trống Sydney' AND "Tổng" = '88' | SELECT "Điểm" FROM table_7896 WHERE "Đội thua" = "những chú gà trống_Sydney" AND "Tổng" = "88" |
nvbench | 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 BAN(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 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 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 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 KHÓA HỌC(CRS CODE varchar(10),DEPT CODE varchar(10),CRS DESCRIPTION varchar(35),CRS CREDIT float(8)) CREATE TABLE GHI DANH(CLASS CODE varchar(5),STU NUM int,ĐĂNG KÝ GRADE varchar(50)) | 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 BAN(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 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 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 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 KHÓA_HỌC(CRS_CODE varchar(10),DEPT_CODE varchar(10),CRS_DESCRIPTION varchar(35),CRS_CREDIT float(8)) CREATE TABLE GHI_DANH(CLASS_CODE varchar(5),STU_NUM int,ĐĂNG_KÝ_GRADE varchar(50)) | Tìm số sinh viên đã tham gia một khóa học nào đó và đạt điểm A hoặc C và nhóm theo họ trong biểu đồ hình tròn. | Tìm số sinh_viên đã tham_gia một khóa_học nào đó và đạt điểm A hoặc C và nhóm theo họ trong biểu_đồ hình_tròn . | SELECT STU LNAME, COUNT ( STU LNAME ) FROM SINH VIÊN AS T1 JOIN GHI DANH AS T2 ON T1.STU NUM = T2.STU NUM WHERE T2.ENROLL GRADE = 'C' OR T2.ENROLL GRADE = 'A' GROUP BY STU LNAME | SELECT STU_LNAME, COUNT ( STU_LNAME ) FROM SINH_VIÊN AS T1 JOIN GHI_DANH AS T2 ON T1.STU_NUM = T2.STU_NUM WHERE T2.ENROLL_GRADE = "C" OR_T2.ENROLL_GRADE = "A" GROUP BY STU_LNAME |
nvbench | CREATE TABLE Sinh viên Tests Taken(registration id INTEGER,date test taken DATETIME,test result VARCHAR(255)) CREATE TABLE Khóa học(course id INTEGER,author id INTEGER,subject id INTEGER,course name VARCHAR(120),course description VARCHAR(255)) CREATE TABLE Course Authors and Tutors(author id INTEGER,author tutor ATB VARCHAR(3),login name VARCHAR(40),password VARCHAR(40),personal name VARCHAR(80),middle name VARCHAR(80),family name VARCHAR(80),gender mf VARCHAR(1),address line 1 VARCHAR(80)) CREATE TABLE Sinh viên Khóa học Enrolment(registration id INTEGER,student id INTEGER,course id INTEGER,date of enrollment DATETIME,date of completion DATETIME) CREATE TABLE Sinh viên(student id INTEGER,date of registration DATETIME,date of latest logon DATETIME,login name VARCHAR(40),password VARCHAR(10),personal name VARCHAR(40),middle name VARCHAR(40),family name VARCHAR(40)) CREATE TABLE Chủ đề(subject id INTEGER,subject name VARCHAR(120)) | CREATE TABLE Sinh viên_Tests_Taken(registration_id INTEGER,date_test_taken DATETIME,test_result VARCHAR(255)) CREATE TABLE Khóa_học(course_id INTEGER,author_id INTEGER,subject_id INTEGER,course_name VARCHAR(120),course_description VARCHAR(255)) CREATE TABLE Course_Authors_and_Tutors(author_id INTEGER,author_tutor_ATB VARCHAR(3),login_name VARCHAR(40),password VARCHAR(40),personal_name VARCHAR(80),middle_name VARCHAR(80),family_name VARCHAR(80),gender_mf VARCHAR(1),address_line_1 VARCHAR(80)) CREATE TABLE Sinh viên_Khóa học_Enrolment(registration_id INTEGER,student_id INTEGER,course_id INTEGER,date_of_enrollment DATETIME,date_of_completion DATETIME) CREATE TABLE Sinh_viên(student_id INTEGER,date_of_registration DATETIME,date_of_latest_logon DATETIME,login_name VARCHAR(40),password VARCHAR(10),personal_name VARCHAR(40),middle_name VARCHAR(40),family_name VARCHAR(40)) CREATE TABLE Chủ_đề(subject_id INTEGER,subject_name VARCHAR(120)) | Một biểu đồ dạng đường để tìm số ngày đăng ký của tất cả các bài kiểm tra có kết quả 'Đậu' và bạn có thể sắp xếp trục x từ thứ tự cao đến thấp được không? | Một biểu_đồ dạng đường để tìm số ngày đăng_ký của tất_cả các bài kiểm_tra có kết_quả ' Đậu ' và bạn có_thể sắp_xếp trục x từ thứ_tự cao đến thấp được không ? | SELECT ngày đăng ký, COUNT ( ngày đăng ký ) FROM Đăng ký khóa học AS T1 JOIN Kiểm tra kiểm tra học sinh AS T2 ON T1.registration id = T2.registration id WHERE T2.test result = "Đạt" GROUP BY ngày đăng ký ORDER BY ngày đăng ký DESC | SELECT ngày đăng_ký, COUNT ( ngày_đăng ký ) FROM Đăng_ký khóa học AS T1 JOIN Kiểm_tra_kiểm tra_học_sinh AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Đạt" GROUP BY ngày đăng_ký ORDER BY ngày đăng_ký DESC |
sql_create_context | CREATE TABLE vận động viên bơi lội(id VARCHAR,quốc tịch VARCHAR) CREATE TABLE record(swimmer id VARCHAR,event id VARCHAR) CREATE TABLE sự kiện(id VARCHAR,sân vận động id VARCHAR) CREATE TABLE sân vận động(tên VARCHAR,nhận dạng VARCHAR) | CREATE TABLE vận_động_viên bơi_lội(id VARCHAR,quốc_tịch VARCHAR) CREATE TABLE record(swimmer_id VARCHAR,event_id VARCHAR) CREATE TABLE sự_kiện(id VARCHAR,sân_vận động_id VARCHAR) CREATE TABLE sân_vận_động(tên VARCHAR,nhận_dạng VARCHAR) | Tìm tên các sân vận động mà một số vận động viên bơi lội người Úc đã đến. | Tìm tên các sân_vận_động mà một_số vận_động_viên bơi lội người Úc đã đến . | SELECT t4.name FROM vận động viên bơi lội AS t1 JOIN kỷ lục AS t2 ON t1.id = t2.swimmer id JOIN sự kiện AS t3 ON t2.event id = t3.id JOIN sân vận động AS t4 ON t4.id = t3.stadium id WHERE t1.nationality = 'Úc' | SELECT t4.name FROM vận_động_viên bơi lội AS t1 JOIN kỷ_lục AS t2 ON t1.id = t2.swimmer_id JOIN sự_kiện AS t3 ON t2.event_id = t3.id JOIN sân_vận_động AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = "Úc" |
sql_create_context | CREATE TABLE tên bảng 74(gpu model VARCHAR,l3 cache VARCHAR) | CREATE TABLE tên_bảng_74(gpu_model VARCHAR,l3_cache VARCHAR) | Mô hình GPU là gì khi bộ đệm L3 có nguồn tiêu chuẩn? | Mô_hình GPU là gì khi bộ đệm_L3 có nguồn tiêu_chuẩn ? | SELECT gpu model FROM table name 74 WHERE l3 cache = "nguồn tiêu chuẩn" | SELECT gpu_model FROM table_name_74 WHERE l3_cache = "nguồn tiêu_chuẩn" |
sql_create_context | CREATE TABLE table 22496344 1( number VARCHAR,high school VARCHAR) | CREATE TABLE table_22496344_1(_number VARCHAR,high_school VARCHAR) | # cho trường trung học có giá trị là gì? | # cho trường trung_học có giá_trị là gì ? | SELECT COUNT ( number ) FROM table 22496344 1 WHERE high school = "Đáng giá" | SELECT COUNT ( number ) FROM table_22496344_1 WHERE high_school = "Đáng_giá" |
mimic_iii | CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,thời gian biểu đồ time,spec type desc text,org name text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính text,dob time,dod 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 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 cost(row id number,subject 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 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 đơ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 chuyển(row id number,subject id number,hadm id number,icustay id number,loại sự kiện 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,giá trị 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 outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,thời_gian biểu_đồ time,spec_type_desc text,org_name text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod 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 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 cost(row_id number,subject_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 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 đơ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 chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,loại sự_kiện 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,giá_trị text) | số lượng bệnh nhân nhập viện trong năm qua là bao nhiêu? | số_lượng bệnh_nhân nhập_viện trong năm qua là bao_nhiêu ? | SELECT COUNT ( DISTINCT tuyển sinh.subject id ) FROM tuyển sinh WHERE DATETIME ( admissions.admittime,'bắt đầu năm' ) = DATETIME ( CURRENT TIME ( ) ,'đầu năm','1 năm' ) | SELECT COUNT ( DISTINCT tuyển_sinh.subject_id ) FROM tuyển_sinh WHERE DATETIME ( admissions.admittime,"bắt_đầu năm" ) = DATETIME ( CURRENT_TIME ( ) ,"đầu năm"," 1 năm" ) |
wikisql | CREATE TABLE table 11063("Tên" text,"Trọng lượng cơ thể" real,"Chộp" real,"Sạch và giật" real,"Tổng(kg)" real) | CREATE TABLE table_11063("Tên" text,"Trọng_lượng cơ_thể" real,"Chộp" real,"Sạch và giật" real,"Tổng(kg)" real) | Cái tên nào có trọng lượng cơ thể lớn hơn 89,64, tổng trọng lượng (kg) lớn hơn 310, cử giật nhẹ hơn 207,5 và cử giật lớn hơn 165? | Cái tên nào có trọng_lượng cơ_thể lớn hơn 89,64 , tổng_trọng_lượng ( kg ) lớn hơn 310 , cử_giật nhẹ hơn 207,5 và cử_giật lớn hơn 165 ? | SELECT "Tên" FROM table 11063 WHERE "Trọng lượng cơ thể" > '89,64' AND "Tổng ( kg ) " > '310' AND "Sạch giật" < '207,5' AND "Cướp" > '165' | SELECT "Tên" FROM table_11063 WHERE "Trọng_lượng cơ_thể" > "89,64" AND "Tổng ( kg ) " > "310" AND "Sạch giật" < "207,5" AND "Cướp" > "165" |
sql_create_context | CREATE TABLE table name 57(giải đấu VARCHAR) | CREATE TABLE table_name_57(giải đấu VARCHAR) | Năm 1997 nào đi kèm với năm 1991 là giải đấu mở rộng của Úc? | Năm 1997 nào đi kèm với năm 1991 là giải đấu mở_rộng của Úc ? | SELECT 1997 FROM table name 57 WHERE 1991 = "a" AND giải đấu = "Úc mở rộng" | SELECT 1997 FROM table_name_57 WHERE 1991 = "a" AND giải đấu = "Úc mở_rộng" |
nvbench | CREATE TABLE driver(Driver ID int,Name text,Party text,Home city text,Age int) CREATE TABLE school bus(School ID int,Driver ID int,Years Working int,If full time bool) CREATE TABLE trường học(School ID int,Lớp text,Trường text,Địa điểm text,Loại text) | CREATE TABLE driver(Driver_ID int,Name text,Party text,Home_city text,Age int) CREATE TABLE school_bus(School_ID int,Driver_ID int,Years_Working int,If_full_time bool) CREATE TABLE trường_học(School_ID int,Lớp text,Trường text,Địa_điểm text,Loại text) | So sánh độ tuổi trung bình của người lái xe từ cùng thành phố quê hương với biểu đồ thanh, vui lòng hiển thị các thanh theo thứ tự tăng dần. | So_sánh độ tuổi trung_bình của người lái_xe từ cùng thành_phố quê_hương với biểu_đồ thanh , vui_lòng hiển_thị các thanh theo thứ_tự tăng dần . | SELECT Home city, AVG ( Tuổi ) FROM tài xế GROUP BY Home city ORDER BY Home city | SELECT Home_city, AVG ( Tuổi ) FROM tài_xế GROUP BY Home_city ORDER BY Home_city |
sql_create_context | CREATE TABLE table name 13(wkts VARCHAR,econ VARCHAR) | CREATE TABLE table_name_13(wkts VARCHAR,econ VARCHAR) | Hãy cho tôi biết tuần lễ của nền kinh tế 4,23 | Hãy cho tôi biết tuần_lễ của nền kinh_tế 4,23 | SELECT wkts FROM table name 13 WHERE econ = "4.23" | SELECT wkts FROM table_name_13 WHERE econ = "4.23" |
sql_create_context | CREATE TABLE table 2503102 1(động cơ VARCHAR,đội VARCHAR) | CREATE TABLE table_2503102_1(động_cơ VARCHAR,đội VARCHAR) | Đội Ed Carpenter Racing sử dụng động cơ gì? | Đội Ed Carpenter_Racing sử_dụng động_cơ gì ? | SELECT động cơ FROM table 2503102 1 WHERE đội = "Ed Carpenter Racing" | SELECT động_cơ FROM table_2503102_1 WHERE đội = "Ed Carpenter_Racing" |
wikisql | CREATE TABLE table 67269("Chức danh" text,"Studio" text,"Vai trò" text,"Nữ lãnh đạo" text,"Giám đốc" text) | CREATE TABLE table_67269("Chức_danh" text,"Studio" text,"Vai_trò" text,"Nữ lãnh_đạo" text,"Giám_đốc" text) | Ai đã đạo diễn bộ phim khi John Wayne đóng vai John Travers? | Ai đã đạo_diễn bộ phim khi John_Wayne đóng vai John_Travers ? | SELECT "Giám đốc" FROM table 67269 WHERE "Vai trò" = 'john travers' | SELECT "Giám_đốc" FROM table_67269 WHERE "Vai_trò" = "john_travers" |
wikisql | CREATE TABLE table 28743("Mùa giải" real,"Loạt" text,"Đội" text,"Các cuộc đua" real,"Thắng" real,"F/Vòng" real,"Bục" real,"Điểm" real,"Vị trí" text) | CREATE TABLE table_28743("Mùa giải" real,"Loạt" text,"Đội" text,"Các cuộc đua" real,"Thắng" real,"F/Vòng" real,"Bục" real,"Điểm" real,"Vị_trí" text) | Có bao nhiêu đội được 10 điểm? | Có bao_nhiêu đội được 10 điểm ? | SELECT COUNT ( "Đội" ) FROM table 28743 WHERE "Điểm" = '10' | SELECT COUNT ( "Đội" ) FROM table_28743 WHERE "Điểm" = "10" |
wikisql | CREATE TABLE table 13915("Năm" text,"Chương trình tuyển chọn" text,"Địa điểm" text,"Chủ nhà chính của trận chung kết quốc gia" text,"Đồng chủ nhà trận chung kết quốc gia" text,"Bán kết/máy chủ nhiệt" text) | CREATE TABLE table_13915("Năm" text,"Chương_trình tuyển_chọn" text,"Địa_điểm" text,"Chủ nhà chính của trận chung_kết quốc_gia" text,"Đồng_chủ nhà trận chung_kết quốc_gia" text,"Bán_kết/máy chủ_nhiệt" text) | Tên của người đồng chủ trì trận chung kết quốc gia là gì khi David Jacobs là người dẫn chương trình chính trận chung kết Quốc gia và chương trình tuyển chọn là Bài hát cho Châu Âu năm 1966? | Tên của người đồng chủ_trì trận chung_kết quốc_gia là gì khi David_Jacobs là người dẫn_chương_trình chính_trận chung_kết Quốc_gia và chương_trình tuyển_chọn là Bài hát cho Châu_Âu năm 1966 ? | SELECT "Người đồng chủ trì trận chung kết quốc gia" FROM table 13915 WHERE "Người dẫn chương trình chính trận chung kết quốc gia" = 'david jacobs' AND "Chương trình tuyển chọn" = 'một bài hát cho châu Âu' AND "Năm" = '1966' | SELECT "Người đồng chủ_trì trận chung_kết quốc_gia" FROM table_13915 WHERE "Người dẫn_chương_trình chính_trận chung_kết quốc_gia" = "david jacobs" AND "Chương_trình tuyển_chọn" = "một bài hát cho châu_Âu" AND "Năm" = "1966" |
wikisql | CREATE TABLE table 32929("Tuần" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Tham dự" real) | CREATE TABLE table_32929("Tuần" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Tham_dự" real) | Kết quả trận đấu ngày 1/12/1963 như thế nào? | Kết_quả trận đấu ngày 1/12/1963 như_thế_nào ? | SELECT "Kết quả" FROM table 32929 WHERE "Ngày" = 'ngày 1 tháng 12 năm 1963' | SELECT "Kết_quả" FROM table_32929 WHERE "Ngày" = "ngày 1 tháng 12 năm 1963" |
wikisql | CREATE TABLE table 51247("Đội" text,"Trận đấu đã chơi" real,"Thắng" real,"Thua" real,"Hòa" real,"Mục tiêu ghi được" real,"Bàn thắng vào lưới" real) | CREATE TABLE table_51247("Đội" text,"Trận đấu đã chơi" real,"Thắng" real,"Thua" real,"Hòa" real,"Mục_tiêu ghi được" real,"Bàn_thắng vào lưới" real) | Điều gì có số trận thắng thấp nhất với GA nhỏ hơn 39, thua nhiều hơn 2 và hòa lớn hơn 0? | Điều gì có số trận thắng thấp nhất với GA nhỏ hơn 39 , thua nhiều hơn 2 và hòa lớn hơn 0 ? | SELECT MIN ( "Thắng" ) FROM table 51247 WHERE "Bàn thua" < '39' AND "Thua" > '2' AND "Hòa" > '0' | SELECT MIN ( "Thắng" ) FROM table_51247 WHERE "Bàn_thua" < "39" AND "Thua" > "2" AND "Hòa" > "0" |
wikisql | CREATE TABLE table 500("Mùa giải" text,"Thi đấu" text,"Vòng" text,"Câu lạc bộ" text,"Lượt 1" text,"Lượt 2" text,"Tổng hợp" text) | CREATE TABLE table_500("Mùa giải" text,"Thi_đấu" text,"Vòng" text,"Câu_lạc_bộ" text,"Lượt 1" text,"Lượt 2" text,"Tổng_hợp" text) | Trận lượt đi khi câu lạc bộ là a.c. tự do? | Trận lượt đi khi câu_lạc_bộ là a . c . tự_do ? | SELECT "lượt đi" FROM table 500 WHERE "Câu lạc bộ" = 'A.C.Libertas' | SELECT "lượt đi" FROM table_500 WHERE "Câu_lạc_bộ" = "A.C.Libertas" |
wikisql | CREATE TABLE table 17546("Số trong sê-ri" real,"Tiêu đề" text,"Đạo diễn" text,"Viết bởi" text,"Ngày phát sóng ban đầu" text,"Mã sản xuất" real) | CREATE TABLE table_17546("Số trong sê-ri" real,"Tiêu_đề" text,"Đạo_diễn" text,"Viết bởi" text,"Ngày phát_sóng ban_đầu" text,"Mã_sản_xuất" real) | Ngày phát sóng ban đầu của tập 'một con lợn bị chọc' là ngày nào? | Ngày phát_sóng ban_đầu của tập ' một con lợn bị chọc ' là ngày nào ? | SELECT "Ngày phát sóng ban đầu" FROM table 17546 WHERE "Title" = 'A Pig in a Poke' | SELECT "Ngày phát_sóng ban_đầu" FROM table_17546 WHERE "Title" = "A_Pig in a_Poke" |
imdb | CREATE TABLE made by(id int,msid int,pid int) CREATE TABLE writing by(id int,msid int,wid int) CREATE TABLE tv series(sid int,title text,năm phát hành int,num of seasons int,num of episodes int,title aka text,ngân sách text) CREATE TABLE nhà sản xuất(pid int,giới tính text,tên text,quốc tịch text,thành phố sinh text,năm sinh int) CREATE TABLE thể loại(gid int,genre text) CREATE TABLE tags(id int,msid int,kid int) CREATE TABLE phân loại(id int,msid int,gid int) CREATE TABLE direct by(id int,msid int,did int) CREATE TABLE cast(id int,msid int,aid int,role text) CREATE TABLE diễn viên(aid int,giới tính text,tên text,quốc tịch text,thành phố sinh text,năm sinh int) CREATE TABLEbản quyền(id int,msid int,cid int) CREATE TABLE đạo diễn(đã làm int,giới tính text,tên text,quốc tịch text,thành phố sinh text,năm sinh int) CREATE TABLE nhà văn(wid int,giới tính text,tên text,quốc tịch text,thành phố sinh text,năm sinh int) CREATE TABLE company(id int,name text,country code varchar) CREATE TABLE movie(mid int,title text,release year int,title aka text,budget text) CREATE TABLE từ khóa(id int,từ khóa text) | CREATE TABLE made_by(id int,msid int,pid int) CREATE TABLE writing_by(id int,msid int,wid int) CREATE TABLE tv_series(sid int,title text,năm phát_hành int,num_of_seasons int,num_of_episodes int,title_aka text,ngân_sách text) CREATE TABLE nhà_sản_xuất(pid int,giới_tính text,tên text,quốc_tịch text,thành_phố sinh text,năm sinh int) CREATE TABLE thể_loại(gid int,genre text) CREATE TABLE tags(id int,msid int,kid int) CREATE TABLE phân_loại(id int,msid int,gid int) CREATE TABLE direct_by(id int,msid int,did int) CREATE TABLE cast(id int,msid int,aid int,role text) CREATE TABLE diễn_viên(aid int,giới_tính text,tên text,quốc_tịch text,thành_phố sinh text,năm sinh int) CREATE TABLEbản_quyền(id int,msid int,cid int) CREATE TABLE đạo_diễn(đã làm int,giới_tính text,tên text,quốc_tịch text,thành_phố sinh text,năm sinh int) CREATE TABLE nhà_văn(wid int,giới_tính text,tên text,quốc_tịch text,thành_phố sinh text,năm sinh int) CREATE TABLE company(id int,name text,country_code varchar) CREATE TABLE movie(mid int,title text,release_year int,title_aka text,budget text) CREATE TABLE từ khóa(id int,từ khóa text) | Ai là đạo diễn của bộ phim Joy năm 2015? | Ai là đạo_diễn của bộ phim Joy năm 2015 ? | SELECT đạo diễn.name FROM đạo diễn by,đạo diễn,phim WHERE đạo diễn.did = đạo diễn by.did AND movie.mid = đạo diễn by.msid AND movie.release year = 2015 AND movie.title = 'Niềm vui' | SELECT đạo_diễn.name FROM đạo diễn_by,đạo_diễn,phim WHERE đạo_diễn.did = đạo diễn_by.did AND movie.mid = đạo diễn_by.msid AND movie.release_year = 2015 AND movie.title = "Niềm vui" |
sql_create_context | CREATE TABLE table 27279050 3(quốc gia VARCHAR,last current driver s 3 november 2013 VARCHAR) | CREATE TABLE table_27279050_3(quốc_gia VARCHAR,last_current_driver_s__3_november_2013 VARCHAR) | Quốc gia nào có (các) tài xế cuối cùng/hiện tại vào ngày 3 tháng 11 năm 2013 là Daniel abt ( 2012 )? | Quốc_gia nào có ( các ) tài_xế cuối_cùng / hiện_tại vào ngày 3 tháng 11 năm 2013 là Daniel_abt ( 2012 ) ? | SELECT quốc gia FROM table 27279050 3 WHERE Last current driver s 3 november 2013 = "Daniel Abt ( 2012 ) " | SELECT quốc_gia FROM table_27279050_3 WHERE Last_current_driver_s__3_november_2013 = "Daniel_Abt ( 2012 ) " |
wikisql | CREATE TABLE table 2422("Các đảng phái chính trị" text,"% 2006" text,"Số ghế 2006" real,"% 2001" text,"Số ghế 2001" real,"% 1997" text) | CREATE TABLE table_2422("Các đảng_phái chính_trị" text,"% 2006" text,"Số ghế 2006" real,"% 2001" text,"Số ghế 2001" real,"% 1997" text) | Có bao nhiêu chỗ ngồi vào năm 2001 khi có 11 chỗ vào năm 2006? | Có bao_nhiêu chỗ ngồi vào năm 2001 khi có 11 chỗ vào năm 2006 ? | SELECT MIN ( "Số ghế 2001" ) FROM bảng 2422 WHERE "Số ghế 2006" = '11' | SELECT MIN ( "Số ghế 2001" ) FROM bảng_2422 WHERE "Số ghế 2006" = "11" |
wikisql | CREATE TABLE table 38559("Tên" text,"Địa chỉ đường phố" text,"Năm cao nhất" text,"Chiều cao feet/m" text,"Tầng" real) | CREATE TABLE table_38559("Tên" text,"Địa_chỉ đường_phố" text,"Năm cao nhất" text,"Chiều cao feet/m" text,"Tầng" real) | Tòa nhà ở 200 sw Harrison được coi là tòa nhà cao nhất trong những năm nào? | Tòa nhà ở 200 sw Harrison được coi là tòa nhà cao nhất trong những năm nào ? | SELECT "Cao nhất nhiều năm" FROM table 38559 WHERE "Địa chỉ đường" = '200 sw Harrison' | SELECT "Cao nhất nhiều năm" FROM table_38559 WHERE "Địa_chỉ đường" = "200 sw Harrison" |
wikisql | CREATE TABLE table 64139("Câu lạc bộ" text,"Hoạt động" text,"Thắng" real,"Thua" real,"Hòa" real,"Tỷ lệ thắng" text,"Cờ" real) | CREATE TABLE table_64139("Câu_lạc_bộ" text,"Hoạt_động" text,"Thắng" real,"Thua" real,"Hòa" real,"Tỷ_lệ thắng" text,"Cờ" real) | Warrnambool thua với tỷ số hòa ít hơn 19 là bao nhiêu? | Warrnambool_thua với tỷ_số hòa ít hơn 19 là bao_nhiêu ? | SELECT AVG ( "Thua" ) FROM table 64139 WHERE "Club" = 'warrnambool' AND "Hòa" < '19' | SELECT AVG ( "Thua" ) FROM table_64139 WHERE "Club" = "warrnambool" AND "Hòa" < "19" |
advising | CREATE TABLE khóa học điều kiện tiên quyết(pre course id int,course id int) CREATE TABLE khu vực(khóa học id int,khu vực varchar) CREATE TABLE cung cấp instructor(offering instructor id int,offering id int,instructor id 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,admit term int,predicted graduation semester int,degree varchar,minor varchar,thực tập varchar) CREATE TABLE chương trình(chương trình id int,tên varchar,đại học varchar,giới thiệu varchar) CREATE TABLE sinh viên record(student id int,course id int,học kỳ int,lớp varchar,như thế nào varchar,transfer source varchar,earn credit varchar,repeat term varchar,test id varchar) CREATE TABLE Course offering(offering id int,course id int,semester int,section number int,start time time,end time time,monday 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,địa chỉ lớp varchar,allow audit varchar) CREATE TABLE học kỳ(semester id int,semester varchar,year int) CREATE TABLE require(requirement id int,requirement varchar,college varchar) CREATE TABLEprogram course(program id int,course id int,workload int,danh mục varchar) CREATE TABLE gsi(course offering id int,student id int) CREATE TABLEprogram requirement(program id int,category varchar,min credit int,Added req varchar) CREATE TABLE giảng viên(instructor id int,tên varchar,uniqname varchar) CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLE Course(course id int,name varchar,department varchar,number varchar,credits varchar,advisory requirement varchar,enforced requirement varchar,description 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 Course tags count(course id int,clear grading int,pop quiz int,group projects int,inspiral int,long lectures int,extra credit int,few tests int,good feedback int,bài kiểm tra khó int,bài nặng int,quan tâm cho học sinh int,bài tập nặng int,được tôn trọng int,tham gia int,đọc khó int,học sinh khó int,vui nhộn int,sẽ làm lại int,bài giảng hay int,không bỏ qua int) CREATE TABLE việc làm(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE ta(campus job id int,student id int,vị trí varchar) | CREATE TABLE khóa học_điều kiện tiên_quyết(pre_course_id int,course_id int) CREATE TABLE khu_vực(khóa học_id int,khu_vực varchar) CREATE TABLE cung_cấp_instructor(offering_instructor_id int,offering_id int,instructor_id 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,admit_term int,predicted_graduation_semester int,degree varchar,minor varchar,thực_tập varchar) CREATE TABLE chương_trình(chương trình_id int,tên varchar,đại_học varchar,giới_thiệu varchar) CREATE TABLE sinh viên_record(student_id int,course_id int,học kỳ int,lớp varchar,như_thế_nào varchar,transfer_source varchar,earn_credit varchar,repeat_term varchar,test_id varchar) CREATE TABLE Course_offering(offering_id int,course_id int,semester int,section_number int,start_time time,end_time time,monday 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,địa_chỉ lớp varchar,allow_audit varchar) CREATE TABLE học_kỳ(semester_id int,semester varchar,year int) CREATE TABLE require(requirement_id int,requirement varchar,college varchar) CREATE TABLEprogram_course(program_id int,course_id int,workload int,danh_mục varchar) CREATE TABLE gsi(course_offering_id int,student_id int) CREATE TABLEprogram_requirement(program_id int,category varchar,min_credit int,Added_req varchar) CREATE TABLE giảng_viên(instructor_id int,tên varchar,uniqname varchar) CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLE Course(course_id int,name varchar,department varchar,number varchar,credits varchar,advisory_requirement varchar,enforced_requirement varchar,description 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 Course_tags_count(course_id int,clear_grading int,pop_quiz int,group_projects int,inspiral int,long_lectures int,extra_credit int,few_tests int,good_feedback int,bài kiểm_tra khó int,bài nặng int,quan_tâm_cho_học sinh int,bài_tập nặng int,được tôn_trọng int,tham_gia int,đọc_khó int,học_sinh khó int,vui nhộn int,sẽ_làm lại int,bài giảng hay int,không_bỏ qua int) CREATE TABLE việc_làm(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE ta(campus_job_id int,student_id int,vị_trí varchar) | Có khóa học nào yêu cầu học RESTORA 746 trước không? | Có khóa_học nào yêu_cầu học RESTORA 746 trước không ? | SELECT DISTINCT COURSE 1.department,COURSE 1.name,COURSE 1.number FROM khóa học AS COURSE 0,khóa học AS COURSE 1,course precondition WHERE COURSE 0.course id = Course precondition.pre course id AND COURSE 0.department = 'RESTORA' AND COURSE 0.số = 746 AND COURSE 1.course id = Course precondition.course id | SELECT DISTINCT COURSE_1.department,COURSE_1.name,COURSE_1.number FROM khóa học AS COURSE_0,khóa_học AS COURSE_1,course_precondition WHERE COURSE_0.course_id = Course_precondition.pre_course_id AND COURSE_0.department = "RESTORA" AND COURSE_0.số = 746 AND COURSE_1.course_id = Course_precondition.course_id |
squall | CREATE TABLE table 204 174(id number,"thứ hạng" number,"tên" text,"quốc tịch" text,"kết quả" number,"ghi chú" text) | CREATE TABLE table_204_174(id number,"thứ_hạng" number,"tên" text,"quốc_tịch" text,"kết_quả" number,"ghi_chú" text) | người đã có khoảng thời gian tuyệt vời tiếp theo sau Dusmetova. | người đã có khoảng thời_gian tuyệt_vời tiếp_theo sau Dusmetova . | SELECT "tên" FROM bảng 204 174 WHERE "kết quả" < ( SELECT "kết quả" FROM bảng 204 174 WHERE "tên" = 'liliya dusmetova' ) ORDER BY "kết quả" DESC LIMIT 1 | SELECT "tên" FROM bảng_204_174 WHERE "kết_quả" < ( SELECT "kết_quả" FROM bảng_204_174 WHERE "tên" = "liliya dusmetova" ) ORDER BY"kết_quả" DESC LIMIT 1 |
sql_create_context | CREATE TABLE table name 45(giải thưởng VARCHAR,danh mục VARCHAR,kết quả VARCHAR,năm VARCHAR,công việc VARCHAR) | CREATE TABLE table_name_45(giải_thưởng VARCHAR,danh_mục VARCHAR,kết_quả VARCHAR,năm VARCHAR,công_việc VARCHAR) | Giải thưởng nào có Năm nhỏ hơn năm 2004, Tác phẩm nhái, Kết quả đoạt giải và Hạng mục Nữ diễn viên được yêu thích? | Giải_thưởng nào có Năm nhỏ hơn năm 2004 , Tác_phẩm nhái , Kết_quả đoạt giải và Hạng_mục_Nữ diễn_viên được yêu thích ? | SELECT giải thưởng FROM tên bảng 45 WHERE năm < 2004 AND tác phẩm = "bản sao" AND result = "thắng" AND hạng mục = "nữ diễn viên được yêu thích" | SELECT giải_thưởng FROM tên_bảng_45 WHERE năm < 2004 AND tác_phẩm = "bản_sao" AND result = "thắng" AND hạng_mục = "nữ diễn_viên được yêu_thích" |
nvbench | CREATE TABLE quận(Id quận int,Tên quận text,Dân số real,Mã Zip text) CREATE TABLE đảng(ID ID int,Năm real,Đảng text,Thống đốc text,Trung úy Thống đốc text,Kiểm soát viên text,Attorney General text,US Senate text) CREATE TABLE bầu cử(Bầu ID int,Quận Đại diện text,Quận int,Đại biểu text,Đảng int,Người được bầu đầu tiên real,Ủy ban text) | CREATE TABLE quận(Id_quận int,Tên_quận text,Dân_số real,Mã_Zip text) CREATE TABLE đảng(ID_ID int,Năm real,Đảng text,Thống_đốc text,Trung_úy_Thống đốc text,Kiểm_soát_viên text,Attorney_General text,US_Senate text) CREATE TABLE bầu_cử(Bầu_ID int,Quận_Đại_diện text,Quận int,Đại_biểu text,Đảng int,Người được bầu đầu_tiên real,Ủy ban text) | Tìm các bên liên kết với các đại biểu từ quận 1 hoặc 2. Ai là người kiểm soát các bên và đếm họ bằng biểu đồ thanh | Tìm các bên liên_kết với các đại_biểu từ quận 1 hoặc 2 . Ai là người kiểm_soát các bên và đếm họ bằng biểu_đồ thanh | SELECT Kiểm soát viên, COUNT ( Kiểm soát viên ) FROM bầu cử AS T1 JOIN đảng AS T2 ON T1.Đảng = T2.Đảng ID WHERE T1.Quận = 1 OR T1.Quận = 2 GROUP BY Kiểm soát viên | SELECT Kiểm_soát_viên, COUNT ( Kiểm_soát_viên ) FROM bầu_cử AS T1 JOIN đảng AS T2 ON T1.Đảng =T2.Đảng_ID WHERE T1.Quận = 1 OR_T1.Quận = 2 GROUP BY Kiểm_soát_viên |
wikisql | CREATE TABLE table 11665("Trình điều khiển" text,"Trình xây dựng" text,"Vòng" real,"Thời gian/Đã nghỉ hưu" text,"Lưới" real) | CREATE TABLE table_11665("Trình điều_khiển" text,"Trình xây_dựng" text,"Vòng" real,"Thời_gian/Đã nghỉ hưu" text,"Lưới" real) | Bây giờ là mấy giờ/Ivan Capelli đã nghỉ hưu? | Bây_giờ là mấy giờ / Ivan Capelli đã nghỉ hưu ? | SELECT "Thời gianĐã nghỉ hưu" FROM table 11665 WHERE "Driver" = 'ivan capelli' | SELECT "Thời_gianĐã nghỉ hưu" FROM table_11665 WHERE "Driver" = "ivan capelli" |
sql_create_context | CREATE TABLE table 28283535 4(xếp hạng VARCHAR,tập VARCHAR) | CREATE TABLE table_28283535_4(xếp_hạng VARCHAR,tập VARCHAR) | Rating của tập 1.04 là bao nhiêu? | Rating của tập 1.04 là bao_nhiêu ? | SELECT xếp hạng FROM bảng 28283535 4 WHERE tập = "1,04" | SELECT xếp_hạng FROM bảng_28283535_4 WHERE tập = "1,04" |
sql_create_context | CREATE TABLE table name 39(bản ghi VARCHAR,đội VARCHAR) | CREATE TABLE table_name_39(bản ghi VARCHAR,đội VARCHAR) | Kỷ lục của Boston Celtics là gì? | Kỷ_lục của Boston_Celtics là gì ? | SELECT bản ghi FROM table name 39 WHERE team = "boston celtics" | SELECT bản ghi FROM table_name_39 WHERE team = "boston celtics" |
mimic_iii | CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE 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 thủ tục 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 d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) 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 biểu đồ(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 d labitems(row id number,itemid number,label text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,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 labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom 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 đơ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,tuyến đường text) | CREATE TABLE chẩn_đoán_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 thủ_tục_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 d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) 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 biểu_đồ(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 d_labitems(row_id number,itemid number,label text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,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 labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom 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 đơ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,tuyến đường text) | Lần gần đây nhất bệnh nhân 65309 được kê thuốc gì vào tháng 10 năm ngoái? | Lần gần đây nhất bệnh_nhân 65309 được kê thuốc gì vào tháng 10 năm_ngoái ? | SELECT đơn thuốc.drug 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.subject id = 65309 ) AND DATETIME ( prescriptions.startdate,'bắt đầu năm' ) = DATETIME ( CURRENT TIME ( ) ,'bắt đầu năm','1 năm' ) AND STRFTIME ( 'm',prescriptions.startdate ) = '10' ORDER BY đơn thuốc.startdate DESC LIMIT 1 | SELECT đơn thuốc.drug 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.subject_id = 65309 ) AND DATETIME ( prescriptions.startdate,"bắt_đầu năm" ) = DATETIME ( CURRENT_TIME ( ) ,"bắt_đầu năm"," 1 năm" ) AND STRFTIME ( " m",prescriptions.startdate ) = "10" ORDER BY đơn thuốc.startdate DESC LIMIT 1 |
sql_create_context | CREATE TABLE tên bảng 16(time VARCHAR,thứ hạng VARCHAR) | CREATE TABLE tên_bảng_16(time VARCHAR,thứ_hạng VARCHAR) | Hạng 6 có thời gian mấy giờ? | Hạng 6 có thời_gian mấy giờ ? | SELECT time FROM tên bảng 16 WHERE hạng = 6 | SELECT time FROM tên_bảng_16 WHERE hạng = 6 |
wikisql | CREATE TABLE table 53728("Người chơi" text,"Ô tô." real,"Sân" text,"Trung bình." text, | CREATE TABLE table_53728("Người chơi" text,"Ô_tô." real,"Sân" text,"Trung_bình." text, | Jeff hút thuốc mang bao nhiêu túi? | Jeff hút thuốc mang bao_nhiêu túi ? | SELECT SUM ( "Ô tô." ) FROM table 53728 WHERE "Người chơi" = 'người hút thuốc jeff' | SELECT SUM ( "Ô_tô." ) FROM table_53728 WHERE "Người chơi" = "người hút thuốc jeff" |
sql_create_context | CREATE TABLE bảng 13012165 1(maryland VARCHAR,new jersey VARCHAR) | CREATE TABLE bảng_13012165_1(maryland VARCHAR,new_jersey VARCHAR) | Ai đã chơi ở Maryland cùng năm mà New Jersey tổ chức Somerset Hills LL Bernardsville? | Ai đã chơi ở Maryland cùng năm mà New_Jersey tổ_chức Somerset_Hills LL_Bernardsville ? | SELECT maryland FROM table 13012165 1 WHERE new jersey = "Somerset Hills LL Bernardsville" | SELECT maryland FROM table_13012165_1 WHERE new_jersey = "Somerset_Hills LL_Bernardsville" |
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 thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian nhập viện text,năm nhập học text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) | CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian nhập_viện text,năm nhập_học text) CREATE TABLE 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) | số bệnh nhân được chẩn đoán mã icd 9 mã 41031 đã được xét nghiệm dịch cổ trướng trong phòng thí nghiệm là bao nhiêu? | số bệnh_nhân được chẩn_đoán mã icd 9 mã 41031 đã được xét_nghiệm dịch cổ_trướng trong phòng_thí_nghiệm là bao_nhiêu ? | 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 INNER JOIN lab ON nhân khẩu học.hadm id = lab.hadm id WHERE chẩn đoán.icd9 code = "41031" AND lab.fluid = "Cổ bụng" | 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 INNER JOIN lab ON nhân_khẩu học.hadm_id = lab.hadm_id WHERE chẩn_đoán.icd9_code = "41031" AND lab.fluid = "Cổ_bụng" |
wikisql | CREATE TABLE table 19908("Loạt Ep." text,"Tập" real,"Phân đoạn A" text,"Phân đoạn B" text,"Phân đoạn C" text,"Phân đoạn D" text) | CREATE TABLE table_19908("Loạt Ep." text,"Tập" real,"Phân_đoạn A" text,"Phân_đoạn B" text,"Phân_đoạn C" text,"Phân_đoạn D" text) | Tập có phân đoạn về kéo tỉa thưa là tập số mấy? | Tập có phân_đoạn về kéo tỉa thưa là tập số mấy ? | SELECT MIN ( "Tập" ) FROM table 19908 WHERE "Đoạn A" = 'Kéo cắt mỏng' | SELECT MIN ( "Tập" ) FROM table_19908 WHERE "Đoạn A" = "Kéo cắt mỏng" |
sql_create_context | CREATE TABLE tên bảng 54(home team VARCHAR) | CREATE TABLE tên_bảng_54(home_team VARCHAR) | Điểm số của Collingwood khi đội chủ nhà là bao nhiêu? | Điểm_số của Collingwood khi đội chủ nhà là bao_nhiêu ? | SELECT home team AS điểm FROM table name 54 WHERE home team = "collingwood" | SELECT home_team AS điểm FROM table_name_54 WHERE home_team = "collingwood" |
eicu | CREATE TABLE drug(medicidid number,Patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,mệnh viện number,mã bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện time,giờ xuất viện time,trạng thái xuất viện text) CREATE TABLE quan trọng định kỳ(quan trọng định kỳ number,bệnh nhân đơn vị ở lạiid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,tâm thu hệ thống number,tâm trương hệ thống number,trung bình hệ thống number,thời gian quan sát time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Intakeoutput(intakeoutputid number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE điều trị(Treatmentid number,BNunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE chẩn đoán(diagnosisid number,BNunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE dị ứng(dị ứng number,BNunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) | CREATE TABLE drug(medicidid number,Patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,mệnh_viện number,mã bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện time,giờ xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE quan_trọng định_kỳ(quan_trọng định_kỳ number,bệnh_nhân đơn_vị ở lạiid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,tâm_thu hệ_thống number,tâm_trương hệ_thống number,trung_bình hệ_thống number,thời_gian quan_sát time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Intakeoutput(intakeoutputid number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE điều_trị(Treatmentid number,BNunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE chẩn_đoán(diagnosisid number,BNunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE dị_ứng(dị_ứng number,BNunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) | Cho đến 2 năm trước, 5 loại thuốc thường dùng nhất được kê cho bệnh nhân ở độ tuổi 20 sau khi được chẩn đoán tăng bạch cầu trong vòng 2 tháng là gì? | Cho đến 2 năm trước , 5 loại thuốc thường dùng nhất được kê cho bệnh_nhân ở độ tuổi 20 sau khi được chẩn_đoán tăng bạch_cầu trong vòng 2 tháng là gì ? | SELECT t3.drugname FROM ( SELECT t2.drugname,DENSE RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,diagnosis.diagnosistime FROM chẩn đoán JOIN bệnh nhân ON chẩn đoán.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE chẩn đoán.diagnosisname = 'bạch cầu' AND DATETIME ( diagnosis.diagnosistime ) <= DATETIME ( CURRENT TIME ( ) ,'2 năm' ) ) AS t1 JOIN ( SELECT bệnh nhân.uniquepid,thuốc.drugname,thuốc.drugstarttime FROM thuốc JOIN bệnh nhân ON thuốc.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE bệnh nhân.tuổi BETWEEN 20 AND 29 AND DATETIME ( thuốc.thuốc.drugstarttime ) <= DATETIME ( CURRENT TIME ( ) ,'2 năm' ) ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME ( t2.drugstarttime ) BETWEEN DATETIME ( t1.diagnosistime ) AND DATETIME ( t1.diagnosistime,'2 tháng' ) GROUP BY t2.drugname ) AS t3 WHERE t3.c1 <= 5 | SELECT t3.drugname FROM ( SELECT t2.drugname,DENSE_RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,diagnosis.diagnosistime FROM chẩn_đoán JOIN bệnh_nhân ON chẩn_đoán.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE chẩn_đoán.diagnosisname = "bạch_cầu" AND DATETIME ( diagnosis.diagnosistime ) <_= DATETIME ( CURRENT_TIME ( ) ," 2 năm" ) ) AS t1 JOIN ( SELECT bệnh_nhân.uniquepid,thuốc.drugname,thuốc.drugstarttime FROM thuốc JOIN bệnh_nhân ON thuốc.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE bệnh_nhân.tuổi BETWEEN 20 AND 29 AND DATETIME ( thuốc.thuốc.drugstarttime ) <_= DATETIME ( CURRENT_TIME ( ) ," 2 năm" ) ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime <t2.drugstarttime AND DATETIME ( t2.drugstarttime ) BETWEEN DATETIME ( t1.diagnosistime ) AND DATETIME ( t1.diagnosistime," 2 tháng" ) GROUP BY t2.drugname ) AS t3 WHERE t3.c1 < = 5 |
wikisql | CREATE TABLE table 71520("Đội" text,"Ô tô" text,"Tài xế" text,"Nhà tài trợ chính" text,"Chủ sở hữu" text,"Thuyền trưởng" text,"Vòng" real) | CREATE TABLE table_71520("Đội" text,"Ô_tô" text,"Tài_xế" text,"Nhà tài_trợ chính" text,"Chủ_sở_hữu" text,"Thuyền_trưởng" text,"Vòng" real) | Nhà tài trợ chính cho đội do Randy Humphrey làm chủ là gì? | Nhà tài_trợ chính cho đội do Randy_Humphrey làm_chủ là gì ? | SELECT " ( Các ) nhà tài trợ chính" FROM table 71520 WHERE "Chủ sở hữu" = 'randy humphrey' | SELECT " ( Các ) nhà_tài_trợ chính" FROM table_71520 WHERE "Chủ_sở_hữu" = "randy humphrey" |