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 28723146 2(multi lane INTEGER,category wise VARCHAR) | CREATE TABLE table_28723146_2(multi_lane INTEGER,category_wise VARCHAR) | Giá trị cao nhất cho nhiều làn là bao nhiêu nếu phân loại là đường huyện chính? | Giá_trị cao nhất cho nhiều làn là bao_nhiêu nếu phân_loại là đường huyện chính ? | SELECT MAX ( multi lane ) FROM table 28723146 2 WHERE Category wise = "Các tuyến đường chính của quận" | SELECT MAX ( multi_lane ) FROM table_28723146_2 WHERE Category_wise = "Các tuyến đường chính của quận" |
wikisql | CREATE TABLE table 42897("Năm" real,"Giải thưởng" text,"Danh mục" text,"Người nhận" text,"Kết quả" text) | CREATE TABLE table_42897("Năm" real,"Giải_thưởng" text,"Danh_mục" text,"Người nhận" text,"Kết_quả" text) | Ai đã giành được Giải thưởng Lựa chọn Trẻ em năm 2010? | Ai đã giành được Giải_thưởng Lựa_chọn Trẻ_em năm 2010 ? | SELECT "Người nhận" FROM table 42897 WHERE "Giải thưởng" = 'Giải thưởng bình chọn của trẻ em năm 2010' AND "Kết quả" = 'thắng' | SELECT "Người nhận" FROM table_42897 WHERE "Giải_thưởng" = "Giải_thưởng bình_chọn của trẻ_em năm 2010" AND "Kết_quả" = "thắng" |
sql_create_context | CREATE TABLE table 12407546 1(bắn súng VARCHAR,vận động viên noc VARCHAR) | CREATE TABLE table_12407546_1(bắn súng VARCHAR,vận_động viên__noc_ VARCHAR) | Điểm bắn súng của Luis Siri là bao nhiêu? | Điểm bắn súng của Luis_Siri là bao_nhiêu ? | SELECT bắn FROM bảng 12407546 1 WHERE vận động viên noc = "Luis Siri" | SELECT bắn FROM bảng_12407546_1 WHERE vận_động viên__noc = "Luis_Siri" |
sql_create_context | CREATE TABLE table 19359427 6(ngày hẹn VARCHAR,vị trí trong bảng VARCHAR) | CREATE TABLE table_19359427_6(ngày_hẹn VARCHAR,vị trí_trong_bảng VARCHAR) | Người quản lý mới của đội ở vị trí thứ 21 được bổ nhiệm khi nào? | Người quản_lý mới của đội ở vị_trí thứ 21 được bổ_nhiệm khi nào ? | SELECT ngày của cuộc hẹn FROM bảng 19359427 6 WHERE vị trí in bàn = "thứ 21" | SELECT ngày_của_cuộc hẹn FROM bảng_19359427_6 WHERE vị trí_in_bàn = "thứ 21" |
sql_create_context | CREATE TABLE table name 40(loại VARCHAR,formed from VARCHAR) | CREATE TABLE table_name_40(loại VARCHAR,formed_from VARCHAR) | Tên được gõ cho hình thành từ trailer 6-pul thứ ba trong đơn vị res | Tên được gõ cho hình_thành từ trailer 6 - pul thứ ba trong đơn_vị res | SELECT gõ FROM table name 40 WHERE formed from = "Đoạn giới thiệu 6pul thứ ba trong đơn vị res" | SELECT gõ FROM table_name_40 WHERE formed_from= "Đoạn giới_thiệu 6 pul thứ ba trong đơn_vị res" |
mimic_iii | 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 microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,Last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,số lượng number) | CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,hôn_nhân_status text,dân_tộc text,tuổi number) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,Last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,số_lượng number) | Lần đầu tiên nhịp thở của bệnh nhân 3125 hôm nay đo được lớn hơn 14,0 là khi nào? | Lần đầu_tiên nhịp thở của bệnh_nhân 3125 hôm_nay đo được lớn hơn 14,0 là khi nào ? | SELECT Chartevents.charttime FROM Chartevents WHERE Chartevents.icustay id IN ( SELECT icustays.icustay id FROM icustays WHERE icustays.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 3125 ) ) AND Chartevents.itemid IN ( SELECT d items.itemid FROM d items WHERE d items.label = 'tốc độ hô hấp' AND d items.linksto = 'chartevents' ) AND Chartevents.valuenum > 14.0 AND DATETIME ( chartevents.charttime,'bắt đầu ngày' ) = DATETIME ( CURRENT TIME ( ) ,'bắt đầu ngày','0 ngày' ) ORDER BYchartevents.charttime LIMIT 1 | SELECT Chartevents.charttime FROM Chartevents WHERE Chartevents.icustay_id IN ( SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 3125 ) ) AND Chartevents.itemid IN ( SELECT d_items.itemid FROM d_items WHERE d_items.label = "tốc_độ hô_hấp" AND d_items.linksto = "chartevents" ) AND Chartevents.valuenum > 14.0 AND DATETIME ( chartevents.charttime,"bắt_đầu ngày" ) = DATETIME ( CURRENT_TIME ( ) ,"bắt_đầu ngày"," 0 ngày" ) ORDER BYchartevents.charttime LIMIT 1 |
spider | CREATE TABLE film actor(actor id number,film id number,last update time) CREATE TABLE film category(film id number,category id number,last update time) CREATE TABLE customer(customer id number,store id number,first name text,last name text,email text,address id number,active boolean,create date time,last update time) CREATE TABLE film text(film id number,title text,description text) CREATE TABLE nhân viên(staff id number,first name text,last name text,address id number,picture other,email text,store id number,active boolean,username text,password text,last update time) CREATE TABLE ngôn ngữ(ngôn ngữ id number,tên text,last update time) CREATE TABLE diễn viên(actor id number,first name text,last name text,last update time) CREATE TABLE Category(category id number,name text,last update time) CREATE TABLE Payment(Payment id number,customer id number,staff id number,rental id number,amount number,Payment date time,last update time) CREATE TABLE film(film id number,title text,mô tả text,năm phát hành time,ngôn ngữ id number,origin ngôn ngữ number,thời gian thuê number,giá thuê number,độ dài number,chi phí thay thế number,xếp hạng text,tính năng đặc biệt text,cập nhật lần cuối time) CREATE TABLE thành phố(city id number,city text,country id number,last update time) CREATE TABLE store(store id number,manager staff id number,address id number,last update time) CREATE TABLE address(address id number,address text,address2 text,quận text,city id number,postal code text,phone text,last update time) CREATE TABLE Inventory(inventory id number,film id number,store id number,last update time) CREATE TABLE country(country id number,country text,last update time) CREATE TABLE Rent(rental id number,rental date time,inventory id number,customer id number,return date time,staff id number,last update time) | CREATE TABLE film_actor(actor_id number,film_id number,last_update time) CREATE TABLE film_category(film_id number,category_id number,last_update time) CREATE TABLE customer(customer_id number,store_id number,first_name text,last_name text,email text,address_id number,active boolean,create_date time,last_update time) CREATE TABLE film text(film_id number,title text,description text) CREATE TABLE nhân_viên(staff_id number,first_name text,last_name text,address_id number,picture other,email text,store_id number,active boolean,username text,password text,last_update time) CREATE TABLE ngôn_ngữ(ngôn_ngữ_id number,tên text,last_update time) CREATE TABLE diễn_viên(actor_id number,first_name text,last_name text,last_update time) CREATE TABLE Category(category_id number,name text,last_update time) CREATE TABLE Payment(Payment_id number,customer_id number,staff_id number,rental_id number,amount number,Payment_date time,last_update time) CREATE TABLE film(film_id number,title text,mô_tả text,năm phát_hành time,ngôn_ngữ_id number,origin_ngôn_ngữ number,thời_gian thuê number,giá_thuê number,độ dài number,chi_phí thay_thế number,xếp_hạng text,tính_năng đặc_biệt text,cập_nhật lần cuối time) CREATE TABLE thành_phố(city_id number,city text,country_id number,last_update time) CREATE TABLE store(store_id number,manager_staff_id number,address_id number,last_update time) CREATE TABLE address(address_id number,address text,address2 text,quận text,city_id number,postal_code text,phone text,last_update time) CREATE TABLE Inventory(inventory_id number,film_id number,store_id number,last_update time) CREATE TABLE country(country_id number,country text,last_update time) CREATE TABLE Rent(rental_id number,rental_date time,inventory_id number,customer_id number,return_date time,staff_id number,last_update time) | Số điện thoại và mã bưu chính của địa chỉ 1031 Daugavpils Parkway là bao nhiêu? | Số điện_thoại và mã bưu_chính của địa_chỉ 1031 Daugavpils_Parkway là bao_nhiêu ? | SELECT điện thoại,mã bưu điện FROM địa chỉ WHERE địa chỉ = '1031 Daugavpils Parkway' | SELECT điện_thoại,mã bưu_điện FROM địa_chỉ WHERE địa_chỉ = "1031 Daugavpils_Parkway" |
sql_create_context | CREATE TABLE bảng 29487895 2(tiêu đề ở quốc gia VARCHAR,quốc gia khu vực VARCHAR) | CREATE TABLE bảng_29487895_2(tiêu_đề_ở_quốc gia VARCHAR,quốc gia___khu_vực VARCHAR) | Nước nào nằm trong vùng của Pháp? | Nước nào nằm trong vùng của Pháp ? | SELECT title in country FROM table 29487895 2 WHERE country khu vực = "Pháp" | SELECT title_in_country FROM table_29487895_2 WHERE country___khu_vực = "Pháp" |
wikisql | CREATE TABLE table 54692("Trạng thái" text,"Phỏng vấn" real,"Áo tắm" real,"Áo choàng dạ hội" real,"Trung bình" real) | CREATE TABLE table_54692("Trạng_thái" text,"Phỏng_vấn" real,"Áo_tắm" real,"Áo_choàng dạ_hội" real,"Trung_bình" real) | Mức trung bình của áo tắm nhỏ hơn 9,545 của Iowa, với váy dạ hội lớn hơn 9,625 là bao nhiêu? | Mức trung_bình của áo_tắm nhỏ hơn 9,545 của Iowa , với váy_dạ_hội lớn hơn 9,625 là bao_nhiêu ? | SELECT AVG ( "Trung bình" ) FROM table 54692 WHERE "Áo tắm" < '9.545' AND "State" = 'iowa' AND "Áo choàng dạ hội" > '9.625' | SELECT AVG ( "Trung_bình" ) FROM table_54692 WHERE "Áo_tắm" < "9.545" AND "State" = "iowa" AND "Áo_choàng dạ_hội" > "9.625" |
nvbench | CREATE TABLE station(id INTEGER,name TEXT,lat NUMERIC,long NUMERIC,dock count INTEGER,city TEXT,installation date TEXT) CREATE TABLE status(station id INTEGER,bikes available INTEGER,docks available INTEGER,time TEXT) CREATE TABLE trip(id INTEGER,duration INTEGER,start date TEXT,start station name TEXT,start station id INTEGER,end date TEXT,end station name TEXT,end station id INTEGER,bike id INTEGER,subscription type TEXT,zip code INTEGER) CREATE TABLE thời tiết(date TEXT,max Nhiệt độ f INTEGER,mean Nhiệt độ f INTEGER,nhiệt độ tối thiểu f INTEGER,max dew point f INTEGER,mean dew point f INTEGER,min dew point f INTEGER,độ ẩm tối đa INTEGER,độ ẩm trung bình INTEGER,độ ẩm tối thiểu INTEGER,max sea level Pressure inches NUMERIC,mean sea level Pressure inches NUMERIC,min sea level Pressure inches NUMERIC,max visibility miles INTEGER,mean visibility miles INTEGER,min visibility miles INTEGER,max wind Speed mph INTEGER,mean wind speed mph INTEGER,max gust speed mph INTEGER,precipitation inches INTEGER,cloud cover INTEGER,sự kiện TEXT,wind dir degrees INTEGER,zip code INTEGER) | CREATE TABLE station(id INTEGER,name TEXT,lat_NUMERIC,long_NUMERIC,dock_count INTEGER,city TEXT,installation_date TEXT) CREATE TABLE status(station_id INTEGER,bikes_available INTEGER,docks_available INTEGER,time TEXT) CREATE TABLE trip(id INTEGER,duration INTEGER,start_date TEXT,start_station_name TEXT,start_station_id INTEGER,end_date TEXT,end_station_name TEXT,end_station_id INTEGER,bike_id INTEGER,subscription_type TEXT,zip_code INTEGER) CREATE TABLE thời_tiết(date TEXT,max_ Nhiệt_độ_f INTEGER,mean_ Nhiệt_độ_f INTEGER,nhiệt_độ tối thiểu_f INTEGER,max_dew_point_f INTEGER,mean_dew_point_f INTEGER,min_dew_point_f INTEGER,độ_ẩm tối_đa INTEGER,độ_ẩm trung_bình INTEGER,độ_ẩm tối_thiểu INTEGER,max_sea_level_ Pressure_inches_NUMERIC,mean_sea_level_ Pressure_inches_NUMERIC,min_sea_level_ Pressure_inches_NUMERIC,max_visibility_miles INTEGER,mean_visibility_miles INTEGER,min_visibility_miles INTEGER,max_wind_Speed_mph INTEGER,mean_wind_speed_mph INTEGER,max_gust_speed_mph INTEGER,precipitation_inches INTEGER,cloud_cover INTEGER,sự_kiện TEXT,wind_dir_degrees INTEGER,zip_code INTEGER) | Biểu đồ đường cho biết số ngày có áp suất mực nước biển trung bình trong khoảng từ 303 đến 31? và liệt kê theo trục X giảm dần. | Biểu_đồ đường cho biết số ngày có áp_suất mực nước_biển trung_bình trong khoảng từ 303 đến 31 ? và liệt_kê theo trục X giảm dần . | SELECT date, COUNT ( date ) FROM thời tiết WHERE mực nước biển áp lực inches BETWEEN 30.3 AND 31 GROUP BY date ORDER BY date DESC | SELECT date, COUNT ( date ) FROM thời_tiết WHERE mực nước biển_áp lực_inches BETWEEN 30.3 AND 31 GROUP BY date ORDER BY date DESC |
sql_create_context | CREATE TABLE hiệu suất(HOST VARCHAR,Tham dự VARCHAR) | CREATE TABLE hiệu_suất(HOST VARCHAR,Tham_dự VARCHAR) | Liệt kê những người chủ trì buổi biểu diễn theo thứ tự tham dự tăng dần. | Liệt_kê những người chủ_trì buổi biểu_diễn theo thứ_tự tham_dự tăng dần . | SELECT HOST FROM hiệu suất ORDER BY Tham dự | SELECT HOST FROM hiệu_suất ORDER BY Tham_dự |
nvbench | CREATE TABLE NHÂN VIÊN(EMP NUM int,EMP LNAME varchar(15),EMP FNAME varchar(12),EMP INITIAL varchar(1),EMP JOBCODE varchar(5),EMP HIREDATE datetime,EMP DOB datetime) CREATE TABLE LỚP(CLASS CODE varchar(5),CRS CODE varchar(10),CLASS SECTION varchar(2),CLASS TIME varchar(20),CLASS ROOM varchar(8),PROF NUM int) CREATE TABLE ENROLL(CLASS CODE varchar(5),STU NUM int,ENROLL GRADE varchar(50)) CREATE TABLE DEPARTMENT(DEPT CODE varchar(10),DEPT NAME varchar(30),SCHOOL CODE varchar(8),EMP NUM int,DEPT ADDRESS varchar(20),DEPT EXTENSION varchar(4)) CREATE TABLE STUDENT(STU NUM int,STU LNAME varchar(15),STU FNAME varchar(15),STU INIT varchar(1),STU DOB datetime,STU HRS int,STU CLASS varchar(2),STU GPA float(8),STU TRANSFER numeric,DEPT CODE varchar(18),STU PHONE varchar(4),PROF NUM int) CREATE TABLE KHÓA HỌC(CRS CODE varchar(10),DEPT CODE varchar(10),CRS DESCRIPTION varchar(35),CRS CREDIT float(8)) CREATE TABLE GIÁO SƯ(EMP NUM int,DEPT CODE varchar(10),PROF OFFICE varchar(50),PROF EXTENSION varchar(4),PROF HIGH DEGREE varchar(5)) | CREATE TABLE NHÂN_VIÊN(EMP_NUM int,EMP_LNAME varchar(15),EMP_FNAME varchar(12),EMP_INITIAL varchar(1),EMP_JOBCODE varchar(5),EMP_HIREDATE datetime,EMP_DOB datetime) CREATE TABLE LỚP(CLASS_CODE varchar(5),CRS_CODE varchar(10),CLASS_SECTION varchar(2),CLASS_TIME varchar(20),CLASS_ROOM varchar(8),PROF_NUM int) CREATE TABLE ENROLL(CLASS_CODE varchar(5),STU_NUM int,ENROLL_GRADE varchar(50)) CREATE TABLE DEPARTMENT(DEPT_CODE varchar(10),DEPT_NAME varchar(30),SCHOOL_CODE varchar(8),EMP_NUM int,DEPT_ADDRESS varchar(20),DEPT_EXTENSION varchar(4)) CREATE TABLE STUDENT(STU_NUM int,STU_LNAME varchar(15),STU_FNAME varchar(15),STU_INIT varchar(1),STU_DOB datetime,STU_HRS int,STU_CLASS varchar(2),STU_GPA float(8),STU_TRANSFER_numeric,DEPT_CODE varchar(18),STU_PHONE varchar(4),PROF_NUM int) CREATE TABLE KHÓA_HỌC(CRS_CODE varchar(10),DEPT_CODE varchar(10),CRS_DESCRIPTION varchar(35),CRS_CREDIT float(8)) CREATE TABLE GIÁO_SƯ(EMP_NUM int,DEPT_CODE varchar(10),PROF_OFFICE varchar(50),PROF_EXTENSION varchar(4),PROF_HIGH_DEGREE varchar(5)) | Có bao nhiêu khóa học cho mỗi mô tả khóa học? Cho tôi xem biểu đồ thanh xếp chồng lên nhau. Trục x là mô tả khóa học và nhóm theo tên của người hướng dẫn. | Có bao_nhiêu khóa_học cho mỗi mô_tả khóa học ? Cho tôi xem biểu_đồ thanh_xếp chồng lên nhau . Trục x là mô_tả khóa_học và nhóm theo tên của người hướng_dẫn . | SELECT CRS DESC RIPTION, COUNT ( CRS DESC RIPTION ) FROM LỚP AS T1 JOIN NHÂN VIÊN AS T2 ON T1.PROF NUM = T2.EMP NUM JOIN KHÓA HỌC AS T3 ON T1.CRS CODE = T3.CRS CODE JOIN GIÁO SƯ AS T4 ON T2.EMP NUM = T4.EMP NUM GROUP BY EMP FNAME,CRS DESC RIPTION | SELECT CRS DESC RIPTION, COUNT ( CRS DESC RIPTION ) FROM LỚP AS T1 JOIN NHÂN_VIÊN AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN KHÓA_HỌC AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN GIÁO_SƯ AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY EMP_FNAME,CRS DESC RIPTION |
nvbench | CREATE TABLE Basketball match(Team ID int,School ID int,Team Name text,ACC Regular Season text,ACC Percent text,ACC Home text,ACC Road text,All Games text,All Games Percent int,All Home text,All Road text,All Neutral text) CREATE TABLE đại học(School ID int,Trường text,Địa điểm text,Thành lập real,Liên kết text,Đăng ký real,Biệt danh text,Hội nghị chính text) | CREATE TABLE Basketball_match(Team_ID int,School_ID int,Team_Name text,ACC_Regular_Season text,ACC_Percent text,ACC_Home text,ACC_Road text,All_Games text,All_Games_Percent int,All_Home text,All_Road text,All_Neutral text) CREATE TABLE đại_học(School_ID int,Trường text,Địa_điểm text,Thành_lập real,Liên_kết text,Đăng_ký real,Biệt_danh text,Hội nghị_chính text) | Tôi muốn biết tỷ lệ tổng id trường học cho mỗi nhà. | Tôi muốn biết tỷ_lệ tổng_id trường_học cho mỗi nhà . | SELECT All Home, SUM ( School ID ) FROM trận đấu bóng rổ GROUP BY All Home | SELECT All_Home, SUM ( School_ID ) FROM trận đấu bóng_rổ GROUP BY All_Home |
sede | CREATE TABLE Người dùng(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE 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 CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE FlagTypes(Id number,Name text,Mô tả text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Chỉnh sửa được đề xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE ReviewTaskStates(Id number,Tên text,Mô tả text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE PostTags(PostId number,TagId number) | CREATE TABLE Người dùng(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE 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 CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE FlagTypes(Id number,Name text,Mô_tả text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Chỉnh_sửa được đề_xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE ReviewTaskStates(Id number,Tên text,Mô_tả text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE PostTags(PostId number,TagId number) | Thông tin trang web: Điểm - Số lượng bài đăng. | Thông_tin trang_web : Điểm - Số_lượng bài đăng . | SELECT Điểm, COUNT ( Điểm ) AS count FROM Bài viết GROUP BY Điểm ORDER BY Điểm | SELECT Điểm, COUNT ( Điểm ) AS count FROM Bài viết GROUP BY Điểm ORDER BY Điểm |
sql_create_context | CREATE TABLE tên bảng 99(date VARCHAR,vị trí VARCHAR) | CREATE TABLE tên_bảng_99(date VARCHAR,vị_trí VARCHAR) | Đội Boston Celtics thi đấu ở Richfield Coliseum vào ngày nào? | Đội Boston Celtics thi_đấu ở Richfield_Coliseum vào ngày nào ? | SELECT date FROM table name 99 WHERE location = "richfield coliseum" | SELECT date FROM table_name_99 WHERE location = "richfield coliseum" |
squall | CREATE TABLE table 204 39(id number,"số" number,"biểu tượng" text,"tên" text,"thứ 21" number,"thứ 22" number,"thứ 23" number,"thứ 24" number,"thứ 25" number,"thứ 26" number,"thứ 27" number,"thứ 28" number,"thứ 29" number,"thứ 30" number) | CREATE TABLE table_204_39(id number,"số" number,"biểu_tượng" text,"tên" text,"thứ 21" number,"thứ 22" number,"thứ 23" number,"thứ 24" number,"thứ 25" number,"thứ 26" number,"thứ 27" number,"thứ 28" number,"thứ 29" number,"thứ 30" number) | có bao nhiêu phần tử có dữ liệu nhỏ hơn số 25? | có bao_nhiêu phần_tử có dữ_liệu nhỏ hơn số 25 ? | SELECT COUNT ( "tên" ) FROM bảng 204 39 WHERE "số" > 25 | SELECT COUNT ( "tên" ) FROM bảng_204_39 WHERE "số" > 25 |
wikisql | CREATE TABLE table 52066("Độ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_52066("Độ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) | Tỷ số đội khách của đội chủ nhà Collingwood là bao nhiêu? | Tỷ_số đội khách của đội chủ nhà Collingwood là bao_nhiêu ? | SELECT "Tỷ số đội khách" FROM table 52066 WHERE "Đội khách" = 'collingwood' | SELECT "Tỷ_số đội khách" FROM table_52066 WHERE "Đội khách" = "collingwood" |
nvbench | CREATE TABLE Parts(part id INTEGER,part name VARCHAR(255),chargeable yn VARCHAR(1),chargeable amount VARCHAR(20),other part details VARCHAR(255)) CREATE TABLE Fault Log Parts(fault log entry id INTEGER,part fault id INTEGER,fault status VARCHAR(10)) CREATE TABLE Staff(staff id INTEGER,staff name VARCHAR(255),giới tính VARCHAR(1),other staff details VARCHAR(255)) CREATE TABLE Asset Parts(asset id INTEGER,part id INTEGER) CREATE TABLE Third Party Companies(company id INTEGER,company type VARCHAR(5),company name VARCHAR(255),company address VARCHAR(255),other company details VARCHAR(255)) CREATE TABLE Maintenance Contracts(maintenance contract id INTEGER,maintenance contract company id INTEGER,contract start date DATETIME,contract end date DATETIME,other contract details VARCHAR(255)) CREATE TABLE Skills(skill id INTEGER,skill code VARCHAR(20),skill description VARCHAR(255)) CREATE TABLE Skills Required To Fix(part fault id INTEGER,skill id INTEGER) CREATE TABLE Assets(asset id INTEGER,maintenance contract id INTEGER,supplier company id INTEGER,asset details VARCHAR(255),asset make VARCHAR(20),asset model VARCHAR(20),asset acquired date DATETIME,asset dispose date DATETIME,other asset details VARCHAR(255)) CREATE TABLE Engineer Visits(engineer visit id INTEGER,contact staff id INTEGER,engineer id INTEGER,fault log entry id INTEGER,fault status VARCHAR(10),visit start datetime DATETIME,visit end datetime DATETIME,other visit details VARCHAR(255)) CREATE TABLE Part Faults(part fault id INTEGER,part id INTEGER,fault short name VARCHAR(20),fault description VARCHAR(255),other fault details VARCHAR(255)) CREATE TABLE Fault Log(fault log entry id INTEGER,asset id INTEGER,recorded by staff id INTEGER,fault log entry datetime DATETIME,fault description VARCHAR(255),other fault details VARCHAR(255)) CREATE TABLE Maintenance Engineers(engineer id INTEGER,company id INTEGER,first name VARCHAR(50),last name VARCHAR(50),other details VARCHAR(255)) CREATE TABLE Engineer Skills(engineer id INTEGER,skill id INTEGER) | CREATE TABLE Parts(part_id INTEGER,part_name VARCHAR(255),chargeable_yn VARCHAR(1),chargeable_amount VARCHAR(20),other_part_details VARCHAR(255)) CREATE TABLE Fault_Log_Parts(fault_log_entry_id INTEGER,part_fault_id INTEGER,fault_status VARCHAR(10)) CREATE TABLE Staff(staff_id INTEGER,staff_name VARCHAR(255),giới_tính VARCHAR(1),other_staff_details VARCHAR(255)) CREATE TABLE Asset_Parts(asset_id INTEGER,part_id INTEGER) CREATE TABLE Third_Party_Companies(company_id INTEGER,company_type VARCHAR(5),company_name VARCHAR(255),company_address VARCHAR(255),other_company_details VARCHAR(255)) CREATE TABLE Maintenance_Contracts(maintenance_contract_id INTEGER,maintenance_contract_company_id INTEGER,contract_start_date DATETIME,contract_end_date DATETIME,other_contract_details VARCHAR(255)) CREATE TABLE Skills(skill_id INTEGER,skill_code VARCHAR(20),skill_description VARCHAR(255)) CREATE TABLE Skills_Required_To_Fix(part_fault_id INTEGER,skill_id INTEGER) CREATE TABLE Assets(asset_id INTEGER,maintenance_contract_id INTEGER,supplier_company_id INTEGER,asset_details VARCHAR(255),asset_make VARCHAR(20),asset_model VARCHAR(20),asset_acquired_date DATETIME,asset_dispose_date DATETIME,other_asset_details VARCHAR(255)) CREATE TABLE Engineer_Visits(engineer_visit_id INTEGER,contact_staff_id INTEGER,engineer_id INTEGER,fault_log_entry_id INTEGER,fault_status VARCHAR(10),visit_start_datetime DATETIME,visit_end_datetime DATETIME,other_visit_details VARCHAR(255)) CREATE TABLE Part_Faults(part_fault_id INTEGER,part_id INTEGER,fault_short_name VARCHAR(20),fault_description VARCHAR(255),other_fault_details VARCHAR(255)) CREATE TABLE Fault_Log(fault_log_entry_id INTEGER,asset_id INTEGER,recorded_by_staff_id INTEGER,fault_log_entry_datetime DATETIME,fault_description VARCHAR(255),other_fault_details VARCHAR(255)) CREATE TABLE Maintenance_Engineers(engineer_id INTEGER,company_id INTEGER,first_name VARCHAR(50),last_name VARCHAR(50),other_details VARCHAR(255)) CREATE TABLE Engineer_Skills(engineer_id INTEGER,skill_id INTEGER) | Liệt kê số lượng kỹ sư và nhóm theo họ trong biểu đồ thanh, sắp xếp tăng dần theo thanh. | Liệt_kê số_lượng kỹ_sư và nhóm theo họ trong biểu_đồ thanh , sắp_xếp tăng dần theo thanh . | SELECT Last name, COUNT ( last name ) FROM Maintenance Engineers AS T1 JOIN Engineer Skills AS T2 ON T1.engineer id = T2.engineer id JOIN Kỹ năng AS T3 ON T2.skill id = T3.skill id GROUP BY họ name ORDER BY họ | SELECT Last_name, COUNT ( last_name ) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Kỹ_năng AS T3 ON T2.skill_id = T3.skill_id GROUP BY họ_name ORDER BY họ |
wikisql | CREATE TABLE table 33559("Độ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_33559("Độ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) | Tổng số lượng khán giả tại Glenferrie Oval là bao nhiêu? | Tổng số_lượng khán_giả tại Glenferrie_Oval là bao_nhiêu ? | SELECT COUNT ( "Đám đông" ) FROM table 33559 WHERE "Địa điểm" = 'glenferrie hình bầu dục' | SELECT COUNT ( "Đám đông" ) FROM table_33559 WHERE "Địa_điểm" = "glenferrie_hình bầu_dục" |
wikisql | CREATE TABLE table 64383("Hạng hạng" real,"Làn đường" real,"Vận động viên" text,"Quốc tịch" text,"Thời gian" real,"Phản ứng" real) | CREATE TABLE table_64383("Hạng hạng" real,"Làn_đường" real,"Vận_động_viên" text,"Quốc_tịch" text,"Thời_gian" real,"Phản_ứng" real) | Làn đường cao nhất có thứ hạng lớn hơn 2 ở Guyana là gì? | Làn_đường cao nhất có thứ_hạng lớn hơn 2 ở Guyana là gì ? | SELECT MAX ( "Làn đường" ) FROM table 64383 WHERE "Hạng" > '2' AND "Quốc tịch" = 'guyana' | SELECT MAX ( "Làn_đường" ) FROM table_64383 WHERE "Hạng" > "2" AND "Quốc_tịch" = "guyana" |
wikisql | CREATE TABLE table 7135("Tuần" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Tham dự" real) | CREATE TABLE table_7135("Tuần" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Tham_dự" real) | Tuần trung bình có kết quả l 23 3 là bao nhiêu? | Tuần trung_bình có kết_quả l 23 3 là bao_nhiêu ? | SELECT AVG ( "Tuần" ) FROM table 7135 WHERE "Kết quả" = 'l 233' | SELECT AVG ( "Tuần" ) FROM table_7135 WHERE "Kết_quả" = "l 23 3" |
scholar | CREATE TABLE cite(citingpaperid int,citedpaperid int) CREATE TABLE keyphrase(keyphraseid int,keyphrasename varchar) CREATE TABLE paperkeyphrase(paperid int,keyphraseid int) CREATE TABLE viết(paperid int#,authorid int) CREATE TABLE tác giả(authorid int,authorname varchar) CREATE TABLE paperfield(fieldid int,paperid int) CREATE TABLE tạp chí(tạp chí int,tên tạp chí varchar) CREATE TABLE trường(fieldid int) CREATE TABLE địa điểm(địa điểm int,tên địa điểm varchar) CREATE TABLE paperdataset(paperid int,datasetid int) CREATE TABLE paper(paperid int,title varchar,địa điểm int,năm int,numciting int,numcitedby int,journalid int) CREATE TABLE tập dữ liệu(datasetid int,datasetname varchar) | CREATE TABLE cite(citingpaperid int,citedpaperid int) CREATE TABLE keyphrase(keyphraseid int,keyphrasename varchar) CREATE TABLE paperkeyphrase(paperid int,keyphraseid int) CREATE TABLE viết(paperid int #,authorid int) CREATE TABLE tác_giả(authorid int,authorname varchar) CREATE TABLE paperfield(fieldid int,paperid int) CREATE TABLE tạp_chí(tạp_chí int,tên tạp_chí varchar) CREATE TABLE trường(fieldid int) CREATE TABLE địa_điểm(địa_điểm int,tên địa_điểm varchar) CREATE TABLE paperdataset(paperid int,datasetid int) CREATE TABLE paper(paperid int,title varchar,địa_điểm int,năm int,numciting int,numcitedby int,journalid int) CREATE TABLE tập dữ_liệu(datasetid int,datasetname varchar) | bài viết của oren etzioni | bài viết của oren etzioni | SELECT DISTINCT viết.paperid FROM tác giả,viết WHERE tác giả.authorname = 'oren etzioni' AND viết.authorid = tác giả.authorid | SELECT DISTINCT viết.paperid FROM tác_giả,viết WHERE tác_giả.authorname = "oren etzioni" AND viết.authorid = tác_giả.authorid |
spider | CREATE TABLE sinh viên(stu num number,stu lname text,stu fname text,stu init text,stu dob time,stu hrs number,stu class text,stu gpa number,stu transfer number,dept code text,stu phone text,prof num number) CREATE TABLE giáo sư(emp num number,dept code text,prof office text,prof extension text,prof high degree text) CREATE TABLE bộ phận(dept code text,dept name text,school code text,emp num number,dept address text,dept extension text) CREATE TABLE Course(crs code text,dept code text,crs description text,crs credit number) CREATE TABLE class(class code text,crs code text,class section text,class time text,class room text,prof num number) CREATE TABLE ghi danh(class code text,stu num number,enroll grade text) CREATE TABLE nhân viên(emp num number,emp lname text,emp fname text,emp initial text,emp jobcode text,emp hiredate time,emp dob time) | CREATE TABLE sinh_viên(stu_num number,stu_lname text,stu_fname text,stu_init text,stu_dob time,stu_hrs number,stu_class text,stu_gpa number,stu_transfer number,dept_code text,stu_phone text,prof_num number) CREATE TABLE giáo_sư(emp_num number,dept_code text,prof_office text,prof_extension text,prof_high_degree text) CREATE TABLE bộ_phận(dept_code text,dept_name text,school_code text,emp_num number,dept_address text,dept_extension text) CREATE TABLE Course(crs_code text,dept_code text,crs_description text,crs_credit number) CREATE TABLE class(class_code text,crs_code text,class_section text,class_time text,class_room text,prof_num number) CREATE TABLE ghi_danh(class_code text,stu_num number,enroll_grade text) CREATE TABLE nhân_viên(emp_num number,emp_lname text,emp_fname text,emp_initial text,emp_jobcode text,emp_hiredate time,emp_dob time) | Sinh viên dành bao nhiêu giờ để học ở mỗi khoa? | Sinh_viên dành bao_nhiêu giờ để học ở mỗi khoa ? | SELECT SUM ( stu hrs ) ,dept code FROM sinh viên GROUP BY dept code | SELECT SUM ( stu_hrs ) ,dept_code FROM sinh_viên GROUP BY dept_code |
nvbench | CREATE TABLE NgườiBạn(tên varchar(20),bạn varchar(20),năm INTEGER) CREATE TABLE Người(tên varchar(20),tuổi INTEGER,thành phố TEXT,giới tính TEXT,công việc TEXT) | CREATE TABLE NgườiBạn(tên varchar(20),bạn varchar(20),năm INTEGER) CREATE TABLE Người(tên varchar(20),tuổi INTEGER,thành_phố TEXT,giới_tính TEXT,công_việc TEXT) | Trả về biểu đồ về độ tuổi trung bình của mỗi giới tính?, Và bạn có thể hiển thị các thanh theo thứ tự tăng dần không? | Trả về biểu_đồ về độ tuổi trung_bình của mỗi giới_tính ? , Và bạn có_thể hiển_thị các thanh theo thứ_tự tăng dần không ? | SELECT giới tính, AVG ( tuổi ) FROM Người GROUP BY giới tính ORDER BY giới tính | SELECT giới_tính, AVG ( tuổi ) FROM Người GROUP BY giới_tính ORDER BY giới_tính |
sql_create_context | CREATE TABLE table name 29(tổng thể VARCHAR,chọn VARCHAR,vị trí VARCHAR,tên VARCHAR) | CREATE TABLE table_name_29(tổng_thể VARCHAR,chọn VARCHAR,vị_trí VARCHAR,tên VARCHAR) | Có bao nhiêu bộ quần áo có vị trí là E, tên là Buddy Payne và số điểm chọn nhỏ hơn 5? | Có bao_nhiêu bộ quần_áo có vị_trí là E , tên là Buddy_Payne và số điểm chọn nhỏ hơn 5 ? | SELECT COUNT ( tổng thể ) FROM table name 29 WHERE location = "e" AND name = "buddy payne" AND pick < 5 | SELECT COUNT ( tổng_thể ) FROM table_name_29 WHERE location = "e" AND name = "buddy payne" AND pick < 5 |
sql_create_context | CREATE TABLE tên bảng 88(date VARCHAR,định dạng VARCHAR,danh mục VARCHAR) | CREATE TABLE tên_bảng_88(date VARCHAR,định_dạng VARCHAR,danh_mục VARCHAR) | Ed Remaster CD và TOCT-24365 Catalog được phát hành vào ngày nào? | Ed Remaster_CD và TOCT-24365_Catalog được phát_hành vào ngày nào ? | SELECT date FROM table name 88 WHERE format = "ed remaster cd" AND catalog = "toct24365" | SELECT date FROM table_name_88 WHERE format = "ed remaster cd" AND catalog = "toct24365" |
wikisql | CREATE TABLE table 1077("Thành phần" text,"s Hindu" text,"s Muslim" text,"Kitô hữu" text,"s Sikh" text,"Phật giáo" text,"s Jain" text,"Người khác" text) | CREATE TABLE table_1077("Thành_phần" text,"s Hindu" text,"s Muslim" text,"Kitô_hữu" text,"s Sikh" text,"Phật_giáo" text,"s Jain" text,"Người khác" text) | Số lượng Cơ đốc giáo trong đó tỷ lệ tham gia công việc là bao nhiêu? | Số_lượng Cơ_đốc_giáo trong đó tỷ_lệ tham_gia công_việc là bao_nhiêu ? | SELECT "Cơ đốc nhân" FROM table 1077 WHERE "Thành phần" = 'Tỷ lệ tham gia công việc' | SELECT "Cơ_đốc nhân" FROM table_1077 WHERE "Thành_phần" = "Tỷ_lệ tham_gia công_việc" |
sql_create_context | CREATE TABLE table name 64(regular season VARCHAR,year VARCHAR) | CREATE TABLE table_name_64(regular_season VARCHAR,year VARCHAR) | Nashville Metros đã đứng ở vị trí nào trong Mùa giải 1994/95? | Nashville Metros đã đứng ở vị_trí nào trong Mùa giải 1994 / 95 ? | SELECT Regular season FROM table name 64 WHERE năm = "199495" | SELECT Regular_season FROM table_name_64 WHERE năm = "199495" |
sede | CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Mô tả text) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostHistoryTypes(Id number,Tên text) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewTaskTypes(Id number,Name text,Mô tả text) CREATE TABLE Nhận xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển thị người dùng text,UserId number,Giấy phép nội dung text) CREATE TABLE Đề xuấtChỉnh sửaVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,Ngày phê duyệt time,Ngày từ chối time,OwnerUserId number,Nhận xét text,Text text,Tiêu đề text,Thẻ text,RevisionGUID other) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate 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 FlagTypes(Id number,Name text,Description text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE CloseReasonTypes(Id number,Tên text,Mô tả 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,Name text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatedPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung 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 Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) | CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Mô_tả text) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostHistoryTypes(Id number,Tên text) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewTaskTypes(Id number,Name text,Mô_tả text) CREATE TABLE Nhận_xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển_thị người dùng text,UserId number,Giấy_phép nội_dung text) CREATE TABLE Đề_xuấtChỉnh sửaVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE SuggestedEdits(Id number,PostId number,CreationDate time,Ngày phê_duyệt time,Ngày từ_chối time,OwnerUserId number,Nhận_xét text,Text text,Tiêu_đề text,Thẻ text,RevisionGUID_other) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate 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 FlagTypes(Id number,Name text,Description text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE CloseReasonTypes(Id number,Tên text,Mô_tả 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,Name text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatedPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung 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 Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) | Viết SQL với ví dụ SQL INPUT.. | Viết_SQL với ví_dụ SQL_INPUT. . | SELECT 'CHỌN CAST ( ''' Badges.Name '''AS VARCHAR ( 50 ) ) , COUNT ( 1 ) FROM BADGES WHERE BADGES.NAME = ''' Badges.Name ''' UNION ALL ' FROM Huy hiệu GROUP BY Huy hiệu.Tên | SELECT "CHỌN_CAST ( " "" Badges.Name "" "AS VARCHAR ( 50 ) ) , COUNT ( 1 ) FROM BADGES WHERE BADGES.NAME =" "" Badges.Name "" " UNION ALL " FROM Huy_hiệu GROUP BY Huy_hiệu.Tên |
sql_create_context | CREATE TABLE table name 89(bản ghi VARCHAR,date VARCHAR) | CREATE TABLE table_name_89(bản ghi VARCHAR,date VARCHAR) | Đặt tên kỷ lục ngày 22/6 | Đặt tên kỷ_lục ngày 22/6 | SELECT bản ghi FROM tên bảng 89 WHERE date = "22 tháng 6" | SELECT bản ghi FROM tên_bảng_89 WHERE date = "22 tháng 6" |
sql_create_context | CREATE TABLE Câu lệnh(Id VARCHAR) | CREATE TABLE Câu_lệnh(Id VARCHAR) | Chúng ta có bao nhiêu tuyên bố? | Chúng_ta có bao_nhiêu tuyên_bố ? | SELECT COUNT ( * ) FROM Các câu lệnh | SELECT COUNT ( * ) FROM Các câu lệnh |
sql_create_context | CREATE TABLE table name 97(quantity made VARCHAR,class VARCHAR) | CREATE TABLE table_name_97(quantity_made VARCHAR,class VARCHAR) | Có bao nhiêu người có lớp 330? | Có bao_nhiêu người có lớp 330 ? | SELECT số lượng làm FROMtên bảng 97 WHERE class = "330" | SELECT số lượng_làm FROM tên_bảng_97 WHERE class = "330" |
sql_create_context | CREATE TABLE table name 23(đồng INTEGER,total VARCHAR,bạc VARCHAR) | CREATE TABLE table_name_23(đồng INTEGER,total VARCHAR,bạc VARCHAR) | Đồng trung bình là bao nhiêu khi Tổng là 7 và khi Bạc lớn hơn 1? | Đồng trung_bình là bao_nhiêu khi Tổng là 7 và khi Bạc lớn hơn 1 ? | SELECT AVG ( đồng ) FROM tên bảng 23 WHERE total = 7 AND bạc > 1 | SELECT AVG ( đồng ) FROM tên_bảng_23 WHERE total = 7 AND bạc > 1 |
sql_create_context | CREATE TABLE table name 23(quốc gia VARCHAR,hãng xây dựng VARCHAR,tàu VARCHAR) | CREATE TABLE table_name_23(quốc_gia VARCHAR,hãng xây_dựng VARCHAR,tàu VARCHAR) | Brage, được xây dựng bởi karljohansverns verft, đến từ đất nước nào? | Brage , được xây_dựng bởi karljohansverns_verft , đến từ đất_nước nào ? | SELECT quốc gia FROM tên bảng 23 WHERE builder = "karljohansverns verft" AND ship = "brage" | SELECT quốc_gia FROM tên_bảng_23 WHERE builder = "karljohansverns verft" AND ship = "brage" |
mimic_iii | 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 chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,Charttime time,valuenum number,valueuom text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,startdate time,enddate time,drug text,dose val rx text,dose unit rx text,route text) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE chuyển(row id number,subject id number,hadm id number,icustay id number,loại sự kiện text,careunit text,wardid number,intime time,outtime time) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,giá trị number) | CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,admission_location text,discharge_location text,bảo_hiểm text,ngôn_ngữ text,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 chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,Charttime time,valuenum number,valueuom text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,loại sự_kiện text,careunit text,wardid number,intime time,outtime time) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,giá_trị number) | Tổng chi phí nằm viện của bệnh nhân 8245 trong năm vừa qua là bao nhiêu? | Tổng chi_phí nằm viện của bệnh_nhân 8245 trong năm vừa_qua là bao_nhiêu ? | SELECT SUM ( chi phí.chi phí ) FROM chi phí WHERE cost.hadm id IN ( SELECT tuyển sinh.hadm id FROM tuyển sinh WHERE tuyển sinh.subject id = 8245 ) AND DATETIME ( cost.chargetime,'bắt đầu năm' ) = DATETIME ( CURRENT TIME ( ) ,'đầu năm','1 năm' ) | SELECT SUM ( chi_phí.chi_phí ) FROM chi_phí WHERE cost.hadm_id IN ( SELECT tuyển_sinh.hadm_id FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 8245 ) AND DATETIME ( cost.chargetime,"bắt_đầu năm" ) = DATETIME ( CURRENT_TIME ( ) ,"đầu năm"," 1 năm" ) |
sql_create_context | CREATE TABLE table name 31(sự kiện VARCHAR,đối thủ VARCHAR) | CREATE TABLE table_name_31(sự_kiện VARCHAR,đối_thủ VARCHAR) | Soa Palelei đấu với son hai suk trong sự kiện gì? | Soa Palelei_đấu với son hai suk trong sự_kiện gì ? | SELECT sự kiện FROM table name 31 WHERE đối thủ = "son hai suk" | SELECT sự_kiện FROM table_name_31 WHERE đối_thủ= "son hai suk" |
sql_create_context | CREATE TABLE tên bảng 66(mất VARCHAR,điểm cho VARCHAR) | CREATE TABLE tên_bảng_66(mất VARCHAR,điểm_cho VARCHAR) | Mất mát với 319 điểm là gì? | Mất_mát với 319 điểm là gì ? | SELECT thua FROM tên bảng 66 WHERE điểm for = "319" | SELECT thua FROM tên_bảng_66 WHERE điểm_for = "319" |
nvbench | CREATE TABLE khu vực(REGION ID decimal(5,0),REGION NAME varchar(25)) CREATE TABLE quốc gia(COUNTRY ID varchar(2),COUNTRY NAME varchar(40),REGION ID decimal(10,0)) CREATE TABLE job history(EMPLOYEE ID decimal(6,0),START DATE date,END DATE date,JOB ID varchar(10),DEPARTMENT ID decimal(4,0)) CREATE TABLE jobs(JOB ID varchar(10),JOB TITLE varchar(35),MIN SALARY decimal(6,0),MAX SALARY decimal(6,0)) CREATE TABLE vị trí(LOCATION ID decimal(4,0),STREET ADDRESS varchar(40),POSTAL CODE varchar(12),THÀNH PHỐ varchar(30),STATE PROVINCE varchar(25),COUNTRY ID varchar(2)) CREATE TABLE phòng ban(DEPARTMENT ID decimal(4.0),DEPARTMENT NAME varchar(30),MANAGER ID decimal(6,0),LOCATION ID decimal(4,0)) CREATE TABLE nhân viên(EMPLOYEE ID decimal(6,0),FIRST NAME varchar(20),LAST NAME varchar(25),EMAIL varchar(25),PHONE NUMBER varchar(20),HIRE DATE date,JOB ID varchar(10),LƯƠNG decimal(8,2),COMMISSION PCT decimal(2,2),MANAGER ID decimal(6,0),DEPARTMENT ID decimal(4,0)) | CREATE TABLE khu_vực(REGION_ID_decimal(5,0),REGION_NAME varchar(25)) CREATE TABLE quốc_gia(COUNTRY_ID varchar(2),COUNTRY_NAME varchar(40),REGION_ID_decimal(10,0)) CREATE TABLE job_history(EMPLOYEE_ID_decimal(6,0),START_DATE_date,END_DATE_date,JOB_ID varchar(10),DEPARTMENT_ID_decimal(4,0)) CREATE TABLE jobs(JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY_decimal(6,0),MAX_SALARY_decimal(6,0)) CREATE TABLE vị_trí(LOCATION_ID_decimal(4,0),STREET_ADDRESS varchar(40),POSTAL_CODE varchar(12),THÀNH_PHỐ varchar(30),STATE_PROVINCE varchar(25),COUNTRY_ID varchar(2)) CREATE TABLE phòng_ban(DEPARTMENT_ID_decimal(4.0),DEPARTMENT_NAME varchar(30),MANAGER_ID_decimal(6,0),LOCATION_ID_decimal(4,0)) CREATE TABLE nhân_viên(EMPLOYEE_ID_decimal(6,0),FIRST_NAME varchar(20),LAST_NAME varchar(25),EMAIL varchar(25),PHONE_NUMBER varchar(20),HIRE_DATE_date,JOB_ID varchar(10),LƯƠNG_decimal(8,2),COMMISSION_PCT_decimal(2,2),MANAGER_ID_decimal(6,0),DEPARTMENT_ID_decimal(4,0)) | Đối với những nhân viên được thuê trước ngày 21 tháng 6 năm 2002, hãy cho tôi so sánh về tổng của Department id trên job id và nhóm theo thuộc tính job id. | Đối_với những nhân_viên được thuê trước ngày 21 tháng 6 năm 2002 , hãy cho tôi so_sánh về tổng của Department_id trên job_id và nhóm theo thuộc_tính job_id . | SELECT JOB ID, SUM ( DEPARTMENT ID ) FROM nhân viên WHERE HIRE DATE < '20020621' GROUP BY JOB ID | SELECT JOB_ID, SUM ( DEPARTMENT_ID ) FROM nhân_viên WHERE HIRE_DATE < "2002 0621" GROUP BY JOB_ID |
spider | CREATE TABLE customer orders(order id number,customer id number,order status text,order date time,order details text) CREATE TABLE customer contact channels(customer id number,channel code text,active from date time,active to date time,contact number text) CREATE TABLE sản phẩm(product id number,product details text) CREATE TABLE địa chỉ(address id number,address content text,city text,zip postcode text,state province county text,country text,other address details text) CREATE TABLE order items(order id number,product id number,order quantity text) CREATE TABLE customer(customer id number,Payment method text,customer name text,date became customer time,other customer details text) CREATE TABLE customer addresses(customer id number,address id number,date address from time,address type text,date address to time) | CREATE TABLE customer_orders(order_id number,customer_id number,order_status text,order_date time,order_details text) CREATE TABLE customer_contact_channels(customer_id number,channel_code text,active_from_date time,active_to_date time,contact_number text) CREATE TABLE sản_phẩm(product_id number,product_details text) CREATE TABLE địa_chỉ(address_id number,address_content text,city text,zip_postcode text,state_province_county text,country text,other_address_details text) CREATE TABLE order_items(order_id number,product_id number,order_quantity text) CREATE TABLE customer(customer_id number,Payment_method text,customer_name text,date_became_customer time,other_customer_details text) CREATE TABLE customer_addresses(customer_id number,address_id number,date_address_from time,address_type text,date_address_to time) | Tên khách hàng và ngày của đơn hàng có trạng thái là 'Đã giao' là gì? | Tên khách_hàng và ngày của đơn hàng có trạng_thái là ' Đã giao ' là gì ? | SELECT t1.customer name,t2.order date FROM khách hàng AS t1 JOIN customer orders AS t2 ON t1.customer id = t2.customer id WHERE order status = "Đã giao" | SELECT t1.customer_name,t2.order_date FROM khách_hàng AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Đã giao" |
wikisql | CREATE TABLE table 67500("Số 1" text,"Số 2" text,"Số 3" text,"Số 4" text,"Số 5" text,"Số 6" text,"Số 7" text,"Số 8" text,"CUỐI CÙNG" text) | CREATE TABLE table_67500("Số 1" text,"Số 2" text,"Số 3" text,"Số 4" text,"Số 5" text,"Số 6" text,"Số 7" text,"Số 8" text,"CUỐI_CÙNG" text) | Kết quả cuối cùng của đội có Simara đứng thứ 5 là bao nhiêu? | Kết_quả cuối_cùng của đội có Simara đứng thứ 5 là bao_nhiêu ? | SELECT "cuối cùng" FROM bảng 67500 WHERE "số 5" = 'simra' | SELECT "cuối_cùng" FROM bảng_67500 WHERE "số 5" = "simra" |
wikisql | CREATE TABLE table 20995("Năm" real,"Nam mở rộng" text,"Nữ mở rộng" text,"Hỗn hợp mở rộng" text,"Nam u20" text,"Nữ u20" text,"Giải cao cấp hỗn hợp" text,"Nam 30" text,"Nữ 30" text,"Nam 35" text,"Nữ 35" text,"Nam 40" text,"Nữ 40" text,"Nam 45" text,"Nam 50" text) | CREATE TABLE table_20995("Năm" real,"Nam mở_rộng" text,"Nữ mở_rộng" text,"Hỗn_hợp mở_rộng" text,"Nam_u20" text,"Nữ_u20" text,"Giải cao_cấp hỗn_hợp" text,"Nam 30" text,"Nữ 30" text,"Nam 35" text,"Nữ 35" text,"Nam 40" text,"Nữ 40" text,"Nam 45" text,"Nam 50" text) | Kết quả dành cho nam 40 khi u20 nam đấu với Southern Suns def Gold Coast Sharks là gì? | Kết_quả dành cho nam 40 khi u20 nam_đấu với Southern Suns_def Gold Coast_Sharks là gì ? | SELECT "Nam 40" FROM table 20995 WHERE "Nam u20" = 'Mặt trời phương Nam của cá mập Gold Coast' | SELECT "Nam 40" FROM table_20995 WHERE "Nam_u20" = "Mặt_trời phương_Nam của cá_mập Gold_Coast" |
sql_create_context | CREATE TABLE table name 72(đồng INTEGER,bạc VARCHAR) | CREATE TABLE table_name_72(đồng INTEGER,bạc VARCHAR) | Tổng số huy chương đồng thấp nhất có tổng cộng 13 huy chương bạc là bao nhiêu? | Tổng_số huy_chương đồng thấp nhất có tổng_cộng 13 huy_chương bạc là bao_nhiêu ? | SELECT MIN ( đồng ) FROM tên bảng 72 WHERE bạc = "13" | SELECT MIN ( đồng ) FROM tên_bảng_72 WHERE bạc = "13" |
wikisql | CREATE TABLE table 20158("No.in series" real,"No.in season" real,"Tiêu đề" text,"Đạo diễn" text,"Viết bởi" text,"Ngày phát sóng ban đầu" text,"Người xem ở Hoa Kỳ(triệu)" text) | CREATE TABLE table_20158("No.in series" real,"No.in season" real,"Tiêu_đề" text,"Đạo_diễn" text,"Viết bởi" text,"Ngày phát_sóng ban_đầu" text,"Người xem ở Hoa_Kỳ(triệu)" text) | Tên người viết số 47 | Tên người viết số 47 | SELECT "Viết bởi" FROM table 20158 WHERE "No.in series" = '47' | SELECT "Viết bởi" FROM table_20158 WHERE "No.in series" = "47" |
sql_create_context | CREATE TABLE table name 78(vị trí VARCHAR,cuộc thi VARCHAR,năm VARCHAR) | CREATE TABLE table_name_78(vị_trí VARCHAR,cuộc thi VARCHAR,năm VARCHAR) | Trước năm 1979, Giải vô địch trong nhà châu Âu có vị trí như thế nào? | Trước năm 1979 , Giải vô_địch trong nhà châu_Âu có vị_trí như_thế_nào ? | SELECT vị trí FROM table name 78 WHERE cuộc thi = "giải vô địch trong nhà châu Âu" AND năm < 1979 | SELECT vị_trí FROM table_name_78 WHERE cuộc thi = "giải vô_địch trong nhà châu_Âu" AND năm < 1979 |
mimicsql_data | CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian nhập viện text,năm nhập học text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian nhập_viện text,năm nhập_học text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | cho biết số bệnh nhân được nội soi. | cho biết số bệnh_nhân được nội_soi . | 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 thủ tục.long title = "Nội soi đại tràng" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN thủ_tục ON nhân_khẩu học.hadm_id = thủ_tục.hadm_id WHERE thủ_tục.long_title = "Nội_soi đại_tràng" |
sede | CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Preexpected boolean,PostNoticeDurationId number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Đề xuấtChỉnh sửa(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,Ngày phê duyệt time,ApprovalModeratorId number,Ngày hủy kích hoạt time,DeactivationModeratorId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Mô tả text) CREATE TABLE Nhận xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển thị người dùng text,UserId number,Giấy phép nội dung text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE ReviewRejectionLý do(Id number,Tên text,Mô tả text,PostTypeId 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 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 ReviewTaskTypes(Id number,Tên text,Mô tả text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Name text,Mô tả text) CREATE TABLE Loại phiếu bầu(Id number,Tên text) | CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Preexpected boolean,PostNoticeDurationId number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Đề_xuấtChỉnh sửa(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,Ngày phê_duyệt time,ApprovalModeratorId number,Ngày hủy_kích hoạt time,DeactivationModeratorId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,ReatedPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE Users(Id number,Reputation number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE CloseReasonTypes(Id number,Name text,Mô_tả text) CREATE TABLE Nhận_xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển_thị người dùng text,UserId number,Giấy_phép nội_dung text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE ReviewRejectionLý do(Id number,Tên text,Mô_tả text,PostTypeId 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 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 ReviewTaskTypes(Id number,Tên text,Mô_tả text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Name text,Mô_tả text) CREATE TABLE Loại phiếu bầu(Id number,Tên text) | Số lượng người dùng cá nhân đã đặt câu hỏi. | Số_lượng người dùng cá_nhân đã đặt câu hỏi . | SELECT COUNT ( DISTINCT Id ) FROM Người dùng | SELECT COUNT ( DISTINCT Id ) FROM Người dùng |
wikisql | CREATE TABLE table 42519("Năm" text,"Tiêu đề" text,"Thể loại" text,"Nhãn" text,"Kết quả" text) | CREATE TABLE table_42519("Năm" text,"Tiêu_đề" text,"Thể_loại" text,"Nhãn" text,"Kết_quả" text) | Năm 1993 của hãng nào? | Năm 1993 của hãng nào ? | SELECT "Nhãn" FROM table 42519 WHERE "Năm" = '1993' | SELECT "Nhãn" FROM table_42519 WHERE "Năm" = "1993" |
wikisql | CREATE TABLE table 61714("Ngày" text,"Đối thủ#" text,"Xếp hạng #" text,"Trang web" text,"Kết quả" text,"Tham dự" text) | CREATE TABLE table_61714("Ngày" text,"Đối_thủ_#" text,"Xếp_hạng #" text,"Trang_web" text,"Kết_quả" text,"Tham_dự" text) | Tỷ lệ tham dự khi họ xếp thứ 4 là bao nhiêu? | Tỷ_lệ tham_dự khi họ xếp thứ 4 là bao_nhiêu ? | SELECT "Điểm danh" FROM table 61714 WHERE "Xếp hạng " = '4' | SELECT "Điểm_danh" FROM table_61714 WHERE "Xếp_hạng " = "4" |
mimicsql_data | CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,age text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) | CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,age text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_cờ text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) | hình thức nhập học và địa điểm xuất viện của đối tượng id 990 là gì? | hình_thức nhập_học và địa_điểm xuất_viện của đối_tượng id 990 là gì ? | SELECT nhân khẩu học.admission type,demographic.discharge location FROM nhân khẩu học WHERE nhân khẩu học.subject id = "990" | SELECT nhân_khẩu học.admission_type,demographic.discharge_location FROM nhân_khẩu học WHERE nhân_khẩu học.subject_id = "990" |
sql_create_context | CREATE TABLE table name 66(điểm INTEGER,trận VARCHAR,thua VARCHAR,tên đội VARCHAR) | CREATE TABLE table_name_66(điểm INTEGER,trận VARCHAR,thua VARCHAR,tên_đội VARCHAR) | Số điểm thấp nhất với ít hơn 8 trận thua và ít hơn 24 trận đối với đội bóng Vancouver là bao nhiêu? | Số điểm thấp nhất với ít hơn 8 trận thua và ít hơn 24 trận đối_với đội bóng Vancouver là bao_nhiêu ? | SELECT MIN ( điểm ) FROM table name 66 WHERE thua < 8 AND team name = "vancouver burrards" AND trận < 24 | SELECT MIN ( điểm ) FROM table_name_66 WHERE thua < 8 AND team_name = "vancouver burrards" AND trận < 24 |
wikisql | CREATE TABLE table 71181("Tên" text,"Năm" text,"Giới tính" text,"Khu vực" text,"Thẩm quyền" text,"Thập phân khúc" text,"Cuộn" real) | CREATE TABLE table_71181("Tên" text,"Năm" text,"Giới_tính" text,"Khu_vực" text,"Thẩm_quyền" text,"Thập phân_khúc" text,"Cuộn" real) | Đặt tên cho cơ quan có thẩm quyền cho te akau với số điểm nhỏ hơn 254 và số thập phân là 8 | Đặt tên cho cơ_quan có thẩm_quyền cho te akau với số điểm nhỏ hơn 254 và số thập_phân là 8 | SELECT "Chính quyền" FROM table 71181 WHERE "Cuộn" < '254' AND "Decile" = '8' AND "Diện tích" = 'te akau' | SELECT "Chính_quyền" FROM table_71181 WHERE "Cuộn" < "254" AND "Decile" = "8" AND "Diện_tích" = "te akau" |
sql_create_context | CREATE TABLE table name 47(kết quả VARCHAR,origin title VARCHAR) | CREATE TABLE table_name_47(kết_quả VARCHAR,origin_title VARCHAR) | Kết quả là gì khi Tiêu đề gốc là 'Tin tức Chọn ngày ( )'? | Kết_quả là gì khi Tiêu_đề gốc là ' Tin_tức Chọn ngày ( ) ' ? | SELECT kết quả FROM table name 47 WHERE original title = "tiānmǎ cháfáng" | SELECT kết_quả FROM table_name_47 WHERE original_title = "tiānmǎ cháfáng" |
sql_create_context | CREATE TABLE table name 54(đối thủ VARCHAR,giải đấu VARCHAR) | CREATE TABLE table_name_54(đối_thủ VARCHAR,giải đấu VARCHAR) | Đối thủ ở giải Mallorca 2, Tây Ban Nha là ai? | Đối_thủ ở giải_Mallorca 2 , Tây_Ban_Nha là ai ? | SELECT đối thủ FROM table name 54 WHERE giải đấu = "mallorca 2,Tây Ban Nha" | SELECT đối_thủ FROM table_name_54 WHERE giải đấu = "mallorca 2,Tây_Ban_Nha" |
wikisql | CREATE TABLE table 53647("Độ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_53647("Độ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 thủ ghi bao nhiêu điểm khi Geelong thi đấu trên sân nhà? | Đối_thủ ghi bao_nhiêu điểm khi Geelong thi_đấu trên sân_nhà ? | SELECT "Tỉ số đội khách" FROM table 53647 WHERE "Đội chủ nhà" = 'geelong' | SELECT "Tỉ_số đội khách" FROM table_53647 WHERE "Đội chủ nhà" = "geelong" |
atis | CREATE TABLE chuyến bay fare(flight id int,fare id int) CREATE TABLE chuyến bay leg(flight id int,leg number int,leg flight int) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE code description(code varchar,description text) CREATE TABLE limit(restriction code text,advance purchase int,stopovers text,saturday stay required text,minimum stay int,maximum stay int,application text,no discounts text) CREATE TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE Dual carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,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,stop int,time elapsed int,to airport varchar) CREATE TABLE time interval(Period text,begin time int,end time int) CREATE TABLE ngày(days code varchar,day name varchar) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE sân bay(airport code varchar,airport name text,airport location text,state code varchar,country name varchar,time zone code varchar,tối thiểu connect time int) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE thành phố(city code varchar,city name varchar,state code varchar,country name varchar,time zone code 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 Equipment sequence(aircraft code sequence varchar,mã máy bay varchar) CREATE TABLE food service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLEfare basis(fare basis code text,booking class text,class type text,premium text,economy text,giảm giá text,đêm text,mùa text,ngày cơ bản text) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE ngày ngày(số tháng int,số ngày int,năm int,day name varchar) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLE chuyến bay stop(flight id int,stop number int,stop days text,stop airport text,arrival time int,arrival airline text,arrival flight number int,departure time int,departure airline text,departure flight number int,stop time int) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE khoang class(khoang varchar,loại loại varchar) CREATE TABLE máy bay(mã máy bay varchar,mô tả máy bay varchar,nhà sản xuất varchar,loại cơ bản varchar,động cơ int,động cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,tải trả int,tốc độ di chuyển int,phạm vi dặm int,điều áp varchar) | CREATE TABLE chuyến bay_fare(flight_id int,fare_id int) CREATE TABLE chuyến bay_leg(flight_id int,leg_number int,leg_flight int) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE code_description(code varchar,description text) CREATE TABLE limit(restriction_code text,advance_purchase int,stopovers text,saturday_stay_required text,minimum_stay int,maximum_stay int,application text,no_discounts text) CREATE TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE Dual_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,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,stop int,time_elapsed int,to_airport varchar) CREATE TABLE time_interval(Period text,begin_time int,end_time int) CREATE TABLE ngày(days_code varchar,day_name varchar) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE sân_bay(airport_code varchar,airport_name text,airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,tối thiểu_connect_time int) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE thành_phố(city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code 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 Equipment_sequence(aircraft_code_sequence varchar,mã_máy bay varchar) CREATE TABLE food_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLEfare_basis(fare_basis_code text,booking_class text,class_type text,premium text,economy text,giảm_giá text,đêm text,mùa text,ngày_cơ bản text) CREATE TABLE tháng(số tháng int,tên_tháng text) CREATE TABLE ngày_ngày(số tháng int,số ngày int,năm int,day_name varchar) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,stop_days text,stop_airport text,arrival_time int,arrival_airline text,arrival_flight_number int,departure_time int,departure_airline text,departure_flight_number int,stop_time int) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE khoang_class(khoang varchar,loại_loại varchar) CREATE TABLE máy_bay(mã_máy bay varchar,mô_tả máy_bay varchar,nhà_sản_xuất varchar,loại_cơ bản varchar,động_cơ int,động_cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,tải_trả int,tốc_độ di_chuyển int,phạm vi_dặm int,điều áp varchar) | tôi cần một chuyến bay từ SAN DIEGO đến INDIANAPOLIS khởi hành vào chiều thứ ba | tôi cần một chuyến bay từ SAN_DIEGO đến INDIANAPOLIS khởi_hành vào chiều thứ ba | SELECT DISTINCT chuyến bay.flight id FROM Airport 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 = 'INDIANAPOLIS' AND date day.day number = 22 AND date day.month number = 3 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 = 'SAN DIEGO' AND chuyến bay.from airport = AIRPORT SERVICE 0.airport code ) AND chuyến bay.departure time BETWEEN 1200 AND 1800 | SELECT DISTINCT chuyến bay.flight_id FROM Airport_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 = "INDIANAPOLIS" AND date_day.day_number = 22 AND date_day.month_number = 3 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 = "SAN_DIEGO" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code ) AND chuyến bay.departure_time BETWEEN 1200 AND 1800 |
wikisql | CREATE TABLE table 78866("Hòa không" text,"Đội chủ nhà" text,"Tỷ số" text,"Đội khách" text,"Ngày" text) | CREATE TABLE table_78866("Hòa không" text,"Đội chủ nhà" text,"Tỷ_số" text,"Đội khách" text,"Ngày" text) | số hòa của enfield là gì? | số hòa của enfield là gì ? | SELECT "Hòa không" FROM table 78866 WHERE "Đội chủ nhà" = 'enfield' | SELECT "Hòa không" FROM table_78866 WHERE "Đội chủ nhà" = "enfield" |
sede | CREATE TABLE Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId 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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,Ngày phê duyệt time) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,Ngày xóa time,Điểm number,Số lượt xem number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Chỉnh sửa được đề xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE FlagTypes(Id number,Tên text,Mô tả text) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE Users(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 ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) 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 PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Comments(Id number,PostId number,Điểm number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Prefine boolean,PostNoticeDurationId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatPostId number,LinkTypeId number) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Loại phiếu bầu(Id number,Tên text) | CREATE TABLE Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId 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 TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,Ngày phê_duyệt time) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,Ngày xóa time,Điểm number,Số lượt xem number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Chỉnh_sửa được đề_xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE FlagTypes(Id number,Tên text,Mô_tả text) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE Users(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 ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) 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 PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Comments(Id number,PostId number,Điểm number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Prefine boolean,PostNoticeDurationId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatPostId number,LinkTypeId number) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE Loại phiếu bầu(Id number,Tên text) | Số phiếu bầu cho câu trả lời trong 30 ngày qua. | Số phiếu bầu cho câu trả_lời trong 30 ngày qua . | SELECT COUNT ( * ) FROM Phiếu bầu JOIN Bài viết ON Phiếu bầu.PostId = Bài viết.Id WHERE Phiếu bầu.VoteTypeId IN ( 2,3 ) AND Phiếu bầu.CreationDate >= DATEADD ( DAY,30,GETDATE ( ) ) AND Bài viết.PostTypeId IN ( 2 ) | SELECT COUNT ( * ) FROM Phiếu bầu JOIN Bài viết ON Phiếu bầu.PostId = Bài viết.Id WHERE Phiếu bầu.VoteTypeId IN ( 2,3 ) AND Phiếu bầu.CreationDate > = DATE ADD ( DAY, 30,GETDATE ( ) ) AND Bài viết.PostTypeId IN ( 2 ) |
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 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 lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,tên text,tình_trạng hôn_nhân text,tuổi text,nghề_nghiệp text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) | cho tôi biết số lượng bệnh nhân được chẩn đoán tiêu đề ngắn là sỏi ống mật chủ nos và xét nghiệm trong phòng thí nghiệm có tình trạng bất thường là delta? | cho tôi biết số_lượng bệnh_nhân được chẩn_đoán tiêu_đề ngắn là sỏi ống mật chủ nos và xét_nghiệm trong phòng_thí_nghiệm có tình_trạng bất_thường là delta ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id INNER JOIN lab ON nhân khẩu học.hadm id = lab.hadm id WHERE chẩn đoán.short title = "Sỏi đường mật NOS" AND lab.flag = "delta" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN chẩn_đoán ON nhân_khẩu học.hadm_id = chẩn_đoán.hadm_id INNER JOIN lab ON nhân_khẩu học.hadm_id = lab.hadm_id WHERE chẩn_đoán.short_title = "Sỏi đường mật_NOS" AND lab.flag = "delta" |
criteria2sql | CREATE TABLE table train 30("id" int,"serum kali" float,"tăng kali máu" bool,"bệnh thận" bool,"hồi sức tim phổi" bool,"nhận thuốc vận mạch" bool,"tuổi" float,"NOUSE" float) | CREATE TABLE table_train_30("id" int,"serum_kali" float,"tăng kali máu" bool,"bệnh thận" bool,"hồi_sức tim phổi" bool,"nhận thuốc vận_mạch" bool,"tuổi" float,"NOUSE" float) | hồi sức tim phổi (ép ngực hoặc khử rung tim) trước khi đăng ký; | hồi_sức tim phổi ( ép ngực hoặc khử rung tim ) trước khi đăng_ký ; | SELECT * FROM bảng train 30 WHERE hồi sức tim phổi = 1 | SELECT * FROM bảng_train_30 WHERE hồi_sức tim phổi = 1 |
wikisql | CREATE TABLE table 52541("Năm" text,"Dân số" text,"Người La Mã" text,"Người Hungary" text,"Người Đức" text) | CREATE TABLE table_52541("Năm" text,"Dân_số" text,"Người La_Mã" text,"Người Hungary" text,"Người_Đức" text) | Dân số trong năm có 87,5% dân số Đức là bao nhiêu? | Dân_số trong năm có 87,5 % dân_số Đức là bao_nhiêu ? | SELECT "Dân số" FROM table 52541 WHERE "Người Đức" = '87,5' | SELECT "Dân_số" FROM table_52541 WHERE "Người_Đức" = "87,5 " |
mimicsql_data | CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE 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 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 thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE 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_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 thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | đếm số bệnh nhân có giới tính f và hình thức nhập viện là tự chọn? | đếm số bệnh_nhân có giới_tính f và hình_thức nhập_viện là tự chọn ? | 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.gender = "F" AND nhân khẩu học.admission type = "TÙY CHỌN" | 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.gender = "F" AND nhân_khẩu học.admission_type = "TÙY_CHỌN" |
spider | CREATE TABLE school bus(school id number,driver id number,year working number,if full time else) CREATE TABLE school(school id number,grade text,school text,location text,type text) CREATE TABLE driver(driver id number,name text,party text,home city text,age number) | CREATE TABLE school_bus(school_id number,driver_id number,year_working number,if_full_time else) CREATE TABLE school(school_id number,grade text,school text,location text,type text) CREATE TABLE driver(driver_id number,name text,party text,home_city text,age number) | Hãy chỉ ra các loại trường có hai trường. | Hãy chỉ ra các loại trường có hai trường . | SELECT loại FROM trường học GROUP BY loại HAVING COUNT ( * ) = 2 | SELECT loại FROM trường_học GROUP BY loại HAVING COUNT ( * ) = 2 |
sql_create_context | CREATE TABLE table name 7(range VARCHAR,tên VARCHAR,thứ hạng VARCHAR) | CREATE TABLE table_name_7(range VARCHAR,tên VARCHAR,thứ_hạng VARCHAR) | Phạm vi nào bao gồm Núi Fukushima và được xếp hạng 38? | Phạm_vi nào bao_gồm Núi_Fukushima và được xếp_hạng 38 ? | SELECT range FROM table name 7 WHERE name = "mount fukushima" AND thứ hạng = 38 | SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND thứ_hạng = 38 |
sql_create_context | CREATE TABLE table 22879323 10(high rebounds VARCHAR,date VARCHAR) | CREATE TABLE table_22879323_10(high_rebounds VARCHAR,date VARCHAR) | Có bao nhiêu mức bật lại cao vào ngày 7 tháng 4? | Có bao_nhiêu mức bật lại cao vào ngày 7 tháng 4 ? | SELECT COUNT ( high rebounds ) FROM table 22879323 10 WHERE date = "Ngày 7 tháng 4" | SELECT COUNT ( high_rebounds ) FROM table_22879323_10 WHERE date = "Ngày 7 tháng 4" |
eicu | CREATE TABLE drug(medicidid number,Patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,mệnh viện number,mã bệnh viện number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện time,giờ xuất viện time,trạng thái xuất viện text) CREATE TABLE lab(labid number,BNunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLEallergy(allergyid number,BNunitstayid number,drugname text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng tiêu thụ đầu ra(lượng đầu ra number,bệnh nhân đơn vị lưu trú number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,tên chẩn đoán text,thời gian chẩn đoán time,icd9code text) CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,tâm thu hệ thống number,tâm trương hệ thống number,systemicmean number,observationtime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) | CREATE TABLE drug(medicidid number,Patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,mệnh_viện number,mã bệnh_viện number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện time,giờ xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE lab(labid number,BNunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLEallergy(allergyid number,BNunitstayid number,drugname text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng tiêu_thụ đầu_ra(lượng đầu_ra number,bệnh_nhân đơn_vị lưu_trú number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Diagnostic(diagnosisid number,Patientunitstayid number,tên chẩn_đoán text,thời_gian chẩn_đoán time,icd9code text) CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,tâm_thu hệ_thống number,tâm_trương hệ_thống number,systemicmean number,observationtime time) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) | đếm số bệnh nhân được chẩn đoán mắc đợt cấp bệnh copd cấp tính trong cùng một bệnh viện gặp phải sau khi họ được chẩn đoán mắc bệnh thiếu máu - thiếu máu của bệnh mãn tính kể từ năm 2105. | đếm số bệnh_nhân được chẩn_đoán mắc đợt cấp bệnh copd cấp_tính trong cùng một bệnh_viện gặp phải sau khi họ được chẩn_đoán mắc bệnh thiếu máu - thiếu máu của bệnh mãn_tính kể từ năm 2105 . | SELECT COUNT ( DISTINCT t1.uniquepid ) FROM ( SELECT disease.uniquepid,diagnosis.diagnosistime,Patient.Patienthealthsystemstayid FROM chẩn đoán JOIN bệnh nhân ON chẩn đoán.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE chẩn đoán.diagnosisname = 'cấp tính đợt trầm trọng của bệnh copd' AND STRFTIME ( 'y',diagnosis.diagnosistime ) >= '2105' ) AS t1 JOIN ( SELECT disease.uniquepid,diagnosis.diagnosistime,Patient.Patienthealthsystemstayid FROM chẩn đoán JOIN bệnh nhân ON chẩn đoán.bệnh nhânunitstayid = bệnh nhân.bệnh nhânunitstayid WHERE chẩn đoán.diagnosisname = 'thiếu máu thiếu máu của bệnh mãn tính' AND STRFTIME ( 'y',diagnosis.diagnosistime ) >= '2105' ) AS t2 WHERE t1.diagnosistime < t2.thời gian chẩn đoán AND t1.Patienthealthsystemstayid = t2.Patienthealthsystemstayid | SELECT COUNT ( DISTINCT t1.uniquepid ) FROM ( SELECT disease.uniquepid,diagnosis.diagnosistime,Patient.Patienthealthsystemstayid FROM chẩn_đoán JOIN bệnh_nhân ON chẩn_đoán.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE chẩn_đoán.diagnosisname = "cấp_tính đợt trầm_trọng của bệnh copd" AND STRFTIME ( " y",diagnosis.diagnosistime ) > = "2105" ) AS t1 JOIN ( SELECT disease.uniquepid,diagnosis.diagnosistime,Patient.Patienthealthsystemstayid FROM chẩn_đoán JOIN bệnh_nhân ON chẩn_đoán.bệnh nhânunitstayid = bệnh_nhân.bệnh nhânunitstayid WHERE chẩn_đoán.diagnosisname = "thiếu máu thiếu máu của bệnh mãn_tính" AND STRFTIME ( " y",diagnosis.diagnosistime ) > = "2105" ) AS t2 WHERE t1.diagnosistime <t2.thời_gian chẩn_đoán AND t1.Patienthealthsystemstayid = t2.Patienthealthsystemstayid |
sql_create_context | CREATE TABLE tên bảng 10(thứ hạng INTEGER,time VARCHAR) | CREATE TABLE tên_bảng_10(thứ_hạng INTEGER,time VARCHAR) | Thứ hạng khi thời điểm đó là 7:52,53 là bao nhiêu? | Thứ_hạng khi thời_điểm đó là 7 : 52,53 là bao_nhiêu ? | SELECT MIN ( thứ hạng ) FROM tên bảng 10 WHERE time = "752,53" | SELECT MIN ( thứ_hạng ) FROM tên_bảng_10 WHERE time = "7 52,53" |
sql_create_context | CREATE TABLE table name 98(trung bình VARCHAR,váy dạ hội VARCHAR,sơ bộ VARCHAR,phỏng vấn VARCHAR) | CREATE TABLE table_name 98(trung_bình VARCHAR,váy_dạ hội VARCHAR,sơ_bộ VARCHAR,phỏng_vấn VARCHAR) | Có bao nhiêu điểm trung bình có điểm sơ bộ trên 9,25, điểm phỏng vấn trên 9,44 và điểm trang phục dạ hội là 9,77? | Có bao_nhiêu điểm trung_bình có điểm sơ_bộ trên 9,25 , điểm phỏng_vấn trên 9,44 và điểm trang_phục dạ_hội là 9,77 ? | SELECT COUNT ( trung bình ) FROM table name 98 WHERE sơ bộ > 9,25 AND phỏng vấn > 9,44 AND áo choàng buổi tối = 9,77 | SELECT COUNT ( trung_bình ) FROM table_name_98 WHERE sơ_bộ > 9,25 AND phỏng_vấn > 9,44 AND áo_choàng buổi tối = 9,77 |
atis | CREATE TABLE chuyến bay fare(flight id int,fare id int) CREATE TABLE chuyến bay leg(flight id int,leg number int,leg flight int) CREATE TABLE state(state code text,state name text,country name text) CREATE TABLE code description(code varchar,description text) CREATE TABLE limit(restriction code text,advance purchase int,stopovers text,saturday stay required text,minimum stay int,maximum stay int,application text,no discounts text) CREATE TABLE time zone(time zone code text,time zone name text,hours from gmt int) CREATE TABLE Dual carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,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,stop int,time elapsed int,to airport varchar) CREATE TABLE time interval(Period text,begin time int,end time int) CREATE TABLE ngày(days code varchar,day name varchar) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,direction varchar,Minutes distant int) CREATE TABLE sân bay(airport code varchar,airport name text,airport location text,state code varchar,country name varchar,time zone code varchar,tối thiểu connect time int) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE thành phố(city code varchar,city name varchar,state code varchar,country name varchar,time zone code 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 Equipment sequence(aircraft code sequence varchar,mã máy bay varchar) CREATE TABLE food service(meal code text,meal number int,compartment text,meal description varchar) CREATE TABLEfare basis(fare basis code text,booking class text,class type text,premium text,economy text,giảm giá text,đêm text,mùa text,ngày cơ bản text) CREATE TABLE tháng(số tháng int,tên tháng text) CREATE TABLE ngày ngày(số tháng int,số ngày int,năm int,day name varchar) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLE chuyến bay stop(flight id int,stop number int,stop days text,stop airport text,arrival time int,arrival airline text,arrival flight number int,departure time int,departure airline text,departure flight number int,stop time int) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE khoang class(khoang varchar,loại loại varchar) CREATE TABLE máy bay(mã máy bay varchar,mô tả máy bay varchar,nhà sản xuất varchar,loại cơ bản varchar,động cơ int,động cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,tải trả int,tốc độ di chuyển int,phạm vi dặm int,điều áp varchar) | CREATE TABLE chuyến bay_fare(flight_id int,fare_id int) CREATE TABLE chuyến bay_leg(flight_id int,leg_number int,leg_flight int) CREATE TABLE state(state_code text,state_name text,country_name text) CREATE TABLE code_description(code varchar,description text) CREATE TABLE limit(restriction_code text,advance_purchase int,stopovers text,saturday_stay_required text,minimum_stay int,maximum_stay int,application text,no_discounts text) CREATE TABLE time_zone(time_zone_code text,time_zone_name text,hours_from_gmt int) CREATE TABLE Dual_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,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,stop int,time_elapsed int,to_airport varchar) CREATE TABLE time_interval(Period text,begin_time int,end_time int) CREATE TABLE ngày(days_code varchar,day_name varchar) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,direction varchar,Minutes_distant int) CREATE TABLE sân_bay(airport_code varchar,airport_name text,airport_location text,state_code varchar,country_name varchar,time_zone_code varchar,tối thiểu_connect_time int) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE thành_phố(city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code 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 Equipment_sequence(aircraft_code_sequence varchar,mã_máy bay varchar) CREATE TABLE food_service(meal_code text,meal_number int,compartment text,meal_description varchar) CREATE TABLEfare_basis(fare_basis_code text,booking_class text,class_type text,premium text,economy text,giảm_giá text,đêm text,mùa text,ngày_cơ bản text) CREATE TABLE tháng(số tháng int,tên_tháng text) CREATE TABLE ngày_ngày(số tháng int,số ngày int,năm int,day_name varchar) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,stop_days text,stop_airport text,arrival_time int,arrival_airline text,arrival_flight_number int,departure_time int,departure_airline text,departure_flight_number int,stop_time int) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE khoang_class(khoang varchar,loại_loại varchar) CREATE TABLE máy_bay(mã_máy bay varchar,mô_tả máy_bay varchar,nhà_sản_xuất varchar,loại_cơ bản varchar,động_cơ int,động_cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,tải_trả int,tốc_độ di_chuyển int,phạm vi_dặm int,điều áp varchar) | chuyến bay từ DENVER đến PHILADELPHIA chiều thứ bảy | chuyến bay từ DENVER đến PHILADELPHIA_chiều thứ_bảy | 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 ( ( ( flight.departure time BETWEEN 1200 AND 1800 ) AND date day.day number = 26 AND date day.month number = 7 AND date day.year = 1991 AND ngày.day name = date day.day name AND chuyến bay.flight days = ngày.days code ) AND CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'PHILADELPHIA' 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 = 'DENVER' 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 ( ( ( flight.departure_time BETWEEN 1200 AND 1800 ) AND date_day.day_number = 26 AND date_day.month_number = 7 AND date_day.year = 1991 AND ngày.day_name = date_day.day_name AND chuyến bay.flight_days = ngày.days_code ) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "PHILADELPHIA" 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 = "DENVER" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code |
nvbench | CREATE TABLE đại học(School ID int,Trường text,Địa điểm text,Thành lập real,Liên kết text,Đăng ký real,Biệt danh text,Primary conference text) CREATE TABLE Basketball match(Team ID int,School ID int,Tên đội text,ACC Regular Season text,ACC Percent text,ACC Home text,ACC Road text,All Games text,All Games Percent int,All Home text,All Road text,All Neutral text) | CREATE TABLE đại_học(School_ID int,Trường text,Địa_điểm text,Thành_lập real,Liên_kết text,Đăng_ký real,Biệt_danh text,Primary_conference text) CREATE TABLE Basketball_match(Team_ID int,School_ID int,Tên_đội text,ACC_Regular_Season text,ACC_Percent text,ACC_Home text,ACC_Road text,All_Games text,All_Games_Percent int,All_Home text,All_Road text,All_Neutral text) | Vẽ biểu đồ phân tán giữa id trường học và acc percent trong đó id trường nằm trên trục x và các điểm được tô màu bởi ACC Road | Vẽ biểu_đồ phân_tán giữa id trường_học và acc_percent trong đó id_trường nằm trên trục x và các điểm được tô_màu bởi ACC_Road | SELECT School ID,ACC Percent FROM trận đấu bóng rổ GROUP BY ACC Road | SELECT School_ID,ACC_Percent FROM trận đấu bóng_rổ GROUP BY ACC_Road |
academic | CREATE TABLE Conference(cid int,homepage varchar,name varchar) CREATE TABLE domain author(aid int,did 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 keyword(did int,kid int) CREATE TABLE tác giả(aid int,homepage varchar,name varchar,oid int) CREATE TABLE từ khóa(từ khóa varchar,kid int) CREATE TABLE domain conference(cid int,did int) CREATE TABLE cite(cited int,citing int) CREATE TABLE công bố keyword(kid int,pid int) CREATE TABLE domain journal(did int,jid int) CREATE TABLE write(aid int,pid int) CREATE TABLE domain(did int,tên varchar) CREATE TABLE tổ chức(lục địa varchar,trang chủ varchar,tên varchar,oid int) CREATE TABLE miền publication(did int,pid int) CREATE TABLE tạp chí(trang chủ varchar,jid int,tên varchar) | CREATE TABLE Conference(cid int,homepage varchar,name varchar) CREATE TABLE domain_author(aid int,did 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_keyword(did int,kid int) CREATE TABLE tác_giả(aid int,homepage varchar,name varchar,oid int) CREATE TABLE từ khóa(từ khóa varchar,kid int) CREATE TABLE domain_conference(cid int,did int) CREATE TABLE cite(cited int,citing int) CREATE TABLE công_bố_keyword(kid int,pid int) CREATE TABLE domain_journal(did int,jid int) CREATE TABLE write(aid int,pid int) CREATE TABLE domain(did int,tên varchar) CREATE TABLE tổ_chức(lục_địa varchar,trang chủ varchar,tên varchar,oid int) CREATE TABLE miền_publication(did int,pid int) CREATE TABLE tạp_chí(trang chủ varchar,jid int,tên varchar) | trả lại cho tôi số lượng từ khóa. | trả lại cho tôi số_lượng từ khóa . | SELECT COUNT ( DISTINCT ( từ khóa ) ) FROM từ khóa | SELECT COUNT ( DISTINCT ( từ khóa ) ) FROM từ khóa |
sql_create_context | CREATE TABLE table name 18(nổi bật ft INTEGER,nổi bật m INTEGER) | CREATE TABLE table_name_18(nổi bật__ft_ INTEGER,nổi bật__m_ INTEGER) | Độ nổi cao nhất tính bằng ft của đỉnh có độ nổi tính bằng m nhỏ hơn 103 là bao nhiêu? | Độ nổi cao nhất tính bằng ft của đỉnh có độ nổi_tính bằng m nhỏ hơn 103 là bao_nhiêu ? | SELECT MAX ( nổi bật ft ) FROM tên bảng 18 WHERE nổi bật m < 103 | SELECT MAX ( nổi_bật ft_ ) FROM tên_bảng 18 WHERE nổi_bật _m < 103 |
wikisql | CREATE TABLE table 42168("Ngày" text,"Đối thủ" text,"Điểm số" text,"Địa điểm/Sân vận động" text,"Bản ghi" text) | CREATE TABLE table_42168("Ngày" text,"Đối_thủ" text,"Điểm_số" text,"Địa_điểm/Sân vận_động" text,"Bản_ghi" text) | Trận đấu diễn ra vào ngày nào khiến đội có thành tích 5-7? | Trận đấu diễn ra vào ngày nào khiến đội có thành_tích 5-7 ? | SELECT "Ngày" FROM table 42168 WHERE "Bản ghi" = '57' | SELECT "Ngày" FROM table_42168 WHERE "Bản_ghi" = "57" |
sql_create_context | CREATE TABLE table name 24(điểm VARCHAR,bề mặt VARCHAR) | CREATE TABLE table_name_24(điểm VARCHAR,bề_mặt VARCHAR) | Tỷ số của trận đấu diễn ra trên mặt cỏ là bao nhiêu? | Tỷ_số của trận đấu diễn ra trên mặt cỏ là bao_nhiêu ? | SELECT điểm FROM tên bảng 24 WHERE bề mặt = "cỏ" | SELECT điểm FROM tên_bảng_24 WHERE bề_mặt = "cỏ" |
wikisql | CREATE TABLE table 47333("Ngày" text,"Sân nhà" text,"Điểm" text,"Sân khách" text,"Tham dự" real) | CREATE TABLE table_47333("Ngày" text,"Sân_nhà" text,"Điểm" text,"Sân khách" text,"Tham_dự" real) | Tỷ số trận đấu với đội khách Deportes Savio là bao nhiêu? | Tỷ_số trận đấu với đội khách Deportes_Savio là bao_nhiêu ? | SELECT "Điểm" FROM table 47333 WHERE "Sân khách" = 'trục xuất savio' | SELECT "Điểm" FROM table_47333 WHERE "Sân khách" = "trục_xuất savio" |
squall | CREATE TABLE table 203 759(id number,"năm" number,"công ty" text,"số lượng thành viên bị ảnh hưởng" number,"thời gian đình công" text,"ghi chú" text) | CREATE TABLE table_203_759(id number,"năm" number,"công_ty" text,"số_lượng thành_viên bị ảnh_hưởng" number,"thời_gian đình_công" text,"ghi_chú" text) | trước năm 1989 đã có bao nhiêu cuộc đình công? | trước năm 1989 đã có bao_nhiêu cuộc đình_công ? | SELECT COUNT ( * ) FROM bảng 203 759 WHERE "năm" < 1989 | SELECT COUNT ( * ) FROM bảng_203_759 WHERE "năm" < 1989 |
spider | CREATE TABLE pitstops(raceid number,driverid number,stop number,lap number,time text,duration text,mili giây number) CREATE TABLE Season(năm number,url text) CREATE TABLE Circuits(Circuitid number,Circuitref text,name text,location text,country text,lat number,lng number,alt number,url text) CREATE TABLE raceid number,năm number,round number,Circuitid number,name text,date text,time text,url text) CREATE TABLE đủ điều kiện(qualifyid number,raceid number,driverid number,constructorid number,number number,position number,q1 text,q2 text,q3 text) CREATE TABLE constructorstanding(constructorstandingsid number,raceid number,constructorid number,points number,position number,vị trítext text,thắng number) CREATE TABLE constructor(constructorid number,constructorref text,name text,quốc tịch text,url text) CREATE TABLE laptimes(raceid number,driverid number,lap number,vị trí number,time text,mili giây number) CREATE TABLE constructorresults(constructorresultsid number,raceid number,constructorid number,points number,status number) CREATE TABLE driverstanding(driverstandingsid number,raceid number,driverid number,điểm number,position number,positiontext text,wins number) CREATE TABLE results(resultid number,raceid number,driverid number,constructorid number,numbernumber,lưới number,vị trí number,văn bản vị trí text,thứ tự vị trí number,điểm number,vòng number,time text,mili giây number,vòng chạy nhanh nhất number,xếp hạng number,thời gian chạy nhanh nhất text,tốc độ vòng chạy nhanh nhất text,statusid number) CREATE TABLE driver(driverid number,driverref text,number number,code text,forename text,họ text,dob text,quốc tịch text,url text) CREATE TABLE trạng thái(trạng thái number,trạng thái text) | CREATE TABLE pitstops(raceid number,driverid number,stop number,lap number,time text,duration text,mili giây number) CREATE TABLE Season(năm number,url text) CREATE TABLE Circuits(Circuitid number,Circuitref text,name text,location text,country text,lat number,lng number,alt number,url text) CREATE TABLE raceid number,năm number,round number,Circuitid number,name text,date text,time text,url text) CREATE TABLE đủ điều_kiện(qualifyid number,raceid number,driverid number,constructorid number,number number,position number,q1 text,q2 text,q3 text) CREATE TABLE constructorstanding(constructorstandingsid number,raceid number,constructorid number,points number,position number,vị trítext text,thắng number) CREATE TABLE constructor(constructorid number,constructorref text,name text,quốc_tịch text,url text) CREATE TABLE laptimes(raceid number,driverid number,lap number,vị_trí number,time text,mili giây number) CREATE TABLE constructorresults(constructorresultsid number,raceid number,constructorid number,points number,status number) CREATE TABLE driverstanding(driverstandingsid number,raceid number,driverid number,điểm number,position number,positiontext text,wins number) CREATE TABLE results(resultid number,raceid number,driverid number,constructorid number,numbernumber,lưới number,vị_trí number,văn_bản vị_trí text,thứ_tự vị_trí number,điểm number,vòng number,time text,mili giây number,vòng chạy nhanh nhất number,xếp_hạng number,thời_gian chạy nhanh nhất text,tốc_độ vòng chạy nhanh nhất text,statusid number) CREATE TABLE driver(driverid number,driverref text,number number,code text,forename text,họ text,dob text,quốc_tịch text,url text) CREATE TABLE trạng_thái(trạng_thái number,trạng_thái text) | Mã số và họ của tất cả các tay đua tham gia nhiều cuộc đua nhất là gì? | Mã_số và họ của tất_cả các tay_đua tham_gia nhiều cuộc đua nhất là gì ? | SELECT T1.driverid,T1.họ FROM driver AS T1 JOIN kết quả AS T2 ON T1.driverid = T2.dorid JOIN race AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driver ORDER BY COUNT ( * ) DESC LIMIT 1 | SELECT T1.driverid,T1.họ FROM driver AS T1 JOIN kết_quả AS T2 ON T1.driverid = T2.dorid JOIN race AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driver ORDER BY COUNT ( * ) DESC LIMIT 1 |
sede | 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 Nhận xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển thị người dùng text,UserId number,Giấy phép nội dung text) CREATE TABLE Người dùng(Id number,Danh tiếng number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE Chỉnh sửa được đề xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID other) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Preexpected boolean,PostNoticeDurationId number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate 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,Description text) CREATE TABLE CloseReasonTypes(Id number,Name text,Mô tả text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Điểm number,Số lượt xem number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,Số lượng bình luận number,Số lượng yêu thích number,Ngày đóng time,Ngày sở hữu cộng đồng time,Giấy phép nội dung text) | CREATE TABLE 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 Nhận_xét(Id number,PostId number,Điểm number,Text text,Ngày tạo time,Tên hiển_thị người dùng text,UserId number,Giấy_phép nội_dung text) CREATE TABLE Người dùng(Id number,Danh_tiếng number,CreationDate time,DisplayName text,LastAccessDate time,WebsiteUrl text,Location text,AboutMe text,Views number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) CREATE TABLE Chỉnh_sửa được đề_xuất(Id number,PostId number,CreationDate time,ApprovalDate time,RejectionDate time,OwnerUserId number,Comment text,Text text,Title text,Tags text,RevisionGUID_other) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE FlagTypes(Id number,Name text,Description text) CREATE TABLE Đang chờ xử lýFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Body text,IsHidden boolean,Preexpected boolean,PostNoticeDurationId number) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Badges(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate 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,Description text) CREATE TABLE CloseReasonTypes(Id number,Name text,Mô_tả text) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Điểm number,Số lượt xem number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,Số_lượng bình_luận number,Số_lượng yêu thích number,Ngày đóng time,Ngày sở_hữu cộng_đồng time,Giấy_phép nội_dung text) | TOP 100 người dùng từ Cambridge, Vương quốc Anh. Liệt kê 100 người dùng hàng đầu (xếp hạng theo danh tiếng) ở Cambridge, Vương quốc Anh theo thông tin hồ sơ của họ. | TOP 100 người dùng từ Cambridge , Vương_quốc_Anh . Liệt_kê 100 người dùng hàng_đầu ( xếp_hạng theo danh_tiếng ) ở Cambridge , Vương_quốc_Anh theo thông_tin hồ_sơ của họ . | SELECT Id AS "user link",Danh tiếng,Url trang web,Vị trí FROM Người dùng WHERE ( Vị trí LIKE 'Cambridge' AND NOT Vị trí LIKE 'MA' ) ORDER BY Danh tiếng DESC LIMIT 100 | SELECT Id AS "user_link",Danh_tiếng,Url trang_web,Vị_trí FROM Người dùng WHERE ( Vị_trí LIKE " Cambridge " AND NOT Vị_trí LIKE " MA " ) ORDER BY Danh_tiếng DESC LIMIT 100 |
wikisql | CREATE TABLE table 32575("Độ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_32575("Độ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) | Tỉ số của đội khách khi thi đấu với Collingwood là bao nhiêu? | Tỉ_số của đội khách khi thi_đấu với Collingwood là bao_nhiêu ? | SELECT "Tỷ số đội khách" FROM table 32575 WHERE "Đội chủ nhà" = 'collingwood' | SELECT "Tỷ_số đội khách" FROM table_32575 WHERE "Đội chủ nhà" = "collingwood" |
spider | CREATE TABLE bài học(lesson id number,customer id number,lesson status code text,staff id number,vehicle id number,lesson date time,lesson time text,price number) CREATE TABLE nhân viên(staff id number,staff address id number,biệt hiệu text,tên đầu tiên text,tên đệm text,họ tên text,ngày of sinh time,ngày joined staff time,ngày left staff time) CREATE TABLE địa chỉ(address id number,line 1 number building text,city text,zip postcode text,state province county text,country text) CREATE TABLE khách hàng(customer id number,customer address id number,customer status code text,date became customer time,date of birth time,first name text,last name text,amount outstanding number,email address text,phone number text,cell mobile phone number text) CREATE TABLE phương tiện(vehicle id number,vehicle details text) CREATE TABLE customer Payments(customer id number,datetime Payment time,Payment method code text,amount Payment number) | CREATE TABLE bài_học(lesson_id number,customer_id number,lesson_status_code text,staff_id number,vehicle_id number,lesson_date time,lesson_time text,price number) CREATE TABLE nhân_viên(staff_id number,staff_address_id number,biệt_hiệu text,tên_đầu tiên text,tên đệm text,họ_tên text,ngày_of_sinh time,ngày_joined_staff time,ngày_left_staff time) CREATE TABLE địa_chỉ(address_id number,line_1_number_building text,city text,zip_postcode text,state_province_county text,country text) CREATE TABLE khách_hàng(customer_id number,customer_address_id number,customer_status_code text,date_became_customer time,date_of_birth time,first_name text,last_name text,amount_outstanding number,email_address text,phone_number text,cell_mobile_phone_number text) CREATE TABLE phương_tiện(vehicle_id number,vehicle_details text) CREATE TABLE customer_ Payments(customer_id number,datetime_ Payment time,Payment_method_code text,amount_ Payment number) | Họ và tên của tất cả khách hàng có trên 2 lần thanh toán là gì? | Họ và tên của tất_cả khách_hàng có trên 2 lần thanh_toán là gì ? | SELECT T2.first name,T2.last name FROM customer Payments AS T1 JOIN khách hàng AS T2 ON T1.customer id = T2.customer id GROUP BY T1.customer id HAVING COUNT ( * ) > 2 | SELECT T2.first_name,T2.last_name FROM customer Payments AS T1 JOIN khách_hàng AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT ( * ) > 2 |
wikisql | CREATE TABLE table 47228("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm" text,"Điểm cao" text,"Phản hồi cao" text,"Hỗ trợ cao" text,"Điểm danh theo địa điểm" text,"Bản ghi" text) | CREATE TABLE table_47228("Trận đấu" real,"Ngày" text,"Đội" text,"Điểm" text,"Điểm cao" text,"Phản_hồi cao" text,"Hỗ_trợ cao" text,"Điểm_danh theo địa_điểm" text,"Bản_ghi" text) | Số lần bật lại cao nhất của san antonio spurs là bao nhiêu? | Số lần bật lại cao nhất của san_antonio spurs là bao_nhiêu ? | SELECT "Số lần bật lại cao" FROM table 47228 WHERE "Team" = 'san antonio spurs' | SELECT "Số lần bật lại cao" FROM table_47228 WHERE "Team" = "san antonio spurs" |
sql_create_context | CREATE TABLE tên bảng 78(nơi sinh VARCHAR,cao VARCHAR,tiêu đề hồng y VARCHAR) | CREATE TABLE tên_bảng_78(nơi_sinh VARCHAR,cao VARCHAR,tiêu_đề hồng_y VARCHAR) | Nơi sinh khi được nâng lên là ngày 16 tháng 5 năm 1288, và tước vị hồng y là Phó tế S. Eustachio? | Nơi_sinh khi được nâng lên là ngày 16 tháng 5 năm 1288 , và tước_vị hồng_y là Phó_tế S._Eustachio ? | SELECT nơi sinh FROM tên bảng 78 WHERE nâng cao = "16.1288 tháng 5" AND cardinalatial title = "phó tế của s.eustachio" | SELECT nơi_sinh FROM tên_bảng_78 WHERE nâng cao = "16.1288 tháng 5" AND cardinalatial_title = "phó_tế của s.eustachio" |
wikisql | CREATE TABLE table 79986("Kết quả" text,"Ngày" text,"Giải đấu" text,"Bề mặt" text,"Đối thủ" text,"Điểm số" text) | CREATE TABLE table_79986("Kết_quả" text,"Ngày" text,"Giải đấu" text,"Bề_mặt" text,"Đối_thủ" text,"Điểm_số" text) | Kết quả trận đấu diễn ra ngày 19-09-2006 như thế nào? | Kết_quả trận đấu diễn ra ngày 19-09-2006 như_thế_nào ? | SELECT "Kết quả" FROM table 79986 WHERE "Ngày" = '19092006' | SELECT "Kết_quả" FROM table_79986 WHERE "Ngày" = "19092006" |
sql_create_context | CREATE TABLE table name 43(điểm VARCHAR,năm VARCHAR,khung gầm VARCHAR,người đăng ký VARCHAR,động cơ VARCHAR) | CREATE TABLE table_name_43(điểm VARCHAR,năm VARCHAR,khung gầm VARCHAR,người đăng_ký VARCHAR,động_cơ VARCHAR) | Một người tham gia Martini Racing, động cơ của chiếc Alfa Romeo flat-12, khung gầm của brabham bt45 và năm 1976 có được bao nhiêu điểm? | Một người tham_gia Martini_Racing , động_cơ của chiếc Alfa Romeo_flat-12 , khung gầm của brabham bt45 và năm 1976 có được bao_nhiêu điểm ? | SELECT COUNT ( điểm ) FROM tên bảng 43 WHERE người đăng ký = "martini Racing" AND engine = "alfa romeo flat12" AND khung gầm = "brabham bt45" AND năm = 1976 | SELECT COUNT ( điểm ) FROM tên_bảng_43 WHERE người đăng_ký = "martini Racing" AND engine = "alfa romeo flat12" AND khung gầm = "brabham bt45" AND năm = 1976 |
wikisql | CREATE TABLE table 66969("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Tham dự" text,"Ghi chép" text) | CREATE TABLE table_66969("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Tham_dự" text,"Ghi_chép" text) | Tỷ lệ tham dự trận đấu có trận thua Crabtree (0-1) là bao nhiêu? | Tỷ_lệ tham_dự trận đấu có trận thua_Crabtree ( 0-1 ) là bao_nhiêu ? | SELECT "Điểm danh" FROM table 66969 WHERE "Mất" = 'Crabtree ( 01 ) ' | SELECT "Điểm_danh" FROM table_66969 WHERE "Mất" = "Crabtree ( 01 ) " |
sql_create_context | CREATE TABLE table 22538587 3(l g VARCHAR,c g VARCHAR,c apps VARCHAR) | CREATE TABLE table_22538587_3(l_g VARCHAR,c_g VARCHAR,c_apps VARCHAR) | Đặt tên tổng số lg cho cg lớn hơn 1.0 cho ứng dụng c là 3 | Đặt tên tổng_số lg cho cg lớn hơn 1.0 cho ứng_dụng c là 3 | SELECT COUNT ( l g ) FROM table 22538587 3 WHERE c g > 1.0 AND c apps = 3 | SELECT COUNT ( l_g ) FROM table_22538587_3 WHERE c_g > 1.0 AND c_apps = 3 |
wikisql | CREATE TABLE table 46292("Người lái" text,"Nhà sản xuất" text,"Vòng" real,"Thời gian" text,"Lưới" real) | CREATE TABLE table_46292("Người lái" text,"Nhà sản_xuất" text,"Vòng" real,"Thời_gian" text,"Lưới" real) | Tổng số vòng khi nhà sản xuất gilera có thời gian 40:19.910 và lưới lớn hơn 3 là bao nhiêu? | Tổng_số vòng khi nhà_sản_xuất gilera có thời_gian 40 : 19.910 và lưới lớn hơn 3 là bao_nhiêu ? | SELECT SUM ( "Vòng" ) FROM table 46292 WHERE "Nhà sản xuất" = 'gilera' AND "Thời gian" = '4019.910' AND "Lưới" > '3' | SELECT SUM ( "Vòng" ) FROM table_46292 WHERE "Nhà sản_xuất" = "gilera" AND "Thời_gian" = "40 19.910" AND "Lưới" > "3" |
wikisql | CREATE TABLE table 4975("Vòng" real,"Chọn #" real,"Tổng thể" real,"Tên" text,"Chức vụ" text,"Đại học" text) | CREATE TABLE table_4975("Vòng" real,"Chọn #" real,"Tổng_thể" real,"Tên" text,"Chức_vụ" text,"Đại_học" text) | Kể tên tổng số của dầu brent hawkins và chọn # lớn hơn 28 | Kể tên tổng_số của dầu brent_hawkins và chọn # lớn hơn 28 | SELECT COUNT ( "Tổng thể" ) FROM table 4975 WHERE "Name" = 'brent hawkins' AND "Chọn " > '28' | SELECT COUNT ( "Tổng_thể" ) FROM table_4975 WHERE "Name" = "brent hawkins" AND "Chọn " > "28" |
wikisql | CREATE TABLE table 48510("Năm" real,"Giải thưởng" text,"Tác phẩm được đề cử" text,"Danh mục" text,"Kết quả" text) | CREATE TABLE table_48510("Năm" real,"Giải_thưởng" text,"Tác_phẩm được đề_cử" text,"Danh_mục" text,"Kết_quả" text) | Giải thưởng là gì khi Hạng mục là Cabello Maluco? | Giải_thưởng là gì khi Hạng_mục là Cabello_Maluco ? | SELECT "Giải thưởng" FROM table 48510 WHERE "Danh mục" = 'cabello maluco' | SELECT "Giải_thưởng" FROM table_48510 WHERE "Danh_mục" = "cabello maluco" |
sql_create_context | CREATE TABLE table 1341707 45(đương nhiệm VARCHAR,quận VARCHAR) | CREATE TABLE table_1341707_45(đương_nhiệm VARCHAR,quận VARCHAR) | Người đương nhiệm ở quận Texas 15 là ai? | Người đương_nhiệm ở quận Texas 15 là ai ? | SELECT đương nhiệm FROM table 1341707 45 WHERE quận = "Texas 15" | SELECT đương_nhiệm FROM table_1341707_45 WHERE quận = "Texas 15" |
wikisql | CREATE TABLE table 34975("Cầu thủ" text,"Chạm bóng" real,"Thêm điểm" real,"Mục tiêu trên sân" real,"Điểm" real) | CREATE TABLE table_34975("Cầu_thủ" text,"Chạm bóng" real,"Thêm điểm" real,"Mục_tiêu trên sân" real,"Điểm" real) | Herrnstein có thêm bao nhiêu điểm với ít hơn 2 lần chạm bóng và ghi ít hơn 0 bàn thắng? | Herrnstein có thêm bao_nhiêu điểm với ít hơn 2 lần chạm bóng và ghi ít hơn 0 bàn thắng ? | SELECT AVG ( "Thêm điểm" ) FROM table 34975 WHERE "Số lần chạm bóng" < '2' AND "Cầu thủ" = 'herrnstein' AND "Số bàn thắng trên sân" < '0' | SELECT AVG ( "Thêm điểm" ) FROM table_34975 WHERE "Số lần chạm bóng" < "2" AND "Cầu_thủ" = "herrnstein" AND "Số bàn thắng trên sân" < "0" |
mimic_iii | CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE thủ tục icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,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 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 outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE microbiologyevents(row id number,subject id number,hadm id number,charttime time,spec type desc text,org name text) CREATE TABLE cost(row id number,subject id number,hadm id number,event type text,event id number,chargetime time,cost number) CREATE TABLE labevents(row id number,subject id number,hadm id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d items(row id number,itemid number,label text,linksto text) CREATE TABLE 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 d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(row id number,chủ đề id number,hadm id number,ngày bắt đầu time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,route text) CREATE TABLE bệnh nhân(row id number,subject id number,giới tính text,dob time,dod time) CREATE TABLE icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,ngoài giờ time) | CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE thủ_tục_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,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 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 outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE microbiologyevents(row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text) CREATE TABLE cost(row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number) CREATE TABLE labevents(row_id number,subject_id number,hadm_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE d_items(row_id number,itemid number,label text,linksto text) CREATE TABLE 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 d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(row_id number,chủ đề_id number,hadm_id number,ngày bắt_đầu time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,giới_tính text,dob time,dod time) CREATE TABLE icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,ngoài giờ time) | Đã bao nhiêu ngày trôi qua kể từ khi bệnh nhân 71689 nhập viện? | Đã bao_nhiêu ngày trôi qua kể từ khi bệnh_nhân 71689 nhập_viện ? | SELECT 1 * ( STRFTIME ( 'j',CURRENT TIME ( ) ) STRFTIME ( 'j',admissions.admittime ) ) FROM tuyển sinh WHERE tuyển sinh.subject id = 71689 AND tuyển sinh.dischtime IS NULL | SELECT 1 * ( STRFTIME ( " j",CURRENT_TIME ( ) ) STRFTIME ( " j",admissions.admittime ) ) FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 71689 AND tuyển sinh.dischtime IS NULL |
sql_create_context | CREATE TABLE table name 66(driver VARCHAR,total time VARCHAR) | CREATE TABLE table_name_66(driver VARCHAR,total_time VARCHAR) | Người lái xe nào có tổng thời gian là 16:58? | Người lái_xe nào có tổng thời_gian là 16 : 58 ? | SELECT trình điều khiển FROM table name 66 WHERE Total time = "1658" | SELECT trình điều_khiển FROM table_name_66 WHERE Total_time = "16 58" |
sql_create_context | CREATE TABLE table 22597626 17(đối thủ in the final VARCHAR,score in the final VARCHAR) | CREATE TABLE table_22597626_17(đối_thủ_in_the_final VARCHAR,score_in_the_final VARCHAR) | Đối thủ trong trận chung kết có tỷ số chung cuộc là 6 4, 7 6 2 là ai? | Đối_thủ trong trận chung_kết có tỷ_số chung_cuộc là 6 4 , 7 6 2 là ai ? | SELECT đối thủ in the final FROM table 22597626 17 WHERE Score in the final = "64,76 2" | SELECT đối_thủ_in_the_final FROM table_22597626_17 WHERE Score_in_the_final = "6 4,7 6 2" |
nvbench | CREATE TABLE SINH VIÊN(STU NUM int,STU LNAME varchar(15),STU FNAME varchar(15),STU INIT varchar(1),STU DOB datetime,STU HRS int,STU CLASS varchar(2),STU GPA float(8),STU TRANSFER numeric,DEPT CODE varchar(18),STU PHONE varchar(4),PROF NUM int) CREATE TABLE COURSE(CRS CODE varchar(10),DEPT CODE varchar(10),CRS DESCRIPTION varchar(35),CRS CREDIT float(8)) CREATE TABLE CLASS(CLASS CODE varchar(5),CRS CODE varchar(10),CLASS SECTION varchar(2),CLASS TIME varchar(20),CLASS ROOM varchar(8),PROF NUM int) CREATE TABLE ĐĂNG KÝ(CLASS CODE varchar(5),STU NUM int,ENROLL GRADE varchar(50)) CREATE TABLE NHÂN VIÊN(EMP NUM int,EMP LNAME varchar(15),EMP FNAME varchar(12),EMP INITIAL varchar(1),EMP JOBCODE varchar(5),EMP HIREDATE datetime,EMP DOB datetime) CREATE TABLE GIÁO SƯ(EMP NUM int,DEPT CODE varchar(10),PROF OFFICE varchar(50),PROF EXTENSION varchar(4),PROF HIGH DEGREE varchar(5)) CREATE TABLE DEPARTMENT(DEPT CODE varchar(10),DEPT NAME varchar(30),SCHOOL CODE varchar(8),EMP NUM int,DEPT ADDRESS varchar(20),DEPT EXTENSION varchar(4)) | CREATE TABLE SINH_VIÊN(STU_NUM int,STU_LNAME varchar(15),STU_FNAME varchar(15),STU_INIT varchar(1),STU_DOB datetime,STU_HRS int,STU_CLASS varchar(2),STU_GPA float(8),STU_TRANSFER_numeric,DEPT_CODE varchar(18),STU_PHONE varchar(4),PROF_NUM int) CREATE TABLE COURSE(CRS_CODE varchar(10),DEPT_CODE varchar(10),CRS_DESCRIPTION varchar(35),CRS_CREDIT float(8)) CREATE TABLE CLASS(CLASS_CODE varchar(5),CRS_CODE varchar(10),CLASS_SECTION varchar(2),CLASS_TIME varchar(20),CLASS_ROOM varchar(8),PROF_NUM int) CREATE TABLE ĐĂNG_KÝ(CLASS_CODE varchar(5),STU_NUM int,ENROLL_GRADE varchar(50)) CREATE TABLE NHÂN_VIÊN(EMP_NUM int,EMP_LNAME varchar(15),EMP_FNAME varchar(12),EMP_INITIAL varchar(1),EMP_JOBCODE varchar(5),EMP_HIREDATE datetime,EMP_DOB datetime) CREATE TABLE GIÁO_SƯ(EMP_NUM int,DEPT_CODE varchar(10),PROF_OFFICE varchar(50),PROF_EXTENSION varchar(4),PROF_HIGH_DEGREE varchar(5)) CREATE TABLE DEPARTMENT(DEPT_CODE varchar(10),DEPT_NAME varchar(30),SCHOOL_CODE varchar(8),EMP_NUM int,DEPT_ADDRESS varchar(20),DEPT_EXTENSION varchar(4)) | Có bao nhiêu khóa học cho mỗi mô tả khóa học? Cho tôi xem biểu đồ thanh, sắp xếp trục y từ thứ tự thấp đến cao. | Có bao_nhiêu khóa_học cho mỗi mô_tả khóa học ? Cho tôi xem biểu_đồ thanh , sắp_xếp trục_y từ thứ_tự thấp đến cao . | SELECT CRS DESC RIPTION, COUNT ( CRS DESC RIPTION ) FROM LỚP AS T1 JOIN NHÂN VIÊN AS T2 ON T1.PROF NUM = T2.EMP NUM JOIN KHÓA HỌC AS T3 ON T1.CRS CODE = T3.CRS CODE GROUP BY CRS DESC RIPTION ORDER BY COUNT ( CRS DESC RIPTION ) | SELECT CRS DESC RIPTION, COUNT ( CRS DESC RIPTION ) FROM LỚP AS T1 JOIN NHÂN_VIÊN AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN KHÓA_HỌC AS T3 ON T1.CRS_CODE = T3.CRS_CODE GROUP BY CRS DESC RIPTION ORDER BY COUNT ( CRS DESC RIPTION ) |
advising | CREATE TABLE Offer instructor(offering instructor id int,offering id int,instructor id int) CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLE gsi(course offering id int,sinh viên id int) CREATE TABLE khóa học(khóa id int,tên varchar,bộ môn varchar,number varchar,tín chỉ varchar,tư vấn requirement varchar,enforced requirement varchar,description varchar,num semesters int,num enrolled int,has discussion varchar,has lab varchar,has projects varchar,has exams varchar,num reviews int,clarity score int,easiness score int,helpfulness score int) CREATE TABLE Course offering(offering id int,course id int,semester int,số phần int,giờ bắt đầu time,giờ kết thúc 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 jobs(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE yêu cầu(requirement id int,requirement varchar,college varchar) CREATE TABLE khu vực(khóa học id int,khu vực varchar) CREATE TABLE khóa học điều kiện tiên quyết(pre course id int,course id int) CREATE TABLE học kỳ(semester id int,semester varchar,year int) CREATE TABLEprogram requirement(program id int,category varchar,min credit int,Added req varchar) CREATE TABLEstudent(student id int,lastname varchar,firstname varchar,program id int,khai báo chuyên ngành varchar,tổng tín chỉ int,tổng gpa float,entered as varchar,thật kỳ int,predicted graduation semester int,bằng cấp varchar,nhỏ varchar,thực tập varchar) CREATE TABLE người hướng dẫn(instructor id int,tên varchar,uniqname varchar) CREATE TABLE chương trình course(program id int,course id int,workload int,category varchar) CREATE TABLE ta(campus job id int,student id int,location varchar) CREATE TABLE chương trình(program id int,name varchar,college varchar,introduction varchar) CREATE TABLE Course tags count(course id int,clear grading int,pop quiz int,group projects int,inspiral int,long lectures int,tín dụng bổ sung int,vài bài kiểm tra 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 nhiều int,khó học sinh int,vui nhộn int,would take again int,good lecture int,no skip 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,transfer source varchar,kiếm credit varchar,repeat term varchar,id id varchar) | CREATE TABLE Offer_instructor(offering_instructor_id int,offering_id int,instructor_id int) CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLE gsi(course_offering_id int,sinh viên_id int) CREATE TABLE khóa_học(khóa_id int,tên varchar,bộ_môn varchar,number varchar,tín chỉ varchar,tư_vấn_requirement varchar,enforced_requirement varchar,description varchar,num_semesters int,num_enrolled int,has_discussion varchar,has_lab varchar,has_projects varchar,has_exams varchar,num_reviews int,clarity_score int,easiness_score int,helpfulness_score int) CREATE TABLE Course_offering(offering_id int,course_id int,semester int,số phần int,giờ bắt_đầu time,giờ kết_thúc 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 jobs(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE yêu_cầu(requirement_id int,requirement varchar,college varchar) CREATE TABLE khu_vực(khóa học_id int,khu_vực varchar) CREATE TABLE khóa học_điều kiện tiên_quyết(pre_course_id int,course_id int) CREATE TABLE học_kỳ(semester_id int,semester varchar,year int) CREATE TABLEprogram_requirement(program_id int,category varchar,min_credit int,Added_req varchar) CREATE TABLEstudent(student_id int,lastname varchar,firstname varchar,program_id int,khai_báo_chuyên ngành varchar,tổng_tín chỉ int,tổng_gpa float,entered_as varchar,thật_kỳ int,predicted_graduation_semester int,bằng_cấp varchar,nhỏ varchar,thực_tập varchar) CREATE TABLE người hướng_dẫn(instructor_id int,tên varchar,uniqname varchar) CREATE TABLE chương trình_course(program_id int,course_id int,workload int,category varchar) CREATE TABLE ta(campus_job_id int,student_id int,location varchar) CREATE TABLE chương_trình(program_id int,name varchar,college varchar,introduction varchar) CREATE TABLE Course_tags_count(course_id int,clear_grading int,pop_quiz int,group_projects int,inspiral int,long_lectures int,tín_dụng bổ_sung int,vài_bài kiểm_tra 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 nhiều int,khó_học sinh int,vui nhộn int,would_take_again int,good_lecture int,no_skip 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,transfer_source varchar,kiếm_credit varchar,repeat_term varchar,id_id varchar) | Học kỳ tiếp theo ở tất cả các khoa, có bao nhiêu lớp học được mở? | Học_kỳ tiếp_theo ở tất_cả các khoa , có bao_nhiêu lớp_học được mở ? | SELECT COUNT ( DISTINCT Course offering.course id ) FROM Course offering,học kỳ WHERE học kỳ.semester = 'FA' AND học kỳ.semester id = Course offering.semester AND học kỳ.năm = 2016 | SELECT COUNT ( DISTINCT Course_offering.course_id ) FROM Course_offering,học_kỳ WHERE học_kỳ.semester = "FA" AND học_kỳ.semester_id = Course_offering.semester AND học_kỳ.năm = 2016 |
sql_create_context | CREATE TABLE table name 28(lưới VARCHAR,rider VARCHAR) | CREATE TABLE table_name_28(lưới VARCHAR,rider VARCHAR) | Lưới của tay đua Shinya Nakano là gì? | Lưới của tay đua Shinya_Nakano là gì ? | SELECT lưới FROM tên bảng 28 WHERE Rider = "shinya nakano" | SELECT lưới FROM tên_bảng_28 WHERE Rider = "shinya nakano" |
wikisql | CREATE TABLE table 68126("Ngày" text,"Đối thủ" text,"Điểm" text,"Thua" text,"Tham dự" real,"Ghi chép" text) | CREATE TABLE table_68126("Ngày" text,"Đối_thủ" text,"Điểm" text,"Thua" text,"Tham_dự" real,"Ghi_chép" text) | Số người tham dự trận đấu của Blue Jays khi thành tích của họ là 47-43 là bao nhiêu? | Số người tham_dự trận đấu của Blue_Jays khi thành_tích của họ là 47-43 là bao_nhiêu ? | SELECT SUM ( "Điểm danh" ) FROM table 68126 WHERE "Bản ghi" = '4743' | SELECT SUM ( "Điểm_danh" ) FROM table_68126 WHERE "Bản_ghi" = "4743" |
sql_create_context | CREATE TABLE table 2602958 3(ori date date VARCHAR,giám đốc VARCHAR) | CREATE TABLE table_2602958_3(ori_date_date VARCHAR,giám_đốc VARCHAR) | Ngày phát sóng ban đầu của tập phim do Kevin Dowling đạo diễn là ngày nào? | Ngày phát_sóng ban_đầu của tập phim do Kevin Dowling đạo_diễn là ngày nào ? | SELECT original air date FROM table 2602958 3 WHERE đạo diễn = "Kevin Dowling" | SELECT original_air_date FROM table_2602958_3 WHERE đạo_diễn = "Kevin_Dowling" |
nvbench | CREATE TABLE Assessment Notes(notes id INTEGER,student id INTEGER,teacher id INTEGER,date of notes DATETIME,text of notes VARCHAR(255),other details VARCHAR(255)) CREATE TABLE Ref Detention Type(detention type code VARCHAR(10),detention type description VARCHAR(80)) CREATE TABLE Detention(detention id INTEGER,detention type code VARCHAR(10),teacher id INTEGER,datetime detention start DATETIME,datetime detention end DATETIME,detention summary VARCHAR(255),other details VARCHAR(255)) CREATE TABLE Địa chỉ(address id INTEGER,line 1 VARCHAR(120),line 2 VARCHAR(120),line 3 VARCHAR(120),city VARCHAR(80),zip postcode VARCHAR(20),state province county VARCHAR(50),quốc gia VARCHAR(50),other address details VARCHAR(255)) CREATE TABLE Sinh viên(student id INTEGER,address id INTEGER,first name VARCHAR(80),middle name VARCHAR(40),họ VARCHAR(40),số điện thoại di động VARCHAR(40),địa chỉ email VARCHAR(40),date first rental DATETIME,date left university DATETIME,other student details VARCHAR(255)) CREATE TABLE Students in Detention(student id INTEGER,detention id INTEGER,incident id INTEGER) CREATE TABLE Ref Incident Type(incident type code VARCHAR(10),incident type description VARCHAR(80)) CREATE TABLE Teacher(teacher id INTEGER,address id INTEGER,first name VARCHAR(80),middle name VARCHAR(80),last name VARCHAR(80),giới tính VARCHAR(1),số điện thoại di động VARCHAR(40),địa chỉ email VARCHAR(40),other details VARCHAR(255)) CREATE TABLE Địa chỉ sinh viên(student id INTEGER,address id INTEGER,date address from DATETIME,date address to DATETIME,monthly rental DECIMAL(19,4),other details VARCHAR(255)) CREATE TABLE Ref Address Types(address type code VARCHAR(15),address type description VARCHAR(80)) CREATE TABLE Behavior Incident(incident id INTEGER,incident type code VARCHAR(10),student id INTEGER,date incident start DATETIME,date incident end DATETIME,incident summary VARCHAR(255),recommendations VARCHAR(255),other details VARCHAR(255)) | CREATE TABLE Assessment_Notes(notes_id INTEGER,student_id INTEGER,teacher_id INTEGER,date_of_notes DATETIME,text_of_notes VARCHAR(255),other_details VARCHAR(255)) CREATE TABLE Ref_Detention_Type(detention_type_code VARCHAR(10),detention_type_description VARCHAR(80)) CREATE TABLE Detention(detention_id INTEGER,detention_type_code VARCHAR(10),teacher_id INTEGER,datetime_detention_start DATETIME,datetime_detention_end DATETIME,detention_summary VARCHAR(255),other_details VARCHAR(255)) CREATE TABLE Địa_chỉ(address_id INTEGER,line_1 VARCHAR(120),line_2 VARCHAR(120),line_3 VARCHAR(120),city VARCHAR(80),zip_postcode VARCHAR(20),state_province_county VARCHAR(50),quốc_gia VARCHAR(50),other_address_details VARCHAR(255)) CREATE TABLE Sinh_viên(student_id INTEGER,address_id INTEGER,first_name VARCHAR(80),middle_name VARCHAR(40),họ VARCHAR(40),số điện_thoại_di_động VARCHAR(40),địa_chỉ email VARCHAR(40),date_first_rental DATETIME,date_left_university DATETIME,other_student_details VARCHAR(255)) CREATE TABLE Students_in_Detention(student_id INTEGER,detention_id INTEGER,incident_id INTEGER) CREATE TABLE Ref_Incident_Type(incident_type_code VARCHAR(10),incident_type_description VARCHAR(80)) CREATE TABLE Teacher(teacher_id INTEGER,address_id INTEGER,first_name VARCHAR(80),middle_name VARCHAR(80),last_name VARCHAR(80),giới_tính VARCHAR(1),số_điện_thoại_di_động VARCHAR(40),địa_chỉ email VARCHAR(40),other_details VARCHAR(255)) CREATE TABLE Địa_chỉ sinh_viên(student_id INTEGER,address_id INTEGER,date_address_from DATETIME,date_address_to DATETIME,monthly_rental_DECIMAL(19,4),other_details VARCHAR(255)) CREATE TABLE Ref_Address_Types(address_type_code VARCHAR(15),address_type_description VARCHAR(80)) CREATE TABLE Behavior_Incident(incident_id INTEGER,incident_type_code VARCHAR(10),student_id INTEGER,date_incident_start DATETIME,date_incident_end DATETIME,incident_summary VARCHAR(255),recommendations VARCHAR(255),other_details VARCHAR(255)) | Chỉ cho tôi xu hướng về số lượng date address to trong date address to và nhóm theo thuộc tính other details bằng biểu đồ dạng đường. | Chỉ cho tôi xu_hướng về số_lượng date_address_to trong date_address_to và nhóm theo thuộc_tính other_details bằng biểu_đồ dạng đường . | SELECT date address to, COUNT ( date address to ) FROM Sinh viên Địa chỉ GROUP BY other details,date address to ORDER BY hàng tháng cho thuê DESC | SELECT date_address_to, COUNT ( date_address_to ) FROM Sinh viên_Địa chỉ GROUP BY other_details,date_address_to ORDER BY hàng tháng_cho thuê DESC |
mimicsql_data | CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập học text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn cờ text,địa điểm nhập học text,vị trí xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian nhập viện text,năm nhập học text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,hôn_nhân_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập học text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn cờ text,địa_điểm nhập_học text,vị_trí xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian nhập_viện text,năm nhập_học text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | cung cấp mã chẩn đoán icd 9 cho kelly gallardo. | cung_cấp mã chẩn_đoán icd 9 cho kelly gallardo . | SELECT nhân khẩu học.diagnosis,diagnoses.icd9 code FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id WHERE nhân khẩu học.name = "Kelly Gallardo" | SELECT nhân_khẩu học.diagnosis,diagnoses.icd9_code FROM nhân_khẩu học INNER JOIN chẩn_đoán ON nhân_khẩu học.hadm_id = chẩn_đoán.hadm_id WHERE nhân_khẩu học.name = "Kelly_Gallardo" |
Subsets and Splits