input
stringclasses
87 values
instruction
stringlengths
0
626
output
stringlengths
1
794
การเวก เสียงทองเลิกร้องเพลงไปทำอาชีพอะไร
เล่นลิเกอยู่ตามตลาด และงานทั่วรวมทั้งรับทำขวัญนาค
ทางหลวงแผ่นดินหมายเลข 42 ผ่านทางไหนบ้าง
สายคลองแงะ–จุดผ่านแดนถาวรสุไหงโก-ลก
วัยระเริงฉายเมื่อใด
ปี พ.ศ. 2527
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number )
ช่วยหาเวลาที่คนไข้ 61500 เข้าโรงพยาบาลตั้งแต่ 2105
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 61500 AND STRFTIME('%y', admissions.admittime) >= '2105'
รูลา ฆานีคือใคร
เป็นสุภาพสตรีหมายเลขหนึ่งของประเทศอัฟกานิสถาน ด้วยเป็นภริยาของอัชราฟ ฆานี ประธานาธิบดี
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
คำนวณระยะเวลาพำนักในโรงพยาบาลของผู้ป่วยหมายเลข 013-12480 ในการเข้าพักแผนกผู้ป่วยวิกฤตครั้งแรก
SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-12480') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
คำนวณระยะเวลาการนอนโรงพยาบาลครั้งล่าสุดของผู้ป่วยหมายเลข 010-20205
SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '010-20205' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1
พระเจ้าซินด๊อกเป็นกษัตริย์ลำดับที่เท่าไหร่แห่งอาณาจักนซิลลา
ลำดับที่ 53
ต้นกระทิงมีชื่อพื้นเมืองว่าอะไรบ้าง
กากะทิง (ภาคกลาง), ทิง (กระบี่), เนาวกาน (น่าน), สารภีแนน (ภาคเหนือ)
ดาวพลูโตมีขนาดใหญ่เป็นอันดับที่เท่าไหร่ในระบบสุริยะ
อันดับที่ 9
วัดศรีพโลทัยได้รับอนุญาตให้ตั้งเป็นวัดเมื่อวันที่เท่าไหร่
5 ตุลาคม พ.ศ. 2508
เลขมงคล วันพ่อแห่งชาติ ใช้เลขอะไร
อาสนวิหารอานซี อยู่ประเทศอะไร
ประเทศฝรั่งเศส
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number )
ตั้งแต่ปี 2101 เป็นต้นมา ผู้ป่วย 1417 เคยเข้ารับการรักษาที่โรงพยาบาลกี่ครั้ง
SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 1417 AND STRFTIME('%y', admissions.admittime) >= '2101'
ปลาตาเหลือกยาวมีความยาวเต็มที่กี่เมตร
ความยาวเต็มที่ได้ถึง 1 เมตร
ปลาเทพาเป็นปลาที่จัดอยู่ในวงศ์ใด
วงศ์ปลาสวาย (Pangasiidae)
เคต วินสเล็ต ได้รับการเข้าชิงรางวัลลูกโลกทองคำกี่ครั้ง
7 ครั้ง
CREATE TABLE Posts ( 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, ContentLicense text )
จำนวนโพสต์ใน 30 วันที่ผ่านมา
SELECT COUNT(*) FROM Posts WHERE PostTypeId IN (1, 2) AND CreationDate >= DATEADD(DAY, -30, GETDATE())
เฮเลน เคลเลอร์เป็นใคร
นักเขียนและนักมนุษยธรรมชาวอเมริกัน
นิราศสองภพ ถูกสร้างเป็นละครครั้งแรกทาง ช่องอะไร
ช่อง 3
CREATE TABLE airline ( airline_code varchar, airline_name text, note text )
คือ us US
SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'US' AND airline_name LIKE 'USAIR'
จิตตคหบดี เป็นใคร
เป็นมหาอุบาสกคนสำคัญในสมัย พุทธกาล
ภายหลังจากการถวายพระเพลิงแล้ว ชิ้นส่วนประกอบต่างๆ ของพระเมรุที่ถูกรื้อถอนบางส่วนจะนำไปไว้ที่ไหน
จะนำไปถวายวัด เพื่อเป็นการกุศลแด่ผู้วายชนม์
อรุณ ภาวิไล มาจากตัวละครที่เขาแสดงชื่อเดียวกันในรายการอะไร
เพชฌฆาตความเครียด
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
มียอดการดำเนินการเกี่ยวกับวัฒนธรรมใดในปี 2104
SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cultures' AND STRFTIME('%y', treatment.treatmenttime) = '2104'
CREATE TABLE airline ( airline_code varchar, airline_name text, note text )
FF คืออะไร
SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'FF'
พระโลกนาถจบการศึกษาจากประเทศอะไร
สหรัฐอเมริกา
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%gothenburg%' OR UPPER(Location) LIKE '%GOTHENBURG%' OR Location LIKE '%Gothenburg%' AND Reputation >= 1000 ORDER BY Reputation DESC
เซ็นทรัลพัฒนา เป็นบริษัทสำหรับการพัฒนาอะไร
ดูแล และบริหารโครงการอสังหาริมทรัพย์ขนาดใหญ่ทั้งในและต่างประเทศ
สมาคมฟุตบอลสหรัฐอาหรับเอมิเรตส์ เข้าร่วมกับสหพันธ์ฟุตบอลนานาชาติ เมื่อปีอะไร
ค.ศ. 1974
ซูว์ลี พรูว์ดอมได้รับเกียรติให้เป็นสมาชิกของบัณฑิตยสถานฝรั่งเศสเมื่อปีใด
ค.ศ. 1881
CREATE TABLE Bookings ( Booking_ID INTEGER, Customer_ID INTEGER, Workshop_Group_ID VARCHAR(100), Status_Code CHAR(15), Store_ID INTEGER, Order_Date DATETIME, Planned_Delivery_Date DATETIME, Actual_Delivery_Date DATETIME, Other_Order_Details VARCHAR(255) )
พล็อตจำนวนวันที่สั่งซื้อมากกว่าวันที่สั่งซื้อในแผนภูมิเส้น
SELECT Order_Date, COUNT(Order_Date) FROM Bookings
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number )
จำนวนครั้งการมาโรงพยาบาลของผู้ป่วยหมายเลข 65401 ในปีนี้
SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 65401 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
CREATE TABLE Posts ( 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, ContentLicense text )
คำถามและคำตอบที่ได้รับการยอมรับ ในโพสต์ครั้งแรก
WITH Raw AS (SELECT MIN(Id) AS Id FROM Posts WHERE OwnerUserId > 0 GROUP BY OwnerUserId) SELECT Q.Id AS "post_link", * FROM Posts AS Q, Posts AS A WHERE Q.AcceptedAnswerId = A.Id AND Q.Id IN (SELECT Id FROM Raw) AND A.Id IN (SELECT Id FROM Raw) AND Q.OwnerUserId > 0 AND A.OwnerUserId > 0 AND Q.OwnerUserId != A.OwnerUserId AND Q.Score > 0 AND A.Score > 0 AND Q.CommunityOwnedDate IS NULL AND A.CommunityOwnedDate IS NULL AND NOT Q.ClosedDate IS NULL ORDER BY Q.Score + A.Score DESC, Q.Id LIMIT 100
เลตอิตบี บันทึกเสียงเมื่อไร
เดือนมกราคม 1969
ฮิโระ มุระโมะโตะ เคยทำงานให้กับใคร
ออสเตรเลียนบอร์ดแคสติงคอร์ปอเรชัน (เอบีซี)
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
ตั้งแต่เมื่อ 4 ปีมานี้ ได้รับการให้น้ำเกลือไฮโปโทนิก ครึ่งน้ำเกลือปกติเท่าไร
SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'hypotonic fluid administration - half-normal saline solution' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-4 year')
อันดับปลาซีกเดียวมีชื่อเรียกทางสามัญว่าอย่างไีร
Flatfish
CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int )
คุณสามารถเน้นหลักสูตรที่ให้ 12 หน่วยกิตเมื่อสำเร็จหลักสูตรหรือไม่
SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS'
โครงการสะพานเหญิตเตินเป็นโครงการกู้ยืมเงินกับหน่วยงานใด
องค์การความร่วมมือระหว่างประเทศแห่งญี่ปุ่น
ปลาช่อนถือว่าเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์ใด
วงศ์ปลาช่อน (Channidae)
ออทโทที่ 1 ดยุกแห่งเบราน์ชไวค์-ลือเนบูร์ก เสียชีวิตปีอะไร
9 มิถุนายน ค.ศ. 1252
พระเจ้ากะยอชวาแห่งพุกามสิ้นพระชนม์ตอนอายุเท่าไหร่
38 พรรษา
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number )
เปอร์เซ็นต์ของคำถามซ้ำซ้อนรายเดือน โดยนับรวมถึงคำถามที่ถูกลบแล้วด้วย
SELECT * FROM PostLinks WHERE PostId = 1066589
ตั้งวง เขียนบทและกำกับโดยใคร
คงเดช จาตุรันต์รัศมี
ขนมจีน รับประทานกับอะไร
น้ำยา น้ำพริก เป็นต้น
แฮโลเพริดอล เป็นยาอะไร
ยาระงับอาการทางจิต
CREATE TABLE table_test_31 ( "id" int, "ejection_fraction_ef" int, "macular_disease" bool, "systemic" bool, "alt" float, "iud" bool, "condom_with_spermicide" bool, "gender" string, "meropenem" bool, "non_q_wave_myocardial_infarction" bool, "hbcab" bool, "unstable_angina" bool, "birth_control_pills" bool, "cystic_fibrosis" bool, "hbv_surface_antigen_hbsag" bool, "oocytes" int, "severe_dry_eyes" bool, "afc" int, "morphological_characteristics" bool, "ovarian_reserve_test" bool, "atherectomy" bool, "hiv_infection" bool, "hormonal_contraceptives" bool, "mellitus" bool, "poor_ovarian_responder" bool, "recurrent_heart_pain" bool, "ast" float, "piperacillin" bool, "coronary_conduit" bool, "diabetic" string, "elective" bool, "ciprofloxacin" bool, "colistin" bool, "central_vision" bool, "serological_tests" bool, "inhaled_corticosteroids" bool, "angina" bool, "surgical_sterilization" bool, "retinal_disease" bool, "hcv_ab" bool, "high_risk_clinical" bool, "advanced_maternal_age" bool, "antibiotic_treatment" bool, "adequate_contraception" bool, "uveitis_disease" bool, "unprotected_left_main_coronary_artery" bool, "ovarian_response" bool, "acute_q_wave_myocardial_infarction" bool, "urgent_coronary_balloon_angioplasty" bool, "asthma" bool, "serum_creatinine" float, "intrauterine_device" bool, "kidney_disease" bool, "spermicide" bool, "fda_approved_device" bool, "anti_hepatitis_c_virus_hcv_antibody" bool, "active_scleral_disease" bool, "barrier_methods" bool, "tazobactam" bool, "glaucoma" bool, "cefepime" bool, "depo_provera" bool, "organ_failure" bool, "dysthyroid_eye_disease" bool, "peripheral_arterial_disease" bool, "cerebral_infarction" bool, "anti_hepatitis_b_core_antibody" bool, "hypertension" bool, "bilirubin" float, "risk_factor" bool, "myocardial_infarction" bool, "lupron_depot" bool, "ocular" bool, "age" float, "linezolid" bool, "NOUSE" float )
เศษส่วนการดีดดตัว <= 35 % และอย่างน้อยหนึ่งอย่างต่อไปนี้: การแทรกแซงเส้นทางหลอดเลือดหัวใจสุดท้ายที่ได้รับการจดสิทธิบัตร หรือการแทรกแซงเส้นเลือดหัวใจหลักในซีกซ้ายที่ไม่มีการป้องกัน
SELECT * FROM table_test_31 WHERE ejection_fraction_ef <= 35 AND (coronary_conduit = 1 OR unprotected_left_main_coronary_artery = 1)
CREATE TABLE Posts ( 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, ContentLicense text )
กระทู้ยอดนิยม (ถาม-ตอบ) ในเว็บไซต์
SELECT Id AS "post_link", Score, CASE WHEN PostTypeId = 1 THEN 'Question' WHEN PostTypeId = 2 THEN 'Answer' END AS "Post Type", OwnerUserId AS "user_link" FROM Posts ORDER BY Score DESC LIMIT 100
ปลากินยุง เป็นปลาน้ำอะไร
น้ำจืด
อำเภอเป็นหน่วยการปกครองระดับที่เท่าไหร่ในประเทศไทย
ระดับที่สองในประเทศไทย
อเมริกาส์เน็กซต์ท็อปโมเดล ฤดูกาลที่ 21 มีผู้เข้าแข่งขันเป็นเพศใด
ชาย
บิดาของเจ้าพระยาอรรคมหาเสนาคือใคร
เจ้าพระยามหาเสนา (เสน)
จอร์จ โบดีย์ มีอาชีพอะไร
เป็นนักการเมือง
ภาษากันนาดาได้รับอิทธิพลด้านคำศัพท์จากภาษาใด
ภาษาสันสกฤตเช่นเดียวกับภาษากลุ่มดราวิเดียนอื่น ๆ
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
มี Flacon 1 ml : hydralazine hcl 20 mg/ml ij soln กี่ใบในช่วง 4 ปีก่อน
SELECT COUNT(*) FROM medication WHERE medication.drugname = '1 ml vial : hydralazine hcl 20 mg/ml ij soln' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-4 year')
แม่น้ำโขงมีต้นกำเนิดจากที่ใด
เทือกเขาหิมาลัย
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
วิธีใช้ของ trandate คืออะไร
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'trandate'
CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number )
จำนวนแท็กต่อวันสำหรับแท็กหนึ่งแท็ก
SELECT * FROM Tags LIMIT 20
จังหวัดมีพื้นที่ติดกับจังหวัดอะไร
จังหวัดตีโมกลาเนาทางทิศเหนือ
กลีบดอกมีสีอะไร
กลีบดอกสีขาวหรือสีฟ้าอ่อน
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
ผู้ใช้งาน 50 อันดับแรกจากเมืองโอ๊คแลนด์
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%auckland%' OR UPPER(Location) LIKE '%AUCKLAND' ORDER BY Reputation DESC LIMIT 50
ไผ่หก เส้นผ่านศูนย์กลางยาวเท่าไร
12–15 เซนติเมตร
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
ผู้ป่วย 017-55081 มาครั้งแรก 06/ปีที่แล้ว ชั่งน้ำหนักได้เท่าใด
SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-55081') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', patient.unitadmittime) = '06' ORDER BY patient.unitadmittime LIMIT 1
พระราชวังมัณฑะเลย์ ก่อสร้างขึ้นระหว่างปีอะไร
ค.ศ. 1857-ค.ศ. 1859
ซฟวิ่ง ไพรเวท ไรอัน ฝ่าสมรภูมินรกฉายเมื่ิอไหร่
กลางปี ค.ศ. 1998
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
SELECT TOP 100 DisplayName จาก Users ที่ซึ่ง Location='Russia' และ Reputation=(เลือก Reputation สูงสุด
SELECT DisplayName, LastAccessDate, WebsiteUrl, AboutMe FROM Users WHERE Location = 'Russia' ORDER BY Reputation LIMIT 100
เมนเดส เกิดในโตรอนโต ประเทศแคนาดา เขาเป็นลูกชายของใคร ?
คาเรน
มูลนิธิมวยโลก ได้เข้ามาสู่ประเทศไทยในปีอะไร
พ.ศ. 2537
วิกฤตการณ์นี้เกิดในบริบทความขัดแย้งที่ดำเนินอยู่ในประเทศอะไรบ้าง
ประเทศแอฟริกาเหนือและตะวันออกกลางหลายประเทศ
หลิน ฟ่ง เสียชีวิตด้วยอะไร
การกินยา
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
50 อันดับสูงสุดของผู้ใช้จาก Auckland
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%auckland%' OR UPPER(Location) LIKE '%AUCKLAND' ORDER BY Reputation DESC LIMIT 50
จังหวัดเฟลโฟลันด์ ประกอบด้วยกี่เทศบาล
6 เทศบาล
การต่อสู้ดำเนินตั้งแต่ช่วงเวลาใด
ตั้งแต่วันที่ 22 ถึง 26 กันยายน ค.ศ. 1940
ปลาช่อนงูเห่ามีพฤติกรรมการอยู่อาศัยเป็นอย่างไร
พฤติกรรมมักอยู่อาศัยตามแม่น้ำชายฝั่งที่มีพืชน้ำและพรรณไม้ขึ้นชายฝั่งมีเงาร่ม
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
สมาชิกโดย Rep ในไอร์แลนด์.
SELECT DisplayName, Reputation, Location FROM Users WHERE UPPER(Location) LIKE '%IRELAND%' ORDER BY Reputation DESC
ในปี 1993 โอเอซิสเซ็นสัญญาเป็นศิลปินกับค่ายเพลงใด
Creation Records
CREATE TABLE Posts ( 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, ContentLicense text )
จำนวนคำตอบของผู้ใช้ในช่วงเวลาจำแนกตามเดือน
SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS "month", COUNT(*) AS Count FROM Posts WHERE OwnerUserId = @UserId GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) ORDER BY 'month' DESC
CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text )
นับจำนวนครั้งที่รับ Bupropion HCl ในปีที่ผ่านมา
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'bupropion hcl' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
ผู้ใช้ตามสถานที่ (stack overflow)
SELECT u.Id, u.DisplayName, u.Reputation, u.WebsiteUrl, u.Age, u.LastAccessDate, u.Location FROM Users AS u WHERE (LOWER(u.Location) LIKE LOWER('##Location:string##')) OR (LOWER(u.Location) LIKE LOWER('##AltLocation:string##')) OR (LOWER(u.Location) LIKE LOWER('##AltLocation2:string##')) ORDER BY u.Reputation DESC LIMIT 100
CREATE TABLE invoices ( id INTEGER, customer_id INTEGER, invoice_date TIMESTAMP, billing_address VARCHAR(70), billing_city VARCHAR(40), billing_state VARCHAR(40), billing_country VARCHAR(40), billing_postal_code VARCHAR(10), total NUMERIC(10,2) )
ชื่อของ 8 ประเทศที่มีมูลค่าใบแจ้งหนี้สูงสุดคืออะไร และมูลค่าเท่าใด จัดทำเป็นกราฟแท่ง
SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8
คู สตาร์ก เกิดที่ประเทศอะไร
สหรัฐอเมริกา
สะพานเหญิตเดินเชื่อมต่อจากที่ใดไปที่ใด
ฮานอยกับท่าอากาศยานนานาชาติโหน่ยบ่าย
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number )
ผู้ป่วย 18678 เข้ารักษาครั้งแรกหลังจาก 3 ปีที่ผ่านมาด้วยการส่งตัวจากแพทย์/ตึกปกติเมื่อใด
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 18678 AND admissions.admission_location = 'phys referral/normal deli' AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY admissions.admittime LIMIT 1
กลุ่มเกาะภาษาอังกฤษคืออะไร
archipelago
เอ็มเอส โอเอซิสออฟเดอะซีส์ เป็นเรือสำราญของบริษัทใด
บริษัทรอยัลแคริบเบียนอินเตอร์เนชั่นแนล
องค์การบริหารส่วนตำบลโพนโก จัดตั้งขึ้น ตามประกาศกระทรวงอะไร
มหาดไทย
เหตุการณ์ 6 ตุลาเกิดขึ้นที่ไหน
มหาวิทยาลัยธรรมศาสตร์ ท่าพระจันทร์ และท้องสนามหลวง
CREATE TABLE Visits ( Visit_ID INTEGER, Tourist_Attraction_ID INTEGER, Tourist_ID INTEGER, Visit_Date DATETIME, Visit_Details VARCHAR(40) )
กราฟแท่งจำนวนวันที่เข้าชมที่ไม่ซ้ำกัน และจัดอันดับจากต่ำไปสูง
SELECT Visit_Date, COUNT(Visit_Date) FROM Visits ORDER BY COUNT(Visit_Date)
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
รายชื่อของ User Id ทั้งหมด
SELECT Id FROM Users
CREATE TABLE Posts ( 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, ContentLicense text )
ลบล้างผู้ใช้ที่โพสต์อย่างน้อย 1 ครั้ง
SELECT DISTINCT OwnerDisplayName FROM Posts WHERE OwnerUserId IS NULL ORDER BY OwnerDisplayName
CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text )
อธิบายข้อจำกัด AP/57
SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/57'
มาวนีโอมีวิทยาลัยอะไร
วิทยาลัยการสอนด้านการเล่นสกี
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
ตรวจหาถ้อยคำหยาบในชื่อผู้ใช้
SELECT Id AS "user_link", DisplayName FROM Users WHERE LOWER(DisplayName) LIKE '%##Keyword##%'
สุรัสวดี เชื้อชาติ อยู่ค่ายอะไร
ค่ายมูเซอร์ เรคคอร์ด
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
ในครั้งแรกที่เข้ารับการรักษาที่โรงพยาบาล อายุของเคสที่ 011-31229 คือเท่าไหร่ครับ
SELECT patient.age FROM patient WHERE patient.uniquepid = '011-31229' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1
หม่อมเจ้าเวียงวัฒนา ชยางกูร สกุลเดิมว่าอะไร
บุญยมาลิก
ใครนำแผนหลงจงไปประยุกต์ใช้
ขุนศึกเล่าปี่ (หลิวเป้ย) และจ๊กก๊ก (รัฐฉู่) ในสมัยสามก๊ก
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number )
ผู้ใช้ที่ใช้งานมากที่สุดจากประเทศแอลจีเรีย
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location, WebsiteUrl AS Wesbite, LastAccessDate AS Seen, CreationDate FROM Users WHERE Reputation >= '##MinimalReputation:int?1##' AND (UPPER(Location) LIKE UPPER('%Algeria%') OR UPPER(Location) LIKE UPPER('%Algerie%') OR UPPER(Location) LIKE UPPER('% %')) AND Id LIKE '%isi%' ORDER BY Reputation DESC LIMIT 100
กองทัพโมซัมบิก มีชื่อเรียกอย่างเป็นทางการว่าอะไร
กองทัพป้องกันโมซัมบิก