source
stringclasses
25 values
schema_syll
stringlengths
26
5.37k
schema_word
stringlengths
26
5.37k
question_syll
stringlengths
0
1.08k
question_word
stringlengths
0
1.11k
query_syll
stringlengths
0
4.53k
query_word
stringlengths
0
4.53k
sql_create_context
CREATE TABLE table name 76(date VARCHAR,khách VARCHAR)
CREATE TABLE table_name_76(date VARCHAR,khách VARCHAR)
Ngày nào có khách ghé thăm boston?
Ngày nào có khách ghé thăm boston ?
SELECT date FROM tên bảng 76 WHERE khách truy cập = "boston"
SELECT date FROM tên_bảng_76 WHERE khách truy_cập = "boston"
sql_create_context
CREATE TABLE table name 8(cạnh tranh VARCHAR,đối thủ VARCHAR)
CREATE TABLE table_name_8(cạnh_tranh VARCHAR,đối_thủ VARCHAR)
Sự cạnh tranh ra sao khi đối thủ là Randers?
Sự cạnh_tranh ra sao khi đối_thủ là Randers ?
SELECT cuộc thi FROM tên bảng 8 WHERE đối thủ = "Randers"
SELECT cuộc thi FROM tên_bảng_8 WHERE đối_thủ = "Randers"
wikisql
CREATE TABLE table 55895("Chọn" real,"Người chơi" text,"Quốc gia xuất xứ*" text,"Đội PBA" text,"Đại học" text)
CREATE TABLE table_55895("Chọn" real,"Người chơi" text,"Quốc_gia xuất_xứ *" text,"Đội PBA" text,"Đại_học" text)
Con số được chọn để giúp đỡ Trường Cao đẳng Perpetual với Coca-Cola Tigers với tư cách là một đội PBA là gì?
Con_số được chọn để giúp_đỡ Trường Cao_đẳng Perpetual với Coca-Cola_Tigers với tư_cách là một đội PBA là gì ?
SELECT COUNT ( "Pick" ) FROM table 55895 WHERE "College" = 'sự giúp đỡ liên tục' AND "Đội PBA" = 'những chú hổ cocacola'
SELECT COUNT ( "Pick" ) FROM table_55895 WHERE "College" = "sự giúp_đỡ liên_tục" AND "Đội PBA" = "những chú hổ cocacola"
sql_create_context
CREATE TABLE table name 20(ứng cử viên VARCHAR,bầu cử VARCHAR)
CREATE TABLE table_name_20(ứng_cử_viên VARCHAR,bầu_cử VARCHAR)
Ứng cử viên trong cuộc bầu cử năm 2008 (2) là ai?
Ứng_cử_viên trong cuộc bầu_cử năm 2008 ( 2 ) là ai ?
SELECT ứng cử viên FROM tên bảng 20 WHERE bầu cử = "2008 ( 2 ) "
SELECT ứng_cử_viên FROM tên_bảng_20 WHERE bầu_cử = "2008 ( 2 ) "
wikisql
CREATE TABLE table 39905("Số" real,"Người xây dựng" text,"Loại" text,"Ngày" text,"Số công trình" text)
CREATE TABLE table_39905("Số" real,"Người xây_dựng" text,"Loại" text,"Ngày" text,"Số công_trình" text)
Số Công trình nào có Công ty xây dựng động cơ & máy móc Canada và Số nhỏ hơn 3?
Số Công_trình nào có Công_ty xây_dựng động_cơ & máy_móc Canada và Số nhỏ hơn 3 ?
SELECT "Số công trình" FROM table 39905 WHERE "Builder" = 'công ty máy móc động cơ Canada' AND "Số" < '3'
SELECT "Số công_trình" FROM table_39905 WHERE "Builder" = "công_ty máy_móc động_cơ Canada" AND "Số" < "3"
atis
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 food service(meal code text,meal number int,compartment text,Meal description varchar) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLE ngăn class(khoang varchar,class type varchar) CREATE TABLE thành phố(mã thành phố varchar,tên thành phố varchar,state code varchar,country name varchar,time zone code varchar) CREATE TABLE code description(code varchar,description text) CREATE TABLE máy bay(aircraft code varchar,aircraft description varchar,nhà sản xuất varchar,basic type varchar,động cơ int,động cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,tải trả int,tốc độ bay int,phạm vi dặm int,có áp suất varchar) CREATE TABLE chuyến bay leg(flight id int,leg number int,leg flight int) CREATE TABLE giá vé cơ sở(giá cơ sở mã text,booking class text,class type text,cao cấp text,phổ thông text,giảm giá text,đêm text,mùa text,basis days text) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE limit(restriction code text,advance purchase int,stopovers text,saturday stay required text,minimum stay int,tối đa lưu trú int,đơn đăng ký text,không giảm giá text) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE chuyến bay stop(flight id int,stop number int,stop days text,stop airport text,arrival time int,arrival airline text,arrival flight number int,departure time 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 hãng hàng không chính varchar,số chuyến bay thấp int,số chuyến bay cao int,hãng hàng không kép varchar,tên dịch vụ text) CREATE TABLE ngày(mã ngày varchar,tên ngày varchar) CREATE TABLE date day(month number int,day number int,year int,day name varchar) CREATE TABLE time interval(Period text,begin time int,end time int) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,kết nối int,departure time int,dual carrier text,flight days text,flight id int,flight number int,from airport varchar,meal code text,stops int,time elapsed int,to airport varchar) CREATE TABLE 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 Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) 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 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 food_service(meal_code text,meal_number int,compartment text,Meal_description varchar) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLE ngăn_class(khoang varchar,class_type varchar) CREATE TABLE thành_phố(mã_thành phố varchar,tên_thành phố varchar,state_code varchar,country_name varchar,time_zone_code varchar) CREATE TABLE code_description(code varchar,description text) CREATE TABLE máy_bay(aircraft_code varchar,aircraft_description varchar,nhà_sản_xuất varchar,basic_type varchar,động_cơ int,động_cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,tải_trả int,tốc_độ bay int,phạm vi_dặm int,có áp_suất varchar) CREATE TABLE chuyến bay_leg(flight_id int,leg_number int,leg_flight int) CREATE TABLE giá vé_cơ sở(giá_cơ sở_mã text,booking_class text,class_type text,cao_cấp text,phổ_thông text,giảm_giá text,đêm text,mùa text,basis_days text) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE limit(restriction_code text,advance_purchase int,stopovers text,saturday_stay_required text,minimum_stay int,tối đa_lưu trú int,đơn đăng_ký text,không_giảm giá text) CREATE TABLE tháng(số_tháng int,tên_tháng text) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,stop_days text,stop_airport text,arrival_time int,arrival_airline text,arrival_flight_number int,departure_time 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 hãng hàng_không chính varchar,số_chuyến bay_thấp int,số_chuyến bay cao int,hãng_hàng không kép varchar,tên dịch_vụ text) CREATE TABLE ngày(mã ngày varchar,tên_ngày varchar) CREATE TABLE date_day(month_number int,day_number int,year int,day_name varchar) CREATE TABLE time_interval(Period text,begin_time int,end_time int) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,kết_nối int,departure_time int,dual_carrier text,flight_days text,flight_id int,flight_number int,from_airport varchar,meal_code text,stops int,time_elapsed int,to_airport varchar) CREATE TABLE 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 Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) 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)
và các chuyến bay từ NASHVILLE đến TACOMA vào ngày 18 lại là gì
và các chuyến bay từ NASHVILLE đến TACOMA vào ngày 18 lại là gì
SELECT DISTINCT chuyến bay.flight id FROM sân bay service AS AIRPORT SERVICE 0,airport service AS AIRPORT SERVICE 1,city AS CITY 0,city AS CITY 1,date day,days,flight WHERE ( CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'TACOMA' AND date day.day number = 18 AND date day.month number = 5 AND date day.year = 1991 AND ngày.day name = date day.day name AND chuyến bay.flight days = ngày.ngày code 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 = 'NASHVILLE' AND chuyến bay.from airport = AIRPORT SERVICE 0.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,date_day,days,flight WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "TACOMA" AND date_day.day_number = 18 AND date_day.month_number = 5 AND date_day.year = 1991 AND ngày.day_name = date_day.day_name AND chuyến bay.flight_days = ngày.ngày_code 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 = "NASHVILLE" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code
mimicsql_data
CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,tên text,tình trạng hôn nhân text,tuổi text,nghề nghiệp text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn flag text,admission location text,discharge location text,diagnosis text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text)
CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,tên text,tình_trạng hôn_nhân text,tuổi text,nghề_nghiệp text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text)
tìm số bệnh nhân chết trong hoặc trước năm 2154 và căn bệnh chính của họ là nhiễm toan.
tìm số bệnh_nhân chết trong hoặc trước năm 2154 và căn_bệnh chính của họ là nhiễm_toan .
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 = "ACIDOSIS" AND nhân khẩu học.dod year <= "2154.0"
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 = "ACIDOSIS" AND nhân_khẩu học.dod_year <_= "2154.0"
mimic_iii
CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) 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,thời gian nhập viện time,loại nhập viện text,địa điểm nhập học text,địa điểm xuất viện text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE icustays(row id number,topic 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 cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,giá trị text)
CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_icd_procedures(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,amount number) 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,thời_gian nhập_viện time,loại_nhập_viện text,địa_điểm nhập_học text,địa_điểm xuất_viện text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE icustays(row_id number,topic_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 cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,giá_trị text)
phiên bản không viết tắt của dây vướng víu nec-deliv là gì?
phiên_bản không viết tắt của dây vướng_víu nec-deliv là gì ?
SELECT d icd diagnoses.long title FROM d icd diagnoses WHERE d icd diagnoses.short title = 'dây vướng víu necdeliv' UNION SELECT d icd procedures.long title FROM d icd procedures WHERE d icd procedures.short title = 'dây vướng víu necdeliv'
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = "dây vướng_víu necdeliv" UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = "dây vướng_víu necdeliv"
mimicsql_data
CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text)
CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơ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)
Số lượng bệnh nhân là người Mỹ gốc Ấn Độ/người bản xứ Alaska và tên thuốc là hydromorphone là bao nhiêu?
Số_lượng bệnh_nhân là người Mỹ gốc Ấn_Độ / người bản_xứ Alaska và tên thuốc là hydromorphone là bao_nhiêu ?
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN đơn thuốc ON nhân khẩu học.hadm id = đơn thuốc.hadm id WHERE nhân khẩu học.dân tộc = "Người Mỹ da đỏngười bản địa ALASKA" AND đơn thuốc.drug = "Hydromorphone"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN đơn thuốc ON nhân_khẩu học.hadm_id = đơn thuốc.hadm_id WHERE nhân_khẩu học.dân_tộc = "Người Mỹ da đỏngười bản_địa_ALASKA" AND đơn thuốc.drug = "Hydromorphone"
wikisql
CREATE TABLE table 17778("Sequencer" text,"Ion Torrent PGM" text,"454 GS FLX" text,"HiSeq 2000" text,"SOLiDv4" text,"PacBio" text,"Sanger 3730xl" text)
CREATE TABLE table_17778("Sequencer" text,"Ion Torrent_PGM" text,"454 GS FLX" text,"HiSeq 2000" text,"SOLiDv4" text,"PacBio" text,"Sanger 3730 xl" text)
454 gs flx là bao nhiêu khi pacbio là 100-500 mb?
454 gs flx là bao_nhiêu khi pacbio là 100 - 500 mb ?
SELECT "454 GS FLX" FROM table 17778 WHERE "PacBio" = '100500 Mb'
SELECT "454 GS FLX" FROM table_17778 WHERE "PacBio" = "100 500 Mb"
wikisql
CREATE TABLE table 63599("Ngày" real,"Đơn" text,"Được hỗ trợ bằng" text,"Nhãn ghi" text,"Định dạng" text,"Chi tiết khác" text)
CREATE TABLE table_63599("Ngày" real,"Đơn" text,"Được hỗ_trợ bằng" text,"Nhãn ghi" text,"Định_dạng" text,"Chi_tiết khác" text)
Định dạng của đĩa đơn I Can't Stay là gì?
Định_dạng của đĩa đơn I Can't_Stay là gì ?
SELECT "Định dạng" FROM table 63599 WHERE "Đơn" = 'tôi không thể ở lại'
SELECT "Định_dạng" FROM table_63599 WHERE "Đơn" = "tôi không_thể ở lại"
mimic_iii
CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,admission location text,vị trí xuất viện text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLE biểu đồ(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE đơn thuốc(row id number,topic id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE 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 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,ngoài giờ time)
CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,vị_trí xuất_viện text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLE biểu_đồ(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE đơn thuốc(row_id number,topic_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE 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 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,ngoài giờ time)
bệnh nhân 81562 đã được kê đơn thuốc hai lần cho đến 13 tháng trước là gì?
bệnh_nhân 81562 đã được kê đơn thuốc hai lần cho đến 13 tháng trước là gì ?
SELECT t1.drug FROM ( SELECT đơn thuốc.drug, COUNT ( prescriptions.startdate ) AS c1 FROM đơn thuốc WHERE đơn thuốc.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.chủ đề id = 81562 ) AND DATETIME ( prescriptions.ngày bắt đầu ) <= DATETIME ( CURRENT TIME ( ) ,'13 tháng' ) GROUP BY đơn thuốc.drug ) AS t1 WHERE t1.c1 = 2
SELECT t1.drug FROM ( SELECT đơn thuốc.drug, COUNT ( prescriptions.startdate ) AS c1 FROM đơn thuốc WHERE đơn thuốc.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.chủ đề_id = 81562 ) AND DATETIME ( prescriptions.ngày bắt_đầu ) <_= DATETIME ( CURRENT_TIME ( ) ," 13 tháng" ) GROUP BY đơn thuốc.drug ) AS t1 WHERE t1.c1 = 2
mimicsql_data
CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE 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,name text,marital status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian phân bổ text,năm nhập học text)
CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE 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 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)
Độ tuổi tối đa của bệnh nhân có giới tính là nữ và bảo hiểm là Medicare là bao nhiêu?
Độ tuổi tối_đa của bệnh_nhân có giới_tính là nữ và bảo_hiểm là Medicare là bao_nhiêu ?
SELECT MAX ( demographic.age ) FROM nhân khẩu học WHERE nhân khẩu học.gender = "F" AND nhân khẩu học.insurance = "Medicare"
SELECT MAX ( demographic.age ) FROM nhân_khẩu học WHERE nhân_khẩu học.gender = "F" AND nhân_khẩu học.insurance = "Medicare"
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 những 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 tên và mã cũng như nhóm theo trụ sở thuộc tính và trực quan hóa chúng bằng biểu đồ thanh, bạn có thể xếp hạng tên theo thứ tự tăng dần không?
Đối_với những 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 tên và mã cũng như nhóm theo trụ_sở thuộc_tính và trực_quan hóa chúng bằng biểu_đồ thanh , bạn có_thể xếp_hạng tên theo thứ_tự tăng dần không ?
SELECT T1.Name,T1.Code FROM Sản phẩm AS T1 JOIN Nhà sản xuất AS T2 ON T1.Nhà sản xuất = T2.Code GROUP BY Trụ sở chính,T1.Name ORDER BY T1.Name
SELECT T1.Name,T1.Code FROM Sản_phẩm AS T1 JOIN Nhà_sản_xuất AS T2 ON T1.Nhà_sản_xuất = T2.Code GROUP BY Trụ_sở chính,T1.Name ORDER BY T1.Name
sql_create_context
CREATE TABLE table name 24(so với INTEGER,thua VARCHAR,thắng VARCHAR)
CREATE TABLE table_name_24(so với INTEGER,thua VARCHAR,thắng VARCHAR)
Có bao nhiêu trận đấu khi số trận thua là 11 và số trận thắng ít hơn 5?
Có bao_nhiêu trận đấu khi số trận thua là 11 và số trận thắng ít hơn 5 ?
SELECT AVG ( chống lại ) FROM tên bảng 24 WHERE thua = 11 AND thắng < 5
SELECT AVG ( chống lại ) FROM tên_bảng_24 WHERE thua = 11 AND thắng < 5
sql_create_context
CREATE TABLE table name 43(áo tắm INTEGER,state VARCHAR,phỏng vấn VARCHAR)
CREATE TABLE table_name_43(áo_tắm INTEGER,state VARCHAR,phỏng_vấn VARCHAR)
Áo tắm thấp nhất của Utah với cuộc phỏng vấn trên 8,53 là gì?
Áo tắm thấp nhất của Utah với cuộc phỏng_vấn trên 8,53 là gì ?
SELECT MIN ( áo tắm ) FROM table name 43 WHERE state = "utah" AND phỏng vấn > 8,53
SELECT MIN ( áo_tắm ) FROM table_name_43 WHERE state = "utah" AND phỏng_vấn > 8,53
atis
CREATE TABLE chuyến bay fare(flight id int,fare id int) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE chuyến bay(aircraft code sequence text,hãng hàng không varchar,airline flight text,arrival time int,kết nối int,departure time int,dual carrier text,flight days text,flight id int,flight number int,from airport varchar,meal code text,stops int,time elapsed int,to airport varchar) CREATE TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE hạn chế(mã hạn chế text,mua trước int,điểm dừng text,thứ bảy ở yêu cầu text,thời gian lưu trú tối thiểu int,thời gian lưu trú tối đa int,đơn đăng ký text,no discounts text) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE food service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) CREATE TABLE city(city code varchar,city name varchar,state code varchar,tên quốc gia varchar,mã khu vực thời gian varchar) CREATE TABLE sân bay(mã sân bay varchar,tên sân bay text,địa điểm sân bay text,mã tiểu bang varchar,tên quốc gia varchar,mã khu vực thời gian varchar,thời gian kết nối tối thiểu int) CREATE TABLE giá vé cơ sở(giá vé cơ sở mã text,booking class text,class type text,premium text,phổ thông text,giảm giá text,đêm text,mùa text,cơ sở ngày text) CREATE TABLE time interval(giai đoạn text,begin time int,end time int) CREATE TABLE double carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE chuyến bay leg(flight id int,leg number int,leg flight int) CREATE TABLE date day(month number int,day number int,year int,day name varchar) CREATE TABLE ngăn class(ngăn varchar,class type 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 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 ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLE code description(code varchar,description text) CREATE TABLE ngày(days code varchar,day name varchar) CREATE TABLE máy bay(aircraft code varchar,aircraft description varchar,nhà sản xuất varchar,basic type varchar,engines 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,điều áp varchar) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE hãng hàng không(mã hàng không varchar,tên hàng text,lưu ý text)
CREATE TABLE chuyến bay_fare(flight_id int,fare_id int) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE chuyến bay(aircraft_code_sequence text,hãng hàng_không varchar,airline_flight text,arrival_time int,kết_nối int,departure_time int,dual_carrier text,flight_days text,flight_id int,flight_number int,from_airport varchar,meal_code text,stops int,time_elapsed int,to_airport varchar) CREATE TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE hạn_chế(mã hạn_chế text,mua trước int,điểm dừng text,thứ bảy_ở_yêu cầu text,thời_gian lưu_trú tối_thiểu int,thời_gian lưu_trú tối_đa int,đơn đăng_ký text,no_discounts text) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE food_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) CREATE TABLE city(city_code varchar,city_name varchar,state_code varchar,tên quốc_gia varchar,mã_khu vực_thời_gian varchar) CREATE TABLE sân_bay(mã sân_bay varchar,tên sân_bay text,địa_điểm sân_bay text,mã_tiểu_bang varchar,tên quốc_gia varchar,mã_khu vực_thời_gian varchar,thời_gian kết_nối tối_thiểu int) CREATE TABLE giá vé_cơ sở(giá vé_cơ sở_mã text,booking_class text,class_type text,premium text,phổ_thông text,giảm_giá text,đêm text,mùa text,cơ_sở_ngày text) CREATE TABLE time_interval(giai_đoạn text,begin_time int,end_time int) CREATE TABLE double_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE chuyến bay_leg(flight_id int,leg_number int,leg_flight int) CREATE TABLE date_day(month_number int,day_number int,year int,day_name varchar) CREATE TABLE ngăn_class(ngăn varchar,class_type 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 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 ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLE code_description(code varchar,description text) CREATE TABLE ngày(days_code varchar,day_name varchar) CREATE TABLE máy_bay(aircraft_code varchar,aircraft_description varchar,nhà_sản_xuất varchar,basic_type varchar,engines 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,điều áp varchar) CREATE TABLE tháng(số_tháng int,tên_tháng text) CREATE TABLE hãng hàng_không(mã_hàng không varchar,tên_hàng text,lưu_ý text)
những chuyến bay nào rời SEATTLE vào chủ nhật trên CO
những chuyến bay nào rời SEATTLE vào chủ_nhật trên CO
SELECT DISTINCT chuyến bay.flight id FROM Airport service,city,date day,days,flight WHERE ( city.city code = Airport service.city code AND city.city name = 'SEATTLE' AND date day.day number = 27 AND date day.month number = 8 AND date day.year = 1991 AND Days.day name = date day.day name AND chuyến bay.flight days = ngày.days code AND chuyến bay.from airport = Airport service.airport code ) AND chuyến bay.airline code = 'CO'
SELECT DISTINCT chuyến bay.flight_id FROM Airport_service,city,date_day,days,flight WHERE ( city.city_code = Airport_service.city_code AND city.city_name = "SEATTLE" AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND Days.day_name = date_day.day_name AND chuyến bay.flight_days = ngày.days_code AND chuyến bay.from_airport = Airport_service.airport_code ) AND chuyến bay.airline_code = "CO"
sql_create_context
CREATE TABLE table name 90( number of phones as percentage of population INTEGER,last updated date VARCHAR,number of mobile phones VARCHAR)
CREATE TABLE table_name_90(_number_of_phones_as__percentage_of_population INTEGER,last_updated_date VARCHAR,number_of_mobile_phones VARCHAR)
Bao nhiêu phần trăm là 327.577.529 người có điện thoại vào tháng 6 năm 2013?
Bao_nhiêu phần_trăm là 327.577.529 người có điện_thoại vào tháng 6 năm 2013 ?
SELECT MAX ( number of phones as percentage of population ) FROM table name 90 WHERE last updated date = "tháng 6 năm 2013" AND number of mobile phones = "327,577,529"
SELECT MAX ( number_of_phones_as__percentage_of_population ) FROM table_name_90 WHERE last_updated_date= "tháng 6 năm 2013" AND number_of_mobile_phones = "327,577,529"
eicu
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,BNunitstayid number,tên chẩn đoán text,thời gian chẩn đoán time,icd9code 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,lộ trình text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE chi phí(chi phí number,duy nhất text,diseasehealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện đơn vị time,thời gian xuất viện đơn vị time,thời gian xuất viện time,trạng thái nhập viện text) CREATE TABLE điều trị(Treatmentid number,BNunitstayid number,tên điều trị text,thời gian điều trị 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,systemdiastolic number,systemicmean number,observationtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,địa điểm nuôi cấy text,sinh vật text,thời gian nuôi cấy time) CREATE TABLE đầu ra đầu vào(id đầu ra number,bệnh nhân đơn vị ở lại number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bào number,thời gian đầu ra 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,BNunitstayid number,tên chẩn_đoán text,thời_gian chẩn_đoán time,icd9code 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,lộ_trình text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE chi_phí(chi_phí number,duy_nhất text,diseasehealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện đơn_vị time,thời_gian xuất_viện đơn_vị time,thời_gian xuất_viện time,trạng_thái nhập_viện text) CREATE TABLE điều_trị(Treatmentid number,BNunitstayid number,tên điều_trị text,thời_gian điều_trị 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,systemdiastolic number,systemicmean number,observationtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,địa_điểm nuôi_cấy text,sinh_vật text,thời_gian nuôi_cấy time) CREATE TABLE đầu_ra đầu_vào(id đầu_ra number,bệnh_nhân đơn_vị ở lại number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bào number,thời_gian đầu_ra time)
Lần đầu tiên bệnh nhân 028-11360 được đo sao2 trong lần thăm khám gần nhất tại phòng chăm sóc đặc biệt là khi nào?
Lần đầu_tiên bệnh_nhân 028 - 11360 được đo sao2 trong lần thăm_khám gần nhất tại phòng chăm_sóc đặc_biệt là khi nào ?
SELECT quan trọng định kỳ.observationtime FROM quan trọng định kỳ WHERE quan trọng định kỳ.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 = '02811360 ' ) AND NOT disease.unitdischargetime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 ) AND NOT Vital Periodic.sao2 IS NULL ORDER BY Vital Periodic.observationtime LIMIT 1
SELECT quan_trọng định_kỳ.observationtime FROM quan_trọng định_kỳ WHERE quan_trọng định_kỳ.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 = "028 11360" ) AND NOT disease.unitdischargetime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 ) AND NOT Vital_Periodic.sao2 IS NULL ORDER BY Vital_Periodic.observationtime LIMIT 1
wikisql
CREATE TABLE table 40401("Ngày" text,"Giải đấu" text,"Surface" text,"Đối thủ trong trận chung kết" text,"Điểm số" text)
CREATE TABLE table_40401("Ngày" text,"Giải đấu" text,"Surface" text,"Đối_thủ trong trận chung_kết" text,"Điểm_số" text)
Đối thủ cuối cùng tại giải đấu ở Đài Bắc, Đài Loan ngày 14/11/1994 là ai?
Đối_thủ cuối_cùng tại giải đấu ở Đài_Bắc , Đài_Loan ngày 14/11/1994 là ai ?
SELECT "Đối thủ trong trận chung kết" FROM table 40401 WHERE "Giải đấu" = 'taipei,taiwan' AND "Ngày" = '14 tháng 11 năm 1994'
SELECT "Đối_thủ trong trận chung_kết" FROM table_40401 WHERE "Giải đấu" = "taipei,taiwan" AND "Ngày" = "14 tháng 11 năm 1994"
eicu
CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Vital Periodic(Vital Periodicid number,Patientunitstayid number,Nhiệt độ number,sao2 number,Nhịp tim number,Hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng tiêu thụ(lượng đầu ra number,bệnh nhân đơn vị lưu trú number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bàosố number,thời gian đầu ra time) CREATE TABLE dị ứng(dị ứng number,bệnh nhân đơn vị lưu trú number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE bệnh nhân(độc nhất text,bệnh nhânhệ thống sức khỏeở lạiid number,bệnh nhânđơn vị ở lạiid number,giới tính text,tuổi text,dân tộc text,mệnh viện number,khu trú number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE thuốc(mã thuốc number,bệnh nhân ở lại đơn vị number,tên thuốc text,liều lượng text,lộ trìnhquản trị text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE chẩn đoán(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 cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number)
CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Vital_Periodic(Vital Periodicid number,Patientunitstayid number,Nhiệt_độ number,sao2 number,Nhịp tim number,Hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng tiêu_thụ(lượng đầu_ra number,bệnh_nhân đơn_vị lưu_trú number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế bàosố number,thời_gian đầu_ra time) CREATE TABLE dị_ứng(dị_ứng number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE bệnh_nhân(độc_nhất text,bệnh nhânhệ_thống sức khỏeở lạiid number,bệnh nhânđơn_vị ở lạiid number,giới_tính text,tuổi text,dân_tộc text,mệnh_viện number,khu trú number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân ở lại đơn_vị number,tên thuốc text,liều_lượng text,lộ trìnhquản_trị text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE chẩn_đoán(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 cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number)
ồ giá trị trung bình của chỉ số cpk-mb trên bệnh nhân 027-82318 là bao nhiêu?
ồ giá_trị trung_bình của chỉ_số cpk-mb trên bệnh_nhân 027 - 82318 là bao_nhiêu ?
SELECT AVG ( lab.labresult ) FROM lab WHERE lab.Patientunitstayid IN ( SELECT Patient.Patientunitstayid FROM Patient WHERE Patient.Patienthealthsystemstayid IN ( SELECT Patient.Patienthealthsystemstayid FROM Patient WHERE Patient.uniquepid = '02782318' ) ) AND lab.labname = 'chỉ mục cpkmb'
SELECT AVG ( lab.labresult ) FROM lab WHERE lab.Patientunitstayid IN ( SELECT Patient.Patientunitstayid FROM Patient WHERE Patient.Patienthealthsystemstayid IN ( SELECT Patient.Patienthealthsystemstayid FROM Patient WHERE Patient.uniquepid = "027 82318" ) ) AND lab.labname = "chỉ mục cpkmb"
nvbench
CREATE TABLE On Call(Y tá INTEGER,BlockFloor INTEGER,BlockCode INTEGER,OnCallStart DATETIME,OnCallEnd DATETIME) CREATE TABLE Trained In(Bác sĩ INTEGER,Treatment INTEGER,CertificationDate DATETIME,CertificationExpires DATETIME) CREATE TABLE Trải qua(Bệnh nhân INTEGER,Thủ tục INTEGER,Ở lại INTEGER,Ngày trải qua DATETIME,Bác sĩ INTEGER,Y tá hỗ trợ INTEGER) CREATE TABLE Thuốc(Mã INTEGER,Tên VARCHAR(30),Nhãn hiệu VARCHAR(30),Mô tả VARCHAR(30)) CREATE TABLE Room(RoomNumber INTEGER,RoomType VARCHAR(30),BlockFloor INTEGER,BlockCode INTEGER,Unavailable BOOLEAN) CREATE TABLE Kê đơn(Bác sĩ INTEGER,Bệnh nhân INTEGER,Thuốc INTEGER,Date DATETIME,Cuộc hẹn INTEGER,Liều VARCHAR(30)) CREATE TABLE Cuộc hẹn(Mã cuộc hẹn INTEGER,Bệnh nhân INTEGER,Y tá chuẩn bị INTEGER,Bác sĩ INTEGER,Bắt đầu DATETIME,End DATETIME,Phòng khám TEXT) CREATE TABLE Bác sĩ(ID nhân viên INTEGER,Tên VARCHAR(30),Vị trí VARCHAR(30),SSN INTEGER) CREATE TABLE Affiliated With(Bác sĩ INTEGER,Bộ phận INTEGER,Cơ quan chính BOOLEAN) CREATE TABLE Block(BlockFloor INTEGER,BlockCode INTEGER) CREATE TABLE Stay(StayID INTEGER,Patient INTEGER,Room INTEGER,StayStart DATETIME,StayEnd DATETIME) CREATE TABLE Nurse(EmployeeID INTEGER,Tên VARCHAR(30),Chức vụ VARCHAR(30),Đã đăng ký BOOLEAN,SSN INTEGER) CREATE TABLE Phòng ban(ID phòng ban INTEGER,Tên VARCHAR(30),Trưởng phòng INTEGER) CREATE TABLE Bệnh nhân(SSN INTEGER,Tên VARCHAR(30),Địa chỉ VARCHAR(30),Điện thoại VARCHAR(30),InsuranceID INTEGER,PCP INTEGER) CREATE TABLE Thủ tục(Mã INTEGER,Tên VARCHAR(30)),Trị giá REAL)
CREATE TABLE On_Call(Y_tá INTEGER,BlockFloor INTEGER,BlockCode INTEGER,OnCallStart DATETIME,OnCallEnd DATETIME) CREATE TABLE Trained_In(Bác_sĩ INTEGER,Treatment INTEGER,CertificationDate DATETIME,CertificationExpires DATETIME) CREATE TABLE Trải qua(Bệnh_nhân INTEGER,Thủ_tục INTEGER,Ở lại INTEGER,Ngày trải qua DATETIME,Bác_sĩ INTEGER,Y_tá hỗ_trợ INTEGER) CREATE TABLE Thuốc(Mã INTEGER,Tên VARCHAR(30),Nhãn_hiệu VARCHAR(30),Mô_tả VARCHAR(30)) CREATE TABLE Room(RoomNumber INTEGER,RoomType VARCHAR(30),BlockFloor INTEGER,BlockCode INTEGER,Unavailable BOOLEAN) CREATE TABLE Kê đơn(Bác_sĩ INTEGER,Bệnh_nhân INTEGER,Thuốc INTEGER,Date DATETIME,Cuộc hẹn INTEGER,Liều VARCHAR(30)) CREATE TABLE Cuộc hẹn(Mã_cuộc hẹn INTEGER,Bệnh_nhân INTEGER,Y_tá chuẩn_bị INTEGER,Bác_sĩ INTEGER,Bắt_đầu DATETIME,End DATETIME,Phòng_khám TEXT) CREATE TABLE Bác_sĩ(ID nhân_viên INTEGER,Tên VARCHAR(30),Vị_trí VARCHAR(30),SSN INTEGER) CREATE TABLE Affiliated_With(Bác_sĩ INTEGER,Bộ_phận INTEGER,Cơ_quan chính BOOLEAN) CREATE TABLE Block(BlockFloor INTEGER,BlockCode INTEGER) CREATE TABLE Stay(StayID INTEGER,Patient INTEGER,Room INTEGER,StayStart DATETIME,StayEnd DATETIME) CREATE TABLE Nurse(EmployeeID INTEGER,Tên VARCHAR(30),Chức_vụ VARCHAR(30),Đã đăng_ký BOOLEAN,SSN INTEGER) CREATE TABLE Phòng ban(ID phòng_ban INTEGER,Tên VARCHAR(30),Trưởng_phòng INTEGER) CREATE TABLE Bệnh_nhân(SSN INTEGER,Tên VARCHAR(30),Địa_chỉ VARCHAR(30),Điện_thoại VARCHAR(30),InsuranceID INTEGER,PCP INTEGER) CREATE TABLE Thủ_tục(Mã INTEGER,Tên VARCHAR(30)),Trị_giá REAL)
Trực quan hóa biểu đồ phân tán về id nhân viên của từng bác sĩ và id bộ phận được liên kết chủ yếu.
Trực_quan hóa biểu_đồ phân_tán về id nhân_viên của từng bác_sĩ và id bộ_phận được liên_kết chủ_yếu .
SELECT Bác sĩ,Khoa FROM Liên kết Với WHERE Liên kết chính = 1
SELECT Bác_sĩ,Khoa FROM Liên_kết_Với WHERE Liên_kết chính = 1
sql_create_context
CREATE TABLE table name 55(psip short name VARCHAR,channel INTEGER)
CREATE TABLE table_name_55(psip_short_name VARCHAR,channel INTEGER)
Tên viết tắt của kênh lớn hơn 63,4 là gì?
Tên viết tắt của kênh lớn hơn 63,4 là gì ?
SELECT psip short name FROM table name 55 WHERE kênh > 63.4
SELECT psip_short_name FROM table_name_55 WHERE kênh > 63.4
nvbench
CREATE TABLE film market estimation(Estimation ID int,Low Estimate real,High Estimate real,Film ID int,Type text,Market ID int,Year int) CREATE TABLE film(Film ID int,Title text,Studio text,Giám đốc text,Tổng đồng đô la int) CREATE TABLE thị trường(ID thị trường int,Quốc gia text,Số thành phố int)
CREATE TABLE film_market_estimation(Estimation_ID int,Low_Estimate real,High_Estimate real,Film_ID int,Type text,Market_ID int,Year int) CREATE TABLE film(Film_ID int,Title text,Studio text,Giám_đốc text,Tổng_đồng_đô_la int) CREATE TABLE thị_trường(ID_thị_trường int,Quốc_gia text,Số_thành phố int)
Trả về ước tính thấp và cao cho tất cả các thị trường phim. Hiển thị biểu đồ phân tán.
Trả về ước_tính thấp và cao cho tất_cả các thị_trường phim . Hiển_thị biểu_đồ phân_tán .
SELECT Ước tính thấp,Ước tính cao FROM ước tính thị trường phim
SELECT Ước_tính thấp,Ước_tính cao FROM ước_tính thị_trường phim
sql_create_context
CREATE TABLE table name 84(away team VARCHAR,crowd INTEGER)
CREATE TABLE table_name_84(away_team VARCHAR,crowd INTEGER)
Khi số lượng khán giả lớn hơn 7.500, điểm số của đội khách là bao nhiêu?
Khi số_lượng khán_giả lớn hơn 7.500 , điểm_số của đội khách là bao_nhiêu ?
SELECT đội khách AS điểm FROM tên bảng 84 WHERE đám đông > 7 OFF SET 500
SELECT đội khách AS điểm FROM tên_bảng_84 WHERE đám đông > 7 OFF SET 500
sql_create_context
CREATE TABLE table name 47(công việc VARCHAR,năm VARCHAR,giải thưởng VARCHAR)
CREATE TABLE table_name_47(công_việc VARCHAR,năm VARCHAR,giải_thưởng VARCHAR)
Kể tên tác phẩm nhiều năm trước 2007 đoạt giải bom tấn giải trí
Kể tên tác_phẩm nhiều năm trước 2007 đoạt giải bom tấn giải_trí
SELECT công việc FROM table name 47 WHERE năm < 2007 AND giải thưởng = "giải thưởng giải trí bom tấn"
SELECT công_việc FROM table_name_47 WHERE năm < 2007 AND giải_thưởng = "giải_thưởng giải_trí bom tấn"
sql_create_context
CREATE TABLE table name 33(tv time VARCHAR,tuần VARCHAR,đối thủ VARCHAR)
CREATE TABLE table_name_33(tv_time VARCHAR,tuần VARCHAR,đối_thủ VARCHAR)
THỜI GIAN TRUYỀN HÌNH LÀ GÌ VỚI MỘT TUẦN LỚN HƠN 15, VỚI NHỮNG NGƯỜI CHIA SẺ OAKLAND LÀ ĐỐI THỦ?
THỜI_GIAN TRUYỀN_HÌNH LÀ GÌ VỚI MỘT TUẦN_LỚN HƠN 15 , VỚI NHỮNG NGƯỜI CHIA_SẺ OAKLAND_LÀ ĐỐI_THỦ ?
SELECT tv time FROM table name 33 WHERE tuần > 15 AND đối thủ = "Oakland Raiders"
SELECT tv_time FROM table_name_33 WHERE tuần > 15 AND đối_thủ = "Oakland_Raiders"
wikisql
CREATE TABLE table 57633("Đội chủ nhà" text,"Tỷ số đội chủ nhà" text,"Đội khách" text,"Tỷ số đội khách" text,"Địa điểm" text,"Đám đông" real,"Ngày" text)
CREATE TABLE table_57633("Đội chủ nhà" text,"Tỷ_số đội chủ nhà" text,"Đội khách" text,"Tỷ_số đội khách" text,"Địa_điểm" text,"Đám đông" real,"Ngày" text)
Đội khách thi đấu với Collingwood là ai?
Đội khách thi_đấu với Collingwood là ai ?
SELECT "Đội khách" FROM table 57633 WHERE "Đội chủ nhà" = 'collingwood'
SELECT "Đội khách" FROM table_57633 WHERE "Đội chủ nhà" = "collingwood"
nvbench
CREATE TABLE lịch trình(Cinema ID int,Film ID int,Date text,Show times per day int,Price float) CREATE TABLE film(Film ID int,Rank in series int,Number in season int,Title text,Directed by text,Original air date text,Production code text) CREATE TABLE rạp chiếu phim(Rạp ID int,Tên text,Openning year int,Sức chứa int,Địa điểm text)
CREATE TABLE lịch_trình(Cinema_ID int,Film_ID int,Date text,Show_times_per_day int,Price float) CREATE TABLE film(Film_ID int,Rank_in_series int,Number_in_season int,Title text,Directed_by text,Original_air_date text,Production_code text) CREATE TABLE rạp chiếu_phim(Rạp_ID int,Tên text,Openning_year int,Sức chứa int,Địa_điểm text)
Vẽ tổng công suất trong năm khai trương dưới dạng biểu đồ đường và bạn có thể hiển thị trục X theo thứ tự tăng dần không?
Vẽ tổng_công_suất trong năm khai_trương dưới dạng biểu_đồ đường và bạn có_thể hiển_thị trục X theo thứ_tự tăng dần không ?
SELECT năm khai mạc, SUM ( Công suất ) FROM rạp chiếu phim ORDER BY năm khai mạc
SELECT năm khai_mạc, SUM ( Công_suất ) FROM rạp chiếu_phim ORDER BY_năm khai_mạc
sql_create_context
CREATE TABLE bảng 1198175 1(vị trí VARCHAR,đã soạn thảo VARCHAR)
CREATE TABLE bảng_1198175_1(vị_trí VARCHAR,đã soạn_thảo VARCHAR)
Chức vụ khi nhập ngũ là 1974,r11,p11 là gì?
Chức_vụ khi nhập_ngũ là 1974 , r11 , p11 là gì ?
SELECT vị trí FROM bảng 1198175 1 WHERE đã soạn thảo = "1974,R11,P11"
SELECT vị_trí FROM bảng_1198175_1 WHERE đã soạn_thảo = "1974,R11,P11"
wikisql
CREATE TABLE table 33879("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Ghi chép" text)
CREATE TABLE table_33879("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Ghi_chép" text)
Kỷ lục 89-67 có tổn thất gì?
Kỷ_lục 89-67 có tổn_thất gì ?
SELECT "Thua" FROM table 33879 WHERE "Ghi" = '8967'
SELECT "Thua" FROM table_33879 WHERE "Ghi" = "8967"
eicu
CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE bệnh nhân(độc nhất text,bệnh nhânhệ thốngở lạiid number,bệnh nhânđơn vị ở lạiid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,mã bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện của đơn vị time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái sạc bệnh viện text) CREATE TABLE chi phí(chi phí number,uniquepid text,bệnh nhânhệ thống ở lại id number,loại sự kiện text,sự kiện number,thời gian tính phí time,chi phí number) CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLEallergyid(allergyid number,BNunitstayid number,drugname text,allergyname text,allergytime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,tên điều trị text,thời gian điều trị time) CREATE TABLE thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,lộ trình điều trị text,thời gian bắt đầu dùng thuốc time,thời gian ngừng thuốc time) CREATE TABLE chẩn đoán(chẩn đoán number,BNunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time)
CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE bệnh_nhân(độc_nhất text,bệnh nhânhệ thốngở lạiid number,bệnh nhânđơn_vị ở lạiid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,mã bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện của đơn_vị time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái sạc bệnh_viện text) CREATE TABLE chi_phí(chi_phí number,uniquepid text,bệnh nhânhệ_thống ở lại id number,loại sự_kiện text,sự_kiện number,thời_gian tính phí time,chi_phí number) CREATE TABLE lượng đưa vào(intakeoutputid number,BNunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLEallergyid(allergyid number,BNunitstayid number,drugname text,allergyname text,allergytime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,tên điều_trị text,thời_gian điều_trị time) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,lộ_trình điều_trị text,thời_gian bắt_đầu dùng thuốc time,thời_gian ngừng thuốc time) CREATE TABLE chẩn_đoán(chẩn_đoán number,BNunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time)
ID phòng bệnh cuối cùng mà bệnh nhân 015-91239 đã đến trong lần khám bệnh hiện tại là gì?
ID phòng_bệnh cuối_cùng mà bệnh_nhân 015 - 91239 đã đến trong lần khám bệnh hiện_tại là gì ?
SELECT bệnh nhân.wardid 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 = '01591239' AND bệnh nhân.hospitaldischargetime IS NULL ) ORDER BY bệnh nhân.unitadmittime DESC LIMIT 1
SELECT bệnh_nhân.wardid 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 = "015 91239" AND bệnh_nhân.hospitaldischargetime IS NULL ) ORDER BY bệnh_nhân.unitadmittime DESC LIMIT 1
squall
CREATE TABLE table 204 624(id number,"school" text,"tên đội" text,"thị trấn" text,"quận" text,"ghi danh(2010-11 & 2011-12)" number,"lớp mshsaa chính*" number,"lớp bóng đá" number)
CREATE TABLE table_204_624(id number,"school" text,"tên đội" text,"thị_trấn" text,"quận" text,"ghi_danh(2010 - 11 & 2011 - 12)" number,"lớp mshsaa chính *" number,"lớp bóng_đá" number)
Có bao nhiêu trường học trong hội nghị này?
Có bao_nhiêu trường_học trong hội_nghị này ?
SELECT COUNT ( "trường học" ) FROM bảng 204 624
SELECT COUNT ( "trường_học" ) FROM bảng_204_624
wikisql
CREATE TABLE table 58147("Độ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_58147("Độ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)
Đội khách có số điểm 4,13 (37) là bao nhiêu?
Đội khách có số điểm 4,13 ( 37 ) là bao_nhiêu ?
SELECT "Đội khách" FROM table 58147 WHERE "Điểm đội khách" = '4.13 ( 37 ) '
SELECT "Đội khách" FROM table_58147 WHERE "Điểm đội khách" = "4.13 ( 37 ) "
wikisql
CREATE TABLE table 9863("Tên" text,"Chức vụ" text,"Chiều cao" text,"Cân nặng" real,"Năm" text,"Quê hương" text)
CREATE TABLE table_9863("Tên" text,"Chức_vụ" text,"Chiều cao" text,"Cân nặng" real,"Năm" text,"Quê_hương" text)
Chiều cao của người chơi nặng 240 là bao nhiêu?
Chiều cao của người chơi nặng 240 là bao_nhiêu ?
SELECT "Chiều cao" FROM table 9863 WHERE "Cân nặng" = '240'
SELECT "Chiều cao" FROM table_9863 WHERE "Cân nặng" = "240"
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 lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text)
CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,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 lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)
cung cấp số lượng bệnh nhân có tình trạng hôn nhân đã ly hôn và sử dụng ma tuý là pr?
cung_cấp số_lượng bệnh_nhân có tình_trạng hôn_nhân đã ly_hôn và sử_dụng ma túy là pr ?
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN đơn thuốc ON nhân khẩu học.hadm id = đơn thuốc.hadm id WHERE nhân khẩu học.marital status = "ĐÃ DIVORCED" AND đơn thuốc.route = "PR"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN đơn thuốc ON nhân_khẩu học.hadm_id = đơn thuốc.hadm_id WHERE nhân_khẩu học.marital_status = "ĐÃ DIVORCED" AND đơn thuốc.route = "PR"
sql_create_context
CREATE TABLE table name 12(do VARCHAR,directed by VARCHAR)
CREATE TABLE table_name_12(do VARCHAR,directed_by VARCHAR)
Ai đã viết đoạn phim do Dan lerner đạo diễn?
Ai đã viết đoạn phim do Dan lerner đạo_diễn ?
SELECT viết by FROM tên bảng 12 WHERE direct by = "dan lerner"
SELECT viết_by FROM tên_bảng_12 WHERE direct_by = "dan lerner"
wikisql
CREATE TABLE table 953("Tên sách" text,"Số vấn đề" real,"Nhà văn" text,"Nghệ sĩ" text,"Ngày xuất bản" text)
CREATE TABLE table_953("Tên sách" text,"Số vấn_đề" real,"Nhà_văn" text,"Nghệ_sĩ" text,"Ngày xuất_bản" text)
Timothy Truman làm việc vào ngày nào
Timothy Truman làm_việc vào ngày nào
SELECT "Ngày xuất bản" FROM table 953 WHERE "Nghệ sĩ" = 'Timothy Truman'
SELECT "Ngày xuất_bản" FROM table_953 WHERE "Nghệ_sĩ" = "Timothy_Truman"
mimicsql_data
CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE 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 đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE 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)
có bao nhiêu bệnh nhân có địa điểm nhập viện là cơ sở y tế giới thiệu/đồ nguội thông thường và mã mặt hàng là 50983?
có bao_nhiêu bệnh_nhân có địa_điểm nhập_viện là cơ_sở y_tế giới_thiệu / đồ nguội thông_thường và mã mặt_hàng là 50983 ?
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 location = "VẬT LIỆU GIỚI THIỆUDELI BÌNH THƯỜNG" AND lab.itemid = "50983"
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_location = "VẬT_LIỆU GIỚI_THIỆUDELI BÌNH_THƯỜNG" AND lab.itemid = "50983"
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 đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,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 lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,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)
cho tôi biết số lượng bệnh nhân nhập viện cấp cứu và dùng thuốc bằng đường uống?
cho tôi biết số_lượng bệnh_nhân nhập_viện cấp_cứu và dùng thuốc bằng đường uống ?
SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN đơn thuốc ON nhân khẩu học.hadm id = đơn thuốc.hadm id WHERE nhân khẩu học.admission type = "KHẨN CẤP" AND đơn thuốc.route = "MIỆNG"
SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN đơn thuốc ON nhân_khẩu học.hadm_id = đơn thuốc.hadm_id WHERE nhân_khẩu học.admission_type = "KHẨN_CẤP" AND đơn thuốc.route = "MIỆNG"
squall
CREATE TABLE table 204 15(id number,"năm" number,"ngày" text,"địa điểm" text,"thành phố" text,"quốc gia" text,"ghi chú" text)
CREATE TABLE table_204_15(id number,"năm" number,"ngày" text,"địa_điểm" text,"thành_phố" text,"quốc_gia" text,"ghi_chú" text)
Hội thảo đa phương tiện acm trước đây được tổ chức vào năm 2012 ở đâu?
Hội_thảo đa phương_tiện acm trước_đây được tổ_chức vào năm 2012 ở đâu ?
SELECT "địa điểm" FROM table 204 15 WHERE "năm" = 2012
SELECT "địa_điểm" FROM table_204_15 WHERE "năm" = 2012
criteria2sql
CREATE TABLE table dev 46("id" int,"ogtt" int,"systolic blood stress sbp" int,"neuromuscular disease" bool,"renal disease" bool,"hepatic disease" bool,"active oncologic disease" bool,"hematologic disease" bool,"tâm trương máu áp lực dbp" int,"bệnh cơ bắp" bool,"alcohol abuse" bool,"tăng huyết áp" bool,"igt" bool,"nhịn ăn glucose" int,"NOUSE" float)
CREATE TABLE table_dev_46("id" int,"ogtt" int,"systolic_blood_stress_sbp" int,"neuromuscular_disease" bool,"renal_disease" bool,"hepatic_disease" bool,"active_oncologic_disease" bool,"hematologic_disease" bool,"tâm trương_máu_áp lực_dbp" int,"bệnh_cơ bắp" bool,"alcohol_abuse" bool,"tăng huyết_áp" bool,"igt" bool,"nhịn ăn_glucose" int,"NOUSE" float)
tăng huyết áp > 180 mmHg tâm thu, > 110 mmHg tâm trương huyết áp phòng khám
tăng huyết_áp > 180 mmHg tâm_thu , > 110 mmHg tâm_trương huyết_áp phòng_khám
SELECT * FROM bảng dev 46 WHERE tăng huyết áp = 1 OR ( huyết áp tâm thu sbp > 180 OR tâm trương máu áp lực dbp > 110 )
SELECT * FROM bảng_dev_46 WHERE tăng huyết_áp = 1 OR ( huyết_áp_tâm thu_sbp > 180 OR_tâm trương_máu_áp lực_dbp > 110 )
sql_create_context
CREATE TABLE bảng 1901751 1(bản gốc tây cuối người biểu diễn VARCHAR,ký tự VARCHAR)
CREATE TABLE bảng_1901751_1(bản gốc_tây_cuối_người biểu_diễn VARCHAR,ký tự VARCHAR)
Ai là người biểu diễn ban đầu ở phía Tây cho nhân vật Martha?
Ai là người biểu_diễn ban_đầu ở phía Tây cho nhân_vật Martha ?
SELECT original west end performer FROM table 1901751 1 WHERE ký tự = "Martha"
SELECT original_west_end_performer FROM table_1901751_1 WHERE ký tự = "Martha"
wikisql
CREATE TABLE table 15205("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Ghi chép" text)
CREATE TABLE table_15205("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Ghi_chép" text)
Trận thua với thành tích 54-42 là bao nhiêu?
Trận thua với thành_tích 54-42 là bao_nhiêu ?
SELECT "Mất" FROM bảng 15205 WHERE "Bản ghi" = '5442'
SELECT "Mất" FROM bảng_15205 WHERE "Bản_ghi" = "54 42"
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 dị ứng(dị ứng number,Patientunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE đầu ra đầu vào(id đầu ra number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,thời gian đầu ra time) CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,tên chẩn đoán text,thời gian chẩn đoán time,icd9code text) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) 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 xuất viện text) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,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 cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) 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 dị_ứng(dị_ứng number,Patientunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE đầu_ra đầu_vào(id đầu_ra number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,thời_gian đầu_ra time) CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,tên chẩn_đoán text,thời_gian chẩn_đoán time,icd9code text) CREATE TABLE drug(medicidid number,BNunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) 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 xuất_viện text) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,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 cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time)
Ba xét nghiệm vi sinh thường xuyên nhất diễn ra trong vòng 2 tháng đối với những người được truyền nước muối bình thường - hồi sức tích cực (>250 ml/giờ) kể từ năm 2104 là gì?
Ba xét_nghiệm vi_sinh thường_xuyên nhất diễn ra trong vòng 2 tháng đối_với những người được truyền nước muối bình_thường - hồi_sức tích_cực ( > 250 ml / giờ ) kể từ năm 2104 là gì ?
SELECT t3.culturesite FROM ( SELECT t2.culturesite,DENSE RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,Treatment.Treatmenttime FROM Treatment JOIN bệnh nhân ON điều trị.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE điều trị.Treatmentname = 'dùng nước muối bình thường hồi sức thể tích tích cực ( >250 mlgiờ ) ' AND STRFTIME ( 'y',Treatment.Treatmenttime ) >= ' 2104' ) AS t1 JOIN ( SELECT disease.uniquepid,microlab.culturesite,microlab.culturetakentime FROM microlab JOIN bệnh nhân ON microlab.Patientunitstayid = disease.BNunitstayid WHERE STRFTIME ( 'y',microlab.culturetakentime ) >= '2104' ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.Treatmenttime < t2.culturetakentime AND DATETIME ( t2.culturetakentime ) BETWEEN DATETIME ( t1.Treatmenttime ) AND DATETIME ( t1.thời gian điều trị,'2 tháng' ) GROUP BY t2.culturesite ) AS t3 WHERE t3.c1 <= 3
SELECT t3.culturesite FROM ( SELECT t2.culturesite,DENSE_RANK ( ) OVER ( ORDER BY COUNT ( * ) DESC ) AS c1 FROM ( SELECT disease.uniquepid,Treatment.Treatmenttime FROM Treatment JOIN bệnh_nhân ON điều_trị.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE điều_trị.Treatmentname = "dùng nước muối bình_thường hồi_sức thể_tích tích_cực ( > 250 mlgiờ ) " AND STRFTIME ( " y",Treatment.Treatmenttime ) > = "2104" ) AS t1 JOIN ( SELECT disease.uniquepid,microlab.culturesite,microlab.culturetakentime FROM microlab JOIN bệnh_nhân ON microlab.Patientunitstayid = disease.BNunitstayid WHERE STRFTIME ( " y",microlab.culturetakentime ) > = "2104" ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.Treatmenttime <t2.culturetakentime AND DATETIME ( t2.culturetakentime ) BETWEEN DATETIME ( t1.Treatmenttime ) AND DATETIME ( t1.thời_gian điều_trị," 2 tháng" ) GROUP BY t2.culturesite ) AS t3 WHERE t3.c1 < = 3
wikisql
CREATE TABLE table 36453("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Thời gian" text,"Att." real,"Ghi nhận" text)
CREATE TABLE table_36453("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Thời_gian" text,"Att." real,"Ghi_nhận" text)
Kỷ lục nào vào ngày 31 tháng 7?
Kỷ_lục nào vào ngày 31 tháng 7 ?
SELECT "Bản ghi" FROM table 36453 WHERE "Ngày" = '31 tháng 7'
SELECT "Bản_ghi" FROM table_36453 WHERE "Ngày" = "31 tháng 7"
wikisql
CREATE TABLE table 75295("Vị trí" text,"Trận 1" text,"Trận 2" text,"Trận 3" text,"Triển lãm*" text)
CREATE TABLE table_75295("Vị_trí" text,"Trận 1" text,"Trận 2" text,"Trận 3" text,"Triển_lãm *" text)
Trò chơi 3 trong tiếng Pháp có tên là trò chơi 2?
Trò_chơi 3 trong tiếng Pháp có tên là trò_chơi 2 ?
SELECT "Trò chơi 3" FROM table 75295 WHERE "Trò chơi 2" = 'ian pháp'
SELECT "Trò_chơi 3" FROM table_75295 WHERE "Trò_chơi 2" = "ian_pháp"
wikisql
CREATE TABLE table 26420("Kết quả" text,"Năm" real,"Vô địch" text,"Bề mặt" text,"Đối tác" text,"Đối thủ" text,"Điểm" text)
CREATE TABLE table_26420("Kết_quả" text,"Năm" real,"Vô_địch" text,"Bề_mặt" text,"Đối_tác" text,"Đối_thủ" text,"Điểm" text)
Gọi tên số mặt của 4-6, 2-6
Gọi tên số mặt của 4-6 , 2-6
SELECT COUNT ( "Bề mặt" ) FROM bảng 26420 WHERE "Điểm" = '46,26'
SELECT COUNT ( "Bề_mặt" ) FROM bảng_26420 WHERE "Điểm" = "46,26"
sql_create_context
CREATE TABLE table 26139378 1(người xem in millions VARCHAR,episode number VARCHAR)
CREATE TABLE table_26139378_1(người xem__in_millions_ VARCHAR,episode__number VARCHAR)
Tập 16 có bao nhiêu triệu người xem?
Tập 16 có bao_nhiêu triệu người xem ?
SELECT người xem in million FROM table 26139378 1 WHERE tập số = 16
SELECT người xem__in_million FROM table_26139378_1 WHERE tập__số = 16
wikisql
CREATE TABLE table 62697("Tên" text,"Vị trí" text,"Ứng dụng giải đấu" text,"Mục tiêu giải đấu" real,"Ứng dụng FA Cup" text,"Bàn thắng giải đấu FA Cup" real,"Giải đấu Ứng dụng ở Cúp" text,"Số bàn thắng ở Cúp Liên đoàn" real,"Ứng dụng FLT" text,"Mục tiêu FLT" real,"Tổng số bàn thắng" text,"Tổng số bàn thắng" real)
CREATE TABLE table_62697("Tên" text,"Vị_trí" text,"Ứng_dụng giải đấu" text,"Mục_tiêu giải đấu" real,"Ứng_dụng FA_Cup" text,"Bàn_thắng giải đấu FA_Cup" real,"Giải đấu Ứng_dụng ở Cúp" text,"Số bàn thắng ở Cúp Liên_đoàn" real,"Ứng_dụng FLT" text,"Mục_tiêu FLT" real,"Tổng_số bàn thắng" text,"Tổng_số bàn thắng" real)
Ứng dụng League Cup có số bàn thắng ở League Cup nhiều hơn 0 là gì?
Ứng_dụng League_Cup có số bàn thắng ở League_Cup nhiều hơn 0 là gì ?
SELECT "Ứng dụng Cúp Liên đoàn" FROM table 62697 WHERE "Các bàn thắng ở Cúp Liên đoàn" > '0'
SELECT "Ứng_dụng Cúp Liên_đoàn" FROM table_62697 WHERE "Các bàn thắng ở Cúp Liên_đoàn" > "0"
sql_create_context
CREATE TABLE table name 11(scrapped sold VARCHAR,name as rebuild VARCHAR)
CREATE TABLE table_name_11(scrapped_sold VARCHAR,name_as_rebuild VARCHAR)
Loại bỏ/bán nào có tên được xây dựng lại từ trostan?
Loại_bỏ / bán nào có tên được xây_dựng lại từ trostan ?
SELECT Scrapped sold FROM table name 11 WHERE name as rebuild = "trostan"
SELECT Scrapped_sold FROM table_name_11 WHERE name_as_rebuild = "trostan"
nvbench
CREATE TABLE Ref Transaction Types(transaction type code VARCHAR(10),transaction type description VARCHAR(80)) CREATE TABLE Sales(sale transaction id INTEGER,sale details VARCHAR(255)) CREATE TABLE Lots(lot id INTEGER,investor id INTEGER,lot details VARCHAR(255)) CREATE TABLE Transactions Lots(transaction id INTEGER,lot id INTEGER) CREATE TABLE Investor(investor id INTEGER,Investor details VARCHAR(255)) CREATE TABLE Purchases(purchase transaction id INTEGER,purchase details VARCHAR(255)) CREATE TABLE Giao dịch(transaction id INTEGER,investor id INTEGER,transaction type code VARCHAR(10),date of transaction DATETIME,amount of transaction DECIMAL(19,4),share count VARCHAR(40),other details VARCHAR(255))
CREATE TABLE Ref_Transaction_Types(transaction_type_code VARCHAR(10),transaction_type_description VARCHAR(80)) CREATE TABLE Sales(sale_transaction_id INTEGER,sale_details VARCHAR(255)) CREATE TABLE Lots(lot_id INTEGER,investor_id INTEGER,lot_details VARCHAR(255)) CREATE TABLE Transactions_Lots(transaction_id INTEGER,lot_id INTEGER) CREATE TABLE Investor(investor_id INTEGER,Investor_details VARCHAR(255)) CREATE TABLE Purchases(purchase_transaction_id INTEGER,purchase_details VARCHAR(255)) CREATE TABLE Giao_dịch(transaction_id INTEGER,investor_id INTEGER,transaction_type_code VARCHAR(10),date_of_transaction DATETIME,amount_of_transaction_DECIMAL(19,4),share_count VARCHAR(40),other_details VARCHAR(255))
Tìm mô tả và ngày của loại giao dịch nếu số lượng chia sẻ nhỏ hơn 10, nhóm theo loại giao dịch, đếm ngày giao dịch và gộp ngày vào khoảng thời gian trong tuần. Hiển thị kết quả bằng biểu đồ đường nhóm, sắp xếp theo trục x trong tăng dần.
Tìm mô_tả và ngày của loại giao_dịch nếu số_lượng chia_sẻ nhỏ hơn 10 , nhóm theo loại giao_dịch , đếm ngày giao_dịch và gộp ngày vào_khoảng thời_gian trong tuần . Hiển_thị kết_quả bằng biểu_đồ đường nhóm , sắp_xếp theo trục x trong tăng dần .
SELECT T2.date of transaction, COUNT ( T2.date of transaction ) FROM Ref Transaction Types AS T1 JOIN Giao dịch AS T2 ON T1.transaction type code = T2.transaction type code WHERE T2.share count < 10 GROUP BY giao dịch type description ORDER BY ngày giao dịch
SELECT T2.date_of_transaction, COUNT ( T2.date_of_transaction ) FROM Ref_Transaction_Types AS T1 JOIN Giao_dịch AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10 GROUP BY giao dịch_type_description ORDER BY ngày giao_dịch
sql_create_context
CREATE TABLE table name 74(máy chủ VARCHAR,quốc gia VARCHAR)
CREATE TABLE table_name_74(máy chủ VARCHAR,quốc_gia VARCHAR)
Người dẫn chương trình của Horrid Henry là gì?
Người dẫn_chương_trình của Horrid_Henry là gì ?
SELECT máy chủ FROM table name 74 WHERE country = "henry kinh khủng"
SELECT máy chủ FROM table_name_74 WHERE country = "henry kinh_khủng"
squall
CREATE TABLE table 203 84(id number,"thứ hạng" number,"tên" text,"height\nft(m)" text,"tầng" number,"năm" text,"tọa độ" text,"ghi chú" text)
CREATE TABLE table_203_84(id number,"thứ_hạng" number,"tên" text,"height\_nft(m)" text,"tầng" number,"năm" text,"tọa_độ" text,"ghi_chú" text)
cho biết có bao nhiêu tòa nhà ở Oakland cao ít nhất 200 ft và có trên 20 tầng .
cho biết có bao_nhiêu tòa nhà ở Oakland cao ít_nhất 200 ft và có trên 20 tầng .
SELECT COUNT ( "name" ) FROM table 203 84 WHERE "heightnft ( m ) " >= 200 AND "sàn" > 20
SELECT COUNT ( "name" ) FROM table_203_84 WHERE "heightnft ( m ) " > = 200 AND "sàn" > 20
sql_create_context
CREATE TABLE table name 42(số người tham dự VARCHAR,h a VARCHAR,đối thủ VARCHAR)
CREATE TABLE table_name_42(số người tham_dự VARCHAR,h___a VARCHAR,đối_thủ VARCHAR)
Tổng số người tham dự H/A của A và đối thủ của Wolverhampton Wanderers là bao nhiêu?
Tổng_số người tham_dự H / A của A và đối_thủ của Wolverhampton_Wanderers là bao_nhiêu ?
SELECT COUNT ( tham dự ) FROM table name 42 WHERE h a = "a" AND đối thủ = "những kẻ lang thang wolverhampton"
SELECT COUNT ( tham_dự ) FROM table_name_42 WHERE h___a = "a" AND đối_thủ= "những kẻ lang_thang wolverhampton"
squall
CREATE TABLE table 203 485(id number,"năm" text,"hiển thị" text,"vai trò" text,"ghi chú" text)
CREATE TABLE table_203_485(id number,"năm" text,"hiển_thị" text,"vai_trò" text,"ghi_chú" text)
gauri tejwani đã tham gia bao nhiêu chương trình truyền hình khác nhau trước năm 2000?
gauri tejwani đã tham_gia bao_nhiêu chương_trình truyền_hình khác nhau trước năm 2000 ?
SELECT COUNT ( "show" ) FROM table 203 485 WHERE "năm" < 2000
SELECT COUNT ( "show" ) FROM table_203_485 WHERE "năm" < 2000
sql_create_context
CREATE TABLE table name 23(xe máy VARCHAR,người lái VARCHAR)
CREATE TABLE table_name_23(xe_máy VARCHAR,người lái VARCHAR)
Anthony West đi xe máy nào?
Anthony_West đi xe_máy nào ?
SELECT xe máy FROM table name 23 WHERE Rider = "Anthony west"
SELECT xe_máy FROM table_name_23 WHERE Rider = "Anthony_west"
sql_create_context
CREATE TABLE table name 88(điểm VARCHAR,quốc gia VARCHAR)
CREATE TABLE table_name_88(điểm VARCHAR,quốc_gia VARCHAR)
Điểm của tay golf đến từ đất nước Fiji là bao nhiêu?
Điểm của tay golf đến từ đất_nước Fiji là bao_nhiêu ?
SELECT COUNT ( điểm ) FROM tên bảng 88 WHERE quốc gia = "fiji"
SELECT COUNT ( điểm ) FROM tên_bảng_88 WHERE quốc_gia = "fiji"
wikisql
CREATE TABLE table 71167("Trường" text,"Lớp" text,"Liên kết" text,"Thành phần học sinh" text,"Ghi danh" real)
CREATE TABLE table_71167("Trường" text,"Lớp" text,"Liên_kết" text,"Thành_phần học_sinh" text,"Ghi_danh" real)
Nhóm Sinh viên theo Công giáo La Mã và có số lượng Đăng ký là 502 là gì?
Nhóm Sinh_viên theo Công_giáo_La_Mã và có số_lượng Đăng_ký là 502 là gì ?
SELECT "Tổ chức sinh viên" FROM table 71167 WHERE "Liên kết" = 'công giáo La Mã' AND "Ghi danh" = '502'
SELECT "Tổ_chức sinh_viên" FROM table_71167 WHERE "Liên_kết" = "công_giáo_La Mã" AND "Ghi_danh" = "502"
wikisql
CREATE TABLE table 37981("Tuần" real,"Ngày" text,"Thời gian" text,"Đối thủ" text,"Kết quả" text,"Trang web trò chơi" text,"Tóm tắt NFL" text,"Ghi" text)
CREATE TABLE table_37981("Tuần" real,"Ngày" text,"Thời_gian" text,"Đối_thủ" text,"Kết_quả" text,"Trang_web trò_chơi" text,"Tóm_tắt NFL" text,"Ghi" text)
Thời gian của trận đấu tại Sân vận động Arrowhead với bản tóm tắt NFL là gì?
Thời_gian của trận đấu tại Sân_vận_động Arrowhead với bản tóm_tắt NFL là gì ?
SELECT "Thời gian" FROM table 37981 WHERE "NFL Recap" = 'tóm tắt' AND "Trang web trò chơi" = 'sân vận động đầu mũi tên'
SELECT "Thời_gian" FROM table_37981 WHERE "NFL_Recap" = "tóm_tắt" AND "Trang_web trò_chơi" = "sân_vận_động đầu mũi_tên"
sql_create_context
CREATE TABLE table name 71(vàng VARCHAR,bạc VARCHAR,quốc gia VARCHAR)
CREATE TABLE table_name_71(vàng VARCHAR,bạc VARCHAR,quốc_gia VARCHAR)
Iceland có bao nhiêu huy chương vàng với hơn 15 huy chương bạc?
Iceland có bao_nhiêu huy_chương vàng với hơn 15 huy_chương bạc ?
SELECT COUNT ( vàng ) FROM tên bảng 71 WHERE bạc > 15 AND quốc gia = "iceland"
SELECT COUNT ( vàng ) FROM tên_bảng_71 WHERE bạc > 15 AND quốc_gia = "iceland"
nvbench
CREATE TABLE book(Sách ID int,Tiêu đề text,Số phát hành real,Nhà văn text) CREATE TABLE ấn phẩm(Ấn bản ID int,ID sách int,Nhà xuất bản text,Ngày xuất bản text,Giá real)
CREATE TABLE book(Sách_ID int,Tiêu_đề text,Số phát_hành real,Nhà_văn text) CREATE TABLE ấn_phẩm(Ấn_bản_ID int,ID sách int,Nhà_xuất_bản text,Ngày xuất_bản text,Giá real)
Hiển thị các nhà xuất bản khác nhau cùng với số lượng ấn phẩm họ có trong biểu đồ thanh và tôi muốn xếp hạng trục y từ thứ tự cao đến thấp.
Hiển_thị các nhà_xuất_bản khác nhau cùng với số_lượng ấn_phẩm họ có trong biểu_đồ thanh và tôi muốn xếp_hạng trục_y từ thứ_tự cao đến thấp .
SELECT Nhà xuất bản, COUNT ( * ) FROM ấn phẩm GROUP BY Nhà xuất bản ORDER BY COUNT ( * ) DESC
SELECT Nhà_xuất_bản, COUNT ( * ) FROM ấn_phẩm GROUP BY Nhà_xuất_bản ORDER BY COUNT ( * ) DESC
sql_create_context
CREATE TABLE table 17901155 4(người xem triệu người VARCHAR,no in season VARCHAR)
CREATE TABLE table_17901155_4(người xem__triệu người_ VARCHAR,no_in_season VARCHAR)
Có bao nhiêu triệu khán giả đã xem tập 6?
Có bao_nhiêu triệu khán_giả đã xem tập 6 ?
SELECT người xem million FROM table 17901155 4 WHERE no in season = 6
SELECT người xem__million FROM table_17901155_4 WHERE no_in_season = 6
sede
CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE 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 PostTypes(Id number,Name text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE 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,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID khác,Ngày tạo time,UserId number,Tên hiển thị người dùng text,Nhận xét text,Text text,Giấy phép nội dung text) CREATE TABLE Huy hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Đề xuấtChỉnh sửa(Id number,PostId number,Ngày tạo time,Ngày phê duyệt time,Ngày từ chối time,OwnerUserId number,Nhận xét text,Text text,Tiêu đề text,Thẻ text,RevisionGUID khác) CREATE TABLE Liên kết bài đăng(Id number,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,Giới thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Lý do từ chối đánh giá(Id number,Tên text,Mô tả text,PostTypeId number)
CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE 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 PostTypes(Id number,Name text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE 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,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID khác,Ngày tạo time,UserId number,Tên hiển_thị người dùng text,Nhận_xét text,Text text,Giấy_phép nội_dung text) CREATE TABLE Huy_hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Đề_xuấtChỉnh sửa(Id number,PostId number,Ngày tạo time,Ngày phê_duyệt time,Ngày từ_chối time,OwnerUserId number,Nhận_xét text,Text text,Tiêu_đề text,Thẻ text,RevisionGUID khác) CREATE TABLE Liên_kết bài đăng(Id number,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,Giới_thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Lý_do từ_chối đánh_giá(Id number,Tên text,Mô_tả text,PostTypeId number)
Phiếu bầu Lên và Xuống theo ngày trong tuần của Câu hỏi.
Phiếu bầu_Lên và Xuống theo ngày trong tuần của Câu_hỏi .
SELECT p.Id AS "post link", CASE WHEN PostTypeId = 1 THEN 'Câu hỏi' ELSE 'Trả lời' END AS "post type",t.TagName, SUM ( CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END ) AS UpVotes, SUM ( CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END ) AS DownVotes FROM Phiếu bầu AS v JOIN Bài viết AS p ON v.PostId = p.Id LEFT JOIN PostTags AS pt ON p.Id = pt.PostId LEFT JOIN Thẻ AS t ON pt.TagId = t.Id WHERE PostTypeId IN ( 1 ) AND VoteTypeId IN ( 2,3 ) AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND AcceptedAnswerId IS NULL AND YEAR ( p.CreationDate ) = 2020 AND t.TagName IN ( 'javascript','jquery' ) GROUP BY p.Id,PostTypeId,t.TagName HAVING SUM ( CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END ) = 0 ORDER BY DownVotes DESC LIMIT 50
SELECT p.Id AS "post_link", CASE WHEN PostTypeId = 1 THEN "Câu_hỏi" ELSE "Trả_lời" END AS "post_type",t.TagName, SUM ( CASE WHEN _VoteTypeId = 2 THEN 1 ELSE 0 END ) AS UpVotes, SUM ( CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END ) AS DownVotes FROM Phiếu bầu AS v JOIN Bài viết AS p ON v.PostId = p.Id LEFT JOIN PostTags AS pt ON p.Id = pt.PostId LEFT JOIN Thẻ AS t ON pt.TagId = t.Id WHERE PostTypeId IN ( 1 ) AND VoteTypeId IN ( 2,3 ) AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND AcceptedAnswerId IS NULL AND YEAR ( p.CreationDate ) = 2020 AND t.TagName IN ( "javascript","jquery" ) GROUP BY p.Id,PostTypeId,t.TagName HAVING SUM ( CASE WHEN _VoteTypeId = 2 THEN 1 ELSE 0 END ) = 0 ORDER BY DownVotes DESC LIMIT 50
sql_create_context
CREATE TABLE table name 48(bàn ghi INTEGER,điểm VARCHAR,vị trí VARCHAR)
CREATE TABLE table_name_48(bàn_ghi INTEGER,điểm VARCHAR,vị_trí VARCHAR)
Số bàn thắng trung bình ghi được của đội ghi được 44 điểm và xếp cao hơn 5 là bao nhiêu?
Số bàn thắng trung_bình ghi được của đội ghi được 44 điểm và xếp cao hơn 5 là bao_nhiêu ?
SELECT AVG ( mục tiêu ghi ) FROM tên bảng 48 WHERE điểm = "44" AND vị trí > 5
SELECT AVG ( mục tiêu_ghi ) FROM tên_bảng_48 WHERE điểm = "44" AND vị_trí > 5
sql_create_context
CREATE TABLE tên bảng 37(năm s thắng VARCHAR,total VARCHAR)
CREATE TABLE tên_bảng_37(năm_s__thắng VARCHAR,total VARCHAR)
Những năm giành được với tổng số 282 là gì?
Những năm giành được với tổng_số 282 là gì ?
SELECT năm s won FROM tên bảng 37 WHERE total = 282
SELECT năm_s__won FROM tên_bảng_37 WHERE total = 282
eicu
CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE đầu vào đầu ra(đầu vào đầu raid number,bệnh nhânunitstayid number,đường dẫn tế bào text,celllabel text,giá trị tế bào number,thời gian đầu ra 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,thời gian sạc time,chi phí number) 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 chẩn đoán(chẩn đoán number,bệnh nhân đơn vị lưu trú number,tên chẩn đoán text,diagnosistime time,icd9code text) 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 disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,bệnh viện number,khu bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện đơn vị time,thời gian xuất viện đơn vị time,thời gian xuất viện time,trạng thái nhập viện text)
CREATE TABLE 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 đầu_vào đầu_ra(đầu vào đầu raid number,bệnh nhânunitstayid number,đường_dẫn tế_bào text,celllabel text,giá_trị tế_bào number,thời_gian đầu_ra 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,thời_gian sạc time,chi_phí number) 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 chẩn_đoán(chẩn_đoán number,bệnh_nhân đơn_vị lưu_trú number,tên chẩn_đoán text,diagnosistime time,icd9code text) 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 disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,bệnh_viện number,khu bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện đơn_vị time,thời_gian xuất_viện đơn_vị time,thời_gian xuất_viện time,trạng_thái nhập_viện text)
nhịp tim của bệnh nhân 015-91239 đo lần cuối trong lần thăm khám tại phòng chăm sóc đặc biệt hiện tại có lớn hơn giá trị của nó tính từ giây đến lần cuối đo được trong lần thăm khám tại phòng chăm sóc đặc biệt hiện tại không?
nhịp tim của bệnh_nhân 015 - 91239 đo lần cuối trong lần thăm_khám tại phòng chăm_sóc đặc_biệt hiện_tại có lớn hơn giá_trị của nó tính từ giây đến lần cuối đo được trong lần thăm_khám tại phòng chăm_sóc đặc_biệt hiện_tại không ?
SELECT ( SELECT quan trọng nhất.heartrate FROM quan trọng định kỳ WHERE quan trọng định kỳ.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 = ' 01591239' ) AND disease.unitdischargetime IS NULL ) AND NOT Vital Periodic.heartrate IS NULL ORDER BY Vital Periodic.observationtime DESC LIMIT 1 ) > ( SELECT Vital Periodic.heartrate FROM Vital Periodic WHERE quan trọng định kỳ.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 = '01591239' ) AND bệnh nhân.unitdischargetime IS NULL ) AND NOT Vital Periodic.heartrate IS NULL ORDER BY Vital Periodic.observationtime DESC LIMIT 1 OFF SET 1 )
SELECT ( SELECT quan_trọng nhất.heartrate FROM quan_trọng định_kỳ WHERE quan_trọng định_kỳ.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 = "015 91239" ) AND disease.unitdischargetime IS NULL ) AND NOT Vital_Periodic.heartrate IS NULL ORDER BY Vital_Periodic.observationtime DESC LIMIT 1 ) > ( SELECT Vital_Periodic.heartrate FROM Vital Periodic WHERE quan_trọng định_kỳ.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 = "015 91239" ) AND bệnh_nhân.unitdischargetime IS NULL ) AND NOT Vital_Periodic.heartrate IS NULL ORDER BY Vital_Periodic.observationtime DESC LIMIT 1 OFF SET 1 )
mimicsql_data
CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập viện text,thời gian xuất viện text,năm nhập học text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơ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,hôn_nhân_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_viện text,thời_gian xuất_viện text,năm nhập_học text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơ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)
cho tôi số lượng bệnh nhân da trắng đã được xét nghiệm phôi hyaline.
cho tôi số_lượng bệnh_nhân da trắng đã được xét_nghiệm phôi hyaline .
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.dân tộc = "TRẮNG" AND lab.label = "Hyaline Casts"
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.dân_tộc = "TRẮNG" AND lab.label = "Hyaline_Casts"
sql_create_context
CREATE TABLE table name 19(date VARCHAR,sự kiện VARCHAR)
CREATE TABLE table_name_19(date VARCHAR,sự_kiện VARCHAR)
Ngày của vận động viên trong sự kiện ném bóng là ngày nào?
Ngày của vận_động_viên trong sự_kiện ném bóng là ngày nào ?
SELECT date FROM table name 19 WHERE sự kiện = "bắn bóng"
SELECT date FROM table_name_19 WHERE sự_kiện = "bắn bóng"
sql_create_context
CREATE TABLE table name 64(to par VARCHAR,player VARCHAR)
CREATE TABLE table_name_64(to_par VARCHAR,player VARCHAR)
To Par của Fredrik Jacobson là gì?
To Par của Fredrik_Jacobson là gì ?
SELECT to par FROM table name 64 WHERE player = "fredrik jacobson"
SELECT to_par FROM table_name_64 WHERE player = "fredrik jacobson"
wikisql
CREATE TABLE table 74273("Chọn" real,"Cầu thủ" text,"Vị trí" text,"Quốc tịch" text,"Đội tuyển NHL" text,"Đội tuyển đại học/cấp dưới/câu lạc bộ" text)
CREATE TABLE table_74273("Chọn" real,"Cầu_thủ" text,"Vị_trí" text,"Quốc_tịch" text,"Đội_tuyển NHL" text,"Đội_tuyển đại_học/cấp dưới/câu_lạc_bộ" text)
Đặt tên cho lựa chọn cho matthew scorsune
Đặt tên cho lựa_chọn cho matthew scorsune
SELECT "Chọn" FROM table 74273 WHERE "Người chơi" = 'Matthew Scorsune'
SELECT "Chọn" FROM table_74273 WHERE "Người chơi" = "Matthew_Scorsune"
nvbench
CREATE TABLE bầu cử(Bầu cử ID int,Quận đại diện text,Quận int,Đại biểu text,Đảng int,Đảng real,Đảng được bầu đầu tiên text,Ủy ban CREATE) TABLE int đảng(Đảng ID real,Năm text,Đảng text,Thống đốc text,Trung úy Thống đốc text,Kiểm soát viên text,Attorney General text,US Senate CREATE) TABLE int quận(Quận Id text,Tên quận real,Dân số text,Zip code ##)
CREATE TABLE bầu_cử(Bầu cử_ID int,Quận_đại_diện text,Quận int,Đại_biểu text,Đảng int,Đảng real,Đảng_được_bầu đầu_tiên text,Ủy_ban CREATE) TABLE int đảng(Đảng_ID real,Năm text,Đảng text,Thống_đốc text,Trung_úy_Thống đốc text,Kiểm_soát_viên text,Attorney_General text,US_Senate_CREATE) TABLE int quận(Quận_Id text,Tên_quận real,Dân_số text,Zip_code #_#)
Hiển thị tên quận và dân số của tất cả các quận bằng biểu đồ hình tròn.
Hiển_thị tên quận và dân_số của tất_cả các quận bằng biểu_đồ hình_tròn .
SELECT Tên quận,Dân sốFROMquận
SELECT Tên_quận,Dân số FROM quận
mimic_iii
CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE chẩn đoán 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 đầu raevents(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 microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,admission type text,admission location text,discharge location text,bảo hiểm text,ngôn ngữ text,hôn nhân status text,dân tộc text,tuổi number) 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 đơ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 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 inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount 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 labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE 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,ngoài giờ 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_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE đầu raevents(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 microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,tuổi number) 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 đơ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 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 inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount 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 labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE 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,ngoài giờ time)
Bệnh nhân 69761 đến bệnh viện lần đầu tiên trong năm nay thông qua giấy giới thiệu/sớm của phòng khám khi nào?
Bệnh_nhân 69761 đến bệnh_viện lần đầu_tiên trong năm nay thông_qua giấy giới_thiệu / sớm của phòng_khám khi nào ?
SELECT tuyển sinh.admittime FROM tuyển sinh WHERE tuyển sinh.chủ đề id = 69761 AND tuyển sinh.admission location = 'giới thiệu đến phòng khámsớm' AND DATETIME ( admissions.admittime,'bắt đầu năm' ) = DATETIME ( CURRENT TIME ( ) ,'đầu năm','0 năm' ) ORDER BY tuyển sinh.thời gian nhập học LIMIT 1
SELECT tuyển sinh.admittime FROM tuyển_sinh WHERE tuyển_sinh.chủ đề_id = 69761 AND tuyển_sinh.admission_location = "giới_thiệu đến phòng_khámsớm" AND DATETIME ( admissions.admittime,"bắt_đầu năm" ) = DATETIME ( CURRENT_TIME ( ) ,"đầu năm"," 0 năm" ) ORDER BY tuyển_sinh.thời_gian nhập_học LIMIT 1
sql_create_context
CREATE TABLE table name 23(xếp hạng INTEGER,total VARCHAR,vàng VARCHAR,đồng VARCHAR)
CREATE TABLE table_name_23(xếp_hạng INTEGER,total VARCHAR,vàng VARCHAR,đồng VARCHAR)
Thứ hạng khi có tổng cộng ít hơn 1 vàng, 0 đồng và nhiều hơn 1 huy chương là gì?
Thứ_hạng khi có tổng_cộng ít hơn 1 vàng , 0 đồng và nhiều hơn 1 huy_chương là gì ?
SELECT SUM ( thứ hạng ) FROM tên bảng 23 WHERE vàng < 1 AND đồng = 0 AND total > 1
SELECT SUM ( thứ_hạng ) FROM tên_bảng_23 WHERE vàng < 1 AND đồng = 0 AND total > 1
sql_create_context
CREATE TABLE table 25085059 1(cfl team VARCHAR,đại học VARCHAR)
CREATE TABLE table_25085059_1(cfl_team VARCHAR,đại_học VARCHAR)
Đội CFL nào đã nhận được lựa chọn dự thảo từ North Dakota?
Đội CFL nào đã nhận được lựa_chọn dự_thảo từ North_Dakota ?
SELECT cfl team FROM table 25085059 1 WHERE đại học = "Bắc Dakota"
SELECT cfl_team FROM table_25085059_1 WHERE đại_học = "Bắc_Dakota"
squall
CREATE TABLE table 204 296(id number,"thứ hạng" number,"vận động viên" text,"qual" number,"cuối cùng" number,"tổng" number,"ghi chú" text)
CREATE TABLE table_204_296(id number,"thứ_hạng" number,"vận_động_viên" text,"qual" number,"cuối_cùng" number,"tổng" number,"ghi_chú" text)
số lượng vận động viên từ Hoa Kỳ là bao nhiêu?
số_lượng vận_động_viên từ Hoa_Kỳ là bao_nhiêu ?
SELECT COUNT ( "vận động viên" ) FROM table 204 296 WHERE "vận động viên" = 'usa'
SELECT COUNT ( "vận_động_viên" ) FROM table_204_296 WHERE "vận_động_viên" = "usa"
nvbench
CREATE TABLE Pilot record(Record ID int,Pilot ID int,Aircraft ID int,Date text) CREATE TABLE Pilot(Pilot ID int,Pilot name text,Hạng int,Tuổi int,Quốc tịch text,Chức vụ text,Join Year int,Team text) CREATE TABLE máy bay(Aircraft ID int,Order Year int,Nhà sản xuất text,Model text,Fleet Series text,Powertrain text,Fuel Propulsion text)
CREATE TABLE Pilot_record(Record_ID int,Pilot_ID int,Aircraft_ID int,Date text) CREATE TABLE Pilot(Pilot_ID int,Pilot_name text,Hạng int,Tuổi int,Quốc_tịch text,Chức_vụ text,Join_Year int,Team text) CREATE TABLE máy_bay(Aircraft_ID int,Order_Year int,Nhà_sản_xuất text,Model text,Fleet_Series text,Powertrain text,Fuel_Propulsion text)
Các quốc tịch khác nhau của phi công là gì? Hiển thị từng quốc tịch và số lượng phi công của từng quốc tịch Hiển thị biểu đồ thanh, hiển thị tăng dần theo tổng số.
Các quốc_tịch khác nhau của phi_công là gì ? Hiển_thị từng quốc_tịch và số_lượng phi_công của từng quốc_tịch Hiển_thị biểu_đồ thanh , hiển_thị tăng dần theo tổng_số .
SELECT Quốc tịch, COUNT ( * ) FROM phi công GROUP BY Quốc tịch ORDER BY COUNT ( * )
SELECT Quốc_tịch, COUNT ( * ) FROM phi_công GROUP BY Quốc_tịch ORDER BY COUNT ( * )
wikisql
CREATE TABLE table 55802("Năm" real,"Kỷ lục" text,"Kết thúc" text,"Người quản lý" text,"Playoffs" text)
CREATE TABLE table_55802("Năm" real,"Kỷ_lục" text,"Kết_thúc" text,"Người quản_lý" text,"Playoffs" text)
Hãy cho tôi biết năm trung bình có kỷ lục 33-33
Hãy cho tôi biết năm trung_bình có kỷ_lục 33-33
SELECT AVG ( "Năm" ) FROM table 55802 WHERE "Bản ghi" = '3333'
SELECT AVG ( "Năm" ) FROM table_55802 WHERE "Bản_ghi" = "3333"
sql_create_context
CREATE TABLE table name 65(trạng thái VARCHAR,tên VARCHAR)
CREATE TABLE table_name_65(trạng_thái VARCHAR,tên VARCHAR)
Tình trạng hiện tại của người tên Nicholls như thế nào?
Tình_trạng hiện_tại của người tên Nicholls như_thế_nào ?
SELECT trạng thái FROM table name 65 WHERE name = "nicholls"
SELECT trạng_thái FROM table_name_65 WHERE name = "nicholls"
academic
CREATE TABLE domain keyword(did int,kid int) CREATE TABLE cite(cited int,citing int) CREATE TABLE Conference(cid int,homepage varchar,name varchar) CREATE TABLE miền(did int,name varchar) CREATE TABLE công bố keyword(kid int,pid int) CREATE TABLE miền author(aid int,did int) CREATE TABLE domain publication(did int,pid int) CREATE TABLE công bố(trừu tượng varchar,cid int,cite num int,jid int,pid int,reference num int,title varchar,year int) CREATE TABLE domain journal(did int,jid int) CREATE TABLE từ khóa(từ khóa varchar,kid int) CREATE TABLE tổ chức(lục địa varchar,trang chủ varchar,tên varchar,oid int) CREATE TABLE tạp chí(trang chủ varchar,jid int,name varchar) CREATE TABLE tác giả(aid int,homepage varchar,name varchar,oid int) CREATE TABLE domain conference(cid int,did int) CREATE TABLE viết(viện trợ int,pid int)
CREATE TABLE domain_keyword(did int,kid int) CREATE TABLE cite(cited int,citing int) CREATE TABLE Conference(cid int,homepage varchar,name varchar) CREATE TABLE miền(did int,name varchar) CREATE TABLE công_bố_keyword(kid int,pid int) CREATE TABLE miền_author(aid int,did int) CREATE TABLE domain_publication(did int,pid int) CREATE TABLE công_bố(trừu_tượng varchar,cid int,cite_num int,jid int,pid int,reference_num int,title varchar,year int) CREATE TABLE domain_journal(did int,jid int) CREATE TABLE từ khóa(từ khóa varchar,kid int) CREATE TABLE tổ_chức(lục_địa varchar,trang chủ varchar,tên varchar,oid int) CREATE TABLE tạp_chí(trang chủ varchar,jid int,name varchar) CREATE TABLE tác_giả(aid int,homepage varchar,name varchar,oid int) CREATE TABLE domain_conference(cid int,did int) CREATE TABLE viết(viện_trợ int,pid int)
trả lại cho tôi số bài báo đã công bố tại hội nghị VLDB trước năm 2000.
trả lại cho tôi số bài báo đã công_bố tại hội_nghị VLDB trước năm 2000 .
SELECT COUNT ( DISTINCT ( publication.title ) ) FROM Conference,publication WHERE Conference.name = 'VLDB' AND Publication.cid = Conference.cid AND Publication.year < 2000
SELECT COUNT ( DISTINCT ( publication.title ) ) FROM Conference,publication WHERE Conference.name = "VLDB" AND Publication.cid = Conference.cid AND Publication.year < 2000
wikisql
CREATE TABLE table 72999("Vòng" real,"Ngày" text,"Grand Prix" text,"Mạch" text,"Vị trí cực" text,"Vòng nhanh nhất" text,"Người chiến thắng cuộc đua" text)
CREATE TABLE table_72999("Vòng" real,"Ngày" text,"Grand_Prix" text,"Mạch" text,"Vị_trí cực" text,"Vòng nhanh nhất" text,"Người chiến_thắng cuộc đua" text)
Grand Prix vòng 5 nào có Daijiro Hiura ở vị trí pole?
Grand Prix_vòng 5 nào có Daijiro_Hiura ở vị_trí pole ?
SELECT "Grand Prix" FROM table 72999 WHERE "Vị trí cực" = 'Daijiro Hiura' AND "Vòng" = '5'
SELECT "Grand_Prix" FROM table_72999 WHERE "Vị_trí cực" = "Daijiro_Hiura" AND "Vòng" = "5"
squall
CREATE TABLE table 204 511(id number,"number" number,"driver" text,"entrant" text,"khung gầm" text,"động cơ" text,"lốp" text)
CREATE TABLE table_204_511(id number,"number" number,"driver" text,"entrant" text,"khung gầm" text,"động_cơ" text,"lốp" text)
ai là người lái xe cuối cùng hoàn thành việc lái một con báo đốm?
ai là người lái_xe cuối_cùng hoàn_thành việc lái một con báo đốm ?
SELECT "driver" FROM table 204 511 WHERE "engine" = 'jaguar' ORDER BY "number" DESC LIMIT 1
SELECT "driver" FROM table_204_511 WHERE "engine" = "jaguar" ORDER BY"number" DESC LIMIT 1
wikisql
CREATE TABLE table 45864("Cầu thủ" text,"Câu lạc bộ" text,"Trò chơi" real,"Bàn thắng" real,"Hỗ trợ" real,"Điểm" real)
CREATE TABLE table_45864("Cầu_thủ" text,"Câu_lạc_bộ" text,"Trò_chơi" real,"Bàn_thắng" real,"Hỗ_trợ" real,"Điểm" real)
Số pha kiến ​​tạo trung bình là bao nhiêu khi Câu lạc bộ là Gà trống Iserlohn, khi Điểm là 71 và khi Bàn thắng lớn hơn 44?
Số pha_kiến ​ ​_tạo trung_bình là bao_nhiêu khi Câu_lạc_bộ là Gà trống_Iserlohn , khi Điểm là 71 và khi Bàn_thắng lớn hơn 44 ?
SELECT AVG ( "Hỗ trợ" ) FROM table 45864 WHERE "Club" = 'iserlohn gà trống' AND "Điểm" = '71' AND "Bàn thắng" > '44'
SELECT AVG ( "Hỗ_trợ" ) FROM table_45864 WHERE "Club" = "iserlohn gà trống"_ AND "Điểm" = "71" AND "Bàn_thắng" > "44"
sql_create_context
CREATE TABLE table name 7(điểm INTEGER,đội VARCHAR,năm VARCHAR)
CREATE TABLE table_name_7(điểm INTEGER,đội VARCHAR,năm VARCHAR)
Đội Rothmans Honda có bao nhiêu điểm vào năm 1992?
Đội Rothmans_Honda có bao_nhiêu điểm vào năm 1992 ?
SELECT MIN ( điểm ) FROM tên bảng 7 WHERE team = "rothmans honda" AND năm = 1992
SELECT MIN ( điểm ) FROM tên_bảng_7 WHERE team = "rothmans honda" AND năm = 1992
sql_create_context
CREATE TABLE table name 61(vị trí VARCHAR,năm VARCHAR)
CREATE TABLE table_name_61(vị_trí VARCHAR,năm VARCHAR)
Vị trí năm 2007 là gì?
Vị_trí năm 2007 là gì ?
SELECT vị trí FROM tên bảng 61 WHERE năm = 2007
SELECT vị_trí FROM tên_bảng_61 WHERE năm = 2007
wikisql
CREATE TABLE table 25030("Ngày" text,"Trình tạo" text,"Loại" text,"Nhà điều hành" text,"Số" text,"Đã rút tiền" text,"Trạng thái" text)
CREATE TABLE table_25030("Ngày" text,"Trình_tạo" text,"Loại" text,"Nhà điều_hành" text,"Số" text,"Đã rút_tiền" text,"Trạng_thái" text)
Liệt kê ngày cho số 1.
Liệt_kê ngày cho số 1 .
SELECT "Ngày" FROM table 25030 WHERE "Số" = '1'
SELECT "Ngày" FROM table_25030 WHERE "Số" = "1"
mimic_iii
CREATE TABLE Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d labitems(row id number,itemid number,nhãn text) CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE 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,discharge location text,bảo hiểm text,ngôn ngữ text,hôn nhân status text,dân tộc text,age number) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,route text) CREATE TABLE 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,gender text,dob time,dod time) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,thời gian biểu đồ time)
CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_labitems(row_id number,itemid number,nhãn text) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE 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,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,age number) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE 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,gender text,dob time,dod time) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,thời_gian biểu_đồ time)
có bao nhiêu bệnh nhân đã được chẩn đoán mắc bệnh embl suprfcl ves low ext kể từ năm 2101?
có bao_nhiêu bệnh_nhân đã được chẩn_đoán mắc bệnh embl suprfcl ves low ext kể từ năm 2101 ?
SELECT COUNT ( DISTINCT tuyển sinh.subject id ) FROM tuyển sinh WHERE tuyển sinh.hadm id IN ( SELECT chẩn đoán icd.hadm id FROM chẩn đoán icd WHERE chẩn đoán icd.icd9 code = ( SELECT d icd diagnoses.icd9 code FROM d icd diagnoses WHERE d icd diagnoses.short title = 'embl suprfcl ves low ext' ) AND STRFTIME ( 'y',diagnoses icd.charttime ) >= '2101' )
SELECT COUNT ( DISTINCT tuyển_sinh.subject_id ) FROM tuyển_sinh WHERE tuyển_sinh.hadm_id IN ( SELECT chẩn_đoán_icd.hadm_id FROM chẩn_đoán_icd WHERE chẩn_đoán_icd.icd9_code = ( SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = "embl suprfcl ves low ext" ) AND STRFTIME ( " y",diagnoses_icd.charttime ) > = "2101" )
wikisql
CREATE TABLE table 60866("DFL Tây Nam" text,"Thắng" real,"Tạm biệt" real,"Thua" real,"Hòa" real,"Thắng" real)
CREATE TABLE table_60866("DFL Tây_Nam" text,"Thắng" real,"Tạm_biệt" real,"Thua" real,"Hòa" real,"Thắng" real)
Bao nhiêu Chống lại có Hòa là 2 và Thua nhỏ hơn 4?
Bao_nhiêu Chống lại có Hòa là 2 và Thua nhỏ hơn 4 ?
SELECT SUM ( "Chống lại" ) FROM table 60866 WHERE "Hòa" = '2' AND "Thua" < '4'
SELECT SUM ( "Chống lại" ) FROM table_60866 WHERE "Hòa" = "2" AND "Thua" < "4"
sede
CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Mô tả text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,Ngày đóng time,Ngày sở hữu cộng đồng time,Giấy phép nội dung text) CREATE TABLE Lý do từ chối đánh giá(Id number,Tên text,Mô tả text,PostTypeId number) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLicen text) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) 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 ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Đề xuấtChỉnh sửa(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE Người dùng(Id number,Danh tiếng number,Ngày tạo time,Tên hiển thị text,Ngày truy cập cuối cùng time,Url trang web text,Vị trí text,Giới thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE 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 PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time)
CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Mô_tả text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,Ngày đóng time,Ngày sở_hữu cộng_đồng time,Giấy_phép nội_dung text) CREATE TABLE Lý_do từ_chối đánh_giá(Id number,Tên text,Mô_tả text,PostTypeId number) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLicen text) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) 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 ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Đề_xuấtChỉnh sửa(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE Người dùng(Id number,Danh_tiếng number,Ngày tạo time,Tên hiển_thị text,Ngày truy_cập cuối_cùng time,Url trang_web text,Vị_trí text,Giới_thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE 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 PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time)
Có bao nhiêu câu trả lời SO mỗi tháng?.
Có bao_nhiêu câu trả_lời SO mỗi tháng ? .
SELECT u.DisplayName,MONTH ( p.CreationDate ) YEAR ( p.CreationDate ) * 100 AS "mdate", COUNT ( u.DisplayName ) AS "num" FROM Bài viết AS p,Users AS u WHERE p.PostTypeId = 2 AND p.OwnerUserId IN ( ' AND SOidGROUP' ) BY p.OwnerUserId = u.Id ORDER BY THÁNG ( p.CreationDate ) NĂM ( p.CreationDate ) * 100,u.DisplayName DESC Num
SELECT u.DisplayName,MONTH ( p.CreationDate ) YEAR ( p.CreationDate ) * 100 AS"mdate", COUNT ( u.DisplayName ) AS"num" FROM Bài viết AS p,Users AS u WHERE p.PostTypeId = 2 AND p.OwnerUserId IN ( " AND SOidGROUP" ) BY_p.OwnerUserId =u.Id ORDER BY THÁNG ( p.CreationDate ) NĂM ( p.CreationDate ) * 100,u.DisplayName DESC _ Num
sql_create_context
CREATE TABLE table name 76(khung gầm VARCHAR,động cơ VARCHAR,đội VARCHAR,lốp VARCHAR)
CREATE TABLE table_name_76(khung gầm VARCHAR,động_cơ VARCHAR,đội VARCHAR,lốp VARCHAR)
Đội BMS Scuderia Italia đã sử dụng khung gầm nào với Lốp G và động cơ Ferrari 037 3.5 v12?
Đội BMS Scuderia_Italia đã sử_dụng khung gầm nào với Lốp_G và động_cơ Ferrari 037 3.5_v12 ?
SELECT khung xe FROM table name 76 WHERE team = "bms scuderia italia" AND lốp = "g" AND engine = "ferrari 037 3.5 v12"
SELECT khung xe FROM table_name_76 WHERE team = "bms scuderia italia" AND lốp = "g" AND engine = "ferrari 037 3.5_v12"
squall
CREATE TABLE table 203 184(id number,"hòa không" number,"đội chủ nhà" text,"tỷ số" text,"đội khách" text,"tham dự" text)
CREATE TABLE table_203_184(id number,"hòa không" number,"đội chủ nhà" text,"tỷ_số" text,"đội khách" text,"tham_dự" text)
tổng cộng đội khách đã ghi được bao nhiêu điểm?
tổng_cộng đội khách đã ghi được bao_nhiêu điểm ?
SELECT SUM ( "điểm" ) FROM bảng 203 184
SELECT SUM ( "điểm" ) FROM bảng_203_184
sql_create_context
CREATE TABLE tên bảng 67(mất VARCHAR,date VARCHAR)
CREATE TABLE tên_bảng_67(mất VARCHAR,date VARCHAR)
Họ đã thua bao nhiêu vào ngày 26 tháng 4?
Họ đã thua bao_nhiêu vào ngày 26 tháng 4 ?
SELECT thua FROM table name 67 WHERE date = "26 tháng 4"
SELECT thua FROM table_name_67 WHERE date = "26 tháng 4"
wikisql
CREATE TABLE table 51035("Ngày" text,"Sê-ri" text,"Mạch" text,"Thành phố/Tiểu bang" text,"Người chiến thắng" text,"Đội" text)
CREATE TABLE table_51035("Ngày" text,"Sê-ri" text,"Mạch" text,"Thành_phố/Tiểu_bang" text,"Người chiến_thắng" text,"Đội" text)
Đội đua nào có đội đua Volvo Cars Australia?
Đội đua nào có đội đua Volvo Cars_Australia ?
SELECT "Mạch" FROM table 51035 WHERE "Team" = 'ô tô volvo australia'
SELECT "Mạch" FROM table_51035 WHERE "Team" = "ô_tô volvo australia"
advising
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 record(student id int,course id int,học kỳ int,lớp varchar,làm thế nào varchar,chuyển nguồn varchar,kiếm tín chỉ varchar,repeat term varchar,test id varchar) CREATE TABLE gsi(course offering id int,student id int) CREATE TABLE require(requirement id int,requirement varchar,college varchar) CREATE TABLE jobs(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLEprogram requirement(program id int,category varchar,min credit int,Added req varchar) CREATE TABLE khu vực(course id int,khu vực varchar) CREATE TABLE học kỳ(semester id int,semester varchar,year int) CREATE TABLE khóa học(khóa học id int,tên varchar,khoa học 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,điểm rõ ràng int,điểm dễ dùng int,điểm trợ giúp int) CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLE Course offering(offering id int,course id int,semester int,số phần int,thời gian bắt đầu time,thời gian bắt đầu time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ bảy varchar,chủ nhật varchar,has final project varchar,has final exam varchar,sách giáo khoa varchar,class address varchar,allow audit 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,phản hồi tốt int,bài kiểm tra khó int,bài tập nặng int,quan tâm cho students int,bài tập nặng int,được tôn trọng int,tham gia int,đọc bài nặng int,học sinh khó int,vui nhộn int,sẽ làm lại int,bài giảng hay int,không bỏ qua int) CREATE TABLE giảng viên(instructor id int,name varchar,uniqname varchar) CREATE TABLE ta(campus job id int,student id int,location varchar) CREATE TABLEstudent(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,bằng cấp varchar,nhỏ varchar,thực tập varchar) CREATE TABLE chương trình(program id int,name varchar,college varchar,introduction varchar) CREATE TABLEprogram course(program id int,course id int,workload int,category varchar) CREATE TABLE Course precondition(pre course id int,Mã khóa học int)
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_record(student_id int,course_id int,học kỳ int,lớp varchar,làm thế_nào varchar,chuyển_nguồn varchar,kiếm_tín chỉ varchar,repeat_term varchar,test_id varchar) CREATE TABLE gsi(course_offering_id int,student_id int) CREATE TABLE require(requirement_id int,requirement varchar,college varchar) CREATE TABLE jobs(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLEprogram_requirement(program_id int,category varchar,min_credit int,Added_req varchar) CREATE TABLE khu_vực(course_id int,khu_vực varchar) CREATE TABLE học_kỳ(semester_id int,semester varchar,year int) CREATE TABLE khóa_học(khóa học_id int,tên varchar,khoa_học 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,điểm_rõ ràng int,điểm_dễ_dùng int,điểm_trợ giúp int) CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLE Course_offering(offering_id int,course_id int,semester int,số_phần int,thời_gian bắt_đầu time,thời_gian bắt_đầu time,thứ hai varchar,thứ ba varchar,thứ tư varchar,thứ năm varchar,thứ sáu varchar,thứ_bảy varchar,chủ_nhật varchar,has_final_project varchar,has_final_exam varchar,sách_giáo_khoa varchar,class_address varchar,allow_audit 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,phản_hồi tốt int,bài kiểm_tra khó int,bài_tập nặng int,quan_tâm_cho_students int,bài_tập nặng int,được tôn_trọng int,tham_gia int,đọc_bài nặng int,học_sinh khó int,vui nhộn int,sẽ_làm lại int,bài giảng hay int,không_bỏ qua int) CREATE TABLE giảng_viên(instructor_id int,name varchar,uniqname varchar) CREATE TABLE ta(campus_job_id int,student_id int,location varchar) CREATE TABLEstudent(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,bằng_cấp varchar,nhỏ varchar,thực_tập varchar) CREATE TABLE chương_trình(program_id int,name varchar,college varchar,introduction varchar) CREATE TABLEprogram_course(program_id int,course_id int,workload int,category varchar) CREATE TABLE Course_precondition(pre_course_id int,Mã_khóa học int)
Thầy Anuj Kumar đã từng dạy lớp BIOPHYS 521 chưa?
Thầy Anuj Kumar đã từng dạy lớp BIOPHYS 521 chưa ?
SELECT COUNT ( * ) > 0 FROM Course,course offering,instructor,offering instructor WHERE Course.course id = Course offering.course id AND Course.department = 'BIOPHYS' AND Course.number = 521 AND giảng viên.tên LIKE 'Anuj Kumar' AND chào hàng instructor.instructor id = giảng viên.instructor id AND chào hàng instructor.offering id = khóa học offering.offering id
SELECT COUNT ( * ) > 0 FROM Course,course_offering,instructor,offering_instructor WHERE Course.course_id = Course_offering.course_id AND Course.department = "BIOPHYS" AND Course.number = 521 AND giảng_viên.tên LIKE " Anuj Kumar " AND chào_hàng_instructor.instructor_id = giảng_viên.instructor_id AND chào_hàng_instructor.offering_id = khóa học_offering.offering_id
wikisql
CREATE TABLE table 79392("Model" text,"Năm" text,"Mã động cơ" text,"Công suất" text,"Mô-men xoắn" text)
CREATE TABLE table_79392("Model" text,"Năm" text,"Mã_động_cơ" text,"Công_suất" text,"Mô-men_xoắn" text)
Mô-men xoắn n m (lb ft)@1500-2500 là mô hình nào?
Mô-men xoắn n m ( lb ft ) @ 1500 - 2500 là mô_hình nào ?
SELECT "Mẫu" FROM table 79392 WHERE "Mômen xoắn" = 'nm ( lbft ) 15002500'
SELECT "Mẫu" FROM table_79392 WHERE "Mômen_xoắn" = "n m ( lb ft ) 1500 2500"
wikisql
CREATE TABLE table 63448("Khóa & Đập" text,"Vị trí [L ]" text,"River Mile" real,"Khóa bên" text,"Khóa nâng/thả(tính bằng feet)" text,"Chiều dài bể bơi(dặm)" text)
CREATE TABLE table_63448("Khóa & Đập" text,"Vị_trí [_L ]" text,"River_Mile" real,"Khóa bên" text,"Khóa nâng/thả(tính bằng feet)" text,"Chiều dài bể bơi(dặm)" text)
Vị trí của dặm sông lớn hơn 938,9 và Đập và Âu thuyền Olmsted là gì?
Vị_trí của dặm sông lớn hơn 938,9 và Đập và Âu_thuyền Olmsted là gì ?
SELECT "Vị trí L " FROM table 63448 WHERE "River Mile" > '938.9' AND "Locks Dam" = 'ổ khóa và đập olmsted'
SELECT "Vị_trí L " FROM table_63448 WHERE "River_Mile" > "938.9" AND "Locks Dam" = "ổ_khóa và đập olmsted"
wikisql
CREATE TABLE table 30449("Player" text,"Cap(s)" real,"Goal(s)" real,"Ra mắt quốc tế" text,"Club(s)" text)
CREATE TABLE table_30449("Player" text,"Cap(s)" real,"Goal(s)" real,"Ra_mắt quốc_tế" text,"Club(s)" text)
Cầu thủ vô địch đến từ câu lạc bộ nào và ghi được 10 bàn thắng?
Cầu_thủ vô_địch đến từ câu_lạc_bộ nào và ghi được 10 bàn thắng ?
SELECT " ( Các ) câu lạc bộ" FROM table 30449 WHERE " ( Các ) bàn thắng" = '10'
SELECT " ( Các ) câu_lạc_bộ" FROM table_30449 WHERE " ( Các ) bàn thắng" = "10"
squall
CREATE TABLE table 204 161(id number,"name" text,"1968 cf\ndesignator" text,"nơi\nsản xuất" text,"chính\nrole(s)" text,"dịch vụ\nthời gian" text,"#\nuse" number)
CREATE TABLE table_204_161(id number,"name" text,"1968 cf\_ndesignator" text,"nơi\_nsản xuất" text,"chính\_nrole(s)" text,"dịch_vụ\nthời_gian" text,"#\_nuse" number)
người bán hàng rong nào có nhiều dịch vụ hơn. con hươu bán hàng rong hay con sau của người bán hàng rong?
người bán hàng rong nào có nhiều dịch_vụ hơn . con hươu bán hàng rong hay con sau của người bán hàng rong ?
SELECT "tên" FROM table 204 161 WHERE "tên" IN ( 'hawker hart','hawkerhind' ) ORDER BY "nused" DESC LIMIT 1
SELECT "tên" FROM table_204_161 WHERE "tên" IN ( "hawker hart","hawkerhind" ) ORDER BY"nused" DESC LIMIT 1
wikisql
CREATE TABLE table 23064("Vẽ" real,"Nghệ sĩ" text,"Bản gốc" text,"Ý nghĩa tiếng Anh" text,"Ngôn ngữ" text,"Tác giả" text)
CREATE TABLE table_23064("Vẽ" real,"Nghệ_sĩ" text,"Bản_gốc" text,"Ý_nghĩa tiếng Anh" text,"Ngôn_ngữ" text,"Tác_giả" text)
Ý nghĩa của từ tiếng Anh Eyes that Never Lie là gì?
Ý_nghĩa của từ tiếng Anh Eyes_that Never_Lie là gì ?
SELECT "Vẽ" FROM table 23064 WHERE "Ngôn ngữ" = 'Tiếng Anh' AND "Ý nghĩa tiếng Anh" = 'Đôi mắt không bao giờ nói dối'
SELECT "Vẽ" FROM table_23064 WHERE "Ngôn_ngữ" = "Tiếng Anh" AND "Ý_nghĩa tiếng Anh" = "Đôi mắt không bao_giờ nói_dối"
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)
Có bao nhiêu bệnh nhân dưới 68 tuổi đã thực hiện thủ thuật đặt ống thông tĩnh mạch dài hạn để chạy thận nhân tạo?
Có bao_nhiêu bệnh_nhân dưới 68 tuổi đã thực_hiện thủ_thuật đặt ống thông tĩnh_mạch dài_hạn để chạy thận nhân_tạo ?
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.age < "68" AND thủ tục.long title = "Đặt ống thông tĩnh mạch để lọc thận"
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.age <"68" AND thủ_tục.long_title = "Đặt ống thông tĩnh_mạch để lọc thận"