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 tên bảng 16(Id VARCHAR) | CREATE TABLE tên_bảng_16(Id VARCHAR) | Năm 2007 có trò chơi Olympic 2004 là gì? | Năm 2007 có trò_chơi Olympic 2004 là gì ? | SELECT 2007 FROM table name 16 WHERE 2004 = "trò chơi Olympic" | SELECT 2007 FROM table_name_16 WHERE 2004 = "trò_chơi Olympic" |
sql_create_context | CREATE TABLE table name 15(fa cup INTEGER,total VARCHAR,league VARCHAR) | CREATE TABLE table_name_15(fa_cup INTEGER,total VARCHAR,league VARCHAR) | Trung bình có bao nhiêu FA Cup có tổng số lớn hơn 32 và một giải đấu lớn hơn 24? | Trung_bình có bao_nhiêu FA_Cup có tổng_số lớn hơn 32 và một giải đấu lớn hơn 24 ? | SELECT AVG ( fa cup ) FROM table name 15 WHERE total > 32 AND giải đấu > 24 | SELECT AVG ( fa_cup ) FROM table_name_15 WHERE total > 32 AND giải đấu > 24 |
sql_create_context | CREATE TABLE Dự án(project id VARCHAR,project details VARCHAR) CREATE TABLE Nhiệm vụ(task details VARCHAR,task id VARCHAR,project id VARCHAR) CREATE TABLE Project outcomes(project id VARCHAR) | CREATE TABLE Dự_án(project_id VARCHAR,project_details VARCHAR) CREATE TABLE Nhiệm_vụ(task_details VARCHAR,task_id VARCHAR,project_id VARCHAR) CREATE TABLE Project_outcomes(project_id VARCHAR) | Chi tiết nhiệm vụ, id nhiệm vụ và id dự án cho các dự án được chi tiết là 'mọi người' hoặc có nhiều hơn 2 kết quả là gì? | Chi_tiết nhiệm_vụ , id nhiệm_vụ và id dự_án cho các dự_án được chi_tiết là ' mọi người ' hoặc có nhiều hơn 2 kết_quả là gì ? | SELECT T1.task details,T1.task id,T2.project id FROM Nhiệm vụ AS T1 JOIN Dự án AS T2 ON T1.project id = T2.project id WHERE T2.project details = 'omnis' UNION SELECT T1.task details,T1.task id,T2.project id FROM Nhiệm vụ AS T1 JOIN Dự án AS T2 ON T1.project id = T2.project id JOIN Project outcomes AS T3 ON T2.project id = T3.project id GROUP BY T2.dự án id HAVING COUNT ( * ) > 2 | SELECT T1.task_details,T1.task_id,T2.project_id FROM Nhiệm_vụ AS T1 JOIN Dự_án AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = "omnis" UNION SELECT T1.task_details,T1.task_id,T2.project_id FROM Nhiệm_vụ AS T1 JOIN Dự_án AS T2 ON T1.project_id = T2.project_id JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.dự_án_id HAVING COUNT ( * ) > 2 |
squall | CREATE TABLE table 203 497(id number,"thứ hạng" number,"quốc gia" text,"vàng" number,"bạc" number,"đồng" number,"tổng" number) | CREATE TABLE table_203_497(id number,"thứ_hạng" number,"quốc_gia" text,"vàng" number,"bạc" number,"đồng" number,"tổng" number) | Ấn Độ đã giành được bao nhiêu huy chương vàng? | Ấn_Độ đã giành được bao_nhiêu huy_chương vàng ? | SELECT "vàng" FROM table 203 497 WHERE "quốc gia" = 'Ấn Độ' | SELECT "vàng" FROM table_203_497 WHERE "quốc_gia" = "Ấn_Độ" |
mimicsql_data | CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,hôn nhân status text,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 đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE lab(subject id text,hadm id text,itemid text,charttime text,flag text,value unit text,label text,fluid text) | CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,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 đơ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) | có bao nhiêu bệnh nhân mắc bệnh hoại tử nguyên phát? | có bao_nhiêu bệnh_nhân mắc bệnh_hoại tử_nguyên phát ? | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học WHERE nhân khẩu học.diagnosis = "GANGRENE" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học WHERE nhân_khẩu học.diagnosis = "GANGRENE" |
sql_create_context | CREATE TABLE tên bảng 25(điểm VARCHAR,điểm cho VARCHAR) | CREATE TABLE tên_bảng_25(điểm VARCHAR,điểm_cho VARCHAR) | Điểm là gì khi Điểm Cho là '562'? | Điểm là gì khi Điểm Cho là ' 562 ' ? | SELECT điểm FROM tên bảng 25 WHERE điểm for = "562" | SELECT điểm FROM tên_bảng_25 WHERE điểm_for = "562" |
wikisql | CREATE TABLE table 55619("Xếp hạng" real,"Phim" text,"Năm" real,"Studio(s)" text,"Tổng doanh thu ròng trong một ngày" real,"Ngày phát hành" text,"Ngày trong tuần" real) | CREATE TABLE table_55619("Xếp_hạng" real,"Phim" text,"Năm" real,"Studio(s)" text,"Tổng_doanh_thu ròng trong một ngày" real,"Ngày phát_hành" text,"Ngày trong tuần" real) | Năm trung bình phát hành vào thứ Sáu và các tuần lớn hơn 2 ngày là bao nhiêu? | Năm trung_bình phát_hành vào thứ_Sáu và các tuần lớn hơn 2 ngày là bao_nhiêu ? | SELECT AVG ( "Năm" ) FROM table 55619 WHERE "Ngày phát hành" = 'thứ sáu' AND "Ngày trong tuần" > '2' | SELECT AVG ( "Năm" ) FROM table_55619 WHERE "Ngày phát_hành" = "thứ_sáu" AND "Ngày trong tuần" > "2" |
sql_create_context | CREATE TABLE table name 83(vị trí VARCHAR,năm VARCHAR) | CREATE TABLE table_name_83(vị_trí VARCHAR,năm VARCHAR) | 1999 là vị trí gì? | 1999 là vị_trí gì ? | SELECT vị trí FROM tên bảng 83 WHERE năm = 1999 | SELECT vị_trí FROM tên_bảng_83 WHERE năm = 1999 |
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 SINH VIÊN(STU NUM int,STU LNAME varchar(15),STU FNAME varchar(15),STU INIT varchar(1),STU DOB datetime,STU HRS int,STU CLASS varchar(2),STU GPA float(8),STU TRANSFER numeric,DEPT CODE varchar(18),STU PHONE varchar(4),PROF NUM int) CREATE TABLE LỚP(CLASS CODE varchar(5),CRS CODE varchar(10),CLASS SECTION varchar(2),CLASS TIME varchar(20),CLASS ROOM varchar(8),PROF NUM int) CREATE TABLE 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 ĐĂNG KÝ(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 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 SINH_VIÊN(STU_NUM int,STU_LNAME varchar(15),STU_FNAME varchar(15),STU_INIT varchar(1),STU_DOB datetime,STU_HRS int,STU_CLASS varchar(2),STU_GPA float(8),STU_TRANSFER_numeric,DEPT_CODE varchar(18),STU_PHONE varchar(4),PROF_NUM int) CREATE TABLE LỚP(CLASS_CODE varchar(5),CRS_CODE varchar(10),CLASS_SECTION varchar(2),CLASS_TIME varchar(20),CLASS_ROOM varchar(8),PROF_NUM int) CREATE TABLE 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 ĐĂNG_KÝ(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)) | Trực quan hóa biểu đồ thanh cho biết sinh viên dành bao nhiêu giờ để học ở mỗi khoa? và sắp xếp DEPT CODE từ thứ tự cao xuống thấp. | Trực_quan hóa_biểu đồ_thanh cho biết sinh_viên dành bao_nhiêu giờ để học ở mỗi khoa ? và sắp_xếp DEPT_CODE từ thứ_tự cao xuống thấp . | SELECT DEPT CODE, SUM ( STU HRS ) FROM SINH VIÊN GROUP BY DEPT CODE ORDER BY DEPT CODE DESC | SELECT DEPT_CODE, SUM ( STU_HRS ) FROM SINH_VIÊN GROUP BY DEPT_CODE ORDER BY DEPT_CODE DESC |
wikisql | CREATE TABLE table 66390("Năm" real,"Tiêu đề" text,"Loại" text,"Nhãn" text,"Nhãn-Nr" text) | CREATE TABLE table_66390("Năm" real,"Tiêu_đề" text,"Loại" text,"Nhãn" text,"Nhãn-Nr" text) | Tên bài hát từ năm 1963 trên nhãn Pacific Jazz và Label-Nr của st-81 là gì? | Tên bài hát từ năm 1963 trên nhãn Pacific_Jazz và Label-Nr của st-81 là gì ? | SELECT "Tiêu đề" FROM table 66390 WHERE "Label" = 'nhạc jazz Thái Bình Dương' AND "Năm" = '1963' AND "LabelNr" = 'st81' | SELECT "Tiêu_đề" FROM table_66390 WHERE "Label" = "nhạc jazz_Thái_Bình_Dương"_ AND "Năm" = "1963" AND "LabelNr" = "st81" |
sql_create_context | CREATE TABLE table name 29(tiêu đề VARCHAR,no in series INTEGER) | CREATE TABLE table_name_29(tiêu_đề VARCHAR,no_in_series INTEGER) | Tiêu đề của các tập trước tập 4 là gì? | Tiêu_đề của các tập trước tập 4 là gì ? | SELECT tiêu đề FROM tên bảng 29 WHERE số trong series < 4 | SELECT tiêu_đề FROM tên_bảng_29 WHERE số_trong_series < 4 |
spider | CREATE TABLE nhà cung cấp(supplier id number,supplier name text,supplier phone text) CREATE TABLEnhà cung cấp addresses(supplier id number,address id number,date from time,date to time) CREATE TABLEproduct suppliers(product id number,nhà cung cấp id number,ngày supplied from time,date supplied to time,total amount purchased text,total value purchased number) CREATE TABLE nhân viên(staff id number,staff gender text,staff name text) CREATE TABLE khách hàng(customer id number,Payment method code text,customer code text,customer name text,customer address text,customer phone text,customer email text) CREATE TABLEproducts(product id number,product type code text,product name text,product price number) CREATE TABLE nhân viên bộ phận phân công(Staff id number,department id number,date tasked from time,job title code text,date tasked to time) CREATE TABLE order items(order item id number,order id number,product id number) CREATE TABLE các phòng ban(department id number,dept store id number,tên bộ phận text) CREATE TABLEbộ phận cửa hàng(dept store id number,dept store chain id number,store name text,store address text,store phone text,store email text) CREATE TABLE customer addresses(customer id number,address id number,ngày từ time,ngày đến time) CREATE TABLE địa chỉ(address id number,address details text) CREATE TABLE customer orders(order id number,customer id number,order status code text,order date time) CREATE TABLE Department store chain(dept store chain id number,dept store chain name text) | CREATE TABLE nhà_cung_cấp(supplier_id number,supplier_name text,supplier_phone text) CREATE TABLEnhà cung_cấp_addresses(supplier_id number,address_id number,date_from time,date_to time) CREATE TABLEproduct_suppliers(product_id number,nhà_cung cấp_id number,ngày_supplied_from time,date_supplied_to time,total_amount_purchased text,total_value_purchased number) CREATE TABLE nhân_viên(staff_id number,staff_gender text,staff_name text) CREATE TABLE khách_hàng(customer_id number,Payment_method_code text,customer_code text,customer_name text,customer_address text,customer_phone text,customer_email text) CREATE TABLEproducts(product_id number,product_type_code text,product_name text,product_price number) CREATE TABLE nhân viên_bộ phận_phân_công(Staff_id number,department_id number,date_tasked_from time,job_title_code text,date_tasked_to time) CREATE TABLE order_items(order_item_id number,order_id number,product_id number) CREATE TABLE các phòng_ban(department_id number,dept_store_id number,tên_bộ_phận text) CREATE TABLEbộ phận_cửa hàng(dept_store_id number,dept_store_chain_id number,store_name text,store_address text,store_phone text,store_email text) CREATE TABLE customer_addresses(customer_id number,address_id number,ngày_từ time,ngày_đến time) CREATE TABLE địa_chỉ(address_id number,address_details text) CREATE TABLE customer_orders(order_id number,customer_id number,order_status_code text,order_date time) CREATE TABLE Department_store_chain(dept_store_chain_id number,dept_store_chain_name text) | Liệt kê tên của tất cả các khách hàng riêng biệt đã mua bàn phím. | Liệt_kê tên của tất_cả các khách_hàng riêng_biệt đã mua bàn_phím . | SELECT DISTINCT T1.customer name FROM khách hàng AS T1 JOIN customer orders AS T2 ON T1.customer id = T2.customer id JOIN order items AS T3 ON T2.order id = T3.order id JOIN sản phẩm AS T4 ONT3.product id = T4.product id WHERE T4.product name = "bàn phím" | SELECT DISTINCT T1.customer_name FROM khách_hàng AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN sản_phẩm AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = "bàn_phím" |
criteria2sql | CREATE TABLE table train 198("id" int,"hemoglobin a1c hba1c" float,"fasting plasma glucose" int,"diabetes" bool,"body mass index bmi" float,"type 1 bệnh nhân" bool,"NOUSE" float) | CREATE TABLE table_train_198("id" int,"hemoglobin_a1c_hba1c" float,"fasting_plasma_glucose" int,"diabetes" bool,"body_mass_index_bmi" float,"type_1_bệnh_nhân" bool,"NOUSE" float) | hemoglobin a1c lúc sàng lọc là 7 10%. | hemoglobin a1c lúc sàng_lọc là 7 _ 10 % . | SELECT * FROM table train 198 WHERE hemoglobin a1c hba1c >= 7 AND hemoglobin a1c hba1c <= 10 | SELECT * FROM table_train_198 WHERE hemoglobin_a1c_hba1c > = 7 AND hemoglobin_a1c_hba1c < = 10 |
spider | CREATE TABLE bầu cử(election id number,counties ređại diện text,quận number,đại biểu text,đảng number,được bầu lần đầu number,ủy ban text) CREATE TABLE đảng(party id number,năm number,đảng text,thống đốc text,trung thống đốc text,kiểm soát viên text,attorney general text,us senate text) CREATE TABLE quận(county id number,county name text,population number,zip code text) | CREATE TABLE bầu_cử(election_id number,counties_ređại_diện text,quận number,đại_biểu text,đảng number,được bầu lần đầu number,ủy ban text) CREATE TABLE đảng(party_id number,năm number,đảng text,thống_đốc text,trung_thống_đốc text,kiểm_soát_viên text,attorney_general text,us_senate text) CREATE TABLE quận(county_id number,county_name text,population number,zip_code text) | Phó thống đốc và kiểm soát viên của đảng dân chủ là ai? | Phó thống_đốc và kiểm_soát_viên của đảng dân_chủ là ai ? | SELECT trung úy thống đốc,kiểm soát viên FROM đảng WHERE đảng = "Dân chủ" | SELECT trung úy_thống_đốc,kiểm_soát_viên FROM đảng WHERE đảng = "Dân_chủ" |
wikisql | CREATE TABLE table 28783("Không." real,"Tiêu đề" text,"Đạo diễn" text,"Viết bởi" text,"Người miêu tả bệnh nhân" text,"Ngày phát sóng ban đầu" text,"Sản xuất mã số" real) | CREATE TABLE table_28783("Không." real,"Tiêu_đề" text,"Đạo_diễn" text,"Viết bởi" text,"Người miêu_tả bệnh_nhân" text,"Ngày phát_sóng ban_đầu" text,"Sản_xuất mã_số" real) | ai đã đạo diễn và sản xuất 176452? | ai đã đạo_diễn và sản_xuất 176452 ? | SELECT "Đạo diễn" FROM table 28783 WHERE "Mã sản xuất" = '176452' | SELECT "Đạo_diễn" FROM table_28783 WHERE "Mã_sản_xuất" = "176452" |
sede | CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE 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 PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE 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 PostHistoryTypes(Id number,Name text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE ReviewRejectionLý do(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE 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 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 ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) 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 PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatPostId number,LinkTypeId number) CREATE TABLE PostTags(PostId number,TagId number) | CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Name text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE 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 PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE 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 PostHistoryTypes(Id number,Name text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE ReviewRejectionLý do(Id number,Name text,Description text,PostTypeId number) CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE CloseReasonTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLicen text) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE 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 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 ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Class number,TagBased boolean) CREATE TABLE VoteTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) 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 PostFeedback(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostLinks(Id number,CreationDate time,PostId number,RelatPostId number,LinkTypeId number) CREATE TABLE PostTags(PostId number,TagId number) | Tiến trình huy hiệu dành cho Tò mò, Tò mò và Socrates. Dành cho người dùng quan tâm đến tiến trình huy hiệu của họ. | Tiến_trình huy_hiệu dành cho Tò_mò , Tò_mò và Socrates . Dành cho người dùng quan_tâm đến tiến_trình huy_hiệu của họ . | SELECT CASE WHEN ngày >= 5 THEN 'Có' ELSE CONCAT ( ngày,'',5 ) END AS Tò mò, CASE WHEN ngày >= 30 THEN 'Có' ELSE CONCAT ( ngày,'',30 ) END AS Tò mò, CASE WHEN ngày >= 100 THEN 'Có' ELSE CONCAT ( ngày,'',100 ) END AS Socratic FROM ( SELECT ( * ) COUNT ngày AS ( FROM DATEDIFF ( d,CreationDate,GETDATE ( ) ) SELECT CreationDay,AS ( SUM CASE Điểm > 0 WHEN Ngày đóng AND IS NULL 1 THEN 0 ELSE ) END lên,AS ( SUM CASE Điểm < 1 WHEN OR Ngày đóng NOT IS NULL 1 THEN 0 ELSE ) END xuống AS Bài viết FROM OwnerUserId = ' WHERE UserId AND ' GROUP PostTypeId = 1 BY AS DATEDIFF ( d,CreationDate,GETDATE ( ) ) ) WHERE x AND up > 0 AS down = 0 ) y | SELECT CASE WHEN ngày > = 5 THEN "Có" ELSE _CONCAT ( ngày,"",5 ) END AS Tò_mò, CASE WHEN ngày > = 30 THEN "Có" ELSE _CONCAT ( ngày,"",30 ) END AS Tò_mò, CASE WHEN ngày > = 100 THEN "Có" ELSE _CONCAT ( ngày,"",100 ) END AS Socratic FROM ( SELECT _ ( * ) COUNT ngày AS ( FROM DATEDIFF ( d,CreationDate,GETDATE ( ) ) SELECT CreationDay,AS ( SUM CASE Điểm > 0 WHEN Ngày đóng AND IS NULL 1 THEN 0 ELSE ) END lên,AS ( SUM CASE Điểm < 1 WHEN _OR Ngày đóng NOT IS NULL 1 THEN 0 ELSE ) END xuống AS Bài viết FROM OwnerUserId = " WHERE UserId AND " GROUP_PostTypeId = 1 BY AS DATEDIFF ( d,CreationDate,GETDATE ( ) ) ) WHERE x AND up > 0 AS down = 0 ) y |
sql_create_context | CREATE TABLE table 21436373 8(loại bản ghi VARCHAR,kết quả trò chơi VARCHAR) | CREATE TABLE table_21436373_8(loại_bản ghi VARCHAR,kết_quả_trò chơi VARCHAR) | Kỷ lục nào được thiết lập khi kết quả/trận đấu bằng 9 trận (trung bình 28.595) | Kỷ_lục nào được thiết_lập khi kết_quả / trận đấu bằng 9 trận ( trung_bình 28.595 ) | SELECT type of record FROM table 21436373 8 WHERE result games = "9 trận ( trung bình 28.595 ) " | SELECT type_of_record FROM table_21436373_8 WHERE result_games = "9 trận ( trung_bình 28.595 ) " |
wikisql | CREATE TABLE table 17541("Quốc gia" text,"Tiền tệ" text,"1 Euro =" text,"1 USD =" text,"Ngân hàng trung ương" text) | CREATE TABLE table_17541("Quốc_gia" text,"Tiền_tệ" text,"1 Euro =" text,"1 USD =" text,"Ngân_hàng trung_ương" text) | Tên quốc gia nơi 1 USD bằng 1,71577 nội tệ là gì? | Tên quốc_gia nơi 1 USD bằng 1,71577 nội_tệ là gì ? | SELECT "Quốc gia" FROM table 17541 WHERE "1 USD =" = '1.71577' | SELECT "Quốc_gia" FROM table_17541 WHERE "1 USD =" = "1.71577" |
nvbench | CREATE TABLE trạng thái(statusId INTEGER,status TEXT) CREATE TABLE cuộc đua(raceId INTEGER,năm INTEGER,round INTEGER,CircuitId INTEGER,tên TEXT,date TEXT,time TEXT,url TEXT) CREATE TABLE constructorStandings(constructorSandingsId INTEGER,raceId INTEGER,constructorId INTEGER,points REAL,position INTEGER,positionText TEXT,wins INTEGER) CREATE TABLE đủ điều kiện(qualifyId INTEGER,raceId INTEGER,driverId INTEGER,constructorId INTEGER,number INTEGER,position INTEGER,q1 TEXT,q2 TEXT,q3 TEXT) CREATE TABLE Season(năm INTEGER,url TEXT) CREATE TABLE driverStandings(driverStandingsId INTEGER,raceId INTEGER,driverId INTEGER,points REAL,position INTEGER,positionText TEXT,wins INTEGER) CREATE TABLE lapTimes(raceId INTEGER,driverId INTEGER,lap INTEGER,position INTEGER,time TEXT,mili giây INTEGER) CREATE TABLE constructor(constructorId INTEGER,constructorRef TEXT,name TEXT,quốc tịch TEXT,url TEXT) CREATE TABLE constructorResults(constructorResultsId INTEGER,raceId INTEGER,constructorId INTEGER,điểm REAL,trạng thái TEXT) CREATE TABLE pitStops(raceId INTEGER,driverId INTEGER,stop INTEGER,lap INTEGER,time TEXT,duration TEXT,mili giây INTEGER) CREATE TABLE kết quả(resultId INTEGER,raceId INTEGER,driverId INTEGER,constructorId INTEGER,number INTEGER,grid INTEGER,position TEXT,positionText TEXT,positionOrder INTEGER,points REAL,laps TEXT,time TEXT,mili giây TEXT,fastestLap TEXT,xếp hạng TEXT,fastestLapTime TEXT,fastestLapSpeed TEXT,statusId INTEGER) CREATE TABLE driver(driverId INTEGER,driverRef TEXT,number TEXT,code TEXT,tên TEXT,họ TEXT,dob TEXT,quốc tịch TEXT,url TEXT) CREATE TABLE Circuits(CircuitId INTEGER,CircuitRef TEXT,name TEXT,location TEXT,country TEXT,lat REAL,lng REAL,alt TEXT,url TEXT) | CREATE TABLE trạng_thái(statusId INTEGER,status TEXT) CREATE TABLE cuộc đua(raceId INTEGER,năm INTEGER,round INTEGER,CircuitId INTEGER,tên TEXT,date TEXT,time TEXT,url TEXT) CREATE TABLE constructorStandings(constructorSandingsId INTEGER,raceId INTEGER,constructorId INTEGER,points REAL,position INTEGER,positionText TEXT,wins INTEGER) CREATE TABLE đủ điều_kiện(qualifyId INTEGER,raceId INTEGER,driverId INTEGER,constructorId INTEGER,number INTEGER,position INTEGER,q1 TEXT,q2 TEXT,q3 TEXT) CREATE TABLE Season(năm INTEGER,url TEXT) CREATE TABLE driverStandings(driverStandingsId INTEGER,raceId INTEGER,driverId INTEGER,points REAL,position INTEGER,positionText TEXT,wins INTEGER) CREATE TABLE lapTimes(raceId INTEGER,driverId INTEGER,lap INTEGER,position INTEGER,time TEXT,mili giây INTEGER) CREATE TABLE constructor(constructorId INTEGER,constructorRef TEXT,name TEXT,quốc_tịch TEXT,url TEXT) CREATE TABLE constructorResults(constructorResultsId INTEGER,raceId INTEGER,constructorId INTEGER,điểm REAL,trạng_thái TEXT) CREATE TABLE pitStops(raceId INTEGER,driverId INTEGER,stop INTEGER,lap INTEGER,time TEXT,duration TEXT,mili giây INTEGER) CREATE TABLE kết_quả(resultId INTEGER,raceId INTEGER,driverId INTEGER,constructorId INTEGER,number INTEGER,grid INTEGER,position TEXT,positionText TEXT,positionOrder INTEGER,points REAL,laps TEXT,time TEXT,mili giây TEXT,fastestLap TEXT,xếp_hạng TEXT,fastestLapTime TEXT,fastestLapSpeed TEXT,statusId INTEGER) CREATE TABLE driver(driverId INTEGER,driverRef TEXT,number TEXT,code TEXT,tên TEXT,họ TEXT,dob TEXT,quốc_tịch TEXT,url TEXT) CREATE TABLE Circuits(CircuitId INTEGER,CircuitRef TEXT,name TEXT,location TEXT,country TEXT,lat REAL,lng REAL,alt TEXT,url TEXT) | Id và vị trí của tất cả các mạch ở Pháp hoặc Bỉ Hiển thị biểu đồ thanh, bạn có thể sắp xếp trục X từ thứ tự cao đến thấp không? | Id và vị_trí của tất_cả các mạch ở Pháp hoặc Bỉ_Hiển thị_biểu đồ_thanh , bạn có_thể sắp_xếp trục X từ thứ_tự cao đến thấp không ? | SELECT vị trí,CircuitId FROM mạch WHERE country = "Pháp" OR country = "Bỉ" ORDER BY vị trí DESC | SELECT vị_trí,CircuitId FROM mạch WHERE country = "Pháp" OR country = "Bỉ" ORDER BY vị_trí DESC |
wikisql | CREATE TABLE table 15625("Ngày" text,"Địa điểm" text,"Điểm" text,"Kết quả" text,"Thi đấu" text) | CREATE TABLE table_15625("Ngày" text,"Địa_điểm" text,"Điểm" text,"Kết_quả" text,"Thi_đấu" text) | Khi nào có tỷ số 7-1? | Khi nào có tỷ_số 7-1 ? | SELECT "Ngày" FROM table 15625 WHERE "Điểm" = '71' | SELECT "Ngày" FROM table_15625 WHERE "Điểm" = "71" |
sql_create_context | CREATE TABLE table 20217811 1(xanh VARCHAR,cử tri VARCHAR) | CREATE TABLE table_20217811_1(xanh VARCHAR,cử_tri VARCHAR) | Đặt tên màu xanh cho otaki | Đặt tên màu xanh cho otaki | SELECT xanh FROM table 20217811 1 WHERE cử tri = "Otaki" | SELECT xanh FROM table_20217811_1 WHERE cử_tri = "Otaki" |
wikisql | CREATE TABLE table 68513("Hạng" real,"Ngõ" real,"Tên" text,"Quốc tịch" text,"Thời gian" real) | CREATE TABLE table_68513("Hạng" real,"Ngõ" real,"Tên" text,"Quốc_tịch" text,"Thời_gian" real) | Cho tôi biết tên của thời gian 25,74 | Cho tôi biết tên của thời_gian 25,74 | SELECT "Tên" FROM table 68513 WHERE "Thời gian" = '25,74' | SELECT "Tên" FROM table_68513 WHERE "Thời_gian" = "25,74" |
wikisql | CREATE TABLE table 43287("Tàu" text,"Số thân tàu." text,"Được ủy quyền" text,"Người đóng tàu" text,"Cảng nhà" text,"Trang NVR" text) | CREATE TABLE table_43287("Tàu" text,"Số thân tàu." text,"Được ủy_quyền" text,"Người đóng_tàu" text,"Cảng nhà" text,"Trang_NVR" text) | Trang NVR của tàu có Cảng nhà ở Sasebo, Nhật Bản là gì? | Trang_NVR của tàu có Cảng nhà ở Sasebo , Nhật_Bản là gì ? | SELECT "Trang NVR" FROM table 43287 WHERE "Home Port" = 'sasebo,japan' | SELECT "Trang_NVR" FROM table_43287 WHERE "Home_Port" = "sasebo,japan" |
wikisql | CREATE TABLE table 25627("Quận" text,"Gore %" text,"Gore #" real,"Bush %" text,"Bush #" real,"Khác %" text,"Khác #" text) | CREATE TABLE table_25627("Quận" text,"Gore %" text,"Gore_#" real,"Bush %" text,"Bush_#" real,"Khác %" text,"Khác #" text) | Đặt tên số lượng bụi % cho elko | Đặt tên số_lượng bụi % cho elko | SELECT COUNT ( "Bụi " ) FROM table 25627 WHERE "Quận" = 'Elko' | SELECT COUNT ( "Bụi " ) FROM table_25627 WHERE "Quận" = "Elko" |
wikisql | CREATE TABLE table 10534("Số" real,"Quận" text,"Kích thước km\u00b2" real,"Dân số" real,"Mật độ cư trú/km" real,"Ủy viên hội đồng" text,"Đảng" text) | CREATE TABLE table_10534("Số" real,"Quận" text,"Kích_thước km\_u00b2" real,"Dân_số" real,"Mật_độ cư_trú/km" real,"Ủy_viên hội_đồng" text,"Đảng" text) | km kích thước là bao nhiêu khi mật độ hab/km là 8.321? | km kích_thước là bao_nhiêu khi mật_độ hab / km là 8.321 ? | SELECT SUM ( "Kích thước kmu00b2" ) FROM table 10534 WHERE "Mật độ habkm" = '8,321' | SELECT SUM ( "Kích_thước kmu00b2" ) FROM table_10534 WHERE "Mật_độ habkm" = "8,321" |
sql_create_context | CREATE TABLE table name 14(high rebounds VARCHAR,location attendance VARCHAR) | CREATE TABLE table_name_14(high_rebounds VARCHAR,location_attendance VARCHAR) | Số lần bật lại cao là gì khi Điểm tham dự địa điểm là 'Đấu trường cáp Time Warner 10,848'? | Số lần bật lại cao là gì khi Điểm tham_dự địa_điểm là ' Đấu_trường cáp Time_Warner 10,848 ' ? | SELECT high rebounds FROM table name 14 WHERE location attendance = "đấu trường cáp time warner 10,848" | SELECT high_rebounds FROM table_name_14 WHERE location_attendance = "đấu trường_cáp time warner 10,848" |
wikisql | CREATE TABLE table 40426("Mùa giải" text,"Hội nghị" text,"Phân chia" text,"Kết thúc" text,"Thắng" text,"Thua" text) | CREATE TABLE table_40426("Mùa giải" text,"Hội_nghị" text,"Phân_chia" text,"Kết_thúc" text,"Thắng" text,"Thua" text) | Điều gì cho thấy Thắng khi có Hội nghị của giải miền Tây vào mùa giải 1967-68? | Điều gì cho thấy Thắng khi có Hội_nghị của giải miền Tây vào mùa giải 1967 - 68 ? | SELECT "Thắng" FROM table 40426 WHERE "Hội nghị" = '' AND "Bộ phận" = 'miền Tây' AND "Mùa giải" = '196768' | SELECT "Thắng" FROM table_40426 WHERE "Hội_nghị" = "" AND "Bộ_phận" = "miền Tây" AND "Mùa giải" = "1967 68" |
sql_create_context | CREATE TABLE tên bảng 22(động cơ VARCHAR,trình điều khiển VARCHAR) | CREATE TABLE tên_bảng_22(động_cơ VARCHAR,trình điều_khiển VARCHAR) | Động cơ của Michele Alboreto là gì? | Động_cơ của Michele_Alboreto là gì ? | SELECT engine FROM table name 22 WHERE driver = "michele alboreto" | SELECT engine FROM table_name_22 WHERE driver = "michele alboreto" |
wikisql | CREATE TABLE table 406("Tên" text,"#" real,"Vị trí" text,"Chiều cao" text,"Cân nặng" real,"Năm" text,"Quê hương" text,"Trung học phổ thông" text) | CREATE TABLE table_406("Tên" text,"#" real,"Vị_trí" text,"Chiều cao" text,"Cân nặng" real,"Năm" text,"Quê_hương" text,"Trung_học_phổ_thông" text) | Trường trung học Crockett có số (#) nào? | Trường trung_học_Crockett có số ( # ) nào ? | SELECT "" FROM table 406 WHERE "Trung học" = 'Crockett' | SELECT "" FROM table_406 WHERE "Trung_học" = "Crockett" |
eicu | CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE chi phí(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE đầu ra đầu vào(đầu ra id number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime 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 Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Patient(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,mệnh viện number,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 dị ứng(dị ứng number,bệnh nhân đơn vị lưu trú number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) | CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE chi_phí(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE đầu_ra đầu_vào(đầu_ra id number,Patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime 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 Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Patient(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,mệnh_viện number,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 dị_ứng(dị_ứng number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) | Bệnh nhân 017-20711 đi tiểu lần cuối vào tháng trước/15 vào lúc nào? | Bệnh_nhân 017 - 20711 đi_tiểu lần cuối vào tháng trước / 15 vào lúc_nào ? | SELECT lượng xuất ra.lượng nhập ra thời gian FROM lượng nhập ra WHERE lượng nhập ra.bệnh nhânunitstayid IN ( SELECT bệnh nhân.bệnh nhânunitstayid FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '01720711 ' ) ) AND Intakeoutput.cellpath LIKE 'output' AND Intakeoutput.celllabel = 'nước tiểu' AND DATETIME ( intakeoutput.intakeoutputtime,'bắt đầu tháng' ) = DATETIME ( CURRENT TIME ( ) ,'start của tháng','1 tháng' ) AND STRFTIME ( 'd',intakeoutput.intakeoutputtime ) = '15' ORDER BY Intakeoutput.intakeoutputtime DESC LIMIT 1 | SELECT lượng xuất ra.lượng nhập ra thời_gian FROM lượng nhập ra WHERE lượng nhập ra.bệnh nhânunitstayid IN ( SELECT bệnh_nhân.bệnh nhânunitstayid FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "017 20711" ) ) AND Intakeoutput.cellpath LIKE " output " AND Intakeoutput.celllabel = "nước_tiểu" AND DATETIME ( intakeoutput.intakeoutputtime,"bắt_đầu tháng" ) = DATETIME ( CURRENT_TIME ( ) ,"start của tháng"," 1 tháng" ) AND STRFTIME ( " d",intakeoutput.intakeoutputtime ) = "15" ORDER BY Intakeoutput.intakeoutputtime DESC LIMIT 1 |
wikisql | CREATE TABLE table 26419("Kết quả" text,"Năm" real,"Vô địch" text,"Bề mặt" text,"Đối tác" text,"Đối thủ" text,"Điểm" text) | CREATE TABLE table_26419("Kết_quả" text,"Năm" real,"Vô_địch" text,"Bề_mặt" text,"Đối_tác" text,"Đối_thủ" text,"Điểm" text) | Kể tên kết quả cho Zurich | Kể tên kết_quả cho Zurich | SELECT "Kết quả" FROM table 26419 WHERE "Vô địch" = 'Zurich' | SELECT "Kết_quả" FROM table_26419 WHERE "Vô_địch" = "Zurich" |
wikisql | CREATE TABLE table 14105("Mùa giải" text,"Giải đấu" text,"Tms." text,"Pos." text,"PFF NMCC" text,"UFL Cup" text,"AFC PC" text) | CREATE TABLE table_14105("Mùa giải" text,"Giải đấu" text,"Tms." text,"Pos." text,"PFF_NMCC" text,"UFL_Cup" text,"AFC_PC" text) | NMCC nào có MẢNH AFC của dna? | NMCC nào có MẢNH_AFC của dna ? | SELECT "PFF NMCC" FROM table 14105 WHERE "AFC PC" = 'dnq' | SELECT "PFF_NMCC" FROM table_14105 WHERE "AFC_PC" = "dnq" |
wikisql | CREATE TABLE table 52955("Trình điều khiển" text,"Trình xây dựng" text,"Vòng" real,"Thời gian/Đã nghỉ hưu" text,"Lưới" real) | CREATE TABLE table_52955("Trình điều_khiển" text,"Trình xây_dựng" text,"Vòng" real,"Thời_gian/Đã nghỉ hưu" text,"Lưới" real) | Peter Arundell có bao nhiêu vòng? | Peter Arundell có bao_nhiêu vòng ? | SELECT "Vòng" FROM table 52955 WHERE "Trình điều khiển" = 'peter arundell' | SELECT "Vòng" FROM table_52955 WHERE "Trình điều_khiển" = "peter arundell" |
sql_create_context | CREATE TABLE table name 61(đám đông INTEGER,địa điểm VARCHAR) | CREATE TABLE table_name_61(đám đông INTEGER,địa_điểm VARCHAR) | Quy mô đám đông của trò chơi tại Brunswick Street Oval là bao nhiêu? | Quy_mô đám đông của trò_chơi tại Brunswick Street_Oval là bao_nhiêu ? | SELECT SUM ( đám đông ) FROM table name 61 WHERE địa điểm = "hình bầu dục đường phố Brunswick" | SELECT SUM ( đám đông ) FROM table_name_61 WHERE địa_điểm = "hình bầu_dục đường_phố Brunswick" |
sql_create_context | CREATE TABLE table name 3(giải đấu VARCHAR,người chiến thắng VARCHAR) | CREATE TABLE table_name_3(giải đấu VARCHAR,người chiến_thắng VARCHAR) | Đặt tên cho giải đấu dành cho người thắng kèo patrick | Đặt tên cho giải đấu dành cho người thắng kèo patrick | SELECT giải đấu FROM tên bảng 3 WHERE người chiến thắng = "patrick kèo" | SELECT giải đấu FROM tên_bảng_3 WHERE người chiến_thắng = "patrick_kèo" |
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 ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE Huy hiệu(Id number,UserId number,Name text,Date time,Lớp number,TagBased boolean) 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 PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE FlagTypes(Id number,Tên text,Mô tả text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Đề xuấtChỉnh sửa(Id number,PostId number,Ngày tạo time,Ngày phê duyệt time,Ngày từ chối time,OwnerUserId number,Nhận xét text,Text text,Tiêu đề text,Thẻ text,Bản sửa đổiGUID khác) CREATE TABLE Phản hồi bài đăng(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE 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,Description text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Lý do từ chối đánh giá(Id number,Tên text,Mô tả text,PostTypeId 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 ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE CloseAsOffTopicReasonTypes(Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDate time,CreationModeratorId number,ApprovalDate time,ApprovalModeratorId number,DeactivationDate time,DeactivationModeratorId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE Huy_hiệu(Id number,UserId number,Name text,Date time,Lớp number,TagBased boolean) 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 PostLinks(Id number,CreationDate time,PostId number,RelationPostId number,LinkTypeId number) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE PostTags(PostId number,TagId number) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE FlagTypes(Id number,Tên text,Mô_tả text) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE Bài viết(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Body text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE VoteTypes(Id number,Tên text) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE Đề_xuấtChỉnh sửa(Id number,PostId number,Ngày tạo time,Ngày phê_duyệt time,Ngày từ_chối time,OwnerUserId number,Nhận_xét text,Text text,Tiêu_đề text,Thẻ text,Bản sửa đổiGUID khác) CREATE TABLE Phản_hồi bài đăng(Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE 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,Description text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE Lý_do từ_chối đánh_giá(Id number,Tên text,Mô_tả text,PostTypeId number) | Mức độ phổ biến của các khung JavaScript (Ang, BB, Emb & KO) theo tháng trong một khoảng thời gian nhất định. | Mức_độ phổ_biến của các khung JavaScript ( Ang , BB , Emb & KO ) theo tháng trong một khoảng thời_gian nhất_định . | SELECT LEFT ( TagName,7 ) AS Tag, COUNT ( PostId ) AS NumPosts,CAST ( YEAR ( Posts.CreationDate ) AS TEXT ( 4 ) ) '' RIGHT ( '0' CAST ( MONTH ( Posts.CreationDate ) AS TEXT ( 3 ) ) ,2 ) FROM Tags,PostTags,Posts WHERE Tags.Id = PostTags.TagId AND Post.Id = PostId AND TagName IN ( 'ember.js','ember','emberjs','angular','angular.js','angularjs','knockout','knockoutjs','knockout.js','backbone','backbonejs','backbone.js' ) GROUP BY LEFT ( TagName,7 ) ,CAST ( YEAR ( Posts.CreationDate ) AS TEXT ( 4 ) ) '' RIGHT ( '0' CAST ( THÁNG ( Bài viết.Ngày tạo ) AS TEXT ( 3 ) ) ,2 ) ORDER BY 3 | SELECT LEFT ( TagName,7 ) AS Tag, COUNT ( PostId ) AS NumPosts,CAST ( YEAR ( Posts.CreationDate ) AS TEXT ( 4 ) ) "" RIGHT ( "0" CAST ( MONTH ( Posts.CreationDate ) AS TEXT ( 3 ) ) ,2 ) FROM Tags,PostTags,Posts WHERE Tags.Id = PostTags.TagId AND Post.Id = PostId AND TagName IN ( "ember.js","ember","emberjs","angular","angular.js","angularjs","knockout","knockoutjs","knockout.js","backbone","backbonejs","backbone.js" ) GROUP BY LEFT ( TagName,7 ) ,CAST ( YEAR ( Posts.CreationDate ) AS TEXT ( 4 ) ) "" RIGHT ( "0" CAST ( THÁNG ( Bài viết.Ngày tạo ) AS TEXT ( 3 ) ) ,2 ) ORDER BY 3 |
sql_create_context | CREATE TABLE tên bảng 39(danh mục VARCHAR,định dạng VARCHAR) | CREATE TABLE tên_bảng_39(danh_mục VARCHAR,định_dạng VARCHAR) | Danh mục nào có định dạng 'CD Remastered với 3 bản nhạc thưởng'? | Danh_mục nào có định_dạng ' CD_Remastered với 3 bản nhạc thưởng ' ? | SELECT danh mục FROM table name 39 WHERE format = "cd được làm lại với 3 bản nhạc bổ sung" | SELECT danh_mục FROM table_name_39 WHERE format = "cd được làm lại với 3 bản_nhạc bổ_sung" |
wikisql | CREATE TABLE table 64539("Xếp hạng" text,"Nhóm" text,"Tên" text,"Quốc tịch" text,"Mark" text) | CREATE TABLE table_64539("Xếp_hạng" text,"Nhóm" text,"Tên" text,"Quốc_tịch" text,"Mark" text) | Thứ hạng nào có nhãn hiệu NM và đến từ Ấn Độ? | Thứ_hạng nào có nhãn_hiệu NM và đến từ Ấn_Độ ? | SELECT "Xếp hạng" FROM table 64539 WHERE "Mark" = 'nm' AND "Quốc tịch" = 'Ấn Độ' | SELECT "Xếp_hạng" FROM table_64539 WHERE "Mark" = "nm" AND "Quốc_tịch" = "Ấn_Độ" |
nvbench | CREATE TABLE artist(Artist ID int,Artist text,Age int,Famous Title text,Famous Release date text) CREATE TABLE music festival(ID int,Music Festival text,Date of ceremony text,Category text,Tập int,Kết quả text) CREATE TABLE tập(Tập ID int,Tập Số phát hành text,Ngày phát hành text,Số tuần trên Top real,Bài hát text,ID nghệ sĩ int) | CREATE TABLE artist(Artist_ID int,Artist text,Age int,Famous_Title text,Famous_Release_date text) CREATE TABLE music_festival(ID int,Music_Festival text,Date_of_ceremony text,Category text,Tập int,Kết_quả text) CREATE TABLE tập(Tập_ID int,Tập_Số phát_hành text,Ngày phát_hành text,Số tuần_trên_Top real,Bài hát text,ID_nghệ_sĩ int) | Số hạng mục của lễ hội âm nhạc có kết quả 'Được trao giải' là bao nhiêu?, Vui lòng xếp hạng trục y theo thứ tự mô tả. | Số hạng_mục của lễ_hội âm_nhạc có kết_quả ' Được trao giải ' là bao_nhiêu ? , Vui_lòng xếp_hạng trục_y theo thứ_tự mô_tả . | SELECT Danh mục, COUNT ( Danh mục ) FROM music festival WHERE Kết quả = "Được trao giải" GROUP BY Danh mục ORDER BY COUNT ( Danh mục ) DESC | SELECT Danh_mục, COUNT ( Danh_mục ) FROM music_festival WHERE Kết_quả = "Được trao giải" GROUP BY Danh_mục ORDER BY COUNT ( Danh_mục ) DESC |
eicu | CREATE TABLE chẩn đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,hospitalid number,khu trú number,chiều cao nhập viện number,cân nặng nhập viện number,khối lượng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE dị ứng(dị ứng number,BNunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE thuốc(mã hóa thuốc number,BNunitstayid number,tên thuốc text,liều lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE cost(costid number,uniquepid text,bệnh nhânhealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Vital Periodic(Vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,tâm thu hệ thống number,tâm trương hệ thống number,trung bình hệ thống number,thời gian quan sát time) CREATE TABLE lab(labid number,Patientunitstayid number,tên phòng thí nghiệm text,labresult number,labresulttime time) CREATE TABLE đầu ra đầu vào(id đầu ra number,bệnh nhân đơn vị lưu trú number,đường dẫn tế bào text,nhãn tế bào text,giá trị số tế bào number,thời gian đầu ra time) | CREATE TABLE chẩn_đoán(diagnosisid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,hospitalid number,khu trú number,chiều cao nhập_viện number,cân nặng nhập_viện number,khối_lượng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE dị_ứng(dị_ứng number,BNunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE thuốc(mã hóa thuốc number,BNunitstayid number,tên thuốc text,liều_lượng text,routeadmin text,drugstarttime time,drugstoptime time) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE cost(costid number,uniquepid text,bệnh nhânhealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number) CREATE TABLE Treatment(Treatmentid number,Patientunitstayid number,Treatmentname text,Treatmenttime time) CREATE TABLE Vital_Periodic(Vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,tâm_thu hệ_thống number,tâm_trương hệ_thống number,trung_bình hệ_thống number,thời_gian quan_sát time) CREATE TABLE lab(labid number,Patientunitstayid number,tên phòng_thí_nghiệm text,labresult number,labresulttime time) CREATE TABLE đầu_ra đầu_vào(id đầu_ra number,bệnh_nhân đơn_vị lưu_trú number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị số tế_bào number,thời_gian đầu_ra time) | sự khác biệt của sao2 của bệnh nhân 006-153198 được đo lần cuối trong lần thăm khám tại phòng chăm sóc đặc biệt gần đây nhất so với giá trị đầu tiên được đo trong lần thăm khám tại phòng chăm sóc đặc biệt gần đây nhất. | sự khác_biệt của sao2 của bệnh_nhân 006 - 153198 được đo lần cuối trong lần thăm_khám tại phòng chăm_sóc đặc_biệt gần đây nhất so với giá_trị đầu_tiên được đo trong lần thăm_khám tại phòng chăm_sóc đặc_biệt gần đây nhất . | SELECT ( SELECT quan trọng nhất.sao2 FROM quan trọng nhất là quan trọng.006153198' ) WHERE IN disease.unitdischargetime SELECT FROM WHERE IN disease.unitadmittime SELECT FROM 1 ) WHERE AND Vital Periodic.sao2 NOT IS NULL ORDER Vital Periodic.observationtime BY DESC 1 ) ( LIMIT quan trọng nhất.sao2 AND quan trọng định kỳ NOT quan trọng nhất.= '006153198' ) IS NULL disease.unitdischargetime ORDER BY DESC LIMIT disease.unitadmittime SELECT FROM 1 ) WHERE IN Vital Periodic.sao2 SELECT FROM WHERE IN Vital Periodic.observationtime SELECT 1 ) | SELECT ( SELECT quan_trọng nhất.sao2 FROM quan_trọng nhất là quan_trọng.006 153198 " ) WHERE IN disease.unitdischargetime SELECT FROM WHERE IN disease.unitadmittime SELECT FROM 1 ) WHERE AND Vital_Periodic.sao2 NOT IS NULL ORDER Vital_Periodic.observationtime BY DESC 1 ) ( LIMIT quan_trọng nhất.sao2 AND quan_trọng định_kỳ NOT quan_trọng nhất.=" 006 153198 " ) IS NULL disease.unitdischargetime ORDER BY DESC LIMIT disease.unitadmittime SELECT FROM 1 ) WHERE IN Vital_Periodic.sao2 SELECT FROM WHERE IN Vital_Periodic.observationtime SELECT 1 ) |
wikisql | CREATE TABLE table 24470("Đội" text,"Thể thao" text,"Liên đoàn" text,"Thành lập" real,"Bắt đầu ở St.Louis" real,"Địa điểm" text,"Giải vô địch ở St..Louis" text,"Trái St.Louis" real) | CREATE TABLE table_24470("Đội" text,"Thể_thao" text,"Liên_đoàn" text,"Thành_lập" real,"Bắt_đầu ở St.Louis" real,"Địa_điểm" text,"Giải vô_địch ở St..Louis" text,"Trái_St.Louis" real) | Làm thế nào đội bóng bắt đầu từ năm 1950 có thể giành chức vô địch? | Làm thế_nào đội bóng bắt_đầu từ năm 1950 có_thể giành_chức vô_địch ? | SELECT "Giải vô địch ở St.Louis" FROM table 24470 WHERE "Bắt đầu ở St.Louis" = '1950' | SELECT "Giải vô_địch ở St.Louis" FROM table_24470 WHERE "Bắt_đầu ở St.Louis" = "1950" |
sql_create_context | CREATE TABLE table name 61(thắng VARCHAR,mùa VARCHAR,hội nghị VARCHAR,phân đội VARCHAR) | CREATE TABLE table_name_61(thắng VARCHAR,mùa VARCHAR,hội_nghị VARCHAR,phân_đội VARCHAR) | Điều gì cho thấy Thắng khi có Hội nghị của giải miền Tây vào mùa giải 1967-68? | Điều gì cho thấy Thắng khi có Hội_nghị của giải miền Tây vào mùa giải 1967 - 68 ? | SELECT thắng FROM table name 61 WHERE Conference = "" AND Division = "Western" AND Season = "196768" | SELECT thắng FROM table_name_61 WHERE Conference = "" AND Division = "Western" AND Season = "1967 68" |
wikisql | CREATE TABLE table 34122("Trò chơi" real,"Ngày" text,"Đối thủ" text,"Kết quả" text,"Điểm của bò" real,"Điểm của đối thủ" real,"Kỷ lục" text,"Vệt" text) | CREATE TABLE table_34122("Trò_chơi" real,"Ngày" text,"Đối_thủ" text,"Kết_quả" text,"Điểm của bò" real,"Điểm của đối_thủ" real,"Kỷ_lục" text,"Vệt" text) | Bản ghi nào có Đối thủ là detroit và Điểm đối thủ nhỏ hơn 87? | Bản ghi nào có Đối_thủ là detroit và Điểm đối_thủ nhỏ hơn 87 ? | SELECT "Kỷ lục" FROM table 34122 WHERE "Đối thủ" = 'detroit' AND "Điểm đối thủ" < '87' | SELECT "Kỷ_lục" FROM table_34122 WHERE "Đối_thủ" = "detroit" AND "Điểm đối_thủ" < "87" |
sql_create_context | CREATE TABLE table 21133193 1(ngôn ngữ VARCHAR,member countries VARCHAR) | CREATE TABLE table_21133193_1(ngôn_ngữ VARCHAR,member_countries VARCHAR) | Đặt tên các ngôn ngữ cho cyprus | Đặt tên các ngôn_ngữ cho cyprus | SELECT ngôn ngữ FROM table 21133193 1 WHERE member countries = "Síp" | SELECT ngôn_ngữ FROM table_21133193_1 WHERE member_countries = "Síp" |
wikisql | CREATE TABLE table 36802("Người chơi" text,"Số lần thử" real,"Sân" real,"Trung bình" real,"Dài" real,"Số lần chạm bóng" real) | CREATE TABLE table_36802("Người chơi" text,"Số lần thử" real,"Sân" real,"Trung_bình" real,"Dài" real,"Số lần chạm bóng" real) | Số lần chạm bóng có mức trung bình nhỏ hơn 2,6 là bao nhiêu? | Số lần chạm bóng có mức trung_bình nhỏ hơn 2,6 là bao_nhiêu ? | SELECT COUNT ( "Touchdown" ) FROM table 36802 WHERE "Trung bình" < '2,6' | SELECT COUNT ( "Touchdown" ) FROM table_36802 WHERE "Trung_bình" < "2,6" |
wikisql | CREATE TABLE table 62913("Vòng" real,"Ngày" text,"Trang chủ" text,"Kết quả" text,"Khách" text,"Địa điểm" text,"Tham dự" real) | CREATE TABLE table_62913("Vòng" real,"Ngày" text,"Trang_chủ" text,"Kết_quả" text,"Khách" text,"Địa_điểm" text,"Tham_dự" real) | Vị khách đến thăm trung tâm thể thao Axa ở vòng 20 là ai? | Vị khách đến thăm trung_tâm thể_thao Axa ở vòng 20 là ai ? | SELECT "Khách" FROM table 62913 WHERE "Địa điểm" = 'trung tâm thể thao axa' AND "Vòng" = '20' | SELECT "Khách" FROM table_62913 WHERE "Địa_điểm" = "trung_tâm thể_thao axa" AND "Vòng" = "20" |
wikisql | CREATE TABLE table 58657("Trận đấu" real,"Thắng" real,"Hòa" real,"Thua" real,"Thắng" real) | CREATE TABLE table_58657("Trận đấu" real,"Thắng" real,"Hòa" real,"Thua" real,"Thắng" real) | Có bao nhiêu trận có 51 trận hòa và hơn 6 trận hòa? | Có bao_nhiêu trận có 51 trận hòa và hơn 6 trận hòa ? | SELECT SUM ( "Trận đấu" ) FROM table 58657 WHERE "Chống" > '6' AND "Hòa" = '51' | SELECT SUM ( "Trận đấu" ) FROM table_58657 WHERE "Chống" > "6" AND "Hòa" = "51" |
nvbench | CREATE TABLE trạm(id int,network name text,services text,local authority text) CREATE TABLE Weekly weather(station id int,ngày trong tuần text,nhiệt độ cao int,nhiệt độ thấp int,lượng mưa real,tốc độ gió mph int) CREATE TABLE tàu(id int,train number int,name text,origin text,destination text,time text,interval text) CREATE TABLE lộ trình(train id int,station id int) | CREATE TABLE trạm(id int,network_name text,services text,local_authority text) CREATE TABLE Weekly_weather(station_id int,ngày_trong_tuần text,nhiệt_độ cao int,nhiệt_độ thấp int,lượng mưa real,tốc_độ gió_mph int) CREATE TABLE tàu(id int,train_number int,name text,origin text,destination text,time text,interval text) CREATE TABLE lộ_trình(train_id int,station_id int) | Đếm số lượng dịch vụ theo dịch vụ. | Đếm số_lượng dịch_vụ theo dịch_vụ . | SELECT dịch vụ, COUNT ( dịch vụ ) FROM trạm GROUP BY dịch vụ | SELECT dịch_vụ, COUNT ( dịch_vụ ) FROM trạm GROUP BY dịch_vụ |
wikisql | CREATE TABLE table 27379("Chọn #" real,"Đội NFL" text,"Người chơi" text,"Vị trí" text,"Đại học" text) | CREATE TABLE table_27379("Chọn #" real,"Đội NFL" text,"Người chơi" text,"Vị_trí" text,"Đại_học" text) | Ai là người được chọn dự thảo cho các Thủ lĩnh Thành phố Kansas? | Ai là người được chọn dự_thảo cho các Thủ_lĩnh Thành_phố Kansas ? | SELECT "Người chơi" FROM table 27379 WHERE "Đội NFL" = 'Trưởng thành phố Kansas' | SELECT "Người chơi" FROM table_27379 WHERE "Đội NFL" = "Trưởng thành_phố Kansas" |
sql_create_context | CREATE TABLE bảng 11677100 3(trường VARCHAR,người chơi VARCHAR) | CREATE TABLE bảng_11677100_3(trường VARCHAR,người chơi VARCHAR) | Kerry Wood chơi ở trường nào? | Kerry Wood_chơi ở trường nào ? | SELECT trường FROM table 11677100 3 WHERE player = "Kerry Wood" | SELECT trường FROM table_11677100_3 WHERE player = "Kerry_Wood" |
wikisql | CREATE TABLE table 26250("Không" real,"Người chơi" text,"Chiều cao(m)" text,"Chiều cao(f)" text,"Vị trí" text,"Năm sinh" real,"Câu lạc bộ hiện tại" text) | CREATE TABLE table_26250("Không" real,"Người chơi" text,"Chiều cao(m)" text,"Chiều cao(f)" text,"Vị_trí" text,"Năm_sinh" real,"Câu_lạc_bộ hiện_tại" text) | Người sinh năm nào có chiều cao 1,88? | Người sinh năm nào có chiều cao 1,88 ? | SELECT "Năm sinh" FROM table 26250 WHERE "Chiều cao ( m ) " = '1,88' | SELECT "Năm_sinh" FROM table_26250 WHERE "Chiều cao ( m ) " = "1,88" |
wikisql | CREATE TABLE table 77647("Ngày" text,"Khách" text,"Điểm" text,"Trang chủ" text,"Quyết định" text,"Tham dự" real,"Ghi chép" text) | CREATE TABLE table_77647("Ngày" text,"Khách" text,"Điểm" text,"Trang_chủ" text,"Quyết_định" text,"Tham_dự" real,"Ghi_chép" text) | Đội nào đã về nhà vào ngày 13 tháng 10? | Đội nào đã về nhà vào ngày 13 tháng 10 ? | SELECT "Nhà" FROM table 77647 WHERE "Ngày" = '13 tháng 10' | SELECT "Nhà" FROM table_77647 WHERE "Ngày" = "13 tháng 10" |
sql_create_context | CREATE TABLE table 13967239 2(Senior 4 năm VARCHAR,năm hai lớp 8 VARCHAR) | CREATE TABLE table_13967239_2(Senior__4_năm_ VARCHAR,năm hai__lớp_8_ VARCHAR) | Sau đại số trung gian là gì | Sau đại_số trung_gian là gì | SELECT cao cấp 4th year FROM table 13967239 2 WHERE năm hai grade 8 = "Đại số trung cấp" | SELECT cao_cấp__4th_year FROM table_13967239_2 WHERE năm hai__grade_8 = "Đại_số trung_cấp" |
mimic_iii | CREATE TABLE inputevents cv(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,amount number) CREATE TABLE đơn thuốc(row id number,subject id number,hadm id number,ngày bắt đầu time,ngày kết thúc time,thuốc text,dose val rx text,dose unit rx text,route text) CREATE TABLE tuyển sinh(row id number,subject id number,hadm id number,admittime time,dischtime time,loại nhập viện text,vị trí nhập viện text,vị trí xuất viện text,bảo hiểm text,ngôn ngữ text,tình trạng hôn nhân text,dân tộc text,tuổi number) CREATE TABLE d icd diagnoses(row id number,icd9 code text,short title text,long title text) CREATE TABLE d labitems(row id number,itemid number,label text) CREATE TABLE bệnh nhân(row id number,subject id number,gender text,dob time,dod time) CREATE TABLE Chartevents(row id number,subject id number,hadm id number,icustay id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE 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 chẩn đoán icd(row id number,subject id number,hadm id number,icd9 code text,charttime time) CREATE TABLE icustays(row id number,subject id number,hadm id number,icustay id number,first careunit text,last careunit text,first wardid number,last wardid number,intime time,outtime time) CREATE TABLE thủ tục 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 chuyển(row id number,subject id number,hadm id number,icustay id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE d icd procedures(row id number,icd9 code text,short title text,long title text) CREATE TABLE outevents(row id number,subject id number,hadm id number,icustay id number,charttime time,itemid number,value number) CREATE TABLE d items(row id number,itemid number,label text,liên kết đến text) | CREATE TABLE inputevents_cv(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,amount number) CREATE TABLE đơn thuốc(row_id number,subject_id number,hadm_id number,ngày bắt_đầu time,ngày kết_thúc time,thuốc text,dose_val_rx text,dose_unit_rx text,route text) CREATE TABLE tuyển_sinh(row_id number,subject_id number,hadm_id number,admittime time,dischtime time,loại_nhập_viện text,vị trí_nhập_viện text,vị_trí xuất_viện text,bảo_hiểm text,ngôn_ngữ text,tình_trạng hôn_nhân text,dân_tộc text,tuổi number) CREATE TABLE d_icd_diagnoses(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE d_labitems(row_id number,itemid number,label text) CREATE TABLE bệnh_nhân(row_id number,subject_id number,gender text,dob time,dod time) CREATE TABLE Chartevents(row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text) CREATE TABLE 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 chẩn_đoán_icd(row_id number,subject_id number,hadm_id number,icd9_code text,charttime time) CREATE TABLE icustays(row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,intime time,outtime time) CREATE TABLE thủ_tục_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 chuyển(row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time) CREATE TABLE d_icd_procedures(row_id number,icd9_code text,short_title text,long_title text) CREATE TABLE outevents(row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number) CREATE TABLE d_items(row_id number,itemid number,label text,liên_kết đến text) | bệnh nhân 12952 nhập viện năm 2105? | bệnh_nhân 12952 nhập_viện năm 2105 ? | SELECT COUNT ( * ) > 0 FROM tuyển sinh WHERE tuyển sinh.subject id = 12952 AND STRFTIME ( 'y',admissions.admittime ) = '2105' | SELECT COUNT ( * ) > 0 FROM tuyển_sinh WHERE tuyển_sinh.subject_id = 12952 AND STRFTIME ( " y",admissions.admittime ) = "2105" |
wikisql | CREATE TABLE table 28952("Quận" text,"Đương nhiệm" text,"Đảng" text,"Bầu chọn lần đầu" real,"Kết quả" text,"Ứng cử viên" text) | CREATE TABLE table_28952("Quận" text,"Đương_nhiệm" text,"Đảng" text,"Bầu_chọn lần đầu" real,"Kết_quả" text,"Ứng_cử_viên" text) | Abraham B. Venable đương nhiệm có bao nhiêu phần khác nhau? | Abraham B._Venable đương_nhiệm có bao_nhiêu phần khác nhau ? | SELECT COUNT ( "Đảng" ) FROM table 28952 WHERE "Đương nhiệm" = 'Abraham B.Venable' | SELECT COUNT ( "Đảng" ) FROM table_28952 WHERE "Đương_nhiệm" = "Abraham_B.Venable" |
wikisql | CREATE TABLE table 61845("Giải đấu" text,"2009" text,"2010" text,"2011" text,"2012" text,"2013" text) | CREATE TABLE table_61845("Giải đấu" text,"2009" text,"2010" text,"2011" text,"2012" text,"2013" text) | Năm 2013 với 2r vào năm 2010 và qf vào năm 2011 là bao nhiêu? | Năm 2013 với 2 r vào năm 2010 và qf vào năm 2011 là bao_nhiêu ? | SELECT "2013" FROM bảng 61845 WHERE "2010" = '2r' AND "2011" = 'qf' | SELECT "2013" FROM bảng_61845 WHERE "2010" = "2 r" AND "2011" = "qf" |
sql_create_context | CREATE TABLE tên bảng 91(Id VARCHAR) | CREATE TABLE tên_bảng_91(Id VARCHAR) | Số liệu thống kê năm 2001 về sản phẩm có 2.360.000 tấn vào năm 2002 là gì? | Số_liệu thống_kê năm 2001 về sản_phẩm có 2.360.000 tấn vào năm 2002 là gì ? | SELECT 2001 FROM tên bảng 91 WHERE 2002 = "2.360.000 tấn" | SELECT 2001 FROM tên_bảng_91 WHERE 2002 = "2.360.000 tấn" |
sql_create_context | CREATE TABLE tên bảng 77(điểm VARCHAR,date VARCHAR) | CREATE TABLE tên_bảng_77(điểm VARCHAR,date VARCHAR) | Tỷ số ngày 17 tháng 2 là bao nhiêu? | Tỷ số ngày 17 tháng 2 là bao_nhiêu ? | SELECT điểm FROM tên bảng 77 WHERE date = "17 tháng 2" | SELECT điểm FROM tên_bảng_77 WHERE date = "17 tháng 2" |
wikisql | CREATE TABLE table 32895("Khu vực" text,"Chủ nhà" text,"Địa điểm" text,"Thành phố" text,"Tiểu bang" text) | CREATE TABLE table_32895("Khu_vực" text,"Chủ nhà" text,"Địa_điểm" text,"Thành_phố" text,"Tiểu_bang" text) | Địa điểm nào nằm ở Indiana và được tổ chức tại Đại học Purdue? | Địa_điểm nào nằm ở Indiana và được tổ_chức tại Đại_học Purdue ? | SELECT "Địa điểm" FROM table 32895 WHERE "State" = 'indiana' AND "Host" = 'trường đại học purdue' | SELECT "Địa_điểm" FROM table_32895 WHERE "State" = "indiana" AND "Host" = "trường đại_học purdue" |
eicu | CREATE TABLE Vital Periodic(vital Periodicid number,Patientunitstayid number,nhiệt độ number,sao2 number,nhịp tim number,hô hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE điều trị(Treatmentid number,Patientunitstayid number,tên điều trị text,thời gian điều trị time) CREATE TABLE dị ứng(dị ứng number,Patientunitstayid number,tên thuốc text,tên dị ứng text,thời gian dị ứng time) CREATE TABLE chẩn đoán(Diagnosticid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,chi phí number) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới tính text,tuổi text,dân tộc text,mệnh viện number,khu vực number,chiều cao nhập viện number,cân nặng nhập viện number,cân nặng xuất viện number,thời gian nhập viện time,nguồn nhập viện text,thời gian nhập viện time,thời gian xuất viện của đơn vị time,thời gian xuất viện time,trạng thái xuất viện text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng đầu ra(lượng đầu ra number,bệnh nhân đơn vị lưu trú number,đường dẫn tế bào text,nhãn tế bào text,giá trị tế bàonumber,thời gian đưa vào time) CREATE TABLE thuốc(mã thuốc number,bệnh nhân đơn vị lưu trú number,tên thuốc text,liều lượng text,lộ trình sử dụng text,thời gian bắt đầu thuốc time,thời gian ngừng thuốc time) | CREATE TABLE Vital_Periodic(vital Periodicid number,Patientunitstayid number,nhiệt_độ number,sao2 number,nhịp tim number,hô_hấp number,systemicsystolic number,systemicdiastolic number,systemicmean number,observationtime time) CREATE TABLE điều_trị(Treatmentid number,Patientunitstayid number,tên điều_trị text,thời_gian điều_trị time) CREATE TABLE dị_ứng(dị_ứng number,Patientunitstayid number,tên thuốc text,tên dị_ứng text,thời_gian dị_ứng time) CREATE TABLE chẩn_đoán(Diagnosticid number,Patientunitstayid number,diagnosisname text,diagnosistime time,icd9code text) CREATE TABLE cost(costid number,uniquepid text,Patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,chi_phí number) CREATE TABLE lab(labid number,Patientunitstayid number,labname text,labresult number,labresulttime time) CREATE TABLE disease(uniquepid text,Patienthealthsystemstayid number,Patientunitstayid number,giới_tính text,tuổi text,dân_tộc text,mệnh_viện number,khu_vực number,chiều cao nhập_viện number,cân nặng nhập_viện number,cân nặng xuất_viện number,thời_gian nhập_viện time,nguồn nhập_viện text,thời_gian nhập_viện time,thời_gian xuất_viện của đơn_vị time,thời_gian xuất_viện time,trạng_thái xuất_viện text) CREATE TABLE microlab(microlabid number,Patientunitstayid number,culturesite text,organism text,culturetakentime time) CREATE TABLE lượng đầu_ra(lượng đầu_ra number,bệnh_nhân đơn_vị lưu_trú number,đường_dẫn tế_bào text,nhãn tế_bào text,giá_trị tế_bàonumber,thời_gian đưa vào time) CREATE TABLE thuốc(mã thuốc number,bệnh_nhân đơn_vị lưu_trú number,tên thuốc text,liều_lượng text,lộ_trình sử_dụng text,thời_gian bắt_đầu thuốc time,thời_gian ngừng thuốc time) | Nhịp tim của bệnh nhân 004-49903 đo lần cuối trong lần thăm khám gần đây nhất tại phòng chăm sóc đặc biệt có nhỏ hơn so với giá trị đo lần đầu tiên trong lần thăm khám gần đây nhất tại phòng chăm sóc đặc biệt không? | Nhịp tim của bệnh_nhân 004 - 49903 đo lần cuối trong lần thăm_khám gần đây nhất tại phòng chăm_sóc đặc_biệt có nhỏ hơn so với giá_trị đo lần đầu_tiên trong lần thăm_khám gần đây nhất tại phòng chăm_sóc đặc_biệt không ? | SELECT ( SELECT quan trọng nhất.heartrate FROM quan trọng định kỳ WHERE quan trọng định kỳ.bệnh nhânunitstayid IN ( SELECT bệnh nhân.bệnh nhânunitstayid FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = ' 00449903' ) AND NOT disease.unitdischargetime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 ) AND NOT Vital Periodic.heartrate IS NULL ORDER BY Vital Periodic.observationtime DESC LIMIT 1 ) < ( SELECT quan trọng nhất.heartrate FROM quan trọng định kỳ WHERE quan trọng định kỳ.bệnh nhânunitstayid IN ( SELECT bệnh nhân.bệnh nhânunitstayid FROM bệnh nhân WHERE bệnh nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh nhân.bệnh nhânhealthsystemstayid FROM bệnh nhân WHERE bệnh nhân.uniquepid = '00449903' ) AND NOT disease.unitdischargetime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 ) AND NOT Vital Periodic.heartrate IS NULL ORDER BY Vital Periodic.observationtime LIMIT 1 ) | SELECT ( SELECT quan_trọng nhất.heartrate FROM quan_trọng định_kỳ WHERE quan_trọng định_kỳ.bệnh nhânunitstayid IN ( SELECT bệnh_nhân.bệnh nhânunitstayid FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "004 49903" ) AND NOT disease.unitdischargetime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 ) AND NOT Vital_Periodic.heartrate IS NULL ORDER BY Vital_Periodic.observationtime DESC LIMIT 1 ) < ( SELECT quan_trọng nhất.heartrate FROM quan_trọng định_kỳ WHERE quan_trọng định_kỳ.bệnh nhânunitstayid IN ( SELECT bệnh_nhân.bệnh nhânunitstayid FROM bệnh_nhân WHERE bệnh_nhân.bệnh nhânhealthsystemstayid IN ( SELECT bệnh_nhân.bệnh nhânhealthsystemstayid FROM bệnh_nhân WHERE bệnh_nhân.uniquepid = "004 49903" ) AND NOT disease.unitdischargetime IS NULL ORDER BY disease.unitadmittime DESC LIMIT 1 ) AND NOT Vital_Periodic.heartrate IS NULL ORDER BY Vital_Periodic.observationtime LIMIT 1 ) |
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 nhân khẩu học(subject id text,hadm id text,tên text,tình trạng hôn nhân text,tuổi text,nghề nghiệp text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập cảnh text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn flag text,nhập học location text,discharge location text,diagnosis text,dod text,dob year text,dod year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE chẩn đoán(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) | CREATE TABLE 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,tên text,tình_trạng hôn_nhân text,tuổi text,nghề_nghiệp text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập cảnh text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn_flag text,nhập học_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year text,admittime text,dischtime text,admityear text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) | tìm số lượng bệnh nhân đơn lẻ được chẩn đoán mắc bệnh cận thị. | tìm số_lượng bệnh_nhân đơn_lẻ được chẩn_đoán mắc bệnh cận_thị . | SELECT COUNT ( DISTINCT nhân khẩu học.subject id ) FROM nhân khẩu học INNER JOIN chẩn đoán ON nhân khẩu học.hadm id = chẩn đoán.hadm id WHERE nhân khẩu học.marital status = "ĐƠN" AND chẩn đoán.short title = "Cận thị" | SELECT COUNT ( DISTINCT nhân_khẩu học.subject_id ) FROM nhân_khẩu học INNER JOIN chẩn_đoán ON nhân_khẩu học.hadm_id = chẩn_đoán.hadm_id WHERE nhân_khẩu học.marital_status = "ĐƠN" AND chẩn_đoán.short_title = "Cận_thị" |
nvbench | 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 country(COUNTRY ID varchar(2),COUNTRY NAME varchar(40),REGION ID decimal(10,0)) CREATE TABLE phòng ban(DEPARTMENT ID decimal(4,0),DEPARTMENT NAME varchar(30),MANAGER ID decimal(6,0),LOCATION ID decimal(4,0)) CREATE TABLE công việc(JOB ID varchar(10),JOB TITLE varchar(35),MIN SALARY decimal(6,0),MAX SALARY decimal(6,0)) CREATE TABLE khu vực(REGION ID decimal(5,0),REGION NAME varchar(25)) 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 địa điểm(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 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 country(COUNTRY_ID varchar(2),COUNTRY_NAME varchar(40),REGION_ID_decimal(10,0)) CREATE TABLE phòng_ban(DEPARTMENT_ID_decimal(4,0),DEPARTMENT_NAME varchar(30),MANAGER_ID_decimal(6,0),LOCATION_ID_decimal(4,0)) CREATE TABLE công_việc(JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY_decimal(6,0),MAX_SALARY_decimal(6,0)) CREATE TABLE khu_vực(REGION_ID_decimal(5,0),REGION_NAME varchar(25)) 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 địa_điểm(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)) | Đối với tất cả nhân viên có chữ cái D hoặc S trong tên của họ, hãy cho tôi so sánh về mức trung bình của manager id so với job id và nhóm theo thuộc tính job id và bạn có thể xếp hạng trục X từ thứ tự cao xuống thấp không? | Đối_với tất_cả nhân_viên có chữ_cái D hoặc S trong tên của họ , hãy cho tôi so_sánh về mức trung_bình của manager_id so với job_id và nhóm theo thuộc_tính job_id và bạn có_thể xếp_hạng trục X từ thứ_tự cao xuống thấp không ? | SELECT JOB ID, AVG ( MANAGER ID ) FROM nhân viên WHERE FIRST NAME LIKE 'D' OR FIRST NAME LIKE 'S' GROUP BY JOB ID ORDER BY JOB ID DESC | SELECT JOB_ID, AVG ( MANAGER_ID ) FROM nhân_viên WHERE FIRST_NAME LIKE " D " OR_FIRST_NAME LIKE " S " GROUP BY JOB_ID ORDER BY JOB_ID DESC |
wikisql | CREATE TABLE table 78191("Độ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_78191("Độ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 chủ nhà bắc melbourne được bao nhiêu điểm? | Đội chủ nhà bắc melbourne được bao_nhiêu điểm ? | SELECT "Tỷ số của đội chủ nhà" FROM table 78191 WHERE "Đội chủ nhà" = 'bắc melbourne' | SELECT "Tỷ_số của đội chủ nhà" FROM table_78191 WHERE "Đội chủ nhà" = "bắc melbourne" |
advising | CREATE TABLE Students record(student id int,course id int,semester int,grade varchar,how varchar,transfer source varchar,earn credit varchar,repeat term varchar,test id varchar) CREATE TABLE gsi(course offering id int,student id int) CREATE TABLE học kỳ(semester id int,semester varchar,year int) CREATE TABLE giảng viên(instructor id int,name varchar,uniqname varchar) CREATE TABLE jobs(job id int,job title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE ta(campus job id int,student id int,location varchar) CREATE TABLE Course tags count(course id int,clear grading int,pop quiz int,group projects int,inspiral int,long lectures int,extra credit int,few tests int,good feedback int,tough tests int,heavy papers int,cares for students int,bài tập nặng int,tôn trọng int,tham gia int,đọc nhiều int,học sinh khó int,vui nhộn int,sẽ học đọc lại int,bài giảng hay int,không bỏ qua int) CREATE TABLE khóa học offering(offering id int,course id int,học kỳ int,số phần int,thời gian bắt đầu time,thời gian 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 khóa học(khóa học id int,tên varchar,bộ môn varchar,number varchar,credits varchar,advisory requirement varchar,enforced requirement varchar,description varchar,num semesters int,num enrolled int,has discussion varchar,has lab varchar,has projects varchar,has exams varchar,num reviews int,clarity score int,easiness score int,helpfulness score int) CREATE TABLEprogram requirement(chương trình id int,danh mục varchar,min credit int,bổ sung req 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 sinh viên(student id int,lastname varchar,firstname varchar,program id int,declare major varchar,total credit int,total gpa float,entered as varchar,admit term int,predicted graduation semester int,degree varchar,minor varchar,thực tập varchar) CREATE TABLE comment instructor(instructor id int,student id int,score int,comment text varchar) CREATE TABLEprogram course(program id int,course id int,workload int,category varchar) CREATE TABLE require(requirement id int,requirement varchar,college varchar) CREATE TABLE Offer instructor(offering instructor id int,offering id int,instructor id int) CREATE TABLE chương trình(chương trình id int,tên varchar,college varchar,giới thiệu varchar) | CREATE TABLE Students_record(student_id int,course_id int,semester int,grade varchar,how varchar,transfer_source varchar,earn_credit varchar,repeat_term varchar,test_id varchar) CREATE TABLE gsi(course_offering_id int,student_id int) CREATE TABLE học_kỳ(semester_id int,semester varchar,year int) CREATE TABLE giảng_viên(instructor_id int,name varchar,uniqname varchar) CREATE TABLE jobs(job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int) CREATE TABLE ta(campus_job_id int,student_id int,location varchar) CREATE TABLE Course_tags_count(course_id int,clear_grading int,pop_quiz int,group_projects int,inspiral int,long_lectures int,extra_credit int,few_tests int,good_feedback int,tough_tests int,heavy_papers int,cares_for_students int,bài_tập nặng int,tôn_trọng int,tham_gia int,đọc nhiều int,học_sinh khó int,vui nhộn int,sẽ_học_đọc lại int,bài giảng hay int,không_bỏ qua int) CREATE TABLE khóa học_offering(offering_id int,course_id int,học kỳ int,số_phần int,thời_gian bắt_đầu time,thời_gian 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 khóa_học(khóa học_id int,tên varchar,bộ_môn varchar,number varchar,credits varchar,advisory_requirement varchar,enforced_requirement varchar,description varchar,num_semesters int,num_enrolled int,has_discussion varchar,has_lab varchar,has_projects varchar,has_exams varchar,num_reviews int,clarity_score int,easiness_score int,helpfulness_score int) CREATE TABLEprogram_requirement(chương trình_id int,danh_mục varchar,min_credit int,bổ_sung_req 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 sinh_viên(student_id int,lastname varchar,firstname varchar,program_id int,declare_major varchar,total_credit int,total_gpa float,entered_as varchar,admit_term int,predicted_graduation_semester int,degree varchar,minor varchar,thực_tập varchar) CREATE TABLE comment_instructor(instructor_id int,student_id int,score int,comment_text varchar) CREATE TABLEprogram_course(program_id int,course_id int,workload int,category varchar) CREATE TABLE require(requirement_id int,requirement varchar,college varchar) CREATE TABLE Offer_instructor(offering_instructor_id int,offering_id int,instructor_id int) CREATE TABLE chương_trình(chương trình_id int,tên varchar,college varchar,giới_thiệu varchar) | Thời gian diễn ra các bài giảng PERSIAN 102 trong học kỳ tới là gì? | Thời_gian diễn ra các bài giảng PERSIAN 102 trong học_kỳ tới là gì ? | SELECT DISTINCT Course offering.start time FROM khóa học INNER JOIN chương trình course ON chương trình course.course id = Course.course id INNER JOIN Course offering ON Course.course id = Course offering.course id INNER JOIN học kỳ ON học kỳ.semester id = Course offering.học kỳ WHERE khóa học.department = 'PERSIAN' AND khóa học.số = 102 AND học kỳ.semester = 'FA' AND học kỳ.năm = 2016 | SELECT DISTINCT Course_offering.start_time FROM khóa học INNER JOIN chương trình_course ON chương trình_course.course_id = Course.course_id INNER JOIN Course_offering ON Course.course_id = Course_offering.course_id INNER JOIN học_kỳ ON học_kỳ.semester_id = Course_offering.học kỳ WHERE khóa_học.department = "PERSIAN" AND khóa học.số = 102 AND học_kỳ.semester = "FA" AND học_kỳ.năm = 2016 |
sql_create_context | CREATE TABLE Thuộc tính Định nghĩa(attribute name VARCHAR,attribute id VARCHAR) CREATE TABLE Catalog Contents Additional Attribution(attribute id VARCHAR,attribute value VARCHAR) | CREATE TABLE Thuộc tính_Định_nghĩa(attribute_name VARCHAR,attribute_id VARCHAR) CREATE TABLE Catalog_Contents_Additional_Attribution(attribute_id VARCHAR,attribute_value VARCHAR) | Tìm tên và ID thuộc tính của định nghĩa thuộc tính có giá trị thuộc tính 0. | Tìm tên và ID thuộc_tính của định_nghĩa thuộc_tính có giá_trị thuộc_tính 0 . | SELECT t1.attribute name,t1.attribute id FROM Thuộc tính Định nghĩa AS t1 JOIN Catalog Contents Additional Attribution AS t2 ON t1.attribute id = t2.attribute id WHERE t2.attribute value = 0 | SELECT t1.attribute_name,t1.attribute_id FROM Thuộc tính_Định_nghĩa AS t1 JOIN Catalog_Contents_Additional_Attribution AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 |
wikisql | CREATE TABLE table 11275("Năm trao giải" real,"Ngày trao giải" text,"Thể thao" text,"Người chiến thắng" text,"Người thua" text) | CREATE TABLE table_11275("Năm trao giải" real,"Ngày trao giải" text,"Thể_thao" text,"Người chiến_thắng" text,"Người thua" text) | Đội thua chơi khúc côn cầu là gì? | Đội thua chơi khúc côn_cầu là gì ? | SELECT "Người thua cuộc" FROM table 11275 WHERE "Thể thao" = 'khúc côn cầu' | SELECT "Người thua cuộc" FROM table_11275 WHERE "Thể_thao" = "khúc côn_cầu" |
squall | CREATE TABLE table 203 190(id number,"name" text,"type" text,"circle" text,"bench" text,"formed" number,"ghi chú" text) | CREATE TABLE table_203_190(id number,"name" text,"type" text,"circle" text,"bench" text,"formed" number,"ghi_chú" text) | tổng số tiểu bang là bao nhiêu? | tổng_số tiểu_bang là bao_nhiêu ? | SELECT COUNT ( "tên" ) FROM bảng 203 190 | SELECT COUNT ( "tên" ) FROM bảng_203_190 |
sql_create_context | CREATE TABLE table 26129220 2(tiệc VARCHAR,quận VARCHAR) | CREATE TABLE table_26129220_2(tiệc VARCHAR,quận VARCHAR) | Quận 27 có tiệc gì? | Quận 27 có tiệc gì ? | SELECT bữa tiệc FROM bảng 26129220 2 WHERE quận = 27 | SELECT bữa tiệc FROM bảng_26129220_2 WHERE quận = 27 |
wikisql | CREATE TABLE table 72064("Ngày" text,"Thời gian" text,"Thi đấu" text,"Đối thủ" text,"Sân" text,"Điểm" text) | CREATE TABLE table_72064("Ngày" text,"Thời_gian" text,"Thi_đấu" text,"Đối_thủ" text,"Sân" text,"Điểm" text) | Trận đấu nào diễn ra ở San Siro lúc 18:30 GMT? | Trận đấu nào diễn ra ở San_Siro lúc 18 : 30 GMT ? | SELECT "Thi đấu" FROM table 72064 WHERE "Sân đất" = 'san siro' AND "Thời gian" = '1830 gmt' | SELECT "Thi_đấu" FROM table_72064 WHERE "Sân đất" = "san_siro" AND "Thời_gian" = "18 30 gmt" |
sql_create_context | CREATE TABLE table 18600760 7(geo id INTEGER,kinh độ VARCHAR) | CREATE TABLE table_18600760_7(geo_id INTEGER,kinh_độ VARCHAR) | Nếu kinh độ là -97,473110 thì id địa lý tối thiểu là bao nhiêu? | Nếu kinh_độ là - 97,473110 thì id địa_lý tối_thiểu là bao_nhiêu ? | SELECT MIN ( geo id ) FROM bảng 18600760 7 WHERE kinh độ = "97.473110" | SELECT MIN ( geo_id ) FROM bảng_18600760_7 WHERE kinh_độ = " 97.473110" |
sql_create_context | CREATE TABLE table name 30(đã chơi INTEGER,điểm 1 VARCHAR,bàn trận so với VARCHAR) | CREATE TABLE table_name_30(đã chơi INTEGER,điểm_1 VARCHAR,bàn_trận so với VARCHAR) | Trận đấu cao nhất khi có ít hơn 74 bàn thắng và điểm 1 trên 36 2 là bao nhiêu? | Trận đấu cao nhất khi có ít hơn 74 bàn thắng và điểm 1 trên 36 2 là bao_nhiêu ? | SELECT MAX ( đã chơi ) FROM tên bảng 30 WHERE điểm 1 = "36 2" AND bàn thắng chống lại < 74 | SELECT MAX ( đã chơi ) FROM tên_bảng_30 WHERE điểm_1 = "36 2" AND bàn thắng_chống lại < 74 |
sql_create_context | CREATE TABLE table name 42(vòng INTEGER,tổng thể VARCHAR) | CREATE TABLE table_name_42(vòng INTEGER,tổng_thể VARCHAR) | Tổng cộng 62 là vòng trung bình gì? | Tổng_cộng 62 là vòng trung_bình gì ? | SELECT AVG ( tròn ) FROM tên bảng 42 WHERE tổng = 62 | SELECT AVG ( tròn ) FROM tên_bảng_42 WHERE tổng= 62 |
spider | CREATE TABLE hoạt động(actid number,activity name text) CREATE TABLE tham gia in(stuid number,actid number) CREATE TABLE sinh viên(stuid number,lname text,fname text,age number,giới tính text,chính number,cố vấn number,city code text) CREATE TABLE giảng viên(fcid number,lname text,fname text,rank text,sex text,phone number,room text,tòa nhà text) CREATE TABLE giảng viên participates in(facid number,actid number) | CREATE TABLE hoạt_động(actid number,activity_name text) CREATE TABLE tham_gia_in(stuid number,actid number) CREATE TABLE sinh_viên(stuid number,lname text,fname text,age number,giới_tính text,chính number,cố_vấn number,city_code text) CREATE TABLE giảng_viên(fcid number,lname text,fname text,rank text,sex text,phone number,room text,tòa nhà text) CREATE TABLE giảng_viên_participates_in(facid number,actid number) | Michael Goodrich tư vấn cho những sinh viên nào? Cho tôi biết họ và tên của họ. | Michael Goodrich tư_vấn cho những sinh_viên nào ? Cho tôi biết họ và tên của họ . | SELECT T2.fname,T2.lname FROM giảng viên AS T1 JOIN sinh viên AS T2 ON T1.fcid = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich" | SELECT T2.fname,T2.lname FROM giảng_viên AS T1 JOIN sinh_viên AS T2 ON T1.fcid = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich" |
sql_create_context | CREATE TABLE table 1341453 40(đương nhiệm VARCHAR,được bầu đầu tiên VARCHAR) | CREATE TABLE table_1341453_40(đương_nhiệm VARCHAR,được bầu đầu_tiên VARCHAR) | Có bao nhiêu người đương nhiệm được bầu lần đầu tiên vào năm 1984? | Có bao_nhiêu người đương_nhiệm được bầu lần đầu_tiên vào năm 1984 ? | SELECT COUNT ( đương nhiệm ) FROM table 1341453 40 WHERE first elected = "1984" | SELECT COUNT ( đương_nhiệm ) FROM table_1341453_40 WHERE first_elected = "1984" |
sql_create_context | CREATE TABLE table name 86(đối tác VARCHAR,năm VARCHAR,điểm in the cuối VARCHAR) | CREATE TABLE table_name_86(đối_tác VARCHAR,năm VARCHAR,điểm_in_the_cuối VARCHAR) | Ai là đối tác có tỷ số 2 6, 3 6 và xảy ra sau năm 2007? | Ai là đối_tác có tỷ số 2 6 , 3 6 và xảy ra sau năm 2007 ? | SELECT đối tác FROM table name 86 WHERE năm > 2007 AND Score in the final = "26,36" | SELECT đối_tác FROM table_name_86 WHERE năm > 2007 AND Score_in_the_final = "2 6,3 6" |
wikisql | CREATE TABLE table 76360("Ngày" text,"Tên tàu" text,"Cờ" text,"Trọng tải" real,"Số phận" text) | CREATE TABLE table_76360("Ngày" text,"Tên tàu" text,"Cờ" text,"Trọng_tải" real,"Số_phận" text) | Con tàu mang tên vô sản đã hoàn thành nhiệm vụ của mình như thế nào? | Con tàu mang tên vô_sản đã hoàn_thành nhiệm_vụ của mình như_thế_nào ? | SELECT "Số phận" FROM table 76360 WHERE "Tên tàu" = 'vô sản' | SELECT "Số_phận" FROM table_76360 WHERE "Tên tàu" = "vô_sản" |
wikisql | CREATE TABLE table 66975("Người lái xe" text,"Đội" text,"Vòng" real,"Thời gian/Đã nghỉ hưu" text,"Lưới" real,"Điểm" real) | CREATE TABLE table_66975("Người lái_xe" text,"Đội" text,"Vòng" real,"Thời_gian/Đã nghỉ hưu" text,"Lưới" real,"Điểm" real) | Lưới trung bình của Oriol Servia trong các cuộc đua có hơn 43 vòng là bao nhiêu? | Lưới trung_bình của Oriol_Servia trong các cuộc đua có hơn 43 vòng là bao_nhiêu ? | SELECT AVG ( "Lưới" ) FROM table 66975 WHERE "Vòng" > '43' AND "Trình điều khiển" = 'oriol servia' | SELECT AVG ( "Lưới" ) FROM table_66975 WHERE "Vòng" > "43" AND "Trình điều_khiển" = "oriol servia" |
wikisql | CREATE TABLE table 19807("#" real,"Tập" text,"Biên kịch" text,"Đạo diễn" text,"Ngày phát sóng ban đầu" text,"Xem hình" text) | CREATE TABLE table_19807("#" real,"Tập" text,"Biên_kịch" text,"Đạo_diễn" text,"Ngày phát_sóng ban_đầu" text,"Xem_hình" text) | Ngày phát sóng ban đầu của tập phim do Paul Marcus đạo diễn là ngày nào? | Ngày phát_sóng ban_đầu của tập phim do Paul_Marcus đạo_diễn là ngày nào ? | SELECT "Ngày phát sóng ban đầu" FROM table 19807 WHERE "Đạo diễn" = 'Paul Marcus' | SELECT "Ngày phát_sóng ban_đầu" FROM table_19807 WHERE "Đạo_diễn" = "Paul_Marcus" |
wikisql | CREATE TABLE table 68283("Người đại diện" text,"Chức danh" text,"Trình bày giấy ủy nhiệm" text,"Chấm dứt nhiệm vụ" text,"Bổ nhiệm bởi" text) | CREATE TABLE table_68283("Người đại_diện" text,"Chức_danh" text,"Trình_bày giấy ủy_nhiệm" text,"Chấm_dứt nhiệm_vụ" text,"Bổ_nhiệm bởi" text) | Đặt tên chức danh với người đại diện là Edward h. nhấp nháy | Đặt tên chức_danh với người đại_diện là Edward_h . nhấp nháy | SELECT "Tiêu đề" FROM table 68283 WHERE "Người đại diện" = 'edward h.strobel' | SELECT "Tiêu_đề" FROM table_68283 WHERE "Người đại_diện" = "edward h.strobel" |
sql_create_context | CREATE TABLE table 18299148 1(thành phố VARCHAR,độ phân giải VARCHAR) | CREATE TABLE table_18299148_1(thành_phố VARCHAR,độ phân_giải VARCHAR) | Thành phố nào có nghị quyết đàm phán lưu vong ở Áo? | Thành_phố nào có nghị_quyết đàm_phán lưu_vong ở Áo ? | SELECT thành phố FROM table 18299148 1 WHERE Độ phân giải = "Đàm phán lưu vong ở Áo" | SELECT thành_phố FROM table_18299148_1 WHERE Độ phân_giải = "Đàm_phán lưu_vong ở Áo" |
sql_create_context | CREATE TABLE table name 74(vàng INTEGER,quốc gia VARCHAR,bạc VARCHAR) | CREATE TABLE table_name_74(vàng INTEGER,quốc_gia VARCHAR,bạc VARCHAR) | Tổng số huy chương vàng của cả nước có hơn 19 huy chương bạc là bao nhiêu? | Tổng_số huy_chương vàng của cả nước có hơn 19 huy_chương bạc là bao_nhiêu ? | SELECT SUM ( vàng ) FROM tên bảng 74 WHERE quốc gia = "tổng" AND bạc > 19 | SELECT SUM ( vàng ) FROM tên_bảng_74 WHERE quốc_gia = "tổng" AND bạc > 19 |
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 thủ tục(subject id text,hadm id text,icd9 code text,short title text,long title text) CREATE TABLE đơn thuốc(subject id text,hadm id text,icustay id text,drug type text,drug text,formulary drug cd text,route text,drug dose text) CREATE TABLE nhân khẩu học(subject id text,hadm id text,name text,marital status text,tuổi text,dob text,giới tính text,ngôn ngữ text,tôn giáo text,loại nhập viện text,ngày ở text,bảo hiểm text,dân tộc text,hết hạn text,địa điểm nhập học text,địa điểm xuất viện text,chẩn đoán text,dod text,dob year text,dod year text,thời gian nhập học text,thời gian phân bổ text,năm nhập học text) | CREATE TABLE chẩn_đoán(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE lab(subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text) CREATE TABLE thủ_tục(subject_id text,hadm_id text,icd9_code text,short_title text,long_title text) CREATE TABLE đơn thuốc(subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text) CREATE TABLE nhân_khẩu học(subject_id text,hadm_id text,name text,marital_status text,tuổi text,dob text,giới_tính text,ngôn_ngữ text,tôn_giáo text,loại_nhập_viện text,ngày_ở text,bảo_hiểm text,dân_tộc text,hết hạn text,địa_điểm nhập_học text,địa_điểm xuất_viện text,chẩn_đoán text,dod text,dob_year text,dod_year text,thời_gian nhập_học text,thời_gian phân_bổ text,năm nhập_học text) | thời gian nhập học và thủ tục mã icd9 của môn id 2560 là bao nhiêu? | thời_gian nhập_học và thủ_tục mã_icd9 của môn id 2560 là bao_nhiêu ? | SELECT nhân khẩu học.admittime,procedures.icd9 code FROM nhân khẩu học INNER JOIN thủ tục ON nhân khẩu học.hadm id = thủ tục.hadm id WHERE nhân khẩu học.subject id = "2560" | SELECT nhân_khẩu học.admittime,procedures.icd9_code FROM nhân_khẩu học INNER JOIN thủ_tục ON nhân_khẩu học.hadm_id = thủ_tục.hadm_id WHERE nhân_khẩu học.subject_id = "2560" |
wikisql | CREATE TABLE table 14807("Ngày" text,"Giải đấu" text,"Tỷ số chiến thắng" text,"Biên độ chiến thắng" text,"Người về nhì -up" text) | CREATE TABLE table_14807("Ngày" text,"Giải đấu" text,"Tỷ_số chiến_thắng" text,"Biên_độ chiến_thắng" text,"Người về nhì - up" text) | Kể tên biên độ chiến thắng của jonas blixt | Kể tên biên_độ chiến_thắng của jonas blixt | SELECT "Biên độ chiến thắng" FROM table 14807 WHERE "Người chạy up" = 'jonas blixt' | SELECT "Biên_độ chiến_thắng" FROM table_14807 WHERE "Người chạy up" = "jonas blixt" |
wikisql | CREATE TABLE table 30829("Tên bộ trống" text,"Dòng sản phẩm" text,"Năm có sẵn" text,"Mô-đun trống" text,"KickDrum Pad" text,"Snare Pad" text,"Tom -Tom Pads" text,"Hi-HatPad/Controller" text,"CrashandRide CymbalPad" text,"DrumStand(thường tùy chọn)" text) | CREATE TABLE table_30829("Tên bộ trống" text,"Dòng sản_phẩm" text,"Năm có sẵn" text,"Mô-đun trống" text,"KickDrum_Pad" text,"Snare_Pad" text,"Tom - Tom_Pads" text,"Hi-HatPad/Controller" text,"CrashandRide_CymbalPad" text,"DrumStand(thường tùy chọn)" text) | trong mô-đun trống td-5 miếng đệm tom-tom là gì | trong mô-đun trống td-5_miếng đệm tom-tom là gì | SELECT "TomTom Pad" FROM table 30829 WHERE "Môđun trống" = 'TD5' | SELECT "TomTom_Pad" FROM table_30829 WHERE "Môđun trống" = "TD5" |
wikisql | CREATE TABLE table 22299("Cầu thủ" text,"Đội FCSL" text,"Số năm thi đấu" text,"Năm dự thảo" real,"Vòng" text,"Đội MLB" text) | CREATE TABLE table_22299("Cầu_thủ" text,"Đội FCSL" text,"Số năm thi_đấu" text,"Năm dự_thảo" real,"Vòng" text,"Đội MLB" text) | Khi chim giẻ cùi xanh toronto là đội mlb, đội fscl là ai? | Khi chim giẻ cùi xanh toronto là đội mlb , đội fscl là ai ? | SELECT "Đội FCSL" FROM table 22299 WHERE "Đội MLB" = 'Toronto Blue Jays' | SELECT "Đội FCSL" FROM table_22299 WHERE "Đội MLB" = "Toronto_Blue Jays" |
sql_create_context | CREATE TABLE bảng 23950611 2(thứ hạng tất cả 2012 VARCHAR,tên VARCHAR) | CREATE TABLE bảng_23950611_2(thứ hạng__tất cả__2012 VARCHAR,tên VARCHAR) | Xếp hạng Forbers (tất cả các công ty) năm 2012 đối với năng lượng cenovus là bao nhiêu? | Xếp_hạng Forbers ( tất_cả các công_ty ) năm 2012 đối_với năng_lượng cenovus là bao_nhiêu ? | SELECT xếp hạng tất cả 2012 FROM bảng 23950611 2 WHERE name = "Năng lượng Cenovus" | SELECT xếp hạng__tất cả__2012 FROM bảng_23950611_2 WHERE name = "Năng_lượng Cenovus" |
wikisql | CREATE TABLE table 65751("Tần số" text,"Ký hiệu cuộc gọi" text,"Định dạng" text,"Chủ sở hữu" text,"Ghi chú" text) | CREATE TABLE table_65751("Tần_số" text,"Ký_hiệu cuộc_gọi" text,"Định_dạng" text,"Chủ_sở_hữu" text,"Ghi_chú" text) | Định dạng của FM 100.5 được cấp phép cho Hope là gì? | Định dạng của FM_100.5 được cấp phép cho Hope là gì ? | SELECT "Định dạng" FROM table 65751 WHERE "Ghi chú" = 'được cấp phép để hy vọng' AND "Tần số" = 'fm 100,5' | SELECT "Định_dạng" FROM table_65751 WHERE "Ghi_chú" = "được cấp phép để hy_vọng" AND "Tần_số" = "fm 100,5" |
sql_create_context | CREATE TABLE table name 61(màu VARCHAR,trường VARCHAR) | CREATE TABLE table_name_61(màu VARCHAR,trường VARCHAR) | Trường trung học sesser có màu gì? | Trường trung_học_sesser có màu gì ? | SELECT màu sắc FROM tên bảng 61 WHERE trường = "trường trung học seser" | SELECT màu_sắc FROM tên_bảng_61 WHERE trường = "trường trung_học_seser" |
spider | CREATE TABLE dịch vụ(service id number,service type code text) CREATE TABLE người tham gia(participant id number,participant type code text,participant details text) CREATE TABLE người tham gia in events(event id number,participant id number) CREATE TABLE sự kiện(event id number,service id number,event details text) | CREATE TABLE dịch_vụ(service_id number,service_type_code text) CREATE TABLE người tham_gia(participant_id number,participant_type_code text,participant_details text) CREATE TABLE người tham_gia_in_events(event_id number,participant_id number) CREATE TABLE sự_kiện(event_id number,service_id number,event_details text) | Liệt kê id dịch vụ và chi tiết cho các sự kiện. | Liệt_kê id dịch_vụ và chi_tiết cho các sự_kiện . | SELECT service id,event details FROM sự kiện | SELECT service_id,event_details FROM sự_kiện |
sql_create_context | CREATE TABLE table name 46(date VARCHAR,chủng tộc VARCHAR,lớp VARCHAR) | CREATE TABLE table_name_46(date VARCHAR,chủng_tộc VARCHAR,lớp VARCHAR) | Cuộc đua hạng Dodge Dealers Grand Prix GTS diễn ra vào ngày nào? | Cuộc đua_hạng Dodge Dealers_Grand Prix_GTS diễn ra vào ngày nào ? | SELECT date FROM table name 46 WHERE race = "né đại lý grand prix" AND class = "gts" | SELECT date FROM table_name_46 WHERE race = "né đại_lý grand prix" AND class = "gts" |
wikisql | CREATE TABLE table 19954("Số tập." text,"Tiêu đề tập" text,"Ngày phát sóng tại Vương quốc Anh" text,"Người trình bày" text,"Chi tiết về hành trình" text,"Các quốc gia đã ghé thăm" text) | CREATE TABLE table_19954("Số tập." text,"Tiêu_đề_tập" text,"Ngày phát_sóng tại Vương_quốc_Anh" text,"Người trình_bày" text,"Chi_tiết về hành_trình" text,"Các quốc_gia đã ghé thăm" text) | Chi tiết về cuộc hành trình của tập phim có tựa đề 'Zambezi Express' là gì? | Chi_tiết về cuộc hành_trình của tập phim có tựa đề ' Zambezi_Express ' là gì ? | SELECT "Chi tiết về cuộc hành trình" FROM table 19954 WHERE "Tiêu đề tập" = 'Zambezi Express' | SELECT "Chi_tiết về cuộc hành_trình" FROM table_19954 WHERE "Tiêu_đề_tập" = "Zambezi_Express" |
sql_create_context | CREATE TABLE table name 33(vàng INTEGER,bạc VARCHAR,phiên bản VARCHAR) | CREATE TABLE table_name_33(vàng INTEGER,bạc VARCHAR,phiên_bản VARCHAR) | Phiên bản Vàng VIII thấp nhất có Bạc là 4 là bao nhiêu? | Phiên_bản Vàng_VIII thấp nhất có Bạc là 4 là bao_nhiêu ? | SELECT MIN ( vàng ) FROM tên bảng 33 WHERE bạc = 4 AND phiên bản = "viii" | SELECT MIN ( vàng ) FROM tên_bảng_33 WHERE bạc = 4 AND phiên_bản = "viii" |
wikisql | CREATE TABLE table 66953("Năm" real,"Giải đấu" text,"Giải đấu" text,"Mùa giải thường" text,"Playoffs" text,"Cúp mở rộng" text) | CREATE TABLE table_66953("Năm" real,"Giải đấu" text,"Giải đấu" text,"Mùa giải thường" text,"Playoffs" text,"Cúp mở_rộng" text) | Năm trung bình mà Nashville Metros không đủ điều kiện tham dự Vòng loại trực tiếp, không đủ điều kiện tham dự Open Cup và có Vòng loại thường 7, Đông Nam là bao nhiêu? | Năm trung_bình mà Nashville_Metros không đủ điều_kiện tham_dự Vòng loại trực_tiếp , không đủ điều_kiện tham_dự Open_Cup và có Vòng loại thường 7 , Đông_Nam là bao_nhiêu ? | SELECT AVG ( "Năm" ) FROM table 66953 WHERE "Playoffs" = 'không đủ điều kiện' AND "Open Cup" = 'không đủ điều kiện' AND "Mùa giải thường" = 'thứ 7,đông nam' | SELECT AVG ( "Năm" ) FROM table_66953 WHERE "Playoffs" = "không đủ điều_kiện" AND "Open_Cup" = "không đủ điều_kiện" AND "Mùa giải thường" = "thứ 7,đông_nam" |
sql_create_context | CREATE TABLE bảng 15352382 1(thắng VARCHAR,đấu với VARCHAR) | CREATE TABLE bảng_15352382_1(thắng VARCHAR,đấu với VARCHAR) | nếu chống lại là 20 thì thắng bao nhiêu? | nếu chống lại là 20 thì thắng bao_nhiêu ? | SELECT thắng FROM bảng 15352382 1 WHERE đấu với = 20 | SELECT thắng FROM bảng_15352382_1 WHERE đấu với = 20 |
uswildfires | CREATE TABLE fire(fire year number,discovery date number,discovery doy number,discovery time text,stat Cause code number,stat Cause descr text,cont date text,cont doy text,cont time text,fire size number,fire size class text,vĩ độ number,kinh độ number,owner code number,owner descr text,state text,county text,fips code text,fips name text) | CREATE TABLE fire(fire_year number,discovery_date number,discovery_doy number,discovery_time text,stat_ Cause_code number,stat_ Cause_descr text,cont_date text,cont_doy text,cont_time text,fire_size number,fire_size_class text,vĩ_độ number,kinh_độ number,owner_code number,owner_descr text,state text,county text,fips_code text,fips_name text) | Cơ quan nào chịu trách nhiệm quản lý đất đai tại nơi xảy ra nhiều vụ cháy rừng nhất? | Cơ_quan nào chịu trách_nhiệm quản_lý đất_đai tại nơi xảy ra nhiều vụ cháy rừng nhất ? | SELECT owner descr FROM cháy GROUP BY owner descr ORDER BY COUNT ( * ) DESC LIMIT 1 | SELECT owner_descr FROM cháy GROUP BY owner_descr ORDER BY COUNT ( * ) DESC LIMIT 1 |
wikisql | CREATE TABLE table 151("Xếp hạng" real,"Tiêu đề tiếng Anh" text,"Tiêu đề tiếng Trung" text,"Trung bình" real,"Đỉnh" real,"Ra mắt" real,"Phần cuối" real,"Người xem HK" text) | CREATE TABLE table_151("Xếp_hạng" real,"Tiêu_đề tiếng Anh" text,"Tiêu_đề tiếng Trung" text,"Trung_bình" real,"Đỉnh" real,"Ra_mắt" real,"Phần cuối" real,"Người xem HK" text) | Buổi ra mắt có 2,09 triệu người xem ở HK là gì? | Buổi ra_mắt có 2,09 triệu người xem ở HK là gì ? | SELECT "Ra mắt" FROM table 151 WHERE "Người xem HK" = '2,09 triệu' | SELECT "Ra_mắt" FROM table_151 WHERE "Người xem HK" = "2,09 triệu" |
atis | CREATE TABLE thành phố(city code varchar,city name varchar,state code varchar,country name varchar,time zone code varchar) CREATE TABLE ground service(city code text,airport code text,transport type text,ground fare int) CREATE TABLE Dual carrier(main airline varchar,low flight number int,high flight number int,dual airline varchar,service name text) CREATE TABLE hãng hàng không(airline code varchar,airline name text,note text) CREATE TABLE code description(code varchar,mô tả text) CREATE TABLE chuyến bay(aircraft code sequence text,airline code varchar,airline flight text,arrival time int,kết nối int,departure time int,dual carrier text,flight days text,flight id int,flight number int,from airport varchar,meal code text,stops int,time elapsed int,to airport varchar) CREATE TABLE tháng(month number int,month name text) CREATE TABLE chuyến bay stop(flight id int,stop number int,ngày dừng text,sân bay dừng text,thời gian đến int,hãng hàng không đến text,số chuyến bay đến int,thời gian khởi hành int,hãng hàng không khởi hành text,số chuyến bay khởi hành int,thời gian dừng int) CREATE TABLE tiểu bang(mã trạng thái text,tên tiểu bang text,country name text) CREATE TABLE ngăn class(khoang varchar,class type varchar) CREATE TABLE Equipment sequence(aircraft code sequence varchar,aircraft code varchar) CREATE TABLE Airport service(city code varchar,airport code varchar,miles distant int,hướng varchar,phút xa int) CREATE TABLE ngày ngày(tháng số int,ngày số int,năm int,tên ngày varchar) CREATE TABLE food service(meal code text,meal number int,ngăn text,meal description varchar) CREATE TABLE máy bay(aircraft code varchar,aircraft description varchar,nhà sản xuất varchar,basic type varchar,động cơ int,động cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng lượng int,công suất int,pay load int,cruising speed int,range miles int,pressurized varchar) CREATE TABLE class of service(booking class varchar,rank int,class description text) CREATE TABLE limit(restriction code text,advance purchase int,điểm dừng text,saturday stay required text,minimum stay int,maximum stay int,application text,no discounts text) CREATE TABLE ngày(days code varchar,day name 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 time zone(time zone code text,time zone name text,hour from gmt int) CREATE TABLE giá vé basis(fare basis code text,booking class text,loại loại text,cao cấp text,phổ thông text,giảm giá text,đêm text,mùa text,ngày cơ bản text) CREATE TABLE sân bay(mã sân bay varchar,tên sân bay text,vị trí sân bay text,mã tiểu bang varchar,tên quốc gia varchar,mã khu vực thời gian varchar,thời gian kết nối tối thiểu int) CREATE TABLE time interval(thời gian text,bắt đầu int,thời gian kết thúc int) CREATE TABLE giá vé(mã giá vé int,từ sân bay varchar,đến sân bay 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 thành_phố(city_code varchar,city_name varchar,state_code varchar,country_name varchar,time_zone_code varchar) CREATE TABLE ground_service(city_code text,airport_code text,transport_type text,ground_fare int) CREATE TABLE Dual_carrier(main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text) CREATE TABLE hãng hàng_không(airline_code varchar,airline_name text,note text) CREATE TABLE code_description(code varchar,mô_tả text) CREATE TABLE chuyến bay(aircraft_code_sequence text,airline_code varchar,airline_flight text,arrival_time int,kết_nối int,departure_time int,dual_carrier text,flight_days text,flight_id int,flight_number int,from_airport varchar,meal_code text,stops int,time_elapsed int,to_airport varchar) CREATE TABLE tháng(month_number int,month_name text) CREATE TABLE chuyến bay_stop(flight_id int,stop_number int,ngày dừng text,sân_bay dừng text,thời_gian đến int,hãng hàng_không đến text,số chuyến bay đến int,thời_gian khởi_hành int,hãng hàng_không khởi_hành text,số_chuyến bay khởi_hành int,thời_gian dừng int) CREATE TABLE tiểu_bang(mã_trạng_thái text,tên_tiểu_bang text,country_name text) CREATE TABLE ngăn_class(khoang varchar,class_type varchar) CREATE TABLE Equipment_sequence(aircraft_code_sequence varchar,aircraft_code varchar) CREATE TABLE Airport_service(city_code varchar,airport_code varchar,miles_distant int,hướng varchar,phút_xa int) CREATE TABLE ngày_ngày(tháng_số int,ngày_số int,năm int,tên_ngày varchar) CREATE TABLE food_service(meal_code text,meal_number int,ngăn text,meal_description varchar) CREATE TABLE máy_bay(aircraft_code varchar,aircraft_description varchar,nhà_sản_xuất varchar,basic_type varchar,động_cơ int,động_cơ đẩy varchar,thân rộng varchar,sải cánh int,chiều dài int,trọng_lượng int,công_suất int,pay_load int,cruising_speed int,range_miles int,pressurized varchar) CREATE TABLE class_of_service(booking_class varchar,rank int,class_description text) CREATE TABLE limit(restriction_code text,advance_purchase int,điểm dừng text,saturday_stay_required text,minimum_stay int,maximum_stay int,application text,no_discounts text) CREATE TABLE ngày(days_code varchar,day_name 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 time_zone(time_zone_code text,time_zone_name text,hour_from_gmt int) CREATE TABLE giá vé_basis(fare_basis_code text,booking_class text,loại_loại text,cao_cấp text,phổ_thông text,giảm_giá text,đêm text,mùa text,ngày cơ_bản text) CREATE TABLE sân_bay(mã_sân bay varchar,tên sân_bay text,vị_trí sân_bay text,mã_tiểu_bang varchar,tên quốc_gia varchar,mã_khu vực_thời_gian varchar,thời_gian_kết nối tối_thiểu int) CREATE TABLE time_interval(thời_gian text,bắt_đầu int,thời_gian kết_thúc int) CREATE TABLE giá vé(mã_giá vé int,từ_sân bay varchar,đến_sân bay varchar,fare_basis_code text,fare_airline text,restriction_code text,one_direction_cost int,round_trip_cost int,round_trip_required varchar) | tôi muốn một chuyến bay từ NASHVILLE đến ST. LOUIS đến ST. LOUIS khoảng 6 giờ chiều và không ngừng nghỉ | tôi muốn một chuyến bay từ NASHVILLE đến ST._LOUIS đến ST. LOUIS khoảng 6 giờ chiều và không ngừng nghỉ | SELECT DISTINCT chuyến bay.flight id FROM sân bay service AS AIRPORT SERVICE 0,airport service AS AIRPORT SERVICE 1,city AS CITY 0,city AS CITY 1,flight WHERE ( ( ( flight.arrival time <= 1830 AND chuyến bay.arrival time >= 1730 ) AND CITY 1.city code = AIRPORT SERVICE 1.city code AND CITY 1.city name = 'ST.LOUIS' AND chuyến bay.to airport = AIRPORT SERVICE 1.airport code ) AND CITY 0.city code = AIRPORT SERVICE 0.city code AND CITY 0.city name = 'NASHVILLE' AND chuyến bay.from airport = AIRPORT SERVICE 0.airport code ) AND chuyến bay.điểm dừng = 0 | SELECT DISTINCT chuyến bay.flight_id FROM sân bay_service AS AIRPORT_SERVICE_0,airport_service AS AIRPORT_SERVICE_1,city AS CITY_0,city AS CITY_1,flight WHERE ( ( ( flight.arrival_time < = 1830 AND chuyến bay.arrival_time > = 1730 ) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = "ST.LOUIS" AND chuyến bay.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = "NASHVILLE" AND chuyến bay.from_airport = AIRPORT_SERVICE_0.airport_code ) AND chuyến bay.điểm dừng = 0 |
sede | CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Huy hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,Ngày đóng time,Ngày sở hữu cộng đồng time,Giấy phép nội dung text) CREATE TABLE Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội dung text,IsHidden boolean,Được xác định trước boolean,PostNoticeDurationId number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE VoteTypes(Id number,Name 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 Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE FlagTypes(Id number,Name text,Description text) 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 PostTags(PostId number,TagId 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 CloseReasonTypes(Id number,Tên text,Mô tả text) CREATE TABLE Người dùng(Id number,Danh tiếng number,Ngày tạo time,Tên hiển thị text,Ngày truy cập cuối cùng time,Url trang web text,Vị trí text,Giới thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) | CREATE TABLE PostNotices(Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,ExpiryDate time,Body text,OwnerUserId number,DeletionUserId number) CREATE TABLE TagSynonyms(Id number,SourceTagName text,TargetTagName text,CreationDate time,OwnerUserId number,AutoRenameCount number,LastAutoRename time,Score number,ApprovedByUserId number,ApprovalDate time) CREATE TABLE ReviewTasks(Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByReviewTaskId number) CREATE TABLE ReviewTaskStates(Id number,Name text,Description text) CREATE TABLE Huy_hiệu(Id number,UserId number,Tên text,Date time,Class number,TagBased boolean) CREATE TABLE SuggestedEditVotes(Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number) CREATE TABLE ReviewTaskResultTypes(Id number,Name text,Description text) CREATE TABLE PendingFlags(Id number,FlagTypeId number,PostId number,CreationDate time,CloseReasonTypeId number,CloseAsOffTopicReasonTypeId number,DuplicateOfQuestionId number,BelongsOnBaseHostAddress text) CREATE TABLE PostWithDeleted(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,Ngày đóng time,Ngày sở_hữu cộng_đồng time,Giấy_phép nội_dung text) CREATE TABLE Bài đăng(Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate time,Score number,ViewCount number,Nội_dung text,OwnerUserId number,OwnerDisplayName text,LastEditorUserId number,LastEditorDisplayName text,LastEditDate time,LastActivityDate time,Title text,Tags text,AnswerCount number,CommentCount number,FavoriteCount number,ClosedDate time,CommunityOwnedDate time,ContentLince text) CREATE TABLE ReviewTaskResults(Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId number,Comment text) CREATE TABLE PostNoticeTypes(Id number,ClassId number,Tên text,Nội_dung text,IsHidden boolean,Được xác_định trước boolean,PostNoticeDurationId number) CREATE TABLE PostHistory(Id number,PostHistoryTypeId number,PostId number,RevisionGUID_other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLince text) CREATE TABLE Comments(Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLince text) CREATE TABLE PostTypes(Id number,Name text) CREATE TABLE ReviewRejectionReasons(Id number,Name text,Description text,PostTypeId number) CREATE TABLE ReviewTaskTypes(Id number,Name text,Description text) CREATE TABLE PostHistoryTypes(Id number,Name text) CREATE TABLE Tags(Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number) CREATE TABLE VoteTypes(Id number,Name 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 Phiếu bầu(Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number) CREATE TABLE FlagTypes(Id number,Name text,Description text) 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 PostTags(PostId number,TagId 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 CloseReasonTypes(Id number,Tên text,Mô_tả text) CREATE TABLE Người dùng(Id number,Danh_tiếng number,Ngày tạo time,Tên hiển_thị text,Ngày truy_cập cuối_cùng time,Url trang_web text,Vị_trí text,Giới_thiệu về tôi text,Lượt xem number,UpVotes number,DownVotes number,ProfileImageUrl text,EmailHash text,AccountId number) | Top 50 danh sách được yêu thích nhất. Hiển thị 50 bài đăng được yêu thích nhất để bạn có thể duyệt qua tất cả những bài đăng yêu thích đó. | Top 50 danh_sách được yêu_thích nhất . Hiển_thị 50 bài đăng được yêu_thích nhất để bạn có_thể duyệt qua tất_cả những bài đăng_yêu thích đó . | SELECT Id AS "user link", ( SELECT COUNT ( * ) FROM Phiếu bầu WHERE VoteTypeId = 5 AND UserId = Users.Id ) AS Yêu thích FROM Người dùng ORDER BY Yêu thích DESC LIMIT 50 | SELECT Id AS "user_link", ( SELECT COUNT ( * ) FROM Phiếu bầu WHERE VoteTypeId = 5 AND UserId = Users.Id ) AS Yêu_thích FROM Người dùng ORDER BY Yêu_thích DESC LIMIT 50 |
sql_create_context | CREATE TABLE table name 59(cuộn INTEGER,diện tích VARCHAR) | CREATE TABLE table_name_59(cuộn INTEGER,diện_tích VARCHAR) | Thành tích của trường ở Oakura là gì? | Thành_tích của trường ở Oakura là gì ? | SELECT SUM ( cuộn ) FROM tên bảng 59 WHERE khu vực = "oakura" | SELECT SUM ( cuộn ) FROM tên_bảng_59 WHERE khu_vực = "oakura" |
sql_create_context | CREATE TABLE table name 73(origin airdate VARCHAR,nightly rank VARCHAR,viewers millions VARCHAR) | CREATE TABLE table_name_73(origin_airdate VARCHAR,nightly_rank VARCHAR,viewers__millions_ VARCHAR) | Ngày phát sóng ban đầu cho # 6 với 1.246 người xem? | Ngày phát_sóng ban_đầu cho # 6 với 1.246 người xem ? | SELECT original airdate FROM table name 73 WHERE nightly rank = "6" AND người xem millions = 1,246 | SELECT original_airdate FROM table_name_73 WHERE nightly_rank = " 6" AND người xem__millions = 1,246 |