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
mimicsql_data
CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,vị trí nhập viện text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện 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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text)
CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,vị trí_nhập_viện text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện 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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)
cho tôi xem số lượng bệnh nhân nữ đã trải qua chuyển nhịp nhĩ.
cho tôi xem số_lượng bệnh_nhân nữ đã trải qua chuyển nhịp nhĩ .
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN thủ tục ON nhân khẩu học.hadm id = thủ tục.hadm id WHERE nhân khẩu học.gender = "F" AND thủ tục.long title = "chuyển nhịp nhĩ"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN thủ_tục ON nhân_khẩu học.hadm_id = thủ_tục.hadm_id WHERE nhân_khẩu học.gender = "F" AND thủ_tục.long_title = "chuyển nhịp nhĩ"
wikisql
CREATE TABLE table 42529("Mùa giải" real,"Division" text,"Thắng" real,"Thua" real,"Hòa" real,"Vị trí cuối cùng" text,"Ghi chú" text)
CREATE TABLE table_42529("Mùa giải" real,"Division" text,"Thắng" real,"Thua" real,"Hòa" real,"Vị_trí cuối_cùng" text,"Ghi_chú" text)
Số trận hòa trung bình có được khi một đội thắng 6 và đã qua mùa giải 2004 là bao nhiêu?
Số trận hòa trung_bình có được khi một đội thắng 6 và đã qua mùa giải 2004 là bao_nhiêu ?
SELECT AVG ( "Hòa" ) FROM table 42529 WHERE "Thắng" = '6' AND "Mùa giải" > '2004'
SELECT AVG ( "Hòa" ) FROM table_42529 WHERE "Thắng" = "6" AND "Mùa giải" > "2004"
sql_create_context
CREATE TABLE table name 49(land smi INTEGER,geo id INTEGER)
CREATE TABLE table_name_49(land__smi__ INTEGER,geo_id INTEGER)
Đất nào (m2) có GEO ID nhỏ hơn 3800587900?
Đất nào ( m2 ) có GEO_ID nhỏ hơn 3800587900 ?
SELECT MIN ( land smi ) FROM table name 49 WHERE geo id < 3800587900
SELECT MIN ( land__smi_ ) FROM table_name_49 WHERE geo_id < 3800587900
wikisql
CREATE TABLE table 11283("Số mùa" text,"Ngày công chiếu" text,"Người chiến thắng" text,"Á quân" text,"Á quân thứ 2" text,"Á quân thứ 3" text)
CREATE TABLE table_11283("Số mùa" text,"Ngày công_chiếu" text,"Người chiến_thắng" text,"Á_quân" text,"Á_quân thứ 2" text,"Á_quân thứ 3" text)
Gọi tên Á hậu 2 mùa 7
Gọi tên Á_hậu 2 mùa 7
SELECT "Á quân 2" FROM table 11283 WHERE "Số mùa" = 'mùa 7'
SELECT "Á_quân 2" FROM table_11283 WHERE "Số mùa" = "mùa 7"
wikisql
CREATE TABLE table 77597("Đội chủ nhà" text,"Tỷ số của đội chủ nhà" text,"Đội khách" text,"Tỷ số của đội khách" text,"Địa điểm" text,"Đám đông" real,"Ngày" text)
CREATE TABLE table_77597("Đội chủ nhà" text,"Tỷ_số của đội chủ nhà" text,"Đội khách" text,"Tỷ_số của đội khách" text,"Địa_điểm" text,"Đám đông" real,"Ngày" text)
Trận nào đội chủ nhà ghi 8,11 (59)?
Trận nào đội chủ nhà ghi_8,11 ( 59 ) ?
SELECT "Ngày" FROM table 77597 WHERE "Tỷ số của đội nhà" = '8.11 ( 59 ) '
SELECT "Ngày" FROM table_77597 WHERE "Tỷ_số của đội nhà" = "8.11 ( 59 ) "
spider
CREATE TABLE sinh viên(stuid number,lname text,fname text,age number,sex text,major number,advisor number,city code text) CREATE TABLE has allergy(stuid number,allergy text) CREATE TABLE loại dị ứng(dị ứng text,loại dị ứng text)
CREATE TABLE sinh_viên(stuid number,lname text,fname text,age number,sex text,major number,advisor number,city_code text) CREATE TABLE has_allergy(stuid number,allergy text) CREATE TABLE loại dị_ứng(dị_ứng text,loại dị_ứng text)
Mỗi học sinh bao nhiêu tuổi và mỗi độ tuổi có bao nhiêu học sinh?
Mỗi học_sinh bao_nhiêu tuổi và mỗi độ tuổi có bao_nhiêu học_sinh ?
SELECT tuổi, COUNT ( * ) FROM học sinh GROUP BY tuổi
SELECT tuổi, COUNT ( * ) FROM học_sinh GROUP BY tuổi
eicu
CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE thuốc(mã thuốc number,bệnh nhânở lạiid number,tên thuốc text,liều lượng text,liều dùng text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE dị ứng(dị ứng number,bệnh nhân ở lại bệnh nhân number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,bệnh nhân đơn vị lưu trú 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,đơn vịthời gian xuất viện time,thời gian xuất viện time,trạng thái xả viện text) CREATE TABLE lượng đầu ra(lượng đầu ra number,bệnh nhânđơn vịở lạiid number,đường di động text,nhãn tế bào text,giá trị tế bào number,thời gian đưa ra time) CREATE TABLE quan trọng định kỳ(quan trọng 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ị(Treatmentid number,Patientunitstayid number,tên điều trị text,thời gian điều trị time) CREATE TABLE chi phí(chi phí number,uniquepid text,bệnh nhânhealthsystemstayid number,loại sự kiện text,eventid number,thời gian tính phí time,chi phí number)
CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE thuốc(mã thuốc number,bệnh nhânở lạiid number,tên thuốc text,liều_lượng text,liều dùng text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân ở lại bệnh_nhân number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,bệnh_nhân đơn_vị lưu_trú 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,đơn vịthời_gian xuất_viện time,thời_gian xuất_viện time,trạng_thái xả_viện text) CREATE TABLE lượng đầu_ra(lượng đầu_ra number,bệnh nhânđơn vịở lạiid number,đường di_động text,nhãn tế_bào text,giá_trị tế_bào number,thời_gian đưa ra time) CREATE TABLE quan_trọng định_kỳ(quan_trọng 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ị(Treatmentid number,Patientunitstayid number,tên điều_trị text,thời_gian điều_trị time) CREATE TABLE chi_phí(chi_phí number,uniquepid text,bệnh nhânhealthsystemstayid number,loại sự_kiện text,eventid number,thời_gian tính phí time,chi_phí number)
Bệnh nhân 027-28154 được làm thủ thuật lần cuối vào năm 2102 là khi nào?
Bệnh_nhân 027 - 28154 được làm thủ_thuật lần cuối vào năm 2102 là khi nào ?
SELECT điều trị.thời gian điều trị FROM điều trị WHERE điều trị.bệnh nhânunitstayid IN ( SELECT bệnh nhân.bệnh nhânunitstayid FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '02728154 ' ) ) AND STRFTIME ( 'y',Treatment.Treatmenttime ) = '2102' ORDER BY Treatment.Treatmenttime DESC LIMIT 1
SELECT điều_trị.thời_gian điều_trị FROM điều_trị WHERE điều_trị.bệnh nhânunitstayid IN ( SELECT bệnh_nhân.bệnh nhânunitstayid FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "027 28154" ) ) AND STRFTIME ( " y",Treatment.Treatmenttime ) = "2102" ORDER BY Treatment.Treatmenttime DESC LIMIT 1
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)
Đối với các bản ghi từ sản phẩm và nhà sản xuất của từng sản phẩm, hãy tìm trụ sở chính và mức trung bình của nhà sản xuất, đồng thời nhóm theo trụ sở thuộc tính, đồng thời trực quan hóa chúng bằng biểu đồ thanh và sắp xếp trục X theo thứ tự tăng dần.
Đối_với các bản ghi từ sản_phẩm và nhà_sản_xuất của từng sản_phẩm , hãy tìm trụ_sở chính và mức trung_bình của nhà_sản_xuất , đồng_thời nhóm theo trụ_sở thuộc_tính , đồng_thời trực_quan hóa chúng bằng biểu_đồ thanh và sắp_xếp trục X theo thứ_tự tăng dần .
SELECT Trụ sở chính, AVG ( Nhà sản xuất ) FROM Sản phẩm AS T1 JOIN Nhà sản xuất AS T2 ON T1.Nhà sản xuất = T2.Mã GROUP BY Trụ sở chính ORDER BY Trụ sở chính
SELECT Trụ_sở chính, AVG ( Nhà_sản_xuất ) FROM Sản_phẩm AS T1 JOIN Nhà_sản_xuất AS T2 ON T1.Nhà_sản_xuất = T2.Mã_GROUP BY Trụ_sở chính ORDER BY Trụ_sở chính
sql_create_context
CREATE TABLE table name 96(giải thưởng VARCHAR,danh mục VARCHAR)
CREATE TABLE table_name_96(giải_thưởng VARCHAR,danh_mục VARCHAR)
Giải thưởng cho sự xuất sắc trong hạng mục tamil là gì?
Giải_thưởng cho sự xuất_sắc trong hạng_mục tamil là gì ?
SELECT giải thưởng FROM table name 96 WHERE hạng mục = "xuất sắc trong tamil"
SELECT giải_thưởng FROM table_name_96 WHERE hạng_mục = "xuất_sắc trong tamil"
wikisql
CREATE TABLE table 58444("Ngày phát hành" text,"Mệnh giá" text,"Thiết kế" text,"Loại giấy" text,"Hủy bìa ngày đầu tiên" text)
CREATE TABLE table_58444("Ngày phát_hành" text,"Mệnh_giá" text,"Thiết_kế" text,"Loại giấy" text,"Hủy_bìa ngày đầu_tiên" text)
Mệnh giá của con tem phát hành ngày 8 tháng 1 năm 2009 là gì?
Mệnh_giá của con tem phát_hành ngày 8 tháng 1 năm 2009 là gì ?
SELECT "Mệnh giá" FROM table 58444 WHERE "Ngày phát hành" = '8 tháng 1 năm 2009'
SELECT "Mệnh_giá" FROM table_58444 WHERE "Ngày phát_hành" = "8 tháng 1 năm 2009"
mimic_iii
CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,số tiền number) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE cost(row id number,topic id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính text,dob time,dod time) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE icustays(row id number,chủ id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,thời gian nhập viện time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,hôn nhân status text,dân tộc text,tuổi number)
CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,số tiền number) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE cost(row_id number,topic_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod time) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE icustays(row_id number,chủ_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,thời_gian nhập_viện time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,tuổi number)
sự thay đổi trong nhịp tim của bệnh nhân 29540 đo được lúc 2101-04-21 16:00:00 so với giá trị đo được lúc 2101-04-21 15:00:00 là bao nhiêu?
sự thay_đổi trong nhịp tim của bệnh_nhân 29540 đo được lúc 2101 - 04-21_16:00:00 so với giá_trị đo được lúc 2101 - 04-21_15:00:00 là bao_nhiêu ?
SELECT ( SELECT chartevents.valuenum FROMchartevents WHERE chartevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 29540 ) ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'nhịp tim' AND d items.linksto = 'chartevents' ) AND Chartevents.charttime = '21010421 160000' ) ( SELECT chartevents.valuenum FROMchartevents WHERE chartevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 29540 ) ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'nhịp tim' AND d items.linksto = 'chartevents' ) AND Chartevents.charttime = '21010421 150000' )
SELECT ( SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 29540 ) ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "nhịp tim" AND d_items.linksto = "chartevents" ) AND Chartevents.charttime = "2101 0421 160000" ) ( SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 29540 ) ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "nhịp tim" AND d_items.linksto = "chartevents" ) AND Chartevents.charttime = "2101 0421 150000" )
wikisql
CREATE TABLE table 17634("Trạng thái" text,"Sơ tuyển" text,"Phỏng vấn" text,"Áo tắm" text,"Áo choàng dạ hội" text,"Trung bình" text)
CREATE TABLE table_17634("Trạng_thái" text,"Sơ_tuyển" text,"Phỏng_vấn" text,"Áo_tắm" text,"Áo_choàng dạ_hội" text,"Trung_bình" text)
Điểm sơ bộ liên quan đến điểm phỏng vấn 8,488 là bao nhiêu?
Điểm sơ_bộ liên_quan đến điểm phỏng_vấn 8,488 là bao_nhiêu ?
SELECT COUNT ( "Vòng sơ khảo" ) FROM table 17634 WHERE "Phỏng vấn" = '8.488'
SELECT COUNT ( "Vòng sơ_khảo" ) FROM table_17634 WHERE "Phỏng_vấn" = "8.488"
wikisql
CREATE TABLE table 79704("Hạng hạng" real,"Làn đường" real,"Vận động viên" text,"Quốc tịch" text,"Thời gian" real,"Phản ứng" real)
CREATE TABLE table_79704("Hạng hạng" real,"Làn_đường" real,"Vận_động_viên" text,"Quốc_tịch" text,"Thời_gian" real,"Phản_ứng" real)
Đường của Nga khi họ được xếp trước 1 là gì?
Đường của Nga khi họ được xếp trước 1 là gì ?
SELECT MAX ( "Làn đường" ) FROM table 79704 WHERE "Quốc tịch" = 'russia' AND "Xếp hạng" < '1'
SELECT MAX ( "Làn_đường" ) FROM table_79704 WHERE "Quốc_tịch" = "russia" AND "Xếp_hạng" < "1"
sql_create_context
CREATE TABLE table name 58(record VARCHAR,high rebounds VARCHAR)
CREATE TABLE table_name_58(record VARCHAR,high_rebounds VARCHAR)
Kỷ lục khi George Hill (11) có số lần bật lại cao là gì?
Kỷ_lục khi George_Hill ( 11 ) có số lần bật lại cao là gì ?
SELECT record FROM table name 58 WHERE high rebounds = "george hill ( 11 ) "
SELECT record FROM table_name_58 WHERE high_rebounds = "george hill ( 11 ) "
wikisql
CREATE TABLE table 17521("Năm" real,"Đơn nam" text,"Đơn nữ" text,"Đôi nam" text,"Đôi nữ" text,"Đôi nam nữ" text)
CREATE TABLE table_17521("Năm" real,"Đơn_nam" text,"Đơn_nữ" text,"Đôi nam" text,"Đôi nữ" text,"Đôi nam_nữ" text)
Ai là người đôi nam khi đơn nữ là mette s rensen?
Ai là người đôi nam khi đơn_nữ là mette s rensen ?
SELECT "Đôi nam" FROM bảng 17521 WHERE "Đơn nữ" = 'Mette Sørensen'
SELECT "Đôi nam" FROM bảng 17521 WHERE "Đơn_nữ" = "Mette_Sørensen"
scholar
CREATE TABLE paper(paperid int,title varchar,venueid int,year int,numciting int,numcitedby int,journalid int) CREATE TABLE field(fieldid int) CREATE TABLE cụm từ khóa(keyphraseid int,keyphrasename varchar) CREATE TABLE tạp chí(tạp chí int,tên tạp chí varchar) CREATE TABLE tập dữ liệu(bộ dữ liệu int,tên tập dữ liệu varchar) CREATE TABLE paperdataset(papers int,datasets int) CREATE TABLE paperfield(fieldid int,paperid int) CREATE TABLE paperkeyphrase(paperid int,keyphraseid int) CREATE TABLE cite(citingpaperid int,citedpaperid int) CREATE TABLE tác giả(authorid int,tên tác giả varchar) CREATE TABLE địa điểm(địa điểm int,tên địa điểm varchar) CREATE TABLE viết(paperid int,authorid int)
CREATE TABLE paper(paperid int,title varchar,venueid int,year int,numciting int,numcitedby int,journalid int) CREATE TABLE field(fieldid int) CREATE TABLE cụm_từ khóa(keyphraseid int,keyphrasename varchar) CREATE TABLE tạp_chí(tạp_chí int,tên tạp_chí varchar) CREATE TABLE tập dữ_liệu(bộ dữ_liệu int,tên tập dữ_liệu varchar) CREATE TABLE paperdataset(papers int,datasets int) CREATE TABLE paperfield(fieldid int,paperid int) CREATE TABLE paperkeyphrase(paperid int,keyphraseid int) CREATE TABLE cite(citingpaperid int,citedpaperid int) CREATE TABLE tác_giả(authorid int,tên tác_giả varchar) CREATE TABLE địa_điểm(địa_điểm int,tên địa_điểm varchar) CREATE TABLE viết(paperid int,authorid int)
giấy tờ nào sử dụng WordNet hoặc Dbpedia?
giấy_tờ nào sử_dụng WordNet hoặc Dbpedia ?
SELECT DISTINCT paper.paperid FROM tập dữ liệu,giấy,tập dữ liệu giấy WHERE tập dữ liệu.datasetname IN ( 'WordNet','Dbpedia' ) AND paperdataset.datasetid = tập dữ liệu.datasetid AND paper.paperid = paperdataset.paperid GROUP BY giấy.paperid
SELECT DISTINCT paper.paperid FROM tập dữ_liệu,giấy,tập dữ_liệu giấy WHERE tập dữ_liệu.datasetname IN ( "WordNet"," Dbpedia " ) AND paperdataset.datasetid = tập dữ_liệu.datasetid AND paper.paperid = paperdataset.paperid GROUP BY giấy.paperid
sede
CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE Huy hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,Ngày hủy kích hoạt time,DeactivationModeratorId number) CREATE TABLE Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,Số tiền thưởng number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,Ngày phê duyệt time) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Nội dung text,OwnerUserId number,DeletionUserId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,Ngày tạo time,Tên hiển thị người dùng text,ID người dùng number,Giấy phép nội dung text)
CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE Huy_hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,Ngày hủy_kích hoạt time,DeactivationModeratorId number) CREATE TABLE Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,Số tiền thưởng number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,Ngày phê_duyệt time) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Nội_dung text,OwnerUserId number,DeletionUserId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,Ngày tạo time,Tên hiển_thị người dùng text,ID người dùng number,Giấy_phép nội_dung text)
Tổng số câu hỏi trên mỗi thẻ.
Tổng_số câu hỏi trên mỗi thẻ .
SELECT DATEADD ( mm, ( YEAR ( Posts.CreationDate ) 1900 ) * 12 MONTH ( Posts.CreationDate ) 1,0 ) AS Tháng,Tags.TagName, COUNT ( * ) AS Câu hỏi FROM Thẻ LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Bài viết ON Post.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Post.PostTypeId WHERE PostTypes.Name = 'Câu hỏi' AND Post.CreationDate >= '20150901' AND Post.CreationDate <= '20151031' GROUP BY NĂM ( Posts.CreationDate ) ,MONTH ( Posts.CreationDate ) ,Tags.TagName ORDER BY NĂM ( Posts.CreationDate ) ,THÁNG ( Posts.CreationDate ) ,Tags.TagName
SELECT DATE ADD ( mm, ( YEAR ( Posts.CreationDate ) 1900 ) * 12 MONTH ( Posts.CreationDate ) 1,0 ) AS Tháng,Tags.TagName, COUNT ( * ) AS Câu hỏi FROM Thẻ LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Bài viết ON Post.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Post.PostTypeId WHERE PostTypes.Name = "Câu_hỏi" AND Post.CreationDate > = "2015 0901" AND Post.CreationDate < = "2015 1031" GROUP BY NĂM ( Posts.CreationDate ) ,MONTH ( Posts.CreationDate ) ,Tags.TagName ORDER BY NĂM ( Posts.CreationDate ) ,THÁNG ( Posts.CreationDate ) ,Tags.TagName
wikisql
CREATE TABLE table 77290("Vòng" real,"Chọn" real,"Người chơi" text,"Vị trí" text,"Trường" text)
CREATE TABLE table_77290("Vòng" real,"Chọn" real,"Người chơi" text,"Vị_trí" text,"Trường" text)
đã làm vị trí gì a. j. chơi thử xem ai được chọn ở vòng 5?
đã làm vị_trí gì a . j . chơi thử xem ai được chọn ở vòng 5 ?
SELECT "Vị trí" FROM table 77290 WHERE "Vòng" = '5' AND "Người chơi" = 'a.j.feeley'
SELECT "Vị_trí" FROM table_77290 WHERE "Vòng" = "5" AND "Người chơi" = "a.j.feeley"
wikisql
CREATE TABLE table 25193("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm số" text,"Điểm cao" text,"Số lần bật lại cao" text,"Hỗ trợ cao" text,"Điểm danh theo địa điểm" text,"Bản ghi" text)
CREATE TABLE table_25193("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm_số" text,"Điểm cao" text,"Số lần bật lại cao" text,"Hỗ_trợ cao" text,"Điểm_danh theo địa_điểm" text,"Bản_ghi" text)
Kể tên các điểm cao của mo williams, lebron james, j.j. hickson (6)
Kể tên các điểm cao của mo williams , lebron_james , j . j . hickson ( 6 )
SELECT COUNT ( "Điểm cao" ) FROM table 25193 WHERE "Số lần bật lại cao" = 'Mo Williams,LeBron James,J.J.Hickson ( 6 ) '
SELECT COUNT ( "Điểm cao" ) FROM table_25193 WHERE "Số lần bật lại cao" = "Mo_Williams,LeBron_James,J.J.Hickson ( 6 ) "
sql_create_context
CREATE TABLE manager award(player id VARCHAR) CREATE TABLE player(name first VARCHAR,name last VARCHAR,player id VARCHAR)
CREATE TABLE manager_award(player_id VARCHAR) CREATE TABLE player(name_first VARCHAR,name_last VARCHAR,player_id VARCHAR)
Tên, họ và id của người quản lý đã giành được nhiều giải thưởng người quản lý nhất là gì?
Tên , họ và id của người_quản_lý đã giành được nhiều giải_thưởng người_quản_lý nhất là gì ?
SELECT T1.name first,T1.name last,T2.player id FROM player AS T1 JOIN manager award AS T2 ON T1.player id = T2.player id GROUP BY T2.player id ORDER BY COUNT ( * ) DESC LIMIT 1
SELECT T1.name_first,T1.name_last,T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY COUNT ( * ) DESC LIMIT 1
atis
CREATE TABLE Dual carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,connections int,thời gian khởi hành int,hãng vận chuyển kép text,ngày bay text,id chuyến bay int,số chuyến bay int,từ sân bay varchar,mã bữa ăn text,điểm dừng int,thời gian đã trôi qua int,đến sân bay varchar) CREATE TABLE dịch vụ mặt đất(mã thành phố text,airport code text,transport type text,ground fare int) CREATE TABLE tháng(month number int,month name text) CREATE TABLE máy bay(aircraft code varchar,aircraft description varchar,nhà sản xuất varchar,basic type varchar,động cơ int,động cơ varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,tải trả int,tốc độ bay int,phạm vi dặm int,có áp suất varchar) CREATE TABLE time interval(giai đoạn text,begin time int,end time int) CREATE TABLE food service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE giá vé cơ sở(mã cơ sở giá vé text,hạng đặt text,loại loại text,cao cấp text,phổ thông text,giảm giá text,đêm text,mùa text,ngày cơ sở text) CREATE TABLE giá vé(fare id int,from airport varchar,to airport varchar,fare basis code text,fare airline text,restriction code text,one direction cost int,round trip cost int,round trip required varchar) CREATE TABLE chuyến bay stop(flight id int,stop number int,ngày dừng text,sân bay dừng text,thời gian đến int,hãng hàng không đến text,số chuyến bay đến int,thời gian khởi hành int,hãng hàng không khởi hành text,số chuyến bay khởi hành int,thời gian dừng int) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) CREATE TABLE khoang class(khoang varchar,class type varchar) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE chuyến bay fare(flight id int,giá vé id int) CREATE TABLE chuyến bay chân(chuyến bay id int,số chân int,chuyến bay chân int) CREATE TABLE hạn chế(mã hạn chế text,mua trước int,điểm dừng text,thứ bảy ở lại bắt buộc text,lưu trú tối thiểu int,lưu trú tối đa int,ứng dụng text,no discounts text) CREATE TABLE date day(month number int,day number int,year int,day name varchar) CREATE TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE sân bay(airport code varchar,airport name text,Airport location text,state code varchar,country name varchar,time zone code varchar,minimum connect time int) CREATE TABLE city(city code varchar,city name varchar,state code varchar,country name varchar,time zone code varchar) CREATE TABLE ngày(ngày code varchar,day name varchar) CREATE TABLE code description(code varchar,description text)
CREATE TABLE Dual_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,connections int,thời_gian khởi_hành int,hãng vận_chuyển kép text,ngày bay text,id chuyến bay int,số chuyến bay int,từ_sân bay varchar,mã_bữa ăn text,điểm dừng int,thời_gian đã trôi qua int,đến_sân bay varchar) CREATE TABLE dịch_vụ mặt_đất(mã_thành phố text,airport_code text,transport_type text,ground_fare int) CREATE TABLE tháng(month_number int,month_name text) CREATE TABLE máy_bay(aircraft_code varchar,aircraft_description varchar,nhà_sản_xuất varchar,basic_type varchar,động_cơ int,động_cơ varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,tải_trả int,tốc_độ bay int,phạm vi_dặm int,có áp_suất varchar) CREATE TABLE time_interval(giai_đoạn text,begin_time int,end_time int) CREATE TABLE food_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE giá vé_cơ sở(mã_cơ sở giá vé text,hạng_đặt text,loại_loại text,cao_cấp text,phổ_thông text,giảm_giá text,đêm text,mùa text,ngày cơ_sở text) CREATE TABLE giá vé(fare_id int,from_airport varchar,to_airport varchar,fare_basis_code text,fare_airline text,restriction_code text,one_direction_cost int,round_trip_cost int,round_trip_required varchar) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,ngày dừng text,sân_bay dừng text,thời_gian đến int,hãng hàng_không đến text,số_chuyến bay đến int,thời_gian khởi_hành int,hãng hàng_không khởi_hành text,số_chuyến bay khởi_hành int,thời_gian dừng int) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) CREATE TABLE khoang_class(khoang varchar,class_type varchar) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE chuyến bay_fare(flight_id int,giá vé_id int) CREATE TABLE chuyến bay_chân(chuyến bay_id int,số chân int,chuyến bay chân int) CREATE TABLE hạn_chế(mã hạn_chế text,mua trước int,điểm dừng text,thứ bảy_ở lại_bắt buộc text,lưu_trú tối_thiểu int,lưu_trú tối_đa int,ứng_dụng text,no_discounts text) CREATE TABLE date_day(month_number int,day_number int,year int,day_name varchar) CREATE TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE sân_bay(airport_code varchar,airport_name text,Airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,minimum_connect_time int) CREATE TABLE city(city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code varchar) CREATE TABLE ngày(ngày_code varchar,day_name varchar) CREATE TABLE code_description(code varchar,description text)
các chuyến bay từ MONTREAL đến LAS VEGAS
các chuyến bay từ MONTREAL đến LAS VEGAS
SELECT DISTINCT chuyến bay.flight id FROM sân bay service AS AIRPORT SERVICE 0,airport service AS AIRPORT SERVICE 1,city AS CITY 0,city AS CITY 1,flight WHERE CITY 0.city code = AIRPORT SERVICE 0.city code AND CITY 0.city name = 'MONTREAL' AND CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'LAS VEGAS' AND chuyến bay.from airport = AIRPORT SERVICE 0.airport code AND chuyến bay.to airport = AIRPORT SERVICE 1.airport code
SELECT DISTINCT chuyến bay.flight_id FROM sân bay_service AS AIRPORT_SERVICE_0,airport_service AS AIRPORT_SERVICE_1,city AS CITY_0,city AS CITY_1,flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = "MONTREAL" AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "LAS_VEGAS" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code AND chuyến bay.to_airport = AIRPORT_SERVICE_1.airport_code
sql_create_context
CREATE TABLE table name 45(địa điểm VARCHAR,group VARCHAR)
CREATE TABLE table_name_45(địa_điểm VARCHAR,group VARCHAR)
Nhóm có g1 ở địa điểm nào?
Nhóm có g1 ở địa_điểm nào ?
SELECT địa điểm FROM tên bảng 45 WHERE group = "g1"
SELECT địa_điểm FROM tên_bảng_45 WHERE group = "g1"
squall
CREATE TABLE table 204 477(id number,"pos" number,"no" number,"driver" text,"team" text,"laps" number,"time/retired" text,"grid" number,"điểm" number)
CREATE TABLE table_204_477(id number,"pos" number,"no" number,"driver" text,"team" text,"laps" number,"time/retired" text,"grid" number,"điểm" number)
tổng số tay đua không hoàn thành cuộc đua là bao nhiêu?
tổng_số tay đua không hoàn_thành cuộc đua là bao_nhiêu ?
SELECT COUNT ( "trình điều khiển" ) FROM bảng 204 477 WHERE "vòng" < ( SELECT MAX ( "vòng" ) FROM bảng 204 477 )
SELECT COUNT ( "trình điều_khiển" ) FROM bảng_204_477 WHERE "vòng" < ( SELECT MAX ( "vòng" ) FROM bảng_204_477 )
criteria2sql
CREATE TABLE table train 272("id" int,"fasting plasma glucose fpg" float,"độ thanh thải creatinine cl" float,"baseline hemoglobin hgb" float,"sensitivesation on pra" bool,"age" float,"MOUSE" float)
CREATE TABLE table_train_272("id" int,"fasting_plasma_glucose_fpg" float,"độ thanh_thải creatinine cl" float,"baseline_hemoglobin_hgb" float,"sensitivesation_on_pra" bool,"age" float,"MOUSE" float)
bệnh nhân phải có nồng độ glucose huyết lúc đói ( fpg ) trong khoảng từ 7,8 mm ( 140 mg / dl ) đến 15 mm ( 270 mg / dl ) vào ngày 2
bệnh_nhân phải có nồng_độ glucose_huyết lúc đói ( fpg ) trong khoảng từ 7,8 mm ( 140 mg / dl ) đến 15 mm ( 270 mg / dl ) vào ngày _ 2
SELECT * FROM table train 272 WHERE nhịn ăn plasma glucose fpg >= 7,8 AND nhịn ăn plasma glucose fpg <= 15
SELECT * FROM table_train_272 WHERE nhịn ăn_plasma_glucose_fpg > = 7,8 AND nhịn ăn_plasma_glucose_fpg < = 15
mimicsql_data
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 lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian phân bổ text,năm nhập học text)
CREATE TABLE 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 lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian phân_bổ text,năm nhập_học text)
cung cấp số lượng bệnh nhân mắc bệnh nguyên phát là suy tim sung huyết và số ngày nằm viện lớn hơn 13?
cung_cấp số_lượng bệnh_nhân mắc bệnh nguyên_phát là suy tim sung_huyết và số ngày nằm viện lớn hơn 13 ?
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 = "SUY TIM TUYỆT VỜI" AND nhân khẩu học.ngày stay > "13"
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 = "SUY_TIM TUYỆT_VỜI" AND nhân_khẩu học.ngày_stay >"13"
wikisql
CREATE TABLE table 71262("Đô thị nông thôn(RM)" text,"Số RM." text,"SARM Div.No." text,"Điều tra dân số Div.No." text,"Dân số(2011)" real,"Dân số(2006)" real,"Thay đổi(%)" real,"Diện tích đất(km\u00b2)" real,"Mật độ dân số(mỗi km\u00b2)" real)
CREATE TABLE table_71262("Đô_thị nông_thôn(RM)" text,"Số RM." text,"SARM_Div.No." text,"Điều_tra dân_số Div.No." text,"Dân_số(2011)" real,"Dân_số(2006)" real,"Thay_đổi(%)" real,"Diện_tích đất(km\_u00b2)" real,"Mật_độ dân_số(mỗi km\_u00b2)" real)
Sự thay đổi trung bình để có diện tích đất là 546,74 và mật độ dân số lớn hơn 0,5 là bao nhiêu?
Sự thay_đổi trung_bình để có diện_tích đất là 546,74 và mật_độ dân_số lớn hơn 0,5 là bao_nhiêu ?
SELECT AVG ( "Thay đổi ( ) " ) FROM table 71262 WHERE "Diện tích đất ( kmu00b2 ) " = '546,74' AND "Mật độ dân số ( trên kmu00b2 ) " > '0,5'
SELECT AVG ( "Thay_đổi ( ) " ) FROM table_71262 WHERE "Diện_tích đất ( kmu00b2 ) " = "546,74" AND "Mật_độ dân_số ( trên kmu00b2 ) " > "0,5"
squall
CREATE TABLE table 203 699(id number,"tên" text,"nguồn gốc" text,"kích thước" text,"màu hoa" text,"loại hoa" text)
CREATE TABLE table_203_699(id number,"tên" text,"nguồn_gốc" text,"kích_thước" text,"màu hoa" text,"loại hoa" text)
tổng số giống cây trồng được liệt kê trên bảng là bao nhiêu?
tổng_số giống cây_trồng được liệt_kê trên bảng là bao_nhiêu ?
SELECT COUNT ( "tên" ) FROM bảng 203 699
SELECT COUNT ( "tên" ) FROM bảng_203_699
sql_create_context
CREATE TABLE table name 47(new zealand INTEGER,hong kong INTEGER)
CREATE TABLE table_name_47(new_zealand INTEGER,hong_kong INTEGER)
Giá trị New Zealand cao nhất có giá trị Hồng Kông nhỏ hơn 0 là bao nhiêu?
Giá_trị New_Zealand cao nhất có giá_trị Hồng_Kông nhỏ hơn 0 là bao_nhiêu ?
SELECT MAX ( new zealand ) FROM table name 47 WHERE hong kong < 0
SELECT MAX ( new_zealand ) FROM table_name_47 WHERE hong_kong < 0
wikisql
CREATE TABLE table 70182("Năm" real,"Khung xe" text,"Động cơ" text,"Lốp xe" text,"Điểm" real)
CREATE TABLE table_70182("Năm" real,"Khung xe" text,"Động_cơ" text,"Lốp xe" text,"Điểm" real)
Ford DFZ 3.5 V8 được bao nhiêu điểm?
Ford DFZ_3.5 V8 được bao_nhiêu điểm ?
SELECT SUM ( "Điểm" ) FROM bảng 70182 WHERE "Động cơ" = 'ford dfz 3.5 v8'
SELECT SUM ( "Điểm" ) FROM bảng_70182 WHERE "Động_cơ" = "ford dfz 3.5_v8"
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 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,amount number) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính text,dob time,dod time) 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 icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,admission location text,xả vị trí 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 chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE biểu đồ(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,tiêu đề dài text)
CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value 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 inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod time) 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 icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,xả_vị_trí 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 chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE biểu_đồ(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,tiêu_đề dài text)
đếm số lần bệnh nhân 31880 đi tiểu vào ngày 07/01/năm ngoái.
đếm số lần bệnh_nhân 31880 đi_tiểu vào ngày 07/01 / năm_ngoái .
SELECT COUNT ( * ) FROM outevents WHERE outevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 31880 ) ) AND outevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'void' AND d items.linksto = 'outputevents' ) AND DATETIME ( outputevents.charttime,'start of Year' ) = DATETIME ( CURRENT TIME ( ) ,'bắt đầu năm','1 năm' ) AND STRFTIME ( 'md',outputevents.charttime ) = '0107'
SELECT COUNT ( * ) FROM outevents WHERE outevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 31880 ) ) AND outevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "void" AND d_items.linksto = "outputevents" ) AND DATETIME ( outputevents.charttime,"start of_Year" ) = DATETIME ( CURRENT_TIME ( ) ,"bắt_đầu năm"," 1 năm" ) AND STRFTIME ( " m d",outputevents.charttime ) = "0107"
sql_create_context
CREATE TABLE table name 10(episode VARCHAR,origin artist VARCHAR,kết quả VARCHAR,thứ tự số VARCHAR)
CREATE TABLE table_name_10(episode VARCHAR,origin_artist VARCHAR,kết_quả VARCHAR,thứ tự__số VARCHAR)
Tập nào có Hoagy carmichael an toàn với đơn hàng 5?
Tập nào có Hoagy_carmichael an_toàn với đơn hàng 5 ?
SELECT tập FROM table name 10 WHERE result = "safe" AND order number = "5" AND original artist = "hoagy carmichael"
SELECT tập FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"
sql_create_context
CREATE TABLE table 24908692 5(phút INTEGER,field goals VARCHAR)
CREATE TABLE table_24908692_5(phút INTEGER,field_goals VARCHAR)
Số phút tối đa liên quan đến chính xác 70 bàn thắng là bao nhiêu?
Số phút tối_đa liên_quan đến chính_xác 70 bàn thắng là bao_nhiêu ?
SELECT MAX ( phút ) FROM bảng 24908692 5 WHERE trường mục tiêu = 70
SELECT MAX ( phút ) FROM bảng_24908692_5 WHERE trường_mục_tiêu = 70
wikisql
CREATE TABLE table 54532("Xếp hạng Điểm" text,"Câu lạc bộ" text,"Số lần xuất hiện so với các mùa" text,"Tỷ lệ xuất hiện" text,"Xếp hạng PPG" text)
CREATE TABLE table_54532("Xếp_hạng Điểm" text,"Câu_lạc_bộ" text,"Số lần xuất_hiện so với các mùa" text,"Tỷ_lệ xuất_hiện" text,"Xếp_hạng PPG" text)
Xếp hạng điểm của Chicago Fire là gì?
Xếp hạng điểm của Chicago_Fire là gì ?
SELECT "Xếp hạng điểm" FROM table 54532 WHERE "Câu lạc bộ" = 'cháy Chicago'
SELECT "Xếp_hạng điểm" FROM table_54532 WHERE "Câu_lạc_bộ" = "cháy Chicago"
sql_create_context
CREATE TABLE table name 49(trụ sở chính VARCHAR,gõ VARCHAR)
CREATE TABLE table_name_49(trụ_sở chính VARCHAR,gõ VARCHAR)
Trụ sở chính là gì khi Loại là Cổng thông tin trực tuyến độc lập?
Trụ_sở chính là gì khi Loại là Cổng thông_tin trực_tuyến độc_lập ?
SELECT trụ sở chính FROM table name 49 WHERE type = "cổng thông tin trực tuyến độc lập"
SELECT trụ_sở chính FROM table_name_49 WHERE type = "cổng thông_tin trực_tuyến độc_lập"
mimicsql_data
CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,tên text,tình trạng hôn nhân text,tuổi text,nghề nghiệp text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập cảnh text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn flag text,nhập vị trí text,xả vị trí text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện text,dischtime text,năm nhập viện text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text)
CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,tên text,tình_trạng hôn_nhân text,tuổi text,nghề_nghiệp text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập cảnh text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,nhập_vị_trí text,xả_vị_trí text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện text,dischtime text,năm nhập_viện text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text)
có bao nhiêu bệnh nhân sinh trước năm 2056 có dịch xét nghiệm là cổ trướng?
có bao_nhiêu bệnh_nhân sinh trước năm 2056 có dịch xét_nghiệm là cổ_trướng ?
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN lab ON nhân khẩu học.hadm id = lab.hadm id WHERE nhân khẩu học.dob year < "2056" AND lab.fluid = "cổ trướng"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN lab ON nhân_khẩu học.hadm_id = lab.hadm_id WHERE nhân_khẩu học.dob_year <"2056" AND lab.fluid = "cổ_trướng"
wikisql
CREATE TABLE table 1045("Người chơi" text,"Vị trí" text,"Người bắt đầu" text,"Số lần chạm bóng" real,"Thêm điểm" real,"Mục tiêu trên sân" real,"Điểm" real)
CREATE TABLE table_1045("Người chơi" text,"Vị_trí" text,"Người bắt_đầu" text,"Số lần chạm bóng" real,"Thêm điểm" real,"Mục_tiêu trên sân" real,"Điểm" real)
Đặt tên cho món khai vị cho schulte
Đặt tên cho món khai_vị cho schulte
SELECT "Người bắt đầu" FROM table 1045 WHERE "Người chơi" = 'Schulte'
SELECT "Người bắt_đầu" FROM table_1045 WHERE "Người chơi" = "Schulte"
sede
CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Tiêu đề text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Vị trí text,Giới thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE ReviewRejectionLý do(Id number,Tên text,Mô tả text,PostTypeId number) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Comments(Id number,PostId number,Điểm number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Nhận xét text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Đề xuấtChỉnh sửa(Id number,PostId number,CreationDate time,Ngày phê duyệt time,Ngày từ chối time,OwnerUserId number,Nhận xét text,Text text,Tiêu đề text,Thẻ text,RevisionGUID khác)
CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Tiêu_đề text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Vị_trí text,Giới_thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE ReviewRejectionLý do(Id number,Tên text,Mô_tả text,PostTypeId number) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Comments(Id number,PostId number,Điểm number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Nhận_xét text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Đề_xuấtChỉnh sửa(Id number,PostId number,CreationDate time,Ngày phê_duyệt time,Ngày từ_chối time,OwnerUserId number,Nhận_xét text,Text text,Tiêu_đề text,Thẻ text,RevisionGUID khác)
Câu hỏi với câu trả lời được chấp nhận.
Câu_hỏi với câu trả_lời được chấp_nhận .
SELECT COUNT ( Questions.Id ) FROM Bài viết AS Câu hỏi WHERE Câu hỏi.CreationDate BETWEEN '20161114' AND '20161214'
SELECT COUNT ( Questions.Id ) FROM Bài viết AS Câu_hỏi WHERE Câu_hỏi.CreationDate BETWEEN "2016 1114" AND "2016 1214"
sql_create_context
CREATE TABLE table name 47(câu lạc bộ VARCHAR,thắng VARCHAR,thua VARCHAR,bàn bàn cho VARCHAR)
CREATE TABLE table_name_47(câu_lạc_bộ VARCHAR,thắng VARCHAR,thua VARCHAR,bàn_bàn_cho VARCHAR)
Câu lạc bộ nào có ít hơn 10 trận thua, ít hơn 55 bàn thắng và 13 trận thắng?
Câu_lạc_bộ nào có ít hơn 10 trận thua , ít hơn 55 bàn thắng và 13 trận thắng ?
SELECT câu lạc bộ FROM tên bảng 47 WHERE thua < 10 AND bàn thắng cho < 55 AND thắng = 13
SELECT câu_lạc_bộ FROM tên_bảng_47 WHERE thua < 10 AND bàn thắng_cho < 55 AND thắng = 13
mimicsql_data
CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text)
CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)
cho tôi biết số lượng bệnh nhân có loại nhập viện tự chọn và tên xét nghiệm là clorua?
cho tôi biết số_lượng bệnh_nhân có loại nhập_viện tự chọn và tên xét_nghiệm là clorua ?
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN lab ON nhân khẩu học.hadm id = lab.hadm id WHERE nhân khẩu học.admission type = "TÙY CHỌN" AND lab.label = "Clorua"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN lab ON nhân_khẩu học.hadm_id = lab.hadm_id WHERE nhân_khẩu học.admission_type = "TÙY_CHỌN" AND lab.label = "Clorua"
sql_create_context
CREATE TABLE table 1193568 1(ngày bầu cử VARCHAR,khu vực bầu cử VARCHAR)
CREATE TABLE table_1193568_1(ngày_bầu_cử VARCHAR,khu_vực bầu_cử VARCHAR)
ngày bầu cử ở đâu là omata
ngày bầu_cử ở đâu là omata
SELECT ngày bầu cử FROM bảng 1193568 1 WHERE khu vực bầu cử = "Omata"
SELECT ngày bầu_cử FROM bảng_1193568_1 WHERE khu_vực bầu_cử = "Omata"
wikisql
CREATE TABLE table 26735("Số sê-ri." real,"Số tập." real,"Tiêu đề" text,"Đạo diễn" text,"Viết bởi" text,"Xếp hạng Vương quốc Anh(Xếp hạng BBC2)" text,"Ngày phát sóng ban đầu" text)
CREATE TABLE table_26735("Số sê-ri." real,"Số tập." real,"Tiêu_đề" text,"Đạo_diễn" text,"Viết bởi" text,"Xếp_hạng Vương_quốc_Anh(Xếp_hạng BBC2)" text,"Ngày phát_sóng ban_đầu" text)
Kể tên tổng số đạo diễn cho ' france : cap gris-nez đến mont-saint-michel
Kể tên tổng_số đạo_diễn cho ' france : cap gris-nez đến mont-saint-michel
SELECT COUNT ( "Đạo diễn" ) FROM table 26735 WHERE "Title" = ' France Cap GrisNez to MontSaintMichel '
SELECT COUNT ( "Đạo_diễn" ) FROM table_26735 WHERE "Title" = "France Cap GrisNez to_MontSaintMichel"
nvbench
CREATE TABLE đại học(School ID int,Trường text,Địa điểm text,Thành lập real,Liên kết text,Đăng ký real,Biệt danh text,Primary conference text) CREATE TABLE Basketball match(Team ID int,School ID int,Tên đội text,ACC Regular Season text,ACC Percent text,ACC Home text,ACC Road text,All Games text,All Games Percent int,All Home text,All Road text,All Neutral text)
CREATE TABLE đại_học(School_ID int,Trường text,Địa_điểm text,Thành_lập real,Liên_kết text,Đăng_ký real,Biệt_danh text,Primary_conference text) CREATE TABLE Basketball_match(Team_ID int,School_ID int,Tên_đội text,ACC_Regular_Season text,ACC_Percent text,ACC_Home text,ACC_Road text,All_Games text,All_Games_Percent int,All_Home text,All_Road text,All_Neutral text)
Biểu đồ thanh hiển thị sự phân bổ của ACC Road và mức trung bình của School ID cũng như nhóm theo thuộc tính ACC Road và xếp hạng từ cao xuống thấp theo tổng số.
Biểu_đồ thanh_hiển_thị sự phân_bổ của ACC_Road và mức trung_bình của School_ID cũng như nhóm theo thuộc_tính ACC_Road và xếp_hạng từ cao xuống thấp theo tổng_số .
SELECT ACC Road, AVG ( School ID ) FROM bóng rổ match GROUP BY ACC Road ORDER BY AVG ( School ID ) DESC
SELECT ACC_Road, AVG ( School_ID ) FROM bóng rổ_match GROUP BY ACC_Road ORDER BY AVG ( School_ID ) DESC
atis
CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,kết nối int,departure time int,dual carrier text,flight days text,flight id int,flight number int,from airport varchar,mã bữa ăn text,điểm dừng int,thời gian đã qua int,đến sân bay varchar) CREATE TABLE ngày(mã ngày varchar,tên ngày varchar) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE ngày ngày(số tháng int,số ngày int,năm int,tên ngày varchar) CREATE TABLE ngăn class(ngăn varchar,loại loại varchar) CREATE TABLE máy bay(mã máy bay varchar,mô tả máy bay varchar,nhà sản xuất varchar,loại cơ bản varchar,động cơ int,động cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,tải trả int,tốc độ bay int,phạm vi dặm int,có áp suất varchar) CREATE TABLE chuyến bay stop(flight id int,stop number int,stop days text,stop airport text,arrival time int,arrival airline text,arrival flight number int,departure time int,departure airport text,departure flight number int,stop time int) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE chuyến bay leg(flight id int,leg number int,chặng bay int) CREATE TABLE food service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLE limit(restriction code text,advance purchase int,stopovers text,saturday stay required text,minimum stay int,thời gian lưu trú tối đa int,ứng dụng text,không giảm giá text) CREATE TABLE Dual carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE giá vé(mã giá vé int,from airport varchar,to airport varchar,fare basis code text,fare airline text,restriction code text,one direction cost int,round trip cost int,round trip required varchar) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE chuyến bay fare(flight id int,fare id int) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE Airport(airport code varchar,airport name text,airport location text,state code varchar,country name varchar,time zone code varchar,minimum connect time int) CREATE TABLE time interval(Period text,begin time int,end time int) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) CREATE TABLE thành phố(city code varchar,tên thành phố varchar,mã tiểu bang varchar,tên quốc gia varchar,mã khu vực thời gian varchar) CREATE TABLE code description(code varchar,description text) CREATE TABLE giá vé basis(mã cơ sở giá vé text,hạng đặt text,loại loại text,cao cấp text,phổ thông text,giảm giá text,đêm text,mùa text,cơ bản ngày text)
CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,kết_nối int,departure_time int,dual_carrier text,flight_days text,flight_id int,flight_number int,from_airport varchar,mã_bữa ăn text,điểm dừng int,thời gian_đã qua int,đến_sân bay varchar) CREATE TABLE ngày(mã ngày varchar,tên_ngày varchar) CREATE TABLE tháng(số_tháng int,tên_tháng text) CREATE TABLE ngày_ngày(số_tháng int,số_ngày int,năm int,tên_ngày varchar) CREATE TABLE ngăn_class(ngăn varchar,loại_loại varchar) CREATE TABLE máy_bay(mã_máy bay varchar,mô_tả máy_bay varchar,nhà_sản_xuất varchar,loại_cơ bản varchar,động_cơ int,động_cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,tải_trả int,tốc_độ bay int,phạm vi_dặm int,có áp_suất varchar) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,stop_days text,stop_airport text,arrival_time int,arrival_airline text,arrival_flight_number int,departure_time int,departure_airport text,departure_flight_number int,stop_time int) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE chuyến bay_leg(flight_id int,leg_number int,chặng_bay int) CREATE TABLE food_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLE limit(restriction_code text,advance_purchase int,stopovers text,saturday_stay_required text,minimum_stay int,thời_gian lưu_trú tối_đa int,ứng_dụng text,không_giảm giá text) CREATE TABLE Dual_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE giá vé(mã_giá vé int,from_airport varchar,to_airport varchar,fare_basis_code text,fare_airline text,restriction_code text,one_direction_cost int,round_trip_cost int,round_trip_required varchar) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE chuyến bay_fare(flight_id int,fare_id int) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE Airport(airport_code varchar,airport_name text,airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,minimum_connect_time int) CREATE TABLE time_interval(Period text,begin_time int,end_time int) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) CREATE TABLE thành_phố(city_code varchar,tên_thành phố varchar,mã_tiểu_bang varchar,tên_quốc gia varchar,mã_khu vực_thời_gian varchar) CREATE TABLE code_description(code varchar,description text) CREATE TABLE giá vé_basis(mã_cơ sở giá vé text,hạng_đặt text,loại_loại text,cao_cấp text,phổ_thông text,giảm_giá text,đêm text,mùa text,cơ_bản_ngày text)
chuyến bay buổi sáng sớm nhất của bạn từ INDIANAPOLIS tới CHARLOTTE là chuyến bay nào
chuyến bay buổi sáng sớm nhất của bạn từ INDIANAPOLIS tới CHARLOTTE là chuyến bay nào
SELECT DISTINCT chuyến bay.flight id FROM sân bay service AS AIRPORT SERVICE 0,airport service AS AIRPORT SERVICE 1,city AS CITY 0,city AS CITY 1,flight WHERE ( ( ( flight.departure time BETWEEN 0 AND 1200 ) AND CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'CHARLOTTE' AND chuyến bay.to airport = AIRPORT SERVICE 1.airport code ) AND CITY 0.city code = AIRPORT SERVICE 0.city code AND CITY 0.city name = 'INDIANAPOLIS' AND chuyến bay.from airport = AIRPORT SERVICE 0.airport code ) AND chuyến bay.departure time = ( SELECT MIN ( FLIGHTalias1.departure time ) FROM Airport service AS AIRPORT SERVICEalias2,airport service AS AIRPORT SERVICEalias3,city AS CITYalias2,city AS CITYalias3,flight AS FLIGHTalias1 WHERE ( ( FLIGHTalias1.departure time BETWEEN 0 AND 1200 ) AND CITYalias3.city code = AIRPORT SERVICEalias3.city code AND CITYalias3.city name = 'CHARLOTTE' AND FLIGHTalias1.to airport = AIRPORT SERVICEalias3.airport code ) AND CITYalias2.city code = AIRPORT SERVICEalias2.city code AND CITYalias2.city name = 'INDIANAPOLIS' AND FLIGHTalias1.from airport = AIRPORT SERVICEalias2.airport code )
SELECT DISTINCT chuyến bay.flight_id FROM sân bay_service AS AIRPORT_SERVICE_0,airport_service AS AIRPORT_SERVICE_1,city AS CITY_0,city AS CITY_1,flight WHERE ( ( ( flight.departure_time BETWEEN 0 AND 1200 ) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "CHARLOTTE" AND chuyến bay.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = "INDIANAPOLIS" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code ) AND chuyến bay.departure_time = ( SELECT MIN ( FLIGHTalias1.departure_time ) FROM Airport_service AS AIRPORT_SERVICEalias2,airport_service AS AIRPORT_SERVICEalias3,city AS CITYalias2,city AS CITYalias3,flight AS FLIGHTalias1 WHERE ( ( FLIGHTalias1.departure_time BETWEEN 0 AND 1200 ) AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = "CHARLOTTE" AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code ) AND CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = "INDIANAPOLIS" AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code )
squall
CREATE TABLE table 203 562(id number,"state" text,"số ứng cử viên" number,"số người được bầu" number,"tổng số ghế trong quốc hội" number,"năm bầu cử" number)
CREATE TABLE table_203_562(id number,"state" text,"số ứng_cử_viên" number,"số người được bầu" number,"tổng_số ghế trong quốc_hội" number,"năm bầu_cử" number)
ai đã bầu 17?
ai đã bầu 17 ?
SELECT "state" FROM table 203 562 WHERE "số người được bầu" = 17
SELECT "state" FROM table_203_562 WHERE "số người được bầu" = 17
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 disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,hospitalid number,wardid number,admissionheight number,trọng lượng nhập viện number,trọng lượng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái nhập viện text) CREATE TABLE thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,routeadmin text,thời gian bắt đầu dùng thuốc time,thời gian ngừng dùng thuốc time) CREATE TABLE dị ứng(dị ứng number,bệnh nhân đơn vị lưu trú number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE quan trọng(quan trọng định kỳ number,bệnh nhântâm trương 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 lượng đưa vào(lượng đưa vào number,bệnh nhânunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,BNunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time)
CREATE TABLE 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 disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,hospitalid number,wardid number,admissionheight number,trọng_lượng nhập_viện number,trọng_lượng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái nhập_viện text) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,routeadmin text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng dùng thuốc time) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE quan_trọng(quan_trọng định_kỳ number,bệnh nhântâm_trương 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 lượng đưa vào(lượng đưa vào number,bệnh nhânunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,BNunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time)
Tên thuốc được kê cho bệnh nhân 030-53416 sau khi được chẩn đoán sốc giảm thể tích vào ngày 05/2105 cùng ngày là gì?
Tên thuốc được kê cho bệnh_nhân 030 - 53416 sau khi được chẩn_đoán sốc giảm thể_tích vào ngày 05/2105 cùng ngày là gì ?
SELECT t2.drugname 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 bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '03053416' ) AND chẩn đoán.diagnosisname = 'sốc giảm thể tích' AND STRFTIME ( 'ym',diagnosis.diagnosistime ) = '210505' ) 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.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = ' 03053416' ) AND STRFTIME ( 'ym',medic.drugstarttime ) = '210505' ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME ( t1.diagnosistime,'bắt đầu ngày' ) = DATETIME ( t2.drugstarttime,'bắt đầu ngày' )
SELECT t2.drugname 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 bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "030 53416" ) AND chẩn_đoán.diagnosisname = "sốc giảm thể_tích" AND STRFTIME ( " y m",diagnosis.diagnosistime ) = "2105 05" ) 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.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "030 53416" ) AND STRFTIME ( " y m",medic.drugstarttime ) = "2105 05" ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime <t2.drugstarttime AND DATETIME ( t1.diagnosistime,"bắt_đầu ngày" ) = DATETIME ( t2.drugstarttime,"bắt_đầu ngày" )
sql_create_context
CREATE TABLE table name 93(bản ghi VARCHAR,điểm VARCHAR)
CREATE TABLE table_name_93(bản ghi VARCHAR,điểm VARCHAR)
Tỷ số 3 - 2 có kỷ lục gì?
Tỷ số 3 - 2 có kỷ_lục gì ?
SELECT bản ghi FROM tên bảng 93 WHERE điểm = "3 2"
SELECT bản ghi FROM tên_bảng_93 WHERE điểm = "3 2"
nvbench
CREATE TABLE NgườiBạn(tên varchar(20),bạn varchar(20),năm INTEGER) CREATE TABLE Người(tên varchar(20),tuổi INTEGER,thành phố TEXT,giới tính TEXT,công việc TEXT)
CREATE TABLE NgườiBạn(tên varchar(20),bạn varchar(20),năm INTEGER) CREATE TABLE Người(tên varchar(20),tuổi INTEGER,thành_phố TEXT,giới_tính TEXT,công_việc TEXT)
Người trẻ nhất đảm nhiệm mỗi công việc là bao nhiêu tuổi? Hiển thị tỷ lệ.
Người trẻ nhất đảm_nhiệm mỗi công_việc là bao_nhiêu tuổi ?_Hiển_thị tỷ_lệ .
SELECT công việc, MIN ( tuổi ) FROM Người GROUP BY công việc
SELECT công_việc, MIN ( tuổi ) FROM Người GROUP BY công_việc
wikisql
CREATE TABLE table 5054("Trận đấu" text,"Ngày" text,"Đội nhà" text,"Kết quả" text,"Đội đường" text)
CREATE TABLE table_5054("Trận đấu" text,"Ngày" text,"Đội nhà" text,"Kết_quả" text,"Đội đường" text)
Trận 3 diễn ra vào ngày nào?
Trận 3 diễn ra vào ngày nào ?
SELECT "Ngày" FROM table 5054 WHERE "Trò chơi" = 'trận 3'
SELECT "Ngày" FROM table_5054 WHERE "Trò_chơi" = "trận 3"
wikisql
CREATE TABLE table 39432("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm" text,"Điểm cao" text,"Phản hồi cao" text,"Hỗ trợ cao" text,"Điểm danh theo địa điểm" text,"Sê-ri" text)
CREATE TABLE table_39432("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm" text,"Điểm cao" text,"Phản_hồi cao" text,"Hỗ_trợ cao" text,"Điểm_danh theo địa_điểm" text,"Sê-ri" text)
Ai có số lần bật lại cao vào ngày 1 tháng 5?
Ai có số lần bật lại cao vào ngày 1 tháng 5 ?
SELECT "Số lần bật lại cao" FROM table 39432 WHERE "Ngày" = 'ngày 1 tháng 5'
SELECT "Số lần bật lại cao" FROM table_39432 WHERE "Ngày" = "ngày 1 tháng 5"
nvbench
CREATE TABLE thuyền trưởng(Captain ID int,Name text,Ship ID int,age text,Class text,Rank text) CREATE TABLE Ship(Ship ID int,Name text,Type text,Build Year real,Lớp text,Cờ text)
CREATE TABLE thuyền_trưởng(Captain_ID int,Name text,Ship_ID int,age text,Class text,Rank text) CREATE TABLE Ship(Ship_ID int,Name text,Type text,Build_Year real,Lớp text,Cờ text)
Trả về độ tuổi trung bình của các đội trưởng trong mỗi lớp và tôi muốn hiển thị từ cao xuống thấp theo tổng số.
Trả về độ tuổi trung_bình của các đội_trưởng trong mỗi lớp và tôi muốn hiển_thị từ cao xuống thấp theo tổng_số .
SELECT Lớp, AVG ( tuổi ) FROM đội trưởng GROUP BY Lớp ORDER BY AVG ( tuổi ) DESC
SELECT Lớp, AVG ( tuổi ) FROM đội_trưởng GROUP BY Lớp ORDER BY AVG ( tuổi ) DESC
squall
CREATE TABLE table 203 551(id number,"goal" number,"date" text,"địa điểm" text,"đối thủ" text,"điểm" text,"kết quả" text,"cạnh tranh" text)
CREATE TABLE table_203_551(id number,"goal" number,"date" text,"địa_điểm" text,"đối_thủ" text,"điểm" text,"kết_quả" text,"cạnh_tranh" text)
Bàn thắng quốc tế đầu tiên của szalai vào năm nào?
Bàn_thắng quốc_tế đầu_tiên của szalai vào năm nào ?
SELECT "ngày" FROM bảng 203 551 ORDER BY "ngày" LIMIT 1
SELECT "ngày" FROM bảng_203_551 ORDER BY"ngày" LIMIT 1
eicu
CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,thời gian tính phí time,chi phí number) CREATE TABLE điều trị(Treatmentid number,Patientunitstayid number,TreatmentName text,TreatmentTime time) CREATE TABLE Patient(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,mệnh viện number,khu vực number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện time,thời gian xuất viện time,trạng thái xả thải bệnh viện text) CREATE TABLE đầu vào(đầu vào đầu raid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime 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 thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,BNunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE dị ứng(dị ứng number,BNunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time)
CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,thời_gian tính phí time,chi_phí number) CREATE TABLE điều_trị(Treatmentid number,Patientunitstayid number,TreatmentName text,TreatmentTime time) CREATE TABLE Patient(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,mệnh_viện number,khu_vực number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện time,thời_gian xuất_viện time,trạng_thái xả thải bệnh_viện text) CREATE TABLE đầu_vào(đầu vào đầu raid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime 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 thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,BNunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE dị_ứng(dị_ứng number,BNunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time)
bệnh nhân 010-20205 có sản xuất thuốc ct x2 không?
bệnh_nhân 010 - 20205 có sản_xuất thuốc ct x2 không ?
SELECT COUNT ( * ) > 0 FROM lượng nhập ra WHERE lượng nhập ra.bệnh nhânunitstayid IN ( SELECT bệnh nhân.bệnh nhânunitstayid FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '01020205' ) ) AND Intakeoutput.cellpath LIKE 'output' AND Intakeoutput.celllabel = 'med ct x2'
SELECT COUNT ( * ) > 0 FROM lượng nhập ra WHERE lượng nhập ra.bệnh nhânunitstayid IN ( SELECT bệnh_nhân.bệnh nhânunitstayid FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "010 20205" ) ) AND Intakeoutput.cellpath LIKE " output " AND Intakeoutput.celllabel = "med ct x2"
sql_create_context
CREATE TABLE table name 82(ghi danh INTEGER,thành lập VARCHAR,mệnh giá VARCHAR,ngày lên tàu VARCHAR)
CREATE TABLE table_name_82(ghi_danh INTEGER,thành_lập VARCHAR,mệnh_giá VARCHAR,ngày_lên tàu VARCHAR)
Số lượng tuyển sinh lớn nhất cho các trường Anh giáo được thành lập sau năm 1929 là bao nhiêu?
Số_lượng tuyển_sinh lớn nhất cho các trường Anh_giáo được thành_lập sau năm 1929 là bao_nhiêu ?
SELECT MAX ( ghi danh ) FROM table name 82 WHERE denomination = "anglican" AND day boarding = "ngày" AND thành lập > 1929
SELECT MAX ( ghi_danh ) FROM table_name_82 WHERE denomination = "anglican" AND day_boarding = "ngày" AND thành_lập > 1929
wikisql
CREATE TABLE table 2960("Xe" text,"Chế độ vận hành" text,"Phạm vi chạy hoàn toàn bằng điện được xếp hạng EPA" text,"Tiết kiệm nhiên liệu kết hợp được xếp hạng EPA" text,"Lưới điện sạch California(San Francisco)" text,"Hỗn hợp điện trung bình toàn quốc của Hoa Kỳ" text,"Lưới điện bẩn Rocky Mountains(Denver)" text)
CREATE TABLE table_2960("Xe" text,"Chế_độ vận_hành" text,"Phạm_vi chạy hoàn_toàn bằng điện được xếp_hạng EPA" text,"Tiết_kiệm nhiên_liệu kết_hợp được xếp_hạng EPA" text,"Lưới điện sạch_California(San_Francisco)" text,"Hỗn_hợp điện trung_bình toàn_quốc của Hoa_Kỳ" text,"Lưới điện bẩn Rocky_Mountains(Denver)" text)
Có bao nhiêu số liệu về lưới điện sạch ở California (san francisco) dành cho Nissan Leaf?
Có bao_nhiêu số_liệu về lưới_điện sạch ở California ( san_francisco ) dành cho Nissan_Leaf ?
SELECT COUNT ( "Lưới điện sạch California ( San Francisco ) " ) FROM table 2960 WHERE "Xe" = 'Nissan Leaf'
SELECT COUNT ( "Lưới điện sạch_California ( San_Francisco ) " ) FROM table_2960 WHERE "Xe" = "Nissan_Leaf"
squall
CREATE TABLE table 204 206(id number,"saros" number,"member" number,"date" text,"time\and(greatest)\ntuc" text,"type" text,"location\nlat,long" text,"gamma" number,"mag." number,"width\n(km)" number,"duration\n(min:sec)" text,"ref" number)
CREATE TABLE table_204_206(id number,"saros" number,"member" number,"date" text,"time\_and(greatest)\_ntuc" text,"type" text,"location\_nlat,long" text,"gamma" number,"mag." number,"width\_n(km)" number,"duration\_n(min : sec)" text,"ref" number)
Khi nào saros mặt trời tiếp theo sẽ diễn ra sau ngày 24 tháng 5 năm 2199 saros mặt trời xảy ra?
Khi nào saros mặt_trời tiếp_theo sẽ diễn ra sau ngày 24 tháng 5 năm 2199 saros mặt_trời xảy ra ?
SELECT "ngày" FROM bảng 204 206 WHERE "ngày" > ( SELECT "ngày" FROM bảng 204 206 WHERE "ngày" = '24 tháng 5 năm 2199' ) ORDER BY "ngày" LIMIT 1
SELECT "ngày" FROM bảng_204_206 WHERE "ngày" > ( SELECT "ngày" FROM bảng_204_206 WHERE "ngày" = "24 tháng 5 năm 2199" ) ORDER BY"ngày" LIMIT 1
wikisql
CREATE TABLE table 71321("Trường học" text,"Địa điểm" text,"Tổng cộng" real,"Chiến tranh Crimea" real,"Chiến tranh Ba Tư" real,"Nổi loạn ở Ấn Độ" real,"1860-1878" real,"Chiến tranh Zulu" real,"Chiến tranh Afghanistan lần thứ hai" text)
CREATE TABLE table_71321("Trường_học" text,"Địa_điểm" text,"Tổng_cộng" real,"Chiến_tranh Crimea" real,"Chiến_tranh Ba_Tư" real,"Nổi_loạn ở Ấn_Độ" real,"1860 - 1878" real,"Chiến_tranh Zulu" real,"Chiến_tranh Afghanistan lần thứ hai" text)
Chiến tranh Krym nào có tỷ lệ 1860-1878 bằng 0, Tổng số là 1 và Cuộc nổi dậy của người da đỏ lớn hơn 0?
Chiến_tranh Krym nào có tỷ_lệ 1860 - 1878 bằng 0 , Tổng_số là 1 và Cuộc nổi_dậy của người da đỏ lớn hơn 0 ?
SELECT "Chiến tranh Crimea" FROM table 71321 WHERE "18601878" = '0' AND "Tổng cộng" = '1' AND "Nổi loạn ở Ấn Độ" > '0'
SELECT "Chiến_tranh Crimea" FROM table_71321 WHERE "1860 1878" = "0" AND "Tổng_cộng" = "1" AND "Nổi_loạn ở Ấn_Độ" > "0"
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 outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE chuyển(row id number,chủ id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính 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 icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE d icd 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 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,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 labitems(row id number,itemid number,label text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,thời gian nhập viện time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,hôn nhân status text,dân tộc text,tuổi number)
CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE chuyển(row_id number,chủ_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính 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 icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE d_icd_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 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,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_labitems(row_id number,itemid number,label text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,thời_gian nhập_viện time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,tuổi number)
huyết áp động mạch của bệnh nhân 18866 trong lần khám Icu trước có lớn hơn 69,0 không?
huyết_áp động_mạch của bệnh_nhân 18866 trong lần khám Icu trước có lớn hơn 69,0 không ?
SELECT COUNT ( * ) > 0 FROM Chartevents WHERE Chartevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 18866 ) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'arterial bpmean' AND d items.linksto = 'chartevents' ) AND chartevents.valuenum > 69.0
SELECT COUNT ( * ) > 0 FROM Chartevents WHERE Chartevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 18866 ) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1 ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "arterial bpmean" AND d_items.linksto = "chartevents" ) AND chartevents.valuenum > 69.0
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 lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,Culturesite text,sinh vật text,thời gian nuôi cấy time) CREATE TABLE dị ứng(dị ứng number,bệnh nhân đơn vị lưu trú number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE thuốc(thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,routeadmin text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE 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 disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,hospitalid 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 đơ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 điều trị(mã điều trị number,BNunitstayid number,tên điều trị text,thời gian điều trị time) CREATE TABLE đầu ra đầu vào(id đầu vào number,BNunitstayid number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bào number,thời gian đầu ra time)
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 lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,Culturesite text,sinh_vật text,thời_gian nuôi_cấy time) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE thuốc(thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,routeadmin text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE 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 disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,hospitalid 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 đơ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 điều_trị(mã điều_trị number,BNunitstayid number,tên điều_trị text,thời_gian điều_trị time) CREATE TABLE đầu_ra đầu_vào(id đầu vào number,BNunitstayid number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bào number,thời_gian đầu_ra time)
cho tôi biết số giờ kể từ khi bệnh nhân 006-172277 được đưa vào phòng chăm sóc đặc biệt?
cho tôi biết số giờ kể từ khi bệnh_nhân 006 - 172277 được đưa vào phòng chăm_sóc đặc_biệt ?
SELECT 24 * ( STRFTIME ( 'j',CURRENT TIME ( ) ) STRFTIME ( 'j',Patient.unitadmittime ) ) FROM disease WHERE disease.uniquepid = '006172277' AND disease.unitdischargetime IS NULL
SELECT 24 * ( STRFTIME ( " j",CURRENT_TIME ( ) ) STRFTIME ( " j",Patient.unitadmittime ) ) FROM disease WHERE disease.uniquepid = "006 172277" AND disease.unitdischargetime IS NULL
wikisql
CREATE TABLE table 63523("Câu lạc bộ" text,"Giải đấu" text,"Thể thao" text,"Địa điểm" text,"Đã thành lập" real,"Sức chứa" real)
CREATE TABLE table_63523("Câu_lạc_bộ" text,"Giải đấu" text,"Thể_thao" text,"Địa_điểm" text,"Đã thành_lập" real,"Sức chứa" real)
Giải đấu được thành lập trước năm 1930 với câu lạc bộ rayo vallecano là gì?
Giải đấu được thành_lập trước năm 1930 với câu_lạc_bộ rayo vallecano là gì ?
SELECT "Liên đoàn" FROM table 63523 WHERE "Thành lập" < '1930' AND "Câu lạc bộ" = 'rayo vallecano'
SELECT "Liên_đoàn" FROM table_63523 WHERE "Thành_lập" < "1930" AND "Câu_lạc_bộ" = "rayo vallecano"
wikisql
CREATE TABLE table 54058("Tên" text,"Bắt đầu nhiệm kỳ" text,"Kết thúc nhiệm kỳ" real,"Quốc vương Anh" text,"Tổng thống Tiệp Khắc" text)
CREATE TABLE table_54058("Tên" text,"Bắt_đầu nhiệm_kỳ" text,"Kết_thúc nhiệm_kỳ" real,"Quốc_vương_Anh" text,"Tổng_thống Tiệp_Khắc" text)
Tổng thống Tiệp Khắc là ai khi nhiệm kỳ đại sứ bắt đầu vào năm 1950?
Tổng_thống Tiệp_Khắc là ai khi nhiệm_kỳ đại_sứ bắt_đầu vào năm 1950 ?
SELECT "Tổng thống Tiệp Khắc" FROM table 54058 WHERE "Bắt đầu nhiệm kỳ" = '1950'
SELECT "Tổng_thống Tiệp_Khắc" FROM table_54058 WHERE "Bắt_đầu nhiệm_kỳ" = "1950"
mimicsql_data
CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,vị trí nhập viện text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện 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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text)
CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,vị trí_nhập_viện text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện 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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)
cung cấp số lượng bệnh nhân đã điều chỉnh đường dùng thuốc và được chẩn đoán mắc bệnh xơ vữa động mạch vành không xác định loại mạch máu tự nhiên hay ghép.
cung_cấp số_lượng bệnh_nhân đã điều_chỉnh đường dùng thuốc và được chẩn_đoán mắc bệnh xơ_vữa động_mạch_vành không xác_định loại mạch_máu tự_nhiên hay ghép .
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id 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 = "Cor ath unsp vsl ntvgft" AND đơn thuốc.route = "ED"
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 = "Cor ath unsp vsl ntvgft" AND đơn thuốc.route = "ED"
squall
CREATE TABLE table 204 854(id number,"#" number,"wrestlers" text,"reign" number,"date" text,"days\nheld" number,"location" text,"notes" text)
CREATE TABLE table_204_854(id number,"#" number,"wrestlers" text,"reign" number,"date" text,"days\_nheld" number,"location" text,"notes" text)
đô vật nào giữ danh hiệu lâu nhất?
đô_vật nào giữ danh_hiệu lâu nhất ?
SELECT "đô vật" FROM table 204 854 ORDER BY "ngàynheld" DESC LIMIT 1
SELECT "đô_vật" FROM table_204_854 ORDER BY"ngàynheld" DESC LIMIT 1
sql_create_context
CREATE TABLE table name 97(điểm VARCHAR,đối thủ VARCHAR)
CREATE TABLE table_name_97(điểm VARCHAR,đối_thủ VARCHAR)
Trong trận đấu với Washington Bullets, tỷ số cuối cùng là bao nhiêu?
Trong trận đấu với Washington_Bullets , tỷ_số cuối_cùng là bao_nhiêu ?
SELECT điểm FROM table name 97 WHERE đối thủ = "đạn washington"
SELECT điểm FROM table_name_97 WHERE đối_thủ= "đạn washington"
advising
CREATE TABLE chương trình requirement(chương trình id int,danh mục varchar,min credit int,bổ sung req varchar) CREATE TABLE sinh viên(student id int,họ varchar,tên varchar,program id int,khai báo major varchar,total credit int,tổng 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 record record(student id int,course id int,semester int,grade varchar,how varchar,transfer source varchar,earn credit varchar,repeat term varchar,test id varchar) CREATE TABLE Course tags count(Course id int,clear grading int,pop quiz int,group projects int,truyền cảm hứng int,bài giảng dài int,extra credit int,few tests int,good feedback int,tough tests int,heavy papers int,cares for students int,heavy taskments int,tôn trọng int,tham gia int,đọc nhiều int,học sinh khó int,vui nhộn int,sẽ đọc again int,bài học hay int,không bỏ qua int) CREATE TABLE chào hàng instructor(offering instructor id int,offering id int,instructor id int) CREATE TABLE ta(campus job id int,student id int,location varchar) CREATE TABLEprogram course(program id int,course id int,workload int,category varchar) CREATE TABLE gsi(course offering id int,student id int) CREATE TABLE Course precondition(pre course id int,course id int) CREATE TABLE giảng viên(instructor id int,name varchar,uniqname varchar) CREATE TABLE học kỳ(semester id int,semester varchar,năm int) CREATE TABLE khu vực(course id int,khu vực varchar) CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLE Course(course id int,tên varchar,bộ phận 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 offering(offering id int,course id int,semester int,section number int,start time time,end time time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ bảy varchar,chủ nhật varchar,has final project varchar,has final exam varchar,sách giáo khoa varchar,class address varchar,allow audit varchar) CREATE TABLE công việc(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE require(requirement id int,requirement varchar,trường cao đẳng varchar)
CREATE TABLE chương trình_requirement(chương trình_id int,danh_mục varchar,min_credit int,bổ_sung_req varchar) CREATE TABLE sinh_viên(student_id int,họ varchar,tên varchar,program_id int,khai báo_major varchar,total_credit int,tổng_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 record_record(student_id int,course_id int,semester int,grade varchar,how varchar,transfer_source varchar,earn_credit varchar,repeat_term varchar,test_id varchar) CREATE TABLE Course_tags_count(Course_id int,clear_grading int,pop_quiz int,group_projects int,truyền cảm_hứng int,bài giảng dài int,extra_credit int,few_tests int,good_feedback int,tough_tests int,heavy_papers int,cares_for_students int,heavy_taskments int,tôn_trọng int,tham_gia int,đọc nhiều int,học_sinh khó int,vui nhộn int,sẽ_đọc_again int,bài_học hay int,không_bỏ qua int) CREATE TABLE chào_hàng_instructor(offering_instructor_id int,offering_id int,instructor_id int) CREATE TABLE ta(campus_job_id int,student_id int,location varchar) CREATE TABLEprogram_course(program_id int,course_id int,workload int,category varchar) CREATE TABLE gsi(course_offering_id int,student_id int) CREATE TABLE Course_precondition(pre_course_id int,course_id int) CREATE TABLE giảng_viên(instructor_id int,name varchar,uniqname varchar) CREATE TABLE học_kỳ(semester_id int,semester varchar,năm int) CREATE TABLE khu_vực(course_id int,khu_vực varchar) CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLE Course(course_id int,tên varchar,bộ_phận 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_offering(offering_id int,course_id int,semester int,section_number int,start_time time,end_time time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ_bảy varchar,chủ_nhật varchar,has_final_project varchar,has_final_exam varchar,sách_giáo_khoa varchar,class_address varchar,allow_audit varchar) CREATE TABLE công_việc(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE require(requirement_id int,requirement varchar,trường cao_đẳng varchar)
Ai sẽ dạy các lớp ULCS vào mùa đông tới?
Ai sẽ dạy các lớp ULCS vào mùa đông tới ?
SELECT DISTINCT tên người hướng dẫn FROM khóa học INNER JOIN Course offering ON Course.course id = Course offering.course id INNER JOIN học kỳ ON học kỳ.semester id = Course offering.semester INNER JOIN chương trình course ON chương trình course.course id = Course offering.course id INNER JOIN chào hàng instructor ON chào hàng instructor.offering id = khóa học offering.offering id INNER JOIN giảng viên ON chào hàng instructor.instructor id = giảng viên.instructor id WHERE chương trình course.category LIKE 'ULCS' AND học kỳ.semester = 'Mùa đông ' AND học kỳ.năm = 2017
SELECT DISTINCT tên người hướng_dẫn FROM khóa học INNER JOIN Course_offering ON Course.course_id = Course_offering.course_id INNER JOIN học_kỳ ON học_kỳ.semester_id = Course_offering.semester INNER JOIN chương trình_course ON chương trình_course.course_id = Course_offering.course_id INNER JOIN chào_hàng_instructor ON chào_hàng_instructor.offering_id = khóa học_offering.offering_id INNER JOIN giảng_viên ON chào_hàng_instructor.instructor_id = giảng_viên.instructor_id WHERE chương trình_course.category LIKE " ULCS " AND học_kỳ.semester = "Mùa đông" AND học_kỳ.năm = 2017
spider
CREATE TABLE apartment(apt id number,building id number,apt type code text,apt number text,bathroom count number,phòng ngủ count number,room count text) CREATE TABLE view unit status(apt id number,apt booking id number,status date time,available yn else) CREATE TABLE apartment buildings(building id number,building short name text,building full name text,building description text,building address text,building manager text,building phone text) CREATE TABLE khách(guest id number,gender code text,guest first name text,guest last name text,date of birth time) CREATE TABLE apartment facilities(apt id number,facility code text) CREATE TABLE apartment bookings(apt booking id number,apt id number,guest id number,booking status code text,ngày bắt đầu đặt đặt time,ngày kết thúc đặt đặt time)
CREATE TABLE apartment(apt_id number,building_id number,apt_type_code text,apt_number text,bathroom_count number,phòng ngủ_count number,room_count text) CREATE TABLE view_unit_status(apt_id number,apt_booking_id number,status_date time,available_yn else) CREATE TABLE apartment_buildings(building_id number,building_short_name text,building_full_name text,building_description text,building_address text,building_manager text,building_phone text) CREATE TABLE khách(guest_id number,gender_code text,guest_first_name text,guest_last_name text,date_of_birth time) CREATE TABLE apartment_facilities(apt_id number,facility_code text) CREATE TABLE apartment_bookings(apt_booking_id number,apt_id number,guest_id number,booking_status_code text,ngày_bắt_đầu_đặt_đặt time,ngày_kết thúc_đặt_đặt time)
Mã loại căn hộ nào xuất hiện thường xuyên nhất?
Mã_loại căn_hộ nào xuất_hiện thường_xuyên nhất ?
SELECT apt type code FROM căn hộ GROUP BY apt type code ORDER BY COUNT ( * ) DESC LIMIT 1
SELECT apt_type_code FROM căn_hộ GROUP BY apt_type_code ORDER BY COUNT ( * ) DESC LIMIT 1
squall
CREATE TABLE table 203 688(id number,"category" text,"speed\n(km/h)" number,"speed\n(mph)" number,"xe" text,"phi công" text,"ngày" text)
CREATE TABLE table_203_688(id number,"category" text,"speed\_n(km/h)" number,"speed\_n(mph)" number,"xe" text,"phi_công" text,"ngày" text)
phi công của mit Monarch b là ai?
phi_công của mit Monarch_b là ai ?
SELECT "phi công" FROM table 203 688 WHERE "xe" = 'mit Monarch b'
SELECT "phi_công" FROM table_203_688 WHERE "xe" = "mit Monarch_b"
squall
CREATE TABLE table 204 641(id number,"pos" text,"no" number,"driver" text,"constructor" text,"laps" number,"time/retired" text,"grid" number,"điểm" number)
CREATE TABLE table_204_641(id number,"pos" text,"no" number,"driver" text,"constructor" text,"laps" number,"time/retired" text,"grid" number,"điểm" number)
có bao nhiêu tay đua đã hoàn thành ít nhất 40 vòng?
có bao_nhiêu tay_đua đã hoàn_thành ít_nhất 40 vòng ?
SELECT COUNT ( "driver" ) FROM table 204 641 WHERE "vòng" >= 40
SELECT COUNT ( "driver" ) FROM table_204_641 WHERE "vòng" > = 40
sql_create_context
CREATE TABLE table 27902171 8(vị trí điểm danh VARCHAR,bản ghi VARCHAR)
CREATE TABLE table_27902171_8(vị trí_điểm_danh VARCHAR,bản ghi VARCHAR)
Kể tên số lượng người tham dự địa điểm cho bản ghi 36-29
Kể tên số_lượng người tham_dự địa_điểm cho bản ghi 36-29
SELECT COUNT ( location attendance ) FROM table 27902171 8 WHERE record = "3629"
SELECT COUNT ( location_attendance ) FROM table_27902171_8 WHERE record = "3629"
wikisql
CREATE TABLE table 65531("Trường học" text,"Địa điểm" text,"Linh vật" text,"Ghi danh" real,"Lớp bóng đá IHSAA" text,"Quận" text)
CREATE TABLE table_65531("Trường_học" text,"Địa_điểm" text,"Linh_vật" text,"Ghi_danh" real,"Lớp bóng_đá IHSAA" text,"Quận" text)
Lớp bóng đá IHSAA nào có Trường tưởng niệm bằng gỗ?
Lớp bóng_đá IHSAA nào có Trường tưởng_niệm bằng gỗ ?
SELECT "Lớp bóng đá IHSAA" FROM table 65531 WHERE "Trường học" = 'tưởng niệm gỗ'
SELECT "Lớp bóng_đá IHSAA" FROM table_65531 WHERE "Trường_học" = "tưởng_niệm gỗ"
nvbench
CREATE TABLE khu vực(REGION ID decimal(5,0),REGION NAME varchar(25)) CREATE TABLE công việc(JOB ID varchar(10),JOB TITLE varchar(35),MIN SALARY decimal(6,0),MAX SALARY decimal(6,0)) CREATE TABLE địa điểm(LOCATION ID decimal(4,0),STREET ADDRESS varchar(40),POSTAL CODE varchar(12),CITY varchar(30),STATE PROVINCE varchar(25),COUNTRY ID varchar(2)) CREATE TABLE quốc gia(COUNTRY ID varchar(2),COUNTRY NAME varchar(40),REGION ID decimal(10,0)) CREATE TABLE job history(EMPLOYEE ID decimal(6,0),START DATE date,END DATE date,JOB ID varchar(10),DEPARTMENT ID decimal(4,0)) CREATE TABLE 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 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 công_việc(JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY_decimal(6,0),MAX_SALARY_decimal(6,0)) CREATE TABLE địa_điểm(LOCATION_ID_decimal(4,0),STREET_ADDRESS varchar(40),POSTAL_CODE varchar(12),CITY varchar(30),STATE_PROVINCE varchar(25),COUNTRY_ID varchar(2)) CREATE TABLE quốc_gia(COUNTRY_ID varchar(2),COUNTRY_NAME varchar(40),REGION_ID_decimal(10,0)) CREATE TABLE job_history(EMPLOYEE_ID_decimal(6,0),START_DATE_date,END_DATE_date,JOB_ID varchar(10),DEPARTMENT_ID_decimal(4,0)) CREATE TABLE 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 phòng_ban(DEPARTMENT_ID_decimal(4,0),DEPARTMENT_NAME varchar(30),MANAGER_ID_decimal(6,0),LOCATION_ID_decimal(4,0))
Đối với những nhân viên có mức lương nằm trong khoảng 8000 và 12000 và hoa hồng không bằng 0 hoặc số bộ phận không bằng 40, hãy tìm job id và mức trung bình của nhân viên id, nhóm theo thuộc tính job id và hiển thị chúng bằng biểu đồ thanh, xếp hạng theo trục Y giảm dần.
Đối_với những nhân_viên có mức lương nằm trong khoảng 8000 và 12000 và hoa_hồng không bằng 0 hoặc số bộ_phận không bằng 40 , hãy tìm job_id và mức trung_bình của nhân_viên_id , nhóm theo thuộc_tính job_id và hiển_thị chúng bằng biểu_đồ thanh , xếp_hạng theo trục Y_giảm dần .
SELECT JOB ID, AVG ( EMPLOYEE ID ) FROM nhân viên WHERE LƯƠNG BETWEEN 8000 AND 12000 AND COMMISSION PCT <> "null" OR DEPARTMENT ID <> 40 GROUP BY JOB ID ORDER BY AVG ( EMPLOYEE ID ) DESC
SELECT JOB_ID, AVG ( EMPLOYEE_ID ) FROM nhân_viên WHERE LƯƠNG BETWEEN 8000 AND 12000 AND COMMISSION_PCT < >"null" OR DEPARTMENT_ID< > 40 GROUP BY JOB_ID ORDER BY AVG ( EMPLOYEE_ID ) DESC
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 chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text)
CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,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 chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text)
số lượng bệnh nhân đau bụng nguyên phát ở độ tuổi dưới 68 là bao nhiêu?
số_lượng bệnh_nhân đau bụng nguyên_phát ở độ tuổi dưới 68 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 = "ĐAU BỤNG" AND nhân khẩu học.tuổi < "68"
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 = "ĐAU_BỤNG" AND nhân_khẩu học.tuổi <"68"
sql_create_context
CREATE TABLE table 25374338 1(lựa chọn bài hát VARCHAR,nghệ sĩ gốc VARCHAR)
CREATE TABLE table_25374338_1(lựa_chọn bài hát VARCHAR,nghệ_sĩ gốc VARCHAR)
Lựa chọn bài hát mà nghệ sĩ ban đầu là Gino Paoli là gì?
Lựa_chọn bài hát mà nghệ_sĩ ban_đầu là Gino_Paoli là gì ?
SELECT COUNT ( song choice ) FROM table 25374338 1 WHERE original artist = "Gino Paoli"
SELECT COUNT ( song_choice ) FROM table_25374338_1 WHERE original_artist = "Gino_Paoli"
wikisql
CREATE TABLE table 18436("Quận" text,"Đương nhiệm" text,"Đảng" text,"Bầu chọn lần đầu" real,"Kết quả" text,"Ứng cử viên" text)
CREATE TABLE table_18436("Quận" text,"Đương_nhiệm" text,"Đảng" text,"Bầu_chọn lần đầu" real,"Kết_quả" text,"Ứng_cử_viên" text)
Ai là người đương nhiệm trong cuộc bầu cử quận 2 Arkansas?
Ai là người đương_nhiệm trong cuộc bầu_cử quận 2 Arkansas ?
SELECT "Đương nhiệm" FROM table 18436 WHERE "Quận" = 'Arkansas 2'
SELECT "Đương_nhiệm" FROM table_18436 WHERE "Quận" = "Arkansas 2"
wikisql
CREATE TABLE table 14564("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Tham dự" text,"Ghi chép" text)
CREATE TABLE table_14564("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Tham_dự" text,"Ghi_chép" text)
Ngày nào có đối thủ là @ Mariners và thua Hern ndez (0-1)?
Ngày nào có đối_thủ là @_Mariners và thua Hern_ndez ( 0-1 ) ?
SELECT "Ngày" FROM table 14564 WHERE "Đối thủ" = ' Mariners' AND "Mất" = 'hernández ( 01 ) '
SELECT "Ngày" FROM table_14564 WHERE "Đối_thủ" = "Mariners" AND "Mất" = "hernández ( 01 ) "
sql_create_context
CREATE TABLE table name 86(ban giám khảo INTEGER,địa điểm VARCHAR,total VARCHAR)
CREATE TABLE table_name_86(ban giám_khảo INTEGER,địa_điểm VARCHAR,total VARCHAR)
Tổng số ban giám khảo đứng thứ 2 và tổng số lớn hơn 190 là bao nhiêu?
Tổng_số ban giám_khảo đứng thứ 2 và tổng_số lớn hơn 190 là bao_nhiêu ?
SELECT SUM ( ban giám khảo ) FROM table name 86 WHERE place = "thứ 2" AND total > 190
SELECT SUM ( ban giám_khảo ) FROM table_name_86 WHERE place = "thứ 2" AND total > 190
sql_create_context
CREATE TABLE table name 9(hàm tạo VARCHAR,laps VARCHAR,grid VARCHAR)
CREATE TABLE table_name_9(hàm_tạo VARCHAR,laps VARCHAR,grid VARCHAR)
Tên của người xây dựng có hơn 50 vòng và lưới 7 là gì?
Tên của người xây_dựng có hơn 50 vòng và lưới 7 là gì ?
SELECT hàm tạo FROM tên bảng 9 WHERE vòng > 50 AND lưới = 7
SELECT hàm_tạo FROM tên_bảng_9 WHERE vòng > 50 AND lưới = 7
wikisql
CREATE TABLE table 21061("Tên" text,"Vĩ độ" text,"Kinh độ" text,"Đường kính" text,"Tên năm" real,"Tên" text)
CREATE TABLE table_21061("Tên" text,"Vĩ_độ" text,"Kinh_độ" text,"Đường_kính" text,"Tên năm" real,"Tên" text)
Khi kinh độ là 147,1w, tên của đối tượng địa lý là gì?
Khi kinh_độ là 147,1_w , tên của đối_tượng địa_lý là gì ?
SELECT "Trùng tên" FROM table 21061 WHERE "Kinh độ" = '147.1W'
SELECT "Trùng tên" FROM table_21061 WHERE "Kinh_độ" = "147.1_W"
sql_create_context
CREATE TABLE tên bảng 55(hàm tạo VARCHAR,trình điều khiển VARCHAR)
CREATE TABLE tên_bảng_55(hàm_tạo VARCHAR,trình điều_khiển VARCHAR)
ai là người xây dựng khi trình điều khiển là nút jenson?
ai là người xây_dựng khi trình điều_khiển là nút jenson ?
SELECT hàm tạo FROM tên bảng 55 WHERE driver = "nút jenson"
SELECT hàm_tạo FROM tên_bảng_55 WHERE driver = "nút jenson"
squall
CREATE TABLE table 204 679(id number,"place" text,"player" text,"country" text,"score" text,"to par" number,"money($)" number)
CREATE TABLE table_204_679(id number,"place" text,"player" text,"country" text,"score" text,"to par" number,"money($)" number)
cầu thủ nào được xếp trên Lawson Little ?
cầu_thủ nào được xếp trên Lawson_Little ?
SELECT "người chơi" FROM table 204 679 WHERE "địa điểm" = ( SELECT "địa điểm" FROM table 204 679 WHERE "player" = 'lawson bé' ) 1
SELECT "người chơi" FROM table_204_679 WHERE "địa_điểm" = ( SELECT "địa_điểm" FROM table_204_679 WHERE "player" = "lawson bé" ) 1
eicu
CREATE TABLE điều trị(Treatmentid number,Patientunitstayid number,tên điều trị text,thời gian điều trị time) CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime 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 bệnh nhân(duy nhất text,bệnh nhânhệ thống sức khỏelưu trúid number,bệnh nhânđơn vị ở lạiid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu trú number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn viện trợ bệnh 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 xuất viện text) CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE drug(medicidid number,Patientunitstayid number,tên thuốc text,liều lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE dị ứng(dị ứng number,BNunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime 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 lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime 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 bệnh_nhân(duy_nhất text,bệnh nhânhệ_thống sức khỏelưu trúid number,bệnh nhânđơn_vị ở lạiid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu trú number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn viện_trợ bệnh_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 xuất_viện text) CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE drug(medicidid number,Patientunitstayid number,tên thuốc text,liều_lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE dị_ứng(dị_ứng number,BNunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time)
Tổng chi phí bệnh viện tối thiểu bao gồm tăng natri máu - chưa rõ nguyên nhân là bao nhiêu?
Tổng chi_phí bệnh_viện tối_thiểu bao_gồm tăng natri máu - chưa rõ nguyên_nhân là bao_nhiêu ?
SELECT MIN ( t1.c1 ) FROM ( SELECT SUM ( cost.cost ) AS c1 FROM cost WHERE cost.Patienthealthsystemstayid IN ( SELECT disease.Patienthealthsystemstayid FROM disease WHERE disease.Patientunitstayid IN ( SELECT chẩn đoán.bệnh nhânunitstayid FROM chẩn đoán WHERE chẩn đoán.diagnosisname = 'tăng natri máu không rõ nguyên nhân' ) ) GROUP BY chi phí.bệnh nhânhealthsystemstayid ) AS t1
SELECT MIN ( t1.c1 ) FROM ( SELECT SUM ( cost.cost ) AS c1 FROM cost WHERE cost.Patienthealthsystemstayid IN ( SELECT disease.Patienthealthsystemstayid FROM disease WHERE disease.Patientunitstayid IN ( SELECT chẩn_đoán.bệnh nhânunitstayid FROM chẩn_đoán WHERE chẩn_đoán.diagnosisname = "tăng natri máu không rõ nguyên_nhân" ) ) GROUP BY chi_phí.bệnh nhânhealthsystemstayid ) AS t1
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 thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text)
CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,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 thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)
có bao nhiêu bệnh nhân mắc bệnh khớp nos-unspec đã được xét nghiệm máu?
có bao_nhiêu bệnh_nhân mắc bệnh khớp nos-unspec đã được xét_nghiệm má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.short title = "Bệnh khớp NOSunspec" AND lab.fluid = "Má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.short_title = "Bệnh khớp NOSunspec" AND lab.fluid = "Máu"
sql_create_context
CREATE TABLE table 2251578 4(tỉnh VARCHAR,độ cao m VARCHAR)
CREATE TABLE table_2251578_4(tỉnh VARCHAR,độ cao__m_ VARCHAR)
Tỉnh nào có độ cao 4550?
Tỉnh nào có độ cao 4550 ?
SELECT tỉnh FROM bảng 2251578 4 WHERE độ cao m = 4550
SELECT tỉnh FROM bảng_2251578_4 WHERE độ cao__m = 4550
wikisql
CREATE TABLE table 28777("Năm(Lễ)" text,"Tiêu đề tiếng Anh" text,"Tiêu đề tiếng Ả Rập" text,"Giám đốc" text,"Kết quả" text)
CREATE TABLE table_28777("Năm(Lễ)" text,"Tiêu_đề tiếng Anh" text,"Tiêu_đề tiếng Ả_Rập" text,"Giám_đốc" text,"Kết_quả" text)
Khi nào tiêu đề tiếng Ả Rập tiêu đề tiếng Anh là gì?
Khi nào tiêu_đề tiếng Ả_Rập tiêu_đề tiếng Anh là gì ?
SELECT "Tiêu đề tiếng Anh" FROM table 28777 WHERE "Tiêu đề tiếng Ả Rập" = 'Muối của biển này'
SELECT "Tiêu_đề tiếng Anh" FROM table_28777 WHERE "Tiêu_đề tiếng Ả_Rập" = "Muối của biển này"
sql_create_context
CREATE TABLE table name 64(kết thúc VARCHAR,bắt đầu VARCHAR,năm VARCHAR,đội VARCHAR)
CREATE TABLE table_name_64(kết_thúc VARCHAR,bắt_đầu VARCHAR,năm VARCHAR,đội VARCHAR)
Kết quả sau năm 1994 của đội MB2 và lần xuất phát thứ 31 là gì?
Kết_quả sau năm 1994 của đội MB2 và lần xuất_phát thứ 31 là gì ?
SELECT kết thúc FROM tên bảng 64 WHERE năm > 1994 AND team = "mb2" AND start = "31"
SELECT kết_thúc FROM tên_bảng_64 WHERE năm > 1994 AND team = "mb2" AND start = "31"
squall
CREATE TABLE table 204 541(id number,"tên" text,"diện tích" text,"chiều cao" text,"sàn" number,"năm" number)
CREATE TABLE table_204_541(id number,"tên" text,"diện_tích" text,"chiều cao" text,"sàn" number,"năm" number)
Có bao nhiêu trong số 7 tòa nhà cao nhất ở Kanpur, Ấn Độ được xây dựng trước năm 2010?
Có bao_nhiêu trong số 7 tòa nhà cao nhất ở Kanpur , Ấn_Độ được xây_dựng trước năm 2010 ?
SELECT COUNT ( "tên" ) FROM bảng 204 541 WHERE "năm" < 2010
SELECT COUNT ( "tên" ) FROM bảng_204_541 WHERE "năm" < 2010
nvbench
CREATE TABLE đại học(School ID int,Trường text,Địa điểm text,Thành lập real,Liên kết text,Đăng ký real,Biệt danh text,Primary conference text) CREATE TABLE Basketball match(Team ID int,School ID int,Tên đội text,ACC Regular Season text,ACC Percent text,ACC Home text,ACC Road text,All Games text,All Games Percent int,All Home text,All Road text,All Neutral text)
CREATE TABLE đại_học(School_ID int,Trường text,Địa_điểm text,Thành_lập real,Liên_kết text,Đăng_ký real,Biệt_danh text,Primary_conference text) CREATE TABLE Basketball_match(Team_ID int,School_ID int,Tên_đội text,ACC_Regular_Season text,ACC_Percent text,ACC_Home text,ACC_Road text,All_Games text,All_Games_Percent int,All_Home text,All_Road text,All_Neutral text)
Biểu đồ thanh của school id từ mỗi trò chơi và tôi muốn sắp xếp tổng số từ thứ tự cao đến thấp.
Biểu đồ_thanh của school_id từ mỗi trò_chơi và tôi muốn sắp_xếp tổng_số từ thứ_tự cao đến thấp .
SELECT All Games,School ID FROM trận đấu bóng rổ ORDER BY School ID DESC
SELECT All_Games,School_ID FROM trận đấu bóng_rổ ORDER BY School_ID DESC
wikisql
CREATE TABLE table 15847("Năm đặt hàng" text,"Nhà sản xuất" text,"Model" text,"Dòng xe(Số lượng)" text,"Hệ thống truyền động(Động cơ/Bộ truyền động)" text,"Trực đẩy nhiên liệu" text)
CREATE TABLE table_15847("Năm đặt_hàng" text,"Nhà sản_xuất" text,"Model" text,"Dòng xe(Số_lượng)" text,"Hệ_thống truyền_động(Động_cơ/Bộ truyền_động)" text,"Trực đẩy nhiên_liệu" text)
ai là nhà sản xuất cho đơn hàng năm 1998?
ai là nhà_sản_xuất cho đơn hàng năm 1998 ?
SELECT "Nhà sản xuất" FROM table 15847 WHERE "Năm đặt hàng" = '1998'
SELECT "Nhà sản_xuất" FROM table_15847 WHERE "Năm đặt_hàng" = "1998"
sql_create_context
CREATE TABLE table name 80(tạm biệt INTEGER,thắng VARCHAR,đấu với VARCHAR,ntfa div 2 VARCHAR)
CREATE TABLE table_name_80(tạm biệt INTEGER,thắng VARCHAR,đấu với VARCHAR,ntfa_div_2 VARCHAR)
Những Byes nào có Chống nhỏ hơn 1647 và NTFA Div 2 của thung lũng ngón tay và Thắng nhỏ hơn 14?
Những Byes nào có Chống nhỏ hơn 1647 và NTFA_Div 2 của thung_lũng ngón tay và Thắng nhỏ hơn 14 ?
SELECT MAX ( tạm biệt ) FROM table name 80 WHERE đấu với < 1647 AND ntfa div 2 = "thung lũng ngón tay" AND thắng < 14
SELECT MAX ( tạm_biệt ) FROM table_name_80 WHERE đấu với < 1647 AND ntfa_div_2 = "thung_lũng ngón_tay" AND thắng < 14
wikisql
CREATE TABLE table 32199("Vòng" real,"Tổng thể" real,"Cầu thủ" text,"Vị trí" text,"Đội trường/câu lạc bộ" text)
CREATE TABLE table_32199("Vòng" real,"Tổng_thể" real,"Cầu_thủ" text,"Vị_trí" text,"Đội trường/câu_lạc_bộ" text)
Ở vòng nào Paul McDonald có tổng điểm lớn hơn 109?
Ở vòng nào Paul_McDonald có tổng_điểm lớn hơn 109 ?
SELECT MAX ( "Vòng" ) FROM table 32199 WHERE "Người chơi" = 'paul mcdonald' AND "Tổng thể" > '109'
SELECT MAX ( "Vòng" ) FROM table_32199 WHERE "Người chơi" = "paul_mcdonald" AND "Tổng_thể" > "109"
wikisql
CREATE TABLE table 39555("Paul McCartney" text,"Stuart" text,"McIntosh" text,"Whitten" text,"Linda McCartney" text)
CREATE TABLE table_39555("Paul_McCartney" text,"Stuart" text,"McIntosh" text,"Whitten" text,"Linda_McCartney" text)
Linda McCartney nào có cây guitar điện Stuart?
Linda McCartney nào có cây guitar điện Stuart ?
SELECT "Linda McCartney" FROM table 39555 WHERE "Stuart" = 'guitar điện'
SELECT "Linda_McCartney" FROM table_39555 WHERE "Stuart" = "guitar điện"
advising
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,heavy papers int,quan tâm cho students int,bài tập nặng int,tôn trọng int,tham gia int,đọc nhiều int,khó học sinh int,vui nhộn int,sẽ làm lại int,bài giảng hay int,không bỏ qua int) CREATE TABLE sinh viên kỷ lục(student id int,khóa học id int,học kỳ int,lớp varchar,làm thế nào varchar,chuyển nguồn varchar,kiếm tín dụng varchar,repeat term varchar,test id varchar) CREATE TABLE chào người hướng dẫn(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,nhỏ varchar,thực tập varchar) CREATE TABLE ta(campus job id int,student id int,location varchar) CREATE TABLEprogram course(program id int,course id int,workload int,category varchar) CREATE TABLE gsi(course offering id int,student id int) 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 jobs(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE Course precondition(pre course id int,course id int) CREATE TABLE require(requirement id int,yêu cầu varchar,đại học varchar) CREATE TABLE học kỳ(học kỳ id int,học kỳ varchar,năm int) CREATE TABLE chương trình requirement(program id int,category varchar,min credit int,Added req varchar) CREATE TABLE Course offering(offering id int,course id int,semester int,section number int,start time time,end time time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ bảy varchar,chủ nhật varchar,has final project varchar,has final exam varchar,sách giáo khoa varchar,class address varchar,allow audit varchar) CREATE TABLE chương trình(program id int,tên varchar,đại học varchar,giới thiệu varchar) CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLE giảng viên(instructor id int,name varchar,uniqname varchar) CREATE TABLE khu vực(course id int,khu vực 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,heavy_papers int,quan_tâm_cho_students int,bài_tập nặng int,tôn_trọng int,tham_gia int,đọc nhiều int,khó_học sinh int,vui nhộn int,sẽ_làm lại int,bài giảng hay int,không_bỏ qua int) CREATE TABLE sinh viên_kỷ_lục(student_id int,khóa học_id int,học kỳ int,lớp varchar,làm thế_nào varchar,chuyển_nguồn varchar,kiếm_tín_dụng varchar,repeat_term varchar,test_id varchar) CREATE TABLE chào_người hướng_dẫn(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,nhỏ varchar,thực_tập varchar) CREATE TABLE ta(campus_job_id int,student_id int,location varchar) CREATE TABLEprogram_course(program_id int,course_id int,workload int,category varchar) CREATE TABLE gsi(course_offering_id int,student_id int) 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 jobs(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE Course_precondition(pre_course_id int,course_id int) CREATE TABLE require(requirement_id int,yêu_cầu varchar,đại_học varchar) CREATE TABLE học_kỳ(học kỳ_id int,học kỳ varchar,năm int) CREATE TABLE chương trình_requirement(program_id int,category varchar,min_credit int,Added_req varchar) CREATE TABLE Course_offering(offering_id int,course_id int,semester int,section_number int,start_time time,end_time time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ_bảy varchar,chủ_nhật varchar,has_final_project varchar,has_final_exam varchar,sách_giáo_khoa varchar,class_address varchar,allow_audit varchar) CREATE TABLE chương_trình(program_id int,tên varchar,đại_học varchar,giới_thiệu varchar) CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLE giảng_viên(instructor_id int,name varchar,uniqname varchar) CREATE TABLE khu_vực(course_id int,khu_vực varchar)
Trong 2 năm tới, 353 có được cung cấp không?
Trong 2 năm tới , 353 có được cung_cấp không ?
SELECT DISTINCT học kỳ.học kỳ,học kỳ.năm FROM khóa học,khóa học offering,học kỳ WHERE khóa học.course id = khóa học offering.course id AND khóa học.department = 'EECS' AND khóa học.số = 353 AND học kỳ.semester id = khóa học offering.học kỳ AND học kỳ.năm IN ( 2016,2017 )
SELECT DISTINCT học_kỳ.học_kỳ,học_kỳ.năm FROM khóa_học,khóa_học_offering,học_kỳ WHERE khóa_học.course_id = khóa học_offering.course_id AND khóa học.department = "EECS" AND khóa học.số = 353 AND học_kỳ.semester_id = khóa học_offering.học_kỳ AND học_kỳ.năm IN ( 2016,2017 )
spider
CREATE TABLE store(store id number,store name text,type text,area size number,number of product category number,ranking number) CREATE TABLE store district(store id number,district id number) CREATE TABLE quận(District id number,district name text,headquartered city text,city population number,city area number) CREATE TABLE sản phẩm(product id number,product text,kích thước text,dpi number,trang mỗi phút màu number,max page size text,giao diện text) CREATE TABLE store product(store id number,product id number)
CREATE TABLE store(store_id number,store_name text,type text,area_size number,number_of_product_category number,ranking number) CREATE TABLE store_district(store_id number,district_id number) CREATE TABLE quận(District_id number,district_name text,headquartered_city text,city_population number,city_area number) CREATE TABLE sản_phẩm(product_id number,product text,kích_thước text,dpi number,trang_mỗi_phút_màu number,max_page_size text,giao_diện text) CREATE TABLE store_product(store_id number,product_id number)
Tìm tên tất cả các quận có diện tích thành phố lớn hơn 10 hoặc dân số lớn hơn 100000
Tìm tên tất_cả các quận có diện_tích thành_phố lớn hơn 10 hoặc dân_số lớn hơn 100000
SELECT tên quận FROM quận WHERE khu vực thành phố > 10 OR dân số thành phố > 100000
SELECT tên_quận FROM quận WHERE khu_vực thành_phố > 10 OR dân_số thành_phố > 100000
sql_create_context
CREATE TABLE table 1971074 1(đã tham gia VARCHAR,vị trí VARCHAR)
CREATE TABLE table_1971074_1(đã tham_gia VARCHAR,vị_trí VARCHAR)
Các trường học ở Thị trấn Logan, Pennsylvania đã tham gia Hội nghị trong bao nhiêu năm khác nhau?
Các trường_học ở Thị_trấn Logan , Pennsylvania đã tham_gia Hội_nghị trong bao_nhiêu năm khác nhau ?
SELECT COUNT ( đã tham gia ) FROM table 1971074 1 WHERE location = "Thị trấn Logan,Pennsylvania"
SELECT COUNT ( đã tham_gia ) FROM table_1971074_1 WHERE location = "Thị_trấn Logan,Pennsylvania"
wikisql
CREATE TABLE table 50195("Người chơi" text,"Quốc gia" text,"Năm thắng" real,"Tổng" real,"Sang bằng" real,"Kết thúc" text)
CREATE TABLE table_50195("Người chơi" text,"Quốc_gia" text,"Năm_thắng" real,"Tổng" real,"Sang bằng" real,"Kết_thúc" text)
Kết thúc là gì, khi To Par lớn hơn 6 và khi (các) Năm Thắng là trước năm 1961?
Kết_thúc là gì , khi To_Par lớn hơn 6 và khi ( các ) Năm_Thắng là trước năm 1961 ?
SELECT "Kết thúc" FROM table 50195 WHERE "Sang đẳng" > '6' AND " ( Các ) năm thắng" < '1961'
SELECT "Kết_thúc" FROM table_50195 WHERE "Sang_đẳng" > "6" AND " ( Các ) năm thắng" < "1961"
wikisql
CREATE TABLE table 48925("Tuần" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Tham dự" text)
CREATE TABLE table_48925("Tuần" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Tham_dự" text)
Tuần nào có ngày 8 tháng 12 năm 1991?
Tuần nào có ngày 8 tháng 12 năm 1991 ?
SELECT AVG ( "Tuần" ) FROM table 48925 WHERE "Ngày" = 'ngày 8 tháng 12 năm 1991'
SELECT AVG ( "Tuần" ) FROM table_48925 WHERE "Ngày" = "ngày 8 tháng 12 năm 1991"
mimicsql_data
CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,vị trí nhập viện text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian thừa nhận text,dischtime text,admityear text) CREATE TABLE 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,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,vị trí_nhập_viện text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian thừa_nhận text,dischtime text,admityear text) CREATE TABLE 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)
cho tôi biết số bệnh nhân dưới 41 tuổi có tình trạng xét nghiệm bất thường delta.
cho tôi biết số bệnh_nhân dưới 41 tuổi có tình_trạng xét_nghiệm bất_thường delta .
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN lab ON nhân khẩu học.hadm id = lab.hadm id WHERE nhân khẩu học.age < "41" AND lab.flag = "delta"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN lab ON nhân_khẩu học.hadm_id = lab.hadm_id WHERE nhân_khẩu học.age <"41" AND lab.flag = "delta"
sql_create_context
CREATE TABLE table name 16(điểm danh VARCHAR,date VARCHAR,tuần VARCHAR)
CREATE TABLE table_name_16(điểm danh VARCHAR,date VARCHAR,tuần VARCHAR)
Có bao nhiêu người tham dự lấy ngày 30 tháng 10 năm 1977, với một tuần lớn hơn 7?
Có bao_nhiêu người tham_dự lấy ngày 30 tháng 10 năm 1977 , với một tuần lớn hơn 7 ?
SELECT COUNT ( điểm danh ) FROM tên bảng 16 WHERE date = "30 tháng 10 năm 1977" AND tuần > 7
SELECT COUNT ( điểm_danh ) FROM tên_bảng_16 WHERE date = "30 tháng 10 năm 1977" AND tuần > 7
sql_create_context
CREATE TABLE table name 59(water deep VARCHAR,location VARCHAR,name VARCHAR)
CREATE TABLE table_name_59(water_deep VARCHAR,location VARCHAR,name VARCHAR)
Độ sâu nước của Sedco 702, nằm ở Nigeria là bao nhiêu?
Độ sâu nước của Sedco 702 , nằm ở Nigeria là bao_nhiêu ?
SELECT độ sâu nước FROM tên bảng 59 WHERE location = "nigeria" AND name = "sedco 702"
SELECT độ sâu nước FROM tên_bảng_59 WHERE location = "nigeria" AND name = "sedco 702"
nvbench
CREATE TABLE driver(Driver ID int,Name text,Party text,Home city text,Age int) CREATE TABLE school(School ID int,Lớp text,Trường text,Địa điểm text,Loại text) CREATE TABLE school bus(School ID int,Driver ID int,Years Working int,If full time bool)
CREATE TABLE driver(Driver_ID int,Name text,Party text,Home_city text,Age int) CREATE TABLE school(School_ID int,Lớp text,Trường text,Địa_điểm text,Loại text) CREATE TABLE school_bus(School_ID int,Driver_ID int,Years_Working int,If_full_time bool)
Vẽ số thành phố quê hương theo nhóm thành phố quê hương dưới dạng biểu đồ thanh
Vẽ số thành_phố quê_hương theo nhóm thành_phố quê_hương dưới dạng biểu_đồ thanh
SELECT Home city, COUNT ( Home city ) FROM tài xế GROUP BY Home city
SELECT Home_city, COUNT ( Home_city ) FROM tài_xế GROUP BY Home_city
wikisql
CREATE TABLE table 38549("Sự kiện" text,"2006\u201307" text,"2007\u201308" text,"2008\u201309" text,"2009\u201310" text,"2010\u201311" text,"2012\u201313" text)
CREATE TABLE table_38549("Sự_kiện" text,"2006\_u201307" text,"2007\_u201308" text,"2008\_u201309" text,"2009\_u201310" text,"2010\_u201311" text,"2012\_u201313" text)
2008 09 nào có Sự kiện vàng mùa thu?
2008 09 nào có Sự_kiện vàng mùa thu ?
SELECT "2008u201309" FROM table 38549 WHERE "Sự kiện" = 'vàng mùa thu'
SELECT "2008u201309" FROM table_38549 WHERE "Sự_kiện" = "vàng mùa thu"
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
15
Edit dataset card