diff --git "a/train_data.json" "b/train_data.json" new file mode 100644--- /dev/null +++ "b/train_data.json" @@ -0,0 +1 @@ +[{"instruction":"พระเจ้าฮั่นชงสิ้นพระชนม์ในปีอะไร","input":"","output":"145"},{"instruction":"คุณวาดแผนภูมิแนวโน้มของปริมาณวันจัดส่งจริงในแต่ละวันจัดส่งจริงได้ไหม และเรียงลำดับข้อมูลในแกน X จากมากไปหาน้อย","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Actual_Delivery_Date, COUNT(Actual_Delivery_Date) FROM Bookings ORDER BY Actual_Delivery_Date DESC"},{"instruction":"ฟุรุซะโตะ คือ อัลบั้มซิงเกิลชุดที่เท่าไร ","input":"","output":"ชุดที่หก"},{"instruction":"รักปรุงรส ออกฉายวันสุดท้ายวันไหน","input":"","output":"1 กันยายน พ.ศ. 2561"},{"instruction":"ยูโกสลาเวีย เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูหนาวครั้งที่ 18 จัดขึ้นปีอะไร","input":"","output":"ค.ศ. 1998 (พ.ศ. 2541)"},{"instruction":"สถิติคำถามเป็นเวลา 1 สัปดาห์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(CASE WHEN Score < 0 THEN 1 ELSE 0 END) FROM Posts WHERE CreationDate BETWEEN @start AND @end"},{"instruction":"อาร์ชบิชอปแห่งแคนเทอร์เบอรี เป็นประมุขเชิงสัญลักษณ์ของอะไร","input":"","output":"แองกลิคันคอมมิวเนียน"},{"instruction":"เรามักจะทำการตัดสินใจโดยใช้กฎที่ง่าย ๆ ซึ่งไม่ใช่วิธีการคิดโดยเหตุผลที่สมบูรณ์ประเด็นทางการศึกษาหลัก ๆของ ?","input":"","output":"ฮิวริสติกที่ใช้ในการประเมินและการตัดสินใจ"},{"instruction":"ซีซั่นสาม ออกอากาศวันที่เท่าไร","input":"","output":"14 ตุลาคม ค.ศ. 2012"},{"instruction":"การ์ตูนวิเคราะห์ข้อมูลเรื่องโปรดของคุณคือเรื่องอะไร","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Comments WHERE PostId = 423"},{"instruction":"แม่น้ำโขงเริ่มไหลผ่านประเทศไทยบริเวณใด","input":"","output":"บริเวณสบรวก สามเหลี่ยมทองคำ อำเภอเชียงแสน จังหวัดเชียงราย"},{"instruction":"บอกวันที่เกิดของคนไข้หมายเลข 6940 ให้ฉันหน่อยค่ะ","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 6940"},{"instruction":"3 เหตุการณ์ที่เกิดเหตุสำคัญ คืออะไร","input":"","output":"การประสูติ ตรัสรู้ และปรินิพพานของพระโคตมพุทธเจ้า"},{"instruction":"บัลลังก์ดาว ออกอากาศทางช่องอะไร","input":"","output":"ช่อง 5"},{"instruction":"ผู้ใช้ที่มีตราที่มีชื่อเสียง\/โด่งดัง\/เป็นที่นิยมมากที่สุด","input":"CREATE TABLE Badges (\n Id number,\n UserId number,\n Name text,\n Date time,\n Class number,\n TagBased boolean\n)\n\n","output":"SELECT UserId AS \"user_link\", SUM(CASE WHEN Class = 1 THEN 1 ELSE 0 END) AS gold, SUM(CASE WHEN Class = 2 THEN 1 ELSE 0 END) AS silver, SUM(CASE WHEN Class = 3 THEN 1 ELSE 0 END) AS bronze, COUNT(Id) AS total FROM Badges WHERE (Name = '##name1?Famous Question##') OR (Name = '##name2?Notable Question##') OR (Name = '##name3?Popular Question##') GROUP BY UserId ORDER BY gold DESC, silver DESC, bronze DESC, total DESC LIMIT 200"},{"instruction":"จำนวนทั้งหมดที่ถูกปิด จำนวนข้อสอบทั้งหมด อัตราส่วน.","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS TotalQuestions, (SELECT COUNT(*) AS TotalClosed FROM Posts AS C WHERE C.OwnerUserId = P.OwnerUserId AND ClosedDate != '' AND PostTypeId = 1) AS TotalClosed, (SELECT COUNT(*) AS TotalClosed FROM Posts AS C WHERE C.OwnerUserId = P.OwnerUserId AND ClosedDate != '' AND PostTypeId = 1) * 100.0 \/ COUNT(*) * 1.0 AS PercentClosed FROM Posts AS P WHERE P.OwnerUserId = '##UserId##' AND PostTypeId = 1 GROUP BY OwnerUserId"},{"instruction":"ต้นมะขามแขกเป็นต้นไ้ม้จัดอยู่ในวงศ์พรรณไม้ชนิดใด","input":"","output":"วงศ์ : Leguminosae"},{"instruction":"ซิกวิน เป็นชุดเครื่องมืออะไร","input":"","output":"ชุดเครื่องมือซอฟต์แวร์เสรี"},{"instruction":"ประเทศอาร์มีเนีย แข่งขันที่เมืองอะไร","input":"","output":"กรุงลอนดอน สหราชอาณาจักร"},{"instruction":"เอริก ดับเบิลยู. ไวส์สไตน์เกิดที่ใด","input":"","output":"บลูมิงตัน รัฐอินดีแอนา"},{"instruction":"โนเวย์เอาท์ จัดหลังศึกใหญ่อะไร","input":"","output":"โอเวอร์เดอะลิมิต"},{"instruction":"สนามศรีนครลำดวน ตั้งอยู่จังหวัดอะไร","input":"","output":"จังหวัดศรีสะเกษ"},{"instruction":"\"แดตส์จัสต์เดอะวูแมนอินมี\" ออกอากาศเมื่อวันที่เท่าไหร่","input":"","output":"วันที่ 15 กุมภาพันธ์ พ.ศ. 2551 "},{"instruction":"ยู มย็อง-อูเกิดเมื่อใด","input":"","output":"เกิดเมื่อ 10 มกราคม พ.ศ. 2507"},{"instruction":"3 บิลบอร์ด ทวงแค้นไม่เลิก ใครรับบทเป็นแม่","input":"","output":"แมคดอร์แมนด์"},{"instruction":"ตัวอย่างการค้นหาความคิดเห็นของ Java","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Comments WHERE Text LIKE '%java%'"},{"instruction":"ซัลลาซาร์ สลิธีริน ตัดสินใจทิ้งโรงเรียน ก่อนที่จะไปได้สร้างห้องๆหนึ่งไว้ในโรงเรียน ห้องนั้นมีชื่อว่าอะไร","input":"","output":"ห้องแห่งความลับ"},{"instruction":"ว่านหางจรเข้มีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Aloe barbadensis Mill."},{"instruction":"รับโหวตภายใน X วันล่าสุด คิวรีตัวช่วยที่ดึงชุดข้อมูลการโหวตทั้งหมดใน X วันล่าสุด","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)","output":"SELECT * FROM Votes WHERE CreationDate >= CURRENT_TIMESTAMP() - @numDaysBegin"},{"instruction":"หอพระคันธารราษฎร์ สร้างขึ้นเพื่ออะไร","input":"","output":"ประดิษฐานพระคันธารราษฎร์"},{"instruction":"ท่าอากาศยานนานาชาติโลแกน อยู่รัฐอะไร","input":"","output":"รัฐแมสซาชูเซตส์"},{"instruction":"โรงเรียนบ้านสวน สร้างขึ้นครั้งแรกกี่ไร่","input":"","output":"8 ไร่"},{"instruction":"วันแรกสุดที่มีการชำระเงินคือเมื่อ?","input":"CREATE TABLE payment (\n payment_id number,\n customer_id number,\n staff_id number,\n rental_id number,\n amount number,\n payment_date time,\n last_update time\n)\n\n","output":"SELECT payment_date FROM payment ORDER BY payment_date LIMIT 1"},{"instruction":"กราฟเกี่ยวกับจำนวนลูกค้าที่ใช้วิธีชำระเงินแต่ละวิธี","input":"CREATE TABLE Customers (\n customer_id INTEGER,\n payment_method_code VARCHAR(10),\n customer_code VARCHAR(20),\n customer_name VARCHAR(80),\n customer_address VARCHAR(255),\n customer_phone VARCHAR(80),\n customer_email VARCHAR(80)\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code"},{"instruction":"บ้านมนังคศิลา ตั้งอยู่เลขอะไร","input":"","output":"514"},{"instruction":"ปลาตะลุมพุกเป็นปลาที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาหลังเขียว (Clupeidae)"},{"instruction":"จำนวนที่รับ vs. จำนวนที่ถูกปฏิเสธต่อ 1 เดือน","input":"CREATE TABLE SuggestedEdits (\n Id number,\n PostId number,\n CreationDate time,\n ApprovalDate time,\n RejectionDate time,\n OwnerUserId number,\n Comment text,\n Text text,\n Title text,\n Tags text,\n RevisionGUID other\n)\n\n","output":"WITH Raw AS (SELECT TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%Y') AS yyyy, TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%M') AS mm, COUNT(ApprovalDate) AS ApprovalCount, COUNT(RejectionDate) AS RejectionCount FROM SuggestedEdits GROUP BY TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%Y'), TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%M')) SELECT DATEFROMPARTS(yyyy, mm, 1) AS Month, ApprovalCount, RejectionCount FROM Raw ORDER BY Month DESC"},{"instruction":"ถนนประดิษฐ์มนูธรรม เป็นถนนอะไร","input":"","output":"ถนนเลียบทางพิเศษฉลองรัช"},{"instruction":"แสดงอัลบั้มทั้งหมดโดยเรียงลำดับชื่ออัลบั้มจากน้อยไปมาก","input":"CREATE TABLE albums (\n id number,\n title text,\n artist_id number\n)\n\n","output":"SELECT title FROM albums ORDER BY title"},{"instruction":"นับว่าผู้ป่วย 95057 เข้ารับบริการในโรงพยาบาลกี่ครั้ง ตั้งแต่ปี 2015","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 95057 AND STRFTIME('%y', admissions.admittime) >= '2105'"},{"instruction":"มีผู้รับบริการพักรักษาตัวเป็นผู้ป่วยในที่หอผู้ป่วย 517 ย้อนหลัง 2 ปี กี่ราย","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 517 AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"อำเภอกะพ้อ ทิศตะวันออก ติดต่อกับอำเภออะไร","input":"","output":"อำเภอบาเจาะ (จังหวัดนราธิวาส)"},{"instruction":"ระหว่างการเข้ารักษาที่โรงพยาบาลในป���จจุบันของผู้ป่วยหมายเลข 027-85328, ตัวระบุแรกของแผนกผู้ป่วยในคืออะไร?","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328' AND patient.hospitaldischargetime IS NULL) ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"ตระกูลทาเกดะ มีฐานที่มั่นอยู่ที่แคว้นอะไร","input":"","output":"แคว้นคาอิ"},{"instruction":"แรดชวามีอายุประมาณกี่ปีในธรรมชาติ","input":"","output":"30-45 ปี"},{"instruction":"โศกนาฏกรรมครั้งสอง ชื่ออะไร","input":"","output":"ฮิลส์โบโร"},{"instruction":"อาหรับราตรีถูกรวบรวมไว้เมื่อไหร่","input":"","output":"ยุคทองของอิสลาม "},{"instruction":"ปลาแค้ยักษ์อาศัยแถวไหน อธิบาย","input":"","output":"อาศัยอยู่ในสายใหญ่ตั้งแต่แม่น้ำสาละวินจนถึงแม่น้ำโขง"},{"instruction":"คำถามที่ไม่ได้ลบ ยังไม่ปิด และมีคะแนนโหวต <= 1 เรียงตามวันที่","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\", q.CreationDate FROM Posts AS q WHERE q.PostTypeId = 1 AND q.CreationDate > '##StartDate##' AND q.CreationDate < '##EndDate##' AND q.ClosedDate > '##StartDate##' AND q.DeletionDate IS NULL AND q.Score <= 1 AND COALESCE((SELECT MAX(a.Score) FROM Posts AS a WHERE a.ParentId = q.Id AND a.PostTypeId = 2), 0) <= 1 ORDER BY q.CreationDate"},{"instruction":"เขียนชื่อเผ่าพันธุ์ที่แตกต่างกันทั้งหมด ไล่ลำดับตามพจนานุกรมท้ายไปหน้า","input":"CREATE TABLE races (\n raceid number,\n year number,\n round number,\n circuitid number,\n name text,\n date text,\n time text,\n url text\n)\n\n","output":"SELECT DISTINCT name FROM races ORDER BY name DESC"},{"instruction":"แบล็คพิ้งค์เดบิวต์เมื่อวันที่เท่าไร","input":"","output":"วันที่ 8 สิงหาคม ค.ศ. 2016"},{"instruction":"ผู้ป่วยหมายเลข 022-78423 เข้าโรงพยาบาลมาแล้วกี่วัน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '022-78423' AND patient.hospitaldischargetime IS NULL"},{"instruction":"ห้องแลป 800 แห่ง มีอยู่จริงหรือไม่","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 800"},{"instruction":"สวนเบญจสิริได้รับการออกแบบภูมิทัศน์โดยใคร","input":"","output":"ศาสตราจารย์กิตติคุณ เดชา บุญค้ำ"},{"instruction":"ผู้ใช้ที่มียอดโพสต์ชุมชนวิกิสูงที่สุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(Id), OwnerUserId AS \"user_link\" FROM Posts WHERE NOT CommunityOwnedDate IS NULL GROUP BY OwnerUserId ORDER BY COUNT(Id) DESC"},{"instruction":"เคียว โนงูจิ เสียชีวิตเมื่ออายุเท่าไหร่","input":"","output":"69 ปี"},{"instruction":"วันมาฆบูชา หมายถึงอะไร","input":"","output":"การบูชาในวันเพ็ญกลางเดือนมาฆะตามปฏิทินอินเดีย"},{"instruction":"วิศวกร Linux (เกี่ยวกับฉันที่เกี่ยวกับคีย์เวิร์ดที่เกี่ยวข้องกับ Linux Engineer)","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT DISTINCT CONCAT('https:\/\/stackoverflow.com\/users\/', u.Id) AS \"profile_link\", u.DisplayName, u.Reputation, u.Location, u.WebsiteUrl, REPLACE(REPLACE(u.AboutMe, CHAR(13), ''), CHAR(10), '') AS AboutMe FROM Users AS u WHERE (u.AboutMe LIKE '%linux%' OR u.AboutMe LIKE '%ubuntu%' OR u.AboutMe LIKE '%unix%' OR u.AboutMe LIKE '%red hat%' OR u.AboutMe LIKE '%fedora project%' OR u.AboutMe LIKE '%ovirt%') AND (u.AboutMe LIKE '%admin%' OR u.AboutMe LIKE '%engineer%') ORDER BY u.Reputation DESC"},{"instruction":"สำหรับผลิตภัณฑ์แต่ละประเภท แสดงความสัมพันธ์ระหว่างราคาขั้นต่ำของผลิตภัณฑ์และราคาขั้นสูงสุดของผลิตภัณฑ์ในแผนภาพการกระจาย","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT MAX(product_price), MIN(product_price), product_type_code FROM Products GROUP BY product_type_code"},{"instruction":"สองชีวิตหนึ่งโศกนาฏกรรมบรรจบ สร้างขึ้นในปีอะไร","input":"","output":"ค.ศ. 2007"},{"instruction":"นางตุลสีหรือนางวฤนทาคือ ?","input":"","output":"ผู้ดูแลและรักษาและสถิตในต้นกะเพรา"},{"instruction":"ญี่ปุ่นยอมจำนนต่อสงครามโลกครั้งที่สอง เมื่อใด","input":"","output":"วันที่ 2 กันยายน ค.ศ. 1945"},{"instruction":"ผู้ป่วยรายที่ 016-38131 ในรอบการรักษาที่โรงพยาบาลปัจจุบัน มีส่วนสูงที่บันทึกไว้ครั้งล่าสุดเท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionheight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ภาษาเพิร์ล พัฒนาโดยใคร","input":"","output":"นายแลร์รี วอลล์"},{"instruction":"พระเจ้ากะยอชวาแห่งพุกามเป็นโอรสใคร","input":"","output":"พระเจ้านรสีหบดี"},{"instruction":"ที่หยุดรถไฟทุ่งน้ำซึม เปิดใช้งานเมื่อไร","input":"","output":"10 ธ.ค. 2502"},{"instruction":"คักกูโระ ย่อมาจากภาษาญี่ปุ่นว่าอะไร","input":"","output":"คาซังกูโรซุ"},{"instruction":"คนไข้รหัส 26849 มาโรงพยาบาลตอนแรกเมื่อปีที่แล้วอย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 26849 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime LIMIT 1"},{"instruction":"เมื่อไหร่เป็นครั้งสุดท้ายที่ผู้ป่วย 016-18575 เข้ารับการตรวจรักษาที่โรงพยาบาลในช่วง 1 ปีที่ผ่านมา ผ่านการนัดหมายโดยตรง","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '016-18575' AND patient.hospitaladmitsource = 'direct admit' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"ผู้ใช้งานใหม่เมื่อ 30 วันที่ผ่านมา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT CAST(CreationDate AS DATE) AS \"date\", COUNT(Id) AS \"new_users\" FROM Users WHERE CreationDate >= DATEADD(d, -30, GETDATE()) GROUP BY CAST(CreationDate AS DATE) ORDER BY CAST(CreationDate AS DATE) DESC"},{"instruction":"พระพุทธชินราช ตรงกับรัชสมัยไหน","input":"","output":"พระมหาธรรมราชาที่ 1"},{"instruction":"เดชเซียวฮื้อยี้ เป็นภาพยนตร์ประเทศอะไร","input":"","output":"ฮ่องกง"},{"instruction":"ชื่อ 10 อันดับแรกใน Stack Overflow ที่ขึ้นต้นด้วย 'Jon'","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(DisplayName), DisplayName FROM Users WHERE UPPER(DisplayName) LIKE 'JON%' GROUP BY DisplayName ORDER BY COUNT(DisplayName) DESC LIMIT 10"},{"instruction":"เซเบิลมีลักษณะเป็นแบบใด","input":"","output":"มีขนสีน้ำตาลเข้ม น้ำหนักเมื่อโตเต็มที่อาจหนักได้ถึง 4 กิโลกรัม"},{"instruction":"ชื่อเสียงโดยเฉลี่ยของผู้ใช้ SO ในเมืองแมนเชสเตอร์ สหราชอาณาจักร","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT AVG(Reputation) AS \"average_reputation\", COUNT(Id) AS \"total_users\" FROM Users WHERE LOWER(Location) LIKE '%manchester, united kingdom' AND Reputation > 1"},{"instruction":"อัตรา MSE ของการโพสต์ (ไม่เป็นศูนย์)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS Q_count, p.OwnerUserId AS uid FROM Posts AS p WHERE p.PostTypeId = 1 AND p.OwnerUserId IN (141525, 146126, 811, 50049, 1438, 164200, 115866, 155160, 98786, 209637, 147336, 131182, 135201, 23354, 51, 6212, 146719, 166017, 4, 2, 130213, 159928, 13, 176330, 208518, 142481, 229741, 232374, 147574, 235711, 236798, 3, 179315, 132770, 167585, 166581, 184698, 140512, 131257, 253547, 262550, 282398, 147667) GROUP BY p.OwnerUserId ORDER BY Q_count DESC"},{"instruction":"วอชิตแซ ในปี ค.ศ 2010 มีประชากรเท่าไร","input":"","output":"7,176 คน"},{"instruction":"ชั้น 381 มี Project ด้วยไหม","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT has_projects FROM course WHERE department = 'EECS' AND number = 381"},{"instruction":"น้ำหนักแรกของคนไข้ 027-120551 เมื่อ 90 เดือนก่อนคือเท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-120551') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-90 month') ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"ประเทศสวิตเซอร์แลนด์ เข้าร่วมการแข่งขันอะไร","input":"","output":"กีฬาโอลิมปิก"},{"instruction":"ปลาฉนากจะงอยปากแคบมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Anoxypristis cuspidata"},{"instruction":"ฌูเวา เปดรู กาวากู กังเซลู เกิดวันที่เท่าไหร่","input":"","output":"27 พฤษภาคม ค.ศ. 1994"},{"instruction":"อารีย์ วงศ์อารยะ ปัจจุบันอายุเท่าไร","input":"","output":"84 ปี"},{"instruction":"คนไข้หมายเลข 71689 เข้ารักษาในโรงพยาลบาลมาแล้วกี่วัน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 71689 AND admissions.dischtime IS NULL"},{"instruction":"โพสต์ที่มีแท็กยอดนิยม","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT Count, TagName FROM Tags WHERE Count > 50000 ORDER BY Count"},{"instruction":"ชิงแชมป์ PABA รุ่นซูเปอร์เฟเธอร์เวทเมื่อวันที่เท่าใด ?","input":"","output":"4 เ���ษายน 2546"},{"instruction":"ฝ่ายอินฟันเดเปโดรถูกสนับสนุนโดยใคร","input":"","output":"พระปิตุลาของกษัตริย์ที่มีพระราชินีกงส์ตังซา"},{"instruction":"select top 1 จาก Posts","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE AnswerCount = 0 ORDER BY CreationDate DESC LIMIT 10"},{"instruction":"ปาโอโล อุชเชลโล เป็นจิตรกรในบรรดาจิตรกรคนแรก ๆ ที่ใช้ทฤษฎีการเขียนแบบใด","input":"","output":"แบบทัศนียภาพ"},{"instruction":"เพศของผู้ป่วย 033-2671 คือเพศอะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '033-2671'"},{"instruction":"ได้รับการประกาศเป็นอุทยานแห่งชาติเมื่อวันที่เท่าไร","input":"","output":"19 กันยายน พ.ศ. 2505"},{"instruction":"Q กับ B แตกต่างกันอย่างไร","input":"CREATE TABLE class_of_service (\n booking_class varchar,\n rank int,\n class_description text\n)","output":"SELECT DISTINCT booking_class, class_description, rank FROM class_of_service WHERE booking_class = 'B' OR booking_class = 'Q'"},{"instruction":"แท็กใช้มากกว่าหนึ่งครั้งโดยไม่มีวิกิ","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT t.* FROM Tags AS t WHERE t.Count > 1 AND (t.ExcerptPostId IS NULL OR t.WikiPostId IS NULL) ORDER BY t.Count DESC, t.Id DESC"},{"instruction":"คำถามที่น่าสนใจ ตามความคิดเห็นที่มี","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\" FROM Comments WHERE (LOWER(Text) LIKE 'interesting question%' OR LOWER(Text) LIKE 'an interesting question%') AND LENGTH(Text) <= 25 ORDER BY CreationDate DESC"},{"instruction":"ในเดือนกรกฎาคม ค.ศ. 2016 รัฐบาลประจำจังหวัดบาซีลันได้เริ่มการก่อสร้างศาลากลางจังหวัดแห่งใหม่ เนื้อที่เท่าใด ?","input":"","output":"4,000 เฮกตาร์"},{"instruction":"บุรุนดี หรือเรียกอย่างเป็นทางการว่าอะไร","input":"","output":"สาธารณรัฐบุรุนดี"},{"instruction":"การลงประชามติในประเทศสวิตเซอร์แลนด์ เกิดขึ้นวันที่เท่าไร","input":"","output":"23 พฤษภาคม ค.ศ. 1875"},{"instruction":"อะไรคือ จำนวนผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลในปีที่แล้ว","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"อนันต์ ภักดิ์ประไพเป็���บุตรของใคร ?","input":"","output":"นายอรุณ ภักดิ์ประไพ กับนางชวนชื่น ภักดิ์ประไพ"},{"instruction":"แอนทิโลปขนาดกลาง ในวงศ์ย่อย Reduncinae หรืออะไร","input":"","output":"แอนทิโลปบึง"},{"instruction":"ผู้ใช้สัญชาติแอฟริกาใต้จำแนกตามที่ตั้ง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Location, COUNT(*) AS number FROM Users WHERE Location LIKE '%South Africa%' OR Location LIKE '%Cape Town%' OR Location LIKE '%Capetown%' OR Location LIKE '%Joburg%' OR Location LIKE '%Johannesburg%' OR Location LIKE '%JHB%' OR Location LIKE '%Gauteng%' OR Location LIKE '%Pretoria%' OR Location LIKE '%Western Cape%' OR Location LIKE '%Stellenbosch%' OR Location LIKE '%Durban%' OR Location LIKE '%KZN%' OR Location LIKE '%Port Elizabeth%' OR Location LIKE '%Midrand%' OR Location LIKE '%Sandton%' OR Location LIKE '%Randburg%' OR Location LIKE '%Limpopo%' OR Location LIKE '%Mpumalanga%' OR Location LIKE 'ZA' GROUP BY Location ORDER BY number DESC"},{"instruction":"จำนวนคำถามที่ถามในเว็บไซต์ก่อนวันที่","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate < '##Date##'"},{"instruction":"ส่งคืนผลรวมของจำนวนเงินที่ชำระทั้งหมด","input":"CREATE TABLE payment (\n payment_id number,\n customer_id number,\n staff_id number,\n rental_id number,\n amount number,\n payment_date time,\n last_update time\n)\n\n","output":"SELECT SUM(amount) FROM payment"},{"instruction":"ตั้งแต่เมื่อ 5 ปีก่อน มีผู้ป่วยเข้ารับการรักษาในโรงพยาบาลกี่คน?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-5 year')"},{"instruction":"คลาสใดบ้างที่ฉันจะสมัครเรียนได้เพื่อรับหน่วยกิต 1 หน่วย","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 1 AND department = 'EECS'"},{"instruction":"คำนวณระยะเวลาการนอนรักษาครั้งสุดท้ายของผู้ป่วย 015-8398","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '015-8398' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"เอลิซาเบธ ชู เ���ิดที่เมืองใด ?","input":"","output":"เมืองวิลมิงตัน"},{"instruction":"ผู้ใช้ที่ติดอันดับ 10 อันดับแรก: ตูนิเซีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%tunis%' ORDER BY Reputation DESC LIMIT 10"},{"instruction":"คำนวณระยะเวลาพักรักษาตัวในโรงพยาบาลของคนไข้หมายเลข 010-20205 ในการพักรักษาตัวในโรงพยาบาลครั้งสุดท้าย","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"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"},{"instruction":"ผู้ดีอีสาน สร้างโดยบริษัทอะไร","input":"","output":"ยูม่า 99 จำกัด"},{"instruction":"ถนนอินทรพิทักษ์ ถูกเรียกอีกชื่อว่าอะไร","input":"","output":"ถนนสายที่ 4"},{"instruction":"จัดอันดับตามความน่าเชื่อสำหรับผู้ใช้ใน Valencia","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%valencia%' OR UPPER(Location) LIKE '%VLC' ORDER BY Reputation DESC"},{"instruction":"พื้นที่ลุ่มน้ำของเทือกเขา มีผู้อาศัยจำนวนเท่าไร","input":"","output":"750 ล้านคน"},{"instruction":"ยูโกสลาเวีย แข่งขันที่เมืองอะไร","input":"","output":"เมืองแคลการี"},{"instruction":"ตำนานแห่งซิลมาริล เป็นนิยายอะไร","input":"","output":"นิยายจินตนิมิต"},{"instruction":"วันเกิดของผู้ป่วยหมายเลข 6940","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 6940"},{"instruction":"ผู้ใช้สูงสุดจาก Algeria \/.","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"โรงเรียนอยุธยานุสรณ์ อยู่ภายใต้สำนักงานอะไร","input":"","output":"สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน"},{"instruction":"ผู้ป่วย 035-18528 มีอายุเท่าไรเมื่อเข้ารับการรักษาที่โรงพยาบาลครั้งแรก","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.age FROM patient WHERE patient.uniquepid = '035-18528' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"คำว่า dessert ในภาษาอังกฤษมีรากศัพท์มาจากคำในภาษาฝรั่งเศสคำว่า ?","input":"","output":"desservir"},{"instruction":"พายุฝุ่นในประเทศอินเดีย พ.ศ. 2561 มีผู้เสียชีวิตประมาณกี่คน","input":"","output":"มีผู้เสียชีวิตกว่า 110 คน"},{"instruction":"ซูว์ลี พรูว์ดอมสนใจด้านใด","input":"","output":"งานเขียนจนเข้ารับการศึกษาใหม่ด้านวรรณคดี "},{"instruction":"ผู้ป่วย 006-10390 เข้าโรงพยาบาลครั้งแรกของปีนี้เมื่อไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-10390' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"1000 สุดยอดผู้ใช้ StackOverflow จากแอฟริกาใต้","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, WebsiteUrl AS Website, Location FROM Users WHERE Location LIKE '%South Africa%' ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"ยาคอฟ ดซูกัสวิลี ทำหน้าที่อะไรในกองทัพประเทศอะไร","input":"","output":"สหภาพโซเวียต"},{"instruction":"ผู้ใช้ Stack Overflow ใน 50 อันดับแรกของมาธยประเทศ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%Madhya pradesh%' OR UPPER(Location) LIKE '%Madhya pradesh%' OR Location LIKE '%Madhya pradesh%' AND Reputation >= 1000 ORDER BY Reputation DESC LIMIT 2500"},{"instruction":"ดาวตะกร้า ถือกำเนิดมาจากยุคอะไร","input":"","output":"ยุคคอร์บอนิฟอรัส"},{"instruction":"ผู้ป่วยที่ขาดวิตามินบี 12 ผู้ที่มีภาวะไทรอยด์ทำงานผิดปกติ หรือมีประวัติส่วนตัวของความผิดปกติของโรคทางการแพทย์ที่ระบุทางคลินิกได้หรือโรคทางระบบประสาท\/จิตเวชที่ระบุทางคลินิกได้ (นอกเหนือจากโฆษณา) รวมถึง (แต่ไม่จำกัดเฉพาะ) โรคหลอดเลือดสมอง โรคของสมอง สภาวะหลอดเลือดในสมอง โรคอื่น ๆ ที่ทำให้ระบบประสาทเสื่อม อาการบาดเจ็บที่ศีรษะอย่างรุนแรง (หมดสติไปมากกว่าครึ่ง���ั่วโมง หรือภาวะสูญเสียความจำแบบย้อนหลังที่เกี่ยวข้อง) โรคปลอกประสาทเสื่อมแข็ง หรือมีประวัติผ่าตัดสมอง หรือฉายรังสีที่สมองมาก่อน","input":"CREATE TABLE table_train_124 (\n \"id\" int,\n \"loss_of_consciousness\" bool,\n \"serum_glucose\" bool,\n \"myelosuppression\" bool,\n \"retinoids_hepatotoxic\" bool,\n \"pulmonary_disease\" bool,\n \"etiology\" bool,\n \"abnormal_thyroid_function\" bool,\n \"laboratory_abnormality\" bool,\n \"chest_pain\" bool,\n \"dsm_iv_criteria\" bool,\n \"neurodegenerative_disease\" bool,\n \"active_infection\" bool,\n \"epilepsy\" bool,\n \"major_psychiatric_disorder\" bool,\n \"investigational_new_drug\" bool,\n \"head_injury\" bool,\n \"stroke\" bool,\n \"substance_dependence\" bool,\n \"anterograde_amnesia\" bool,\n \"renal_disease\" bool,\n \"cerebrovascular_disease\" bool,\n \"hepatic_disease\" bool,\n \"other_systemic_disease\" bool,\n \"psychiatric_disease\" bool,\n \"clinical_disorder\" bool,\n \"multiple_sclerosis\" bool,\n \"retinoids\" bool,\n \"cardiovascular_disease\" bool,\n \"hematologic_disease\" bool,\n \"prothrombin_time\" bool,\n \"focal_brain_lesion\" bool,\n \"ventricular_fibrillation\" bool,\n \"psychosis\" bool,\n \"liver_disease\" bool,\n \"bipolar_disorder\" bool,\n \"chronic_inflammatory\" bool,\n \"brain_lesions\" bool,\n \"diabetes\" bool,\n \"vitamin_b12_deficiency\" bool,\n \"medical_disorder\" bool,\n \"total_bilirubin\" bool,\n \"gastrointestinal_disease\" bool,\n \"endocrine_disease\" bool,\n \"metabolic\" bool,\n \"ventricular_tachycardia\" bool,\n \"neurological_disease\" bool,\n \"seizure_disorder\" bool,\n \"ast_or_alt\" bool,\n \"alcohol_abuse\" bool,\n \"ad\" bool,\n \"neurosurgery\" bool,\n \"allergy_to_retinoids\" bool,\n \"brain_radiation\" bool,\n \"major_depression\" bool,\n \"NOUSE\" float\n)","output":"SELECT * FROM table_train_124 WHERE vitamin_b12_deficiency = 1 OR abnormal_thyroid_function = 1 OR medical_disorder = 1 OR neurological_disease = 1 OR psychiatric_disease = 1 AND ad = 0 OR (stroke = 1 OR brain_lesions = 1 OR cerebrovascular_disease = 1 OR neurodegenerative_disease = 1 OR (head_injury = 1 OR loss_of_consciousness = 1 OR anterograde_amnesia = 1) OR multiple_sclerosis = 1 OR neurosurgery = 1 OR brain_radiation = 1)"},{"instruction":"หญ้าคาจัดว่าเป็นพืชอยู่ในวงศ์อะไรของพรรณไม้","input":"","output":"วงศ์ : Gramineae"},{"instruction":"วิจิตร เกตุแก้ว เกิดที่จังหวัดอะไร","input":"","output":"จังหวัดนนทบุรี"},{"instruction":"การสร้างภาพสมองโดยกิจ เช่นอะไร","input":"","output":"fMRI ซึ่งใช้วินิจฉัยโรคทางเมแทบอลิซึมและรอยโรคในสมองที่ละเอียดยิ่งขึ้น (เช่น โรคอัลไซเมอร์)"},{"instruction":"สนุกเกอร์หกแดงจัดการแข่งขันเป็นแรกเมื่อไหร่","input":"","output":"กรกฎาคม ปี 2008"},{"instruction":"คนดีแตกได้รับรางวัลในปีอะไร","input":"","output":"ค.ศ. 2014"},{"instruction":"ผู้ป่วย 22756 นัดรับตัวเข้าโรงพยาบาลเวลาไหนคะ\/ครับ","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 22756"},{"instruction":"ปลาดุกมูนมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Bagrichthys obscurus"},{"instruction":"สร้างหน้า HTML เพื่อแสดง (ส่วนใหญ่) เป็นไฟล์ GIF เคลื่อนไหวที่โพสต์ในจำนวนวันที่ระบุ สร้าง HTML เพื่อวางลงในไฟล์ .html ว่างเปล่าเพื่อแสดงรูปภาพ .GIF (ส่วนใหญ่เป็น GIF เคลื่อนไหว) ที่เชื่อมโยงกับโพสต์ถ���ม-ตอบภายใน 'จำนวนวันล่าสุดที่ระบุ' ระบบจะค้นหาคำว่า `.gif` ครั้งแรกในเนื้อหาโพสต์และค้นหาคำว่า `http` ย้อนกลับ...\n\nคำแนะนำ:\n(1) รันการค้นหานี้โดยระบุ 'จำนวนวันก่อนหน้า' (ก่อนวันนี้) เพื่อรวมไว้ในผลลัพธ์...\n(2) คลิกดาวน์โหลด CSV แล้วบันทึกไฟล์...\n(3) เปลี่ยนนามสกุลไฟล์จาก .CSV เป็น .HTML...\n(4) ดับเบิลคลิกที่ไฟล์เพื่อเปิดในเบราว์เซอร์\n\nมีข้อบกพร่องมาก ไกลจากความสมบูรณ์แบบ (แค่อยากสนุก!) สูงสุด ~180 gif","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT SUBSTRING(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - (CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1), CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1) AS \"gif_url\", CASE WHEN PostTypeId = 2 THEN 'Answer' ELSE 'Question' END AS \"post_type\", Id AS \"post_link\", CreationDate AS \"post_date\" FROM Posts WHERE CreationDate >= DATEADD(d, -30, GETDATE()) AND Body LIKE '%' + @stStart + '%' + @stEnd + '%' COLLATE SQL_Latin1_General_CP1_CI_AS ORDER BY CreationDate DESC"},{"instruction":"โฮลเดน อยู่นอกเมืองอะไร","input":"","output":"เมืองเมลเบิร์น"},{"instruction":"ประกาศในราชกิจจานุเบกษา เล่มที่เท่าไร","input":"","output":"113"},{"instruction":"ผู้ใช้หัวแถวจากแอลจีเรียจากทุกรัฐ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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?10##' AND (UPPER(Location) LIKE UPPER('%algeria%')) ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"จำนวนโพสต์ที่มีการใช้งานในเดือนก่อนของผู้ดูแล 3 คน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS PostsLastMonth, 3 AS Moderators, (COUNT(*) \/ 3) AS PostsLastMonthPerMod FROM Posts WHERE LastActivityDate >= DATEADD(month, -1, (SELECT MAX(LastActivityDate) FROM Posts))"},{"instruction":"แดเนียล บราวน์ เป็นนักกีฬาอะไร","input":"","output":"นักกีฬายิงธนู"},{"instruction":"คณะสังคมศาสตร์ มหาวิทยาลัยเชียงใหม่ สอนวิชาอะไรบ้าง","input":"","output":"สาขาวิชาทางสังคมศาสตร์"},{"instruction":"ผู้ใช้ 35 อันดับแรกจากเมืองอาห์เมดาบัด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%kochi%' OR UPPER(Location) LIKE '%KOCHI%' OR Location LIKE '%kochi%' ORDER BY Reputation DESC LIMIT 35"},{"instruction":"โกโช อาโอยามะ เกิดวันที่เท่าไหร่","input":"","output":"21 มิถุนายน พ.ศ. 2506"},{"instruction":"SOja - จำนวนโพสต์ที่ใช้งานเมื่อเดือนที่แล้วต่อ 3 ผู้ควบคุม","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT COUNT(*) AS PostsLastMonth, 3 AS Moderators, (COUNT(*) \/ 3) AS PostsLastMonthPerMod FROM Posts WHERE LastActivityDate >= DATEADD(month, -1, (SELECT MAX(LastActivityDate) FROM Posts))"},{"instruction":"ใครคือนักร้องนำของโอเอซิส","input":"","output":"เลียม แกลลาเกอร์"},{"instruction":"มีวิชาเรียนอะไรบ้างที่มี 2 เครดิตและอยู่ในระดับ SW 100","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE credits = 2 AND department = 'SW' AND number < 100 + 100 AND number >= 100"},{"instruction":"กบฏวังหลวง เกิดขึ้นเมื่อไหร่","input":"","output":"26 กุมภาพันธ์ พ.ศ. 2492 "},{"instruction":"เอ็กมาอินเตอร์เนชันแนล โดยองค์กรได้เปลี่ยนมาใช้ชื่อนี้ในปีอะไร","input":"","output":"พ.ศ. 2537"},{"instruction":"ห้องปฏิบัติการขนาด 800 ตรว.มีอยู่จริงหรือ","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 800"},{"instruction":"เนยหรือเบคอนอันไหนดีกว่ากัน?","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT 'bacon', COUNT(*) FROM Posts WHERE Body LIKE '%bacon%' UNION ALL SELECT 'butter', COUNT(*) FROM Posts WHERE Body LIKE '%butter%'"},{"instruction":"โปสเตอร์อันดับต้นๆ สำหรับแต่ละประเทศ จะได้รับโปสเตอร์อันดับต้นๆ สำหรับประเทศที่คุณเลือก","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT TOP(@TopCount) AS Id, DisplayName, Reputation, LastAccessDate, Age, Location FROM Users WHERE Location LIKE '##COuntry##%' ORDER BY Reputation DESC"},{"instruction":"พระเจ้าอัลฟอนโซเสด็จพระราชสมภพที่ใด","input":"","output":"เมืองซาลามังกาในราชอาณาจักรเลออน"},{"instruction":"สภาพภูมิประเทศของเกาเสม็ดเป็นแบบใด","input":"","output":"มีสันเขาเป็นแกนยาวจากทิศเหนือลงมาทางใต้"},{"instruction":"กราฟแท่งสำหรับจำนวนเบอร์โทรศัพท์ของพนักงานแต่ละคน โดยเรียงจากแกน y จากมากไปน้อย","input":"CREATE TABLE Employee (\n EmployeeId integer,\n LastName varchar(20),\n FirstName varchar(20),\n Title varchar(30),\n ReportsTo integer,\n BirthDate datetime,\n HireDate datetime,\n Address varchar(70),\n City varchar(40),\n State varchar(40),\n Country varchar(40),\n PostalCode varchar(10),\n Phone varchar(24),\n Fax varchar(24),\n Email varchar(60)\n)\n\n","output":"SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY COUNT(Phone) DESC"},{"instruction":"แท็กพ้องความหมายที่แนะนำซึ่งไม่มีการโหวต\/","input":"CREATE TABLE TagSynonyms (\n Id number,\n SourceTagName text,\n TargetTagName text,\n CreationDate time,\n OwnerUserId number,\n AutoRenameCount number,\n LastAutoRename time,\n Score number,\n ApprovedByUserId number,\n ApprovalDate time\n)\n\n","output":"SELECT 'site:\/\/tags\/' + TargetTagName + '\/synonyms|' + SourceTagName AS Synonym, TargetTagName AS Original, OwnerUserId AS \"user_link\" FROM TagSynonyms WHERE Score = 0 AND ApprovalDate IS NULL ORDER BY 'user_link' DESC"},{"instruction":"สถานะสมรสของผู้ป่วย 58932 ในครั้งแรกที่มาที่โรงพยาบาลคืออะไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 58932 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"วันขึ้น 15 ค่ำ เดือน 6 หรือเรียกอีกอย่างว่าอะไร","input":"","output":"วันเพ็ญแห่งเดือนวิสาขะ"},{"instruction":"ทักษิณชินวัตรเป็นนายกรัฐมนตรีคนที่เท่าไหร่ของประเทศไทย","input":"","output":"คนที่ 23"},{"instruction":"จำกัดโพสต์ตามวันที่ - คำถามเท่านั้น (บทช่วยสอน)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title, Id, PostTypeId FROM Posts WHERE CreationDate BETWEEN '2014-07-01' AND '2014-07-31' AND PostTypeId = 1"},{"instruction":"หญ้าข้าวนกส่วนมากพบที่ทวีปใด","input":"","output":"ในทวีปเอเชียและทวีปแอฟริกา"},{"instruction":"มีการดำเนินการตามขั้นตอนวัฒนธรรมจำนวนกี่ครั้งในปี 2104 ","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cultures' AND STRFTIME('%y', treatment.treatmenttime) = '2104'"},{"instruction":"คำว่า \"เกียกกาย\" เป็นศัพท์โบราณที่ใช้เรียกอะไร ?","input":"","output":"กองทหารส่วนดูแลเสบียง"},{"instruction":"แหล่งท่องเที่ยวไหนบ้างที่สามารถเดินทางโดยรถบัสหรือเดิน และมีชื่อและเ���ลาเปิดบริการอย่างไร","input":"CREATE TABLE tourist_attractions (\n tourist_attraction_id number,\n attraction_type_code text,\n location_id number,\n how_to_get_there text,\n name text,\n description text,\n opening_hours text,\n other_details text\n)\n\n","output":"SELECT name, opening_hours FROM tourist_attractions WHERE how_to_get_there = \"bus\" OR how_to_get_there = \"walk\""},{"instruction":"พิกุล ชื่อวิทยาศาสตร์ คือ ?","input":"","output":"Mimusops elengi"},{"instruction":"การประกาศอย่างเป็นทางการมีเนื้อหาว่าอย่างไร","input":"","output":"ยกสถานะคณะธรรมยุติ ให้เป็นนิกายอย่างถูกต้องตามกฎหมาย"},{"instruction":"ผู้ป่วยหมายเลข 009-1746 นอนในห้องผู้ป่วยวิกฤตครั้งแรกนานแค่ไหน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-1746') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"มาซาฮิโกะมีฉายาไทยว่าอะไร","input":"","output":"ไอ้กระทิงเผือก"},{"instruction":"จำนวนคำถามสำหรับ PHP และ cURL","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Title FROM Posts WHERE Title LIKE '%php%curl%' OR Title LIKE '%php%post%'"},{"instruction":"มาร์เชอ เกย์ ฮาร์เดน เกิดเมื่อวันที่เท่าใด ?","input":"","output":"วันที่ 14 สิงหาคม ค.ศ. 1959"},{"instruction":"ฟาม ฟาเตล คือ สตูดิโออัลบั้มลำดับที่เท่าไร","input":"","output":"ลำดับที่ 7"},{"instruction":"แสดงผู้ใช้เรียงตามจำนวนคำตอบตั้งแต่วันที่กำหนด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.OwnerUserId, COUNT(p.Id) AS \"number_of_answers\" FROM Posts AS p WHERE DATEDIFF(day, p.CreationDate, GETDATE()) <= 90 GROUP BY p.OwnerUserId ORDER BY COUNT(p.Id) DESC"},{"instruction":"ประโยชน์ของใบระงับพิษคืออะไร","input":"","output":"ปรุงเป็นยาเขียว"},{"instruction":"กราฟแสดงข้อมูลราคาเฉลี่ยของผลิตภัณฑ์แต่ละประเภท โดยเรียงข้อมูลช่วงราคาจากต่ำสุดไปสูงสุด","input":"CREATE TABLE Products (\n Product_ID VARCHAR(100),\n Product_Name VARCHAR(255),\n Product_Price DECIMAL(20,4),\n Product_Description VARCHAR(255),\n Other_Product_Service_Details VARCHAR(255)\n)\n\n","output":"SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name ORDER BY Product_Name"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"yellow wood"},{"instruction":"คอร์สที่มีเครดิตเรียน 11 หน่วยกิต ?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 11 AND department = 'EECS'"},{"instruction":"ยูกิ มูราอิเกิดที่ใด","input":"","output":"เมืองซาไก จังหวัดโอซากะ ประเทศญี่ปุ่น"},{"instruction":"สงครามเย็นเกิดขึ้นช่วงใด","input":"","output":"ค.ศ. 1947–1991"},{"instruction":"จักรวรรดิออตโตมันเข้าสู่สงครามใน ค.ศ. ใด","input":"","output":"ค.ศ. 1914"},{"instruction":"ประวัติโค้ดทั้งหมดสำหรับ PostId","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT Id, Text FROM PostHistory WHERE PostId = 111102"},{"instruction":"กล้วยน้ำว้าเป็นพรรณไม้จัดอยู่ในวงศ์พรรณไม้ชนิดใด","input":"","output":"วงศ์ : Musaceae"},{"instruction":"มาโคโตะ มีลักษณะแต่งตัวอย่างไร","input":"","output":"ผ้าพันคอเส้นยาวเป็นสัญลักษณ์ประจำตัว"},{"instruction":"หลวงพี่แจ๊ส 4G จำหน่ายโดยใคร","input":"","output":"มูฟวี่ ฮีโร่"},{"instruction":"นะงะเซะ โทะโมะยะ เกิดวันที่เท่าไร","input":"","output":"7 พฤศจิกายน ค.ศ.1978"},{"instruction":"ประเทศสวิตเซอร์แลนด์ เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูร้อนครั้งที่ 3 ปีอะไร","input":"","output":"ค.ศ. 1904 (พ.ศ. 2447)"},{"instruction":"ระยะเวลาที่นานที่สุดในการนอนของผู้ป่วยรายที่ 009-1746 อยู่ในหอผู้ป่วยวิกฤตคือ","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-1746') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"ไฮเดินถูกไล่ออกจากตำแหน่งในปีใด ?","input":"","output":"ค.ศ. 1929"},{"instruction":"คำตอบที่ได้คะแนนมากว่าคำตอบของ[ผู้ใช้]","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT ParentId AS \"post_link\", Id AS \"Post Link\", PostTypeId AS \"Post Type\", OwnerUserId AS \"User Link\", Score AS \"Score\", COUNT(*) AS Count FROM Posts AS P WHERE ParentId IN (SELECT ParentId AS \"Post Link\" FROM Posts AS TargetP WHERE OwnerUserId = '##TargetUserId##' AND P.Score > TargetP.Score) GROUP BY OwnerUserId, ParentId, Id, PostTypeId, Score"},{"instruction":"แจ้งเวลาเข้ารับการรักษาของผู้ป่วยหมายเลข 51577 ถึงปั��จุบัน 2104","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 51577 AND STRFTIME('%y', admissions.admittime) <= '2104'"},{"instruction":"เนาวรัตน์ พงษ์ไพบูลย์ เกิดวันที่เท่าไหร่?","input":"","output":"26 มีนาคม พ.ศ. 2483"},{"instruction":"ปลาตีนเป็นปลาที่อยู่ในวงศ์ย่อยใด","input":"","output":"วงศ์ย่อย Oxudercinae"},{"instruction":"การเคหะแห่งชาติ เกิดขึ้นจิงๆ วันที่เท่าไร","input":"","output":"12 กุมภาพันธ์ พ.ศ. 2516"},{"instruction":"ปลากระสงมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Channa lucius"},{"instruction":"เลขอะตอมสะท้อนถึงสิ่งใด","input":"","output":"คุณสมบัติของธาตุ"},{"instruction":"คำถามล่าสุดที่มีคะแนน 5 หรือมากกว่า รายการคำถามล่าสุดบนเว็บไซต์ที่มีคะแนน 5 หรือมากกว่า จำกัดที่ 500","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT 'post_link' = Id, Score, CAST(TIME_TO_STR(CreationDate, '%d %b %Y') AS TEXT(11)) AS Date FROM Posts WHERE PostTypeId = 1 AND Score >= 5 AND ClosedDate IS NULL ORDER BY CreationDate DESC LIMIT 500"},{"instruction":"แท็บกิจกรรมของผู้ใช้ชั้นนำ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Reputation, activity = 'site:\/\/users\/' + CAST(Id AS TEXT) + '?tab=topactivity|Activity', profile = 'site:\/\/users\/' + CAST(Id AS TEXT) + '?tab=profile|Profile' FROM Users ORDER BY Reputation DESC LIMIT 200"},{"instruction":"ซัมซุง กาแลคซีเอส คืออะไร","input":"","output":"สมาร์ตโฟน"},{"instruction":"การวินิจฉัยอาการทางตาใดๆ ต่อไปนี้: โรคเยื่อแข็งตาอักเสบที่ลุกลาม โรคต้อหิน โรคจอประสาทตาที่มีแนวโน้มจะส่งผลต่อการมองเห็นตอนกลางวัน โรคจอตาเสื่อมหรือโรคยูเวียอักเสบ โรคตาแห้งรุนแรงและโรคตาไทรอยด์","input":"CREATE TABLE table_test_31 (\n \"id\" int,\n \"ejection_fraction_ef\" int,\n \"macular_disease\" bool,\n \"systemic\" bool,\n \"alt\" float,\n \"iud\" bool,\n \"condom_with_spermicide\" bool,\n \"gender\" string,\n \"meropenem\" bool,\n \"non_q_wave_myocardial_infarction\" bool,\n \"hbcab\" bool,\n \"unstable_angina\" bool,\n \"birth_control_pills\" bool,\n \"cystic_fibrosis\" bool,\n \"hbv_surface_antigen_hbsag\" bool,\n \"oocytes\" int,\n \"severe_dry_eyes\" bool,\n \"afc\" int,\n \"morphological_characteristics\" bool,\n \"ovarian_reserve_test\" bool,\n \"atherectomy\" bool,\n \"hiv_infection\" bool,\n \"hormonal_contraceptives\" bool,\n \"mellitus\" bool,\n \"poor_ovarian_responder\" bool,\n \"recurrent_heart_pain\" bool,\n \"ast\" float,\n \"piperacillin\" bool,\n \"coronary_conduit\" bool,\n \"diabetic\" string,\n \"elective\" bool,\n \"ciprofloxacin\" bool,\n \"colistin\" bool,\n \"central_vision\" bool,\n \"serological_tests\" bool,\n \"inhaled_corticosteroids\" bool,\n \"angina\" bool,\n \"surgical_sterilization\" bool,\n \"retinal_disease\" bool,\n \"hcv_ab\" bool,\n \"high_risk_clinical\" bool,\n \"advanced_maternal_age\" bool,\n \"antibiotic_treatment\" bool,\n \"adequate_contraception\" bool,\n \"uveitis_disease\" bool,\n \"unprotected_left_main_coronary_artery\" bool,\n \"ovarian_response\" bool,\n \"acute_q_wave_myocardial_infarction\" bool,\n \"urgent_coronary_balloon_angioplasty\" bool,\n \"asthma\" bool,\n \"serum_creatinine\" float,\n \"intrauterine_device\" bool,\n \"kidney_disease\" bool,\n \"spermicide\" bool,\n \"fda_approved_device\" bool,\n \"anti_hepatitis_c_virus_hcv_antibody\" bool,\n \"active_scleral_disease\" bool,\n \"barrier_methods\" bool,\n \"tazobactam\" bool,\n \"glaucoma\" bool,\n \"cefepime\" bool,\n \"depo_provera\" bool,\n \"organ_failure\" bool,\n \"dysthyroid_eye_disease\" bool,\n \"peripheral_arterial_disease\" bool,\n \"cerebral_infarction\" bool,\n \"anti_hepatitis_b_core_antibody\" bool,\n \"hypertension\" bool,\n \"bilirubin\" float,\n \"risk_factor\" bool,\n \"myocardial_infarction\" bool,\n \"lupron_depot\" bool,\n \"ocular\" bool,\n \"age\" float,\n \"linezolid\" bool,\n \"NOUSE\" float\n)","output":"SELECT * FROM table_test_31 WHERE ocular = 1 OR (active_scleral_disease = 1 OR glaucoma = 1 OR (retinal_disease = 1 AND central_vision = 1) OR macular_disease = 1 OR uveitis_disease = 1 OR severe_dry_eyes = 1 OR dysthyroid_eye_disease = 1)"},{"instruction":"นกปักษาสวรรค์เล็ก ชื่อวิทยาศาสตร์ คือ ?","input":"","output":"Paradisaea minor"},{"instruction":"เพชรในตม: คำถามที่ดูน้อยที่สุดและทำคะแนนได้ 5 หรือสูงกว่า","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Posts.Id AS \"post_link\", Posts.OwnerUserId AS \"user_link\", Score, ViewCount, Score * 1000 \/ ViewCount AS \"Score per Thousand Views\" FROM Posts WHERE Score >= 5 AND PostTypeId = 1 ORDER BY ViewCount LIMIT 1000"},{"instruction":"มีอัพโหลดรูปภาพไปยังเว็บไซต์แล้วกี่รูป จำนวนโพสต์ที่มีรูปภาพโฮสต์โดยimgur.com หลังจากที่มีการนำการอัปโหลดรูปภาพขึ้นเว็บไซต์ขึ้นมาใช้","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH c AS (SELECT OwnerUserId, Body, 1 AS t FROM Posts WHERE CreationDate >= 'August 13, 2010') SELECT OwnerUserId AS \"user_link\", SUM(t) AS Count FROM c WHERE Body LIKE '%imgur.com%' GROUP BY OwnerUserId WITH ROLLUP ORDER BY SUM(t) DESC"},{"instruction":"ปลาเฮร์ริงน้ำจืด เป็นกลุ่มปลาขนาดอะไร","input":"","output":"ขนาดเล็กกลุ่มหนึ่ง"},{"instruction":"เกรนไดเซอร์มีกี่ตอน","input":"","output":"74ตอน"},{"instruction":"จอห์น วิค แรงกว่านรก 3 เขียนบทโดยใคร","input":"","output":"ดีเรก โคลสแตด"},{"instruction":"ลิเทียมคลอไรด์ เป็นสารประกอบประเภทใด","input":"","output":"สารประกอบไอออนิก"},{"instruction":"พอร์เชอ คาร์เรรา GT ผลิตขึ้นในประเทศอะไร","input":"","output":"ประเทศเยอรมนี"},{"instruction":"ชุมเห็ดไทยเป็นพืชจัดอยู่ในวงศ์ของพรรณไม้ชนิดใด","input":"","output":"วงศ์ : Leguminosae"},{"instruction":"จากที่ผู้ป่วย 40059 เข้าร��บการรักษาในโรงพยาบาลมาแล้วกี่ชั่วโมง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 40059 AND admissions.dischtime IS NULL"},{"instruction":"เรียวอิจิ มาเอดะ เล่นตำแหน่งอะไร","input":"","output":"กองหน้าตัวรุก"},{"instruction":"ผู้ใช้คนแรกที่ลงคะแนนปิดกระทู้ที่ถูกปิดไปแล้ว ส่งคืน user ID ของผู้ใช้คนแรกที่ลงคะแนนปิดคำถามที่ถูกปิดไปเมื่อไม่นานมานี้ เรียงตามเวลาปิด","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostHistory.PostId AS \"post_link\", PostHistory.CreationDate AS PostClosureDate, PostHistory.UserId AS \"user_link\", PostHistory.Comment AS PostClosureComment, CAST(SUBSTRING(PostHistory.Text, STR_POSITION(PostHistory.Text, 'Voters') + 15, STR_POSITION(PostHistory.Text, 'Display') - STR_POSITION(PostHistory.Text, 'Voters') - 17) AS INT) AS \"user_link\", PostHistory.Text AS PostClosureText FROM PostHistory WHERE PostHistoryTypeId = 10 ORDER BY PostHistory.CreationDate DESC LIMIT 200"},{"instruction":"น้ำหนักของผู้ป่วยเลขที่ 006-141797 ในครั้งวัดล่าสุดเมื่อเทียบกับครั้งแรกที่วัดในครั้งที่เข้ารับการรักษาครั้งสุดท้ายนั้นต่างกันเท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-141797' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-141797' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)"},{"instruction":"อำเภอสุวรรณภูมิก่อตั้งเมื่อใด","input":"","output":"ปี พ.ศ. 2256"},{"instruction":"จำนวนคำถามต่อเดือน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT number = ROW_NUMBER() OVER (ORDER BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate))), COUNT(Posts.Id) AS Total FROM Posts WHERE (PostTypeId = 1 AND CreationDate >= '##Date1##' AND CreationDate <= '##Date2##') GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) ORDER BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate))"},{"instruction":"โดยอดีตจักรพรรดิซันโจได้เสนอเงื่อนไขต่อ ?","input":"","output":"ฟุจิวะระ โนะ มิชินะงะ"},{"instruction":"โยฮัน คริสทีอัน โรเซนมึลเลอร์ ���กิดที่ไหน","input":"","output":"ฮิลบูร์กเฮาเซน"},{"instruction":"ธรีเวิลด์เทรดเซ็นเตอร์คืออะไร","input":"","output":"อาคารที่กำลังก่อสร้างเป็นส่วนหนึ่งของอาคารชุดเวิลด์เทรดเซ็นเตอร์ใหม่"},{"instruction":"ความสูงครั้งล่าสุดของผู้ป่วย 005-80291 ณ วันที่ 2105\/10 คือเท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-80291') AND NOT patient.admissionheight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2105-10' ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"กาปรี อยู่แคว้นอะไร","input":"","output":"แคว้นคัมปาเนีย"},{"instruction":"102 ปิดกรุงเทพฯปล้น ฉายเมื่อวันที่เท่าไร","input":"","output":"29 เมษายน พ.ศ. 2547"},{"instruction":"อกริเพียว โฮลดิ้งส์ เป็นบริษัทเกี่ยวกับอะไร","input":"","output":"บริษัทประกอบธุรกิจการลงทุน"},{"instruction":"ผู้ป่วย 77177 เข้าโรงพยาบาลเวลาอะไรในปี 2101","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 77177 AND STRFTIME('%y', admissions.admittime) = '2101'"},{"instruction":"เลือก id จากโพสต์ที่มี ViewCount > 100000","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Title FROM Posts WHERE ViewCount > 100000"},{"instruction":"บัลลังก์ดาว ดำเนินการโดยใคร","input":"","output":"สุริวิภา กุลตังวัฒนา"},{"instruction":"คอนสตันติน เชียร์เนนโค เสียชีวิตเมื่อไร","input":"","output":"10 มีนาคม ค.ศ. 1985"},{"instruction":"ส่งคืนฮิสโตแกรมจำนวนใบแจ้งหนี้ที่เรียกเก็บจากแต่ละรัฐ และจัดเรียงแกน x จากต่ำไปสูง","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY billing_state"},{"instruction":"วลาดีมีร์ ครัมนิค เป็นแชมป์โลกหมากรุกสากลอย่างไร้ข้อโต้แย้ง ตั้งแต่ปีอะไร","input":"","output":"ค.ศ. 2006 ถึง 2007 "},{"instruction":"ข้อความค้นหาสำหรับคำที่เกี่ยวข้องกับพลังงานในข้อความโพสต์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE ('body' LIKE '%energy%' OR 'body' LIKE '%energy consum%')"},{"instruction":"การทำซ้ำที่เกิดขึ้นอย่างควบคุมไม่ได้: คำถามที่มีการทำซ้ำมากที่สุด http:\/\/meta.stackexchange.com\/a\/244636\/200117","input":"CREATE TABLE PostLinks (\n Id number,\n CreationDate time,\n PostId number,\n RelatedPostId number,\n LinkTypeId number\n)\n\n","output":"SELECT l.RelatedPostId AS \"post_link\", COUNT(l.PostId) AS \"Duplicate Count\" FROM PostLinks AS l WHERE l.LinkTypeId = 3 GROUP BY l.RelatedPostId ORDER BY 'Duplicate Count' DESC LIMIT 100"},{"instruction":"ชื่อเสียงโดยเฉลี่ยของผู้ใช้ SO ในเมืองแมนเชสเตอร์ สหราชอาณาจักร","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT AVG(Reputation) AS \"average_reputation\", COUNT(Id) AS \"total_users\" FROM Users WHERE LOWER(Location) LIKE '%manchester, united kingdom' AND Reputation > 1"},{"instruction":"คนไข้หมายเลข 004-32341 เข้ารับการรักษาในโรงพยาบาลครั้งแรกเมื่อ 2 ปีที่แล้ว ได้รับการเข้ารับการรักษาเพราะอะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '004-32341' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"เทย่า โรเจอร์ส มีผลงาน ภาพยนตร์เรื่องแรกที่เพิ่งผ่านตามมาคืออะไร","input":"","output":"303 กลัว\/กล้า\/อาฆาต มิวสิกวีดีโอ"},{"instruction":"ปลาซิวแก้วมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"วิทยาศาสตร์: Clupeichthys aesarnensis"},{"instruction":"หาโพสต์ที่ถูกลบหมายเลข 1257021","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT * FROM PostHistory WHERE PostId = 1257021"},{"instruction":"แสดงวันจัดส่งที่วางแผนไว้ทั้งหมดและถังขยะตามปีในแผนภูมิเส้น จัดเรียงจากมากไปน้อยตาม X","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date DESC"},{"instruction":"การแจกแจงคะแนน (คำถามทั้งหมด ไม่กรอง)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(Id) AS CountOfScore, Score FROM Posts AS p WHERE p.PostTypeId = 1 AND Score BETWEEN -20 AND 20 GROUP BY Score ORDER BY Score"},{"instruction":"แบล็คพิ้งค์มีสมาชิกทั้งหมดกี่คน","input":"","output":"ประกอบด้วยสมาชิกจำนวนสี่คน"},{"instruction":"กลยุทธ์ส่งเสียงบูรพาฝ่าตีประจิม หรืออีกชื่อหนึ่งว่าอะไร","input":"","output":"เซิงตงจี๋ซี"},{"instruction":"ค้นหาความคิดเห็นระหว่างวันที่ที่กำหนด","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Id AS \"comment_link\", UserId AS \"user_link\", DATE(CreationDate) FROM Comments WHERE (LOWER(Text) LIKE LOWER('%##SearchString##%')) AND DATE(CreationDate) BETWEEN @StartDate AND @EndDate ORDER BY CreationDate DESC"},{"instruction":"จำนวนผู้ใช้ที่มี 1 rep","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(*) FROM Users WHERE Reputation = 1 AND (CreationDate = LastAccessDate)"},{"instruction":"แสดงจำนวนสินทรัพย์และจัดกลุ่มสินทรัพย์ที่สร้างในรูปแบบแผนภูมิแท่ง โดยเรียงลำดับในแบบเพิ่มขึ้นตามจำนวนสินทรัพย์ที่สร้างขึ้น","input":"CREATE TABLE Assets (\n asset_id INTEGER,\n maintenance_contract_id INTEGER,\n supplier_company_id INTEGER,\n asset_details VARCHAR(255),\n asset_make VARCHAR(20),\n asset_model VARCHAR(20),\n asset_acquired_date DATETIME,\n asset_disposed_date DATETIME,\n other_asset_details VARCHAR(255)\n)\n\n","output":"SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY COUNT(asset_make)"},{"instruction":"อากิเลส โฮเซ กุซมัน มาตูเตได้แชมป์เรียกชื่อว่าอะไร","input":"","output":"แชมป์เวเนซุเอลารุ่นฟลายเวต"},{"instruction":"ทะเลญี่ปุ่นถูกล้อมรอบด้วยประเทศใด","input":"","output":"ประเทศญี่ปุ่น เกาหลีใต้ เกาหลีเหนือ และรัสเซีย"},{"instruction":"แสดงวันที่การจัดส่งที่วางแผนและบรรจุลงกล่องทั้งหมดเป็นปีในแผนภูมิเส้น และจัดอันดับจากสูงไปต่ำตามแกน X","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date DESC"},{"instruction":"ครั้งแรกที่ผู้ป่วย 70645 เข้ารับการรักษาในโรงพยาบาลในปีที่แล้วคือวันไหน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 70645 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime LIMIT 1"},{"instruction":"กว่าจะปิ๊งต้องชิ่งก่อน เขียนบทโดยใคร","input":"","output":"โคลิน แพทริค ลินช์"},{"instruction":"ส่วนสูงล่าสุดของคนไข้หมายเลข 027-149724 ในเดือนนี้เท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-149724') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"กีฬายิมนาสติก ประกอบไปด้วยกี่รายการ","input":"","output":"ยี่สิบรายการ"},{"instruction":"แมทธิว มัวร์ ฮาร์ดี ทำอาชีพอะไร","input":"","output":"แมต ฮาร์ดี"},{"instruction":"ในปีนี้มีผู้ป่วยหมายเลข 49654 เข้ารับการรักษาหรือไม่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 49654 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"รายชื่อผู้ใช้: Top N - อินเดีย - พร้อมรายการยกเว้น False positive รายชื่อผู้ใช้ในอินเดีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE (LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND') AND LENGTH(Location) > 1 LIMIT 100"},{"instruction":"ประสบความสำเร็จในอัมบั้มอะไร","input":"","output":"ไฮบริดทีโอรี"},{"instruction":"จำนวนผู้ป่วยที่ออกจากโรงพยาบาลจริงตั้งแต่เมื่อ 1 ปีก่อนคือเท่าไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-1 year')"},{"instruction":"ผู้ถือชื่อเสียง 250 อันดับแรกจากอินเดีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%Pakistan%' OR UPPER(Location) LIKE '%Pak' ORDER BY Reputation DESC LIMIT 250"},{"instruction":"ผู้ใช้ระดับสูงจาก Pune, India ผู้ใช้ระดับสูงจาก Pune, India","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE%' OR Location LIKE '%Pune%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"การเวก เสียงทองมีชื่อจริงว่าอะไร","input":"","output":"ธงชัย แสงยุนนท์"},{"instruction":"ผู้คน 20 อันดับต้นๆ ที่เรียกว่า Tunaki","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(DisplayName) LIKE '%skeet%' ORDER BY Reputation DESC LIMIT 20"},{"instruction":"อัมบั้ม คิงไซร์ ออกในปีอะไร","input":"","output":"พ.ศ. 2547"},{"instruction":"รายชื่อผู้ใช้ในสถานที่เฉพาะ เรียงตามตำแหน่งที่ค้นหา คำสั่งค้นหาจะแสดงรายชื่อผู้ใช้ทั้งหมดที่อยู่ในตำแหน่งนั้นๆ โดยเรียงตามตำแหน่ง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Location, Reputation FROM Users WHERE UPPER(LEFT(Location, 5)) = 'INDIA' AND Reputation >= '##minimumReputation##' ORDER BY Location"},{"instruction":"อำเภอกะพ้อ ตั้งอยู่ทางทิศอะไร","input":"","output":"ทิศตะวันออกเฉียงใต้"},{"instruction":"ผู้ป่วย 5905 เป็นเพศอะไร","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 5905"},{"instruction":"5 โปรแกรมเมอร์จาก StackOverflowers ที่เก่งที่สุดใน Coimbatore","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%singapore%' OR UPPER(Location) LIKE '%SINGAPORE%' OR Location LIKE '%singapore%' AND Reputation >= 10000 ORDER BY Reputation DESC LIMIT 25"},{"instruction":"วันที่ 06\/ปีที่แล้ว คนไข้หมายเลข 017-55081 วัดน้ำหนักครั้งแรกได้เท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"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"},{"instruction":"พล็อตแผนภูมิแบบกระจาย จำนวน(*) โดย constructorid","input":"CREATE TABLE constructorStandings (\n constructorStandingsId INTEGER,\n raceId INTEGER,\n constructorId INTEGER,\n points REAL,\n position INTEGER,\n positionText TEXT,\n wins INTEGER\n)\n\n","output":"SELECT COUNT(*), constructorId FROM constructorStandings GROUP BY constructorId"},{"instruction":"แสดงโพสต์เกี่ยวกับ Jon Skeet","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title, ViewCount, Id FROM Posts WHERE PostTypeId = 1 AND Title LIKE '%Jon Skeet%' OR Title LIKE '%Jon-Skeet%'"},{"instruction":"ค้นหาคำถามที่โพสต์ในวันที่","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", CreationDate FROM Posts WHERE CreationDate >= '02.07.2018' AND CreationDate <= '02.08.2018'"},{"instruction":"จักรพรรดิโกะ-อิจิโจ จักรพรรดิองค์ที่ 68 แห่งราชวงศ์ญี่ปุ่นตามที่ได้จัดเรียงไว้ใน ? ","input":"","output":"รายพระนามจักรพรรดิญี่ปุ่น"},{"instruction":"มีการใช้ธงแสดงสัญชาติอย่างเป็นทางการครั้งแรกที่ใด","input":"","output":"พิธีสวนสนามที่เมือง โพโลเควน (ปีเตอร์สเบิร์ก) "},{"instruction":"คลื่นความร้อนกินเวลามาแล้วกี่วัน","input":"","output":"32 วัน"},{"instruction":"บราเธอร์ส เป็นภาพยนตร์สัญชาติอะไร","input":"","output":"อเมริกัน"},{"instruction":"1000 ผู้ใช้ที่ใช้มากที่สุดในอินเดีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"ให้ฉันดู 2 เครดิต Bioinformatics Seminar","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Bioinformatics Seminar%' OR name LIKE '%Bioinformatics Seminar%') AND credits = 2"},{"instruction":"หลังจากเกิดการรั่วไหลของเอกสารปานามาใครประกาศลาออก","input":"","output":"นายกรัฐมนตรีไอซ์แลนด์ ซิกมึนตืร์ ตาวิด กึนน์เลยค์ซอน"},{"instruction":"จำนวนคำถาม MSE","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS count FROM Posts WHERE PostTypeId = 1"},{"instruction":"ฮันส์ โมโดร มีอาชีพอะไร","input":"","output":"นักการเมืองฝ่ายซ้าย"},{"instruction":"การขนส่งเอชเอ็ม บริการเส้นทางใด บ้าง","input":"","output":"เส้นทางจากเมโทรมะนิลาไปยังเมืองต่าง ๆ"},{"instruction":"ปลากระมังเป็นสัตว์น้ำที่อยู่ในวงศ์ประเภทใด","input":"","output":"���งศ์ปลาตะเพียน (Cyprinidae)"},{"instruction":"ก่อตั้งขึ้นเมื่อ วันที่เท่าไหร่ ?","input":"","output":"วันที่ 30 พฤษภาคม พ.ศ. 2512"},{"instruction":"พระเจ้าซินด๊อกเป็นลูกของใคร ?","input":"","output":" แดอาชาน กับ องค์หญิงเยคยอม"},{"instruction":"บอกฉันหน่อยได้ไหมว่าวันเกิดของคนไข้หมายเลข 76494 คือวันไหน?","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 76494"},{"instruction":"หาจำนวนผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลในปีที่แล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"อาณาเขตทางทิศเหนือของจังหวัดขอนแก่นติดกับจังหวัดอะไร","input":"","output":"จังหวัดเลย จังหวัดหนองบัวลำภู และจังหวัดอุดรธานี"},{"instruction":"50 ผู้ใช้ลำดับต้น ๆ จากนิวซีแลนด์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%zealand' ORDER BY Reputation DESC LIMIT 50"},{"instruction":"ประเทศออสเตรเลียมีประชากรเท่าไหร่","input":"","output":"ประชากร 23.1 ล้านคน"},{"instruction":"เกิดวันที่อะไร","input":"","output":"7 มิถุนายน 1974"},{"instruction":"พระอังคาร คือใคร","input":"","output":"เทวดานพเคราะห์องค์หนึ่ง"},{"instruction":"โดยส่วนใหญ่ฉันตอบถึงใคร","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(1) AS nbe_answers, Questions.OwnerUserId AS \"user_link\", AVG(Answers.Score) AS A_score, AVG(Questions.Score) AS Q_score FROM Posts AS Questions, Posts AS Answers WHERE Questions.PostTypeId = 1 AND Answers.PostTypeId = 2 AND Answers.ParentId = Questions.Id AND Answers.OwnerUserId = '##UserId1##' GROUP BY Questions.OwnerUserId ORDER BY nbe_answers DESC"},{"instruction":"หญ้าตัดฅน คือภาพยนตร์อะไร","input":"","output":"ภาพยนตร์คัลท์ขาวดำหลุดโลก"},{"instruction":"ผู้ป่วยรหัส 008-10139 ในปีนี้ได้เข้าห้องฉุกเฉินหรือไม่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '008-10139' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"คำถามแย่ๆ ที่พิจารณาจากการโหวตและการปิด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, CASE WHEN NOT ClosedDate IS NULL THEN 'N' ELSE 'Er' END AS \"closed?\", Title AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND (NOT ClosedDate IS NULL OR Score < -3) ORDER BY Score LIMIT 500"},{"instruction":"ส่วนจัดแสดง Korean Fish ประกอบไปด้วยอะไร","input":"","output":"ตู้ปลาขนาดเล็ก และปลาน้ำจืดหลากหลายชนิด ทั้งปลาพื้นเมืองของเกาหลี และปลาพื้นที่อื่น"},{"instruction":"แสงจักรราศี คืออะไร","input":"","output":"แสงสว่างเรืองรองจาง ๆ เป็นโครงรูปสามเหลี่ยมหยาบ ๆ"},{"instruction":"จักรธร ขจรไชยกูล เกิดที่อำเภออะไร","input":"","output":"อ.หาดใหญ่"},{"instruction":"สุดยอดผู้ใช้ SO จาก Arizona","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE Reputation >= (SELECT Reputation FROM Users WHERE Id = 5285908) AND (UPPER(Location) LIKE '% AZ%' OR UPPER(Location) LIKE '% ARIZONA%') ORDER BY Reputation DESC"},{"instruction":"ชื่อเดิมของครูบากัญจนอรัญญวาสีมหาเถรชื่อว่าอะไร","input":"","output":"ปอย"},{"instruction":"วาดแผนภูมิแท่งจากสินทรัพย์ที่ผลิตกับจำนวนสินทรัพย์ที่ผลิต แล้วแสดงใน Asc โดย X","input":"CREATE TABLE Assets (\n asset_id INTEGER,\n maintenance_contract_id INTEGER,\n supplier_company_id INTEGER,\n asset_details VARCHAR(255),\n asset_make VARCHAR(20),\n asset_model VARCHAR(20),\n asset_acquired_date DATETIME,\n asset_disposed_date DATETIME,\n other_asset_details VARCHAR(255)\n)\n\n","output":"SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make"},{"instruction":"อาสนวิหารออลอรง เรียกชื่อเต็มว่าอะไร ?","input":"","output":"อาสนวิหารนักบุญมารีย์แห่งออลอรง"},{"instruction":"ปีที่ผ่านมามีผู้ป่วยหมายเลข 41014 เข้ารับการรักษาที่โรงพยาบาลหรือไม่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 41014 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"AP\/55 มีข้อจำกัดอะไร","input":"CREATE TABLE restriction (\n restriction_code text,\n advance_purchase int,\n stopovers text,\n saturday_stay_required text,\n minimum_stay int,\n maximum_stay int,\n application text,\n no_discounts text\n)\n\n","output":"SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP\/55'"},{"instruction":"มีการสั่งยามีโทโพรลอลทา��์เทรต 25 มก. กี่ใบสั่งยาตั้งแต่เมื่อ 4 ปีที่แล้ว","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'metoprolol tartrate 25 mg tab' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"สร้างแท่งกราฟสำหรับจำนวนทั้งหมดของแต่ละรหัสวิธีการชำระเงิน โดยเรียงตามแกน y จากน้อยไปหามาก","input":"CREATE TABLE Invoices (\n Invoice_ID INTEGER,\n Order_ID INTEGER,\n payment_method_code CHAR(15),\n Product_ID INTEGER,\n Order_Quantity VARCHAR(288),\n Other_Item_Details VARCHAR(255),\n Order_Item_ID INTEGER\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*)"},{"instruction":"ประกอบด้วยอาคารเรียนทั้งหมดกี่หลัง","input":"","output":"7 หลัง "},{"instruction":"คำถามที่ได้รับความนิยมสูงสุดของ Salesforce StackExchange","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Questions.Id AS \"post_link\", Questions.Title, Questions.ViewCount FROM Posts AS Questions GROUP BY Questions.Id, Questions.Title, Questions.ViewCount ORDER BY ViewCount DESC LIMIT 20"},{"instruction":"ชนิดของพลาสเตอร์อินโทนาโคแบ่งตามลักษณะของอะไร","input":"","output":"แบ่งตามลักษณะของสารที่ใช้เป็นตัวเชื่อม"},{"instruction":"รางวัลเสาอโศก มีขึ้นภายใต้แนวคิดว่าอะไร","input":"","output":"เสาอโศกเป็นเครื่องหมายแห่งความเจริญรุ่งเรืองของพระพุทธศาสนา"},{"instruction":"มหาศักราชเป็นศักราชที่ใช้ตามปีครองราชย์ของใคร","input":"","output":"พระเจ้ากนิษก"},{"instruction":"จำนวนโพสต์ที่ถูกลบสำหรับผู้ใช้","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)","output":"SELECT * FROM PostHistory WHERE PostHistory.UserId = @UserId"},{"instruction":"ดาร์ดะเนลส์ คืออะไร","input":"","output":"ช่องแคบ"},{"instruction":"ฟาโรห์คยาน เป็นกษัตริย์ชาวฮิกซอสแห่งราชวงศ์ที่เท่าไร","input":"","output":"สิบห้า"},{"instruction":"คนดีแตกได้รับรางวัลอะไรในกินเนสส์","input":"","output":"รายการโทรทัศน์ที่มียอดผู้ชมมากที่สุดตลอดกาล"},{"instruction":"ชาร์ล เดอ โกล มีอาชีพอะไร","input":"","output":"นายทหารและรัฐบุรุษชาวฝรั่งเศสในคริสต์ศตวรรษที่ 20"},{"instruction":"หาชื่อเรื่องและนับจำนวนสำหรับโพสต์ทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title, ViewCount FROM Posts"},{"instruction":"ผู้ใช้ 50 อันดับแรกจากบังกลาเทศ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Bangladesh%' ORDER BY Reputation DESC LIMIT 150"},{"instruction":"นับตั้งแต่วันที่คนไข้ 015-23047 เข้าพักครั้งสุดท้ายในหอผู้ป่วย 608 จนถึงการเข้าพักในครั้งนี้ ได้ผ่านมากี่วันแล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '015-23047' AND patient.wardid = 608 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"คำนวณจำนวนผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลในปีนี้","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"ตัวเลขผู้ป่วยที่ออกจากโรงพยาบาลจริงในรอบ 1 ปีที่ผ่านมา มีจำนวนเท่าไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-1 year')"},{"instruction":"สถานีวิจัยแห่งแรกของโครงการหลวงตั้งอยู่ที่ใด","input":"","output":"เทือกเขาแดนลาว ตำบลแม่งอน อำเภอฝาง จังหวัดเชียงใหม่ "},{"instruction":"ผู้ใช้ Stack Overflow มาจากที่ไหน?","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT u.Location, u.Id, u.Reputation FROM Users AS u WHERE u.Location = 'Cheyenne, WY'"},{"instruction":"จำนวนคำถามที่ตอบไม่ถูกทั้งหมด, จำนวนคำถามทั้งหมด, อัตราส่วน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS TotalQuestions, (SELECT COUNT(*) AS TotalClosed FROM Posts AS C WHERE C.OwnerUserId = P.OwnerUserId AND ClosedDate != '' AND PostTypeId = 1) AS TotalClosed, (SELECT COUNT(*) AS TotalClosed FROM Posts AS C WHERE C.OwnerUserId = P.OwnerUserId AND ClosedDate != '' AND PostTypeId = 1) * 100.0 \/ COUNT(*) * 1.0 AS PercentClosed FROM Posts AS P WHERE P.OwnerUserId = '##UserId##' AND PostTypeId = 1 GROUP BY OwnerUserId"},{"instruction":"แสดงรายการ Order id และ Customer id ของคำสั่งซื้อที่อยู่ในสถานะยกเลิก โดยเรียงลำดับตามวันที่สั่ง พร้อมกราฟแบบกระจาย","input":"CREATE TABLE Customer_Orders (\n order_id INTEGER,\n customer_id INTEGER,\n order_status_code VARCHAR(10),\n order_date DATETIME\n)\n\n","output":"SELECT order_id, customer_id FROM Customer_Orders WHERE order_status_code = \"Cancelled\" ORDER BY order_date"},{"instruction":"ภาษาอาเบลเลนเป็นภาษาของกลุ่มใด","input":"","output":"กลุ่มซัมบัล"},{"instruction":"บทสรุปการแก้ไขแบบสุ่มและไร้สาระ (เฉพาะ meta เท่านั้น) ความคิดเห็นสรุปการแก้ไขใดก็ตามบน Medium ที่มีความยาวมากกว่า 100 ตัวอักษร มักเป็นสิ่งที่น่าอ่าน","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT a.CreationDate, a.Comment AS \"ridiculous_comment\" FROM PostHistory AS a WHERE a.PostHistoryTypeId IN (4, 5, 6) AND LENGTH(a.Comment) > 100 ORDER BY a.CreationDate"},{"instruction":"เพศของผู้ป่วย 009-338 คืออะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '009-338'"},{"instruction":"หาโพสต์ที่ MathJax (เครื่องหมายดอลลาร์เดี่ยว) ขัดข้อง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", Body, CreationDate AS \"date\" FROM Posts WHERE Body LIKE '%$%' AND NOT Body LIKE '%$%$%'"},{"instruction":"ผู้ป่วย 95057 เข้ารับการรักษาในโรงพยาบาลแล้วกี่ชั่วโมง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 95057 AND admissions.dischtime IS NULL"},{"instruction":"เอเดกโกเป็นการร่วมมือกันของบริษัทอะไร","input":"","output":"บริษัท Ecco สัญชาติฝรั่งเศส และ Adia Interim สัญชาติสวิตเซอร์แลนด์"},{"instruction":"กีฬาคืออะไร","input":"","output":"กิจกรรมหรือการเล่นเพื่อความสนุกเพลิดเพลินหรือเพื่อผ่อนคลายความเคร่งเครียดทางจิต"},{"instruction":"พลตำรวจเอก จักรทิพย์ ชัยจินดามีตำแหน่งใด","input":"","output":"ผู้บัญชาการตำรวจแห่งชาติ "},{"instruction":"ผู้ใช้ที่มียอดตราอย่างน้อย X รายการ","input":"CREATE TABLE Badges (\n Id number,\n UserId number,\n Name text,\n Date time,\n Class number,\n TagBased boolean\n)\n\n","output":"SELECT UserId AS \"user_link\", COUNT(*) AS badgeCount FROM Badges GROUP BY UserId HAVING COUNT(*) > 100 ORDER BY badgeCount DESC"},{"instruction":"อาร์บีกาซิน เป็นยาอะไร","input":"","output":"ยาปฏิชีวนะกึ่งสังเคราะห์"},{"instruction":"ปัจจุบันภาพวาดนักบุญเจอโรมตั้งอยู๋ที่ใด","input":"","output":"หอศิลป์บอร์เกเซในกรุงโรมในประเทศอิตาลี"},{"instruction":"ซากุ เป็นเมืองในจังหวัดอะไร","input":"","output":"จังหวัดนางาโนะ"},{"instruction":"ค้นหาคำว่า 'ฉันด้วย' (ที่เรียกว่า) คำตอบ ค้นหาคำตอบสำหรับคำถามที่ดูเหมือนจะอยู่ในรูปแบบของคำตอบ 'ฉันด้วย' ซึ่งไม่เพิ่มเนื้อหาใดๆ ให้กับคำถามเลย และคำตอบเหล่านั้นจะต้องถูกลบหรือแปลงเป็นความคิดเห็นโดย mod","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", SUBSTRING(Body, STR_POSITION(Body, 'me too') - 15, 45) AS \"occurrence\" FROM Posts WHERE PostTypeId = 2 AND (Body LIKE 'me too%' OR Body LIKE '% me too%') AND NOT Body LIKE '%affects me too%' AND NOT Body LIKE '%fixed it%' AND NOT Body LIKE '%resolved%'"},{"instruction":"ใส่ชื่อเรื่องสำหรับคำถามของคุณ","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Comments WHERE UserId = 1505120"},{"instruction":"ประเทศแคนาดา เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูหนาวครั้งที่เท่าไร","input":"","output":"ครั้งที่ 17"},{"instruction":"แนวร่วมประชาชน ได้จดทะเบียนเมื่อไร","input":"","output":"21 พฤษภาคม พ.ศ. 2514"},{"instruction":"ค้นหา (เป็นไปได้) เกี่ยวกับการทำร้ายแมว","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Title FROM Posts WHERE Body LIKE '%grep%'"},{"instruction":"สุจาริณี วิวัชรวงศ์มีชื่อเดิมว่าอะไร","input":"","output":"หม่อมสุจาริณี มหิดล ณ อยุธยา"},{"instruction":"โรงเรียนมัธยมปลายสตรีวิทยาการคอมพิวเตอร์ซูว็อน มีนักวอลเลย์หญิงที่มีชื่อเสียง ได้แก่ใครบ้าง","input":"","output":"คิม ยอน-คยอง, ฮวัง ยอน-จู, ฮาน ซง-ยี และฮัน ยู-มี"},{"instruction":"คำถามไม่ดีพิจารณาจากคะแนนโหวตและการปิดและสิ่งอื่นๆที่คล้ายคลึง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, CASE WHEN ClosedDate IS NULL THEN 'Y' ELSE 'Er' END AS \"closed?\", Id AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND (NOT ClosedDate IS NULL OR Score < -3) ORDER BY Score LIMIT 500"},{"instruction":"บุญชู 2 น้องใหม่ ออกฉายเมื่อไร","input":"","output":"พ.ศ. 2532"},{"instruction":"คอนเนอร์ วิกคัมลงให้ให้กับต้นสังกัดกี่นัด","input":"","output":" 65 นัด ยิงได้ 13 ประตู"},{"instruction":"มีจำนวนยอดแผ่นขาย จำหน่ายเท่าไร","input":"","output":"273,000 แผ่น"},{"instruction":"แสดงความคิดเห็นทั้งหมดของผู้ใช้ที่ระบุ","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Comments.Text FROM Comments WHERE Comments.UserId = @UserId"},{"instruction":"ถิรวัฒน์ เลิศพิชชาพัชร์ ถูกใครสโมสรอะไรดึงตัวไปหลังจากยืมตัว","input":"","output":"สโมสรฟุตบอลจังหวัดกระบี่"},{"instruction":"ระหว่างการเข้ามาใช้บริการครั้งล่าสุดที่โรงพยาบาลผู้ป่วยหมายเลข 29741 มีแผนประกันสุขภาพอะไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 29741 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"คิวบิตคืออะไร","input":"","output":"หน่วยย่อยที่สุดของข้อมูล"},{"instruction":"ค้นหาผู้ใช้ที่มีข้อความเกี่ยวกับฉันเช่น","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Reputation, CreationDate, LastAccessDate FROM Users WHERE AboutMe LIKE '%##text##%'"},{"instruction":"ผู้เล่นเป็น ตัวละครในเกมชื่ออะไร","input":"","output":"เครโทส"},{"instruction":"คำนวณระยะเวลาเข้าพักของผู้ป่วย 010-19726 ในการเข้าพักครั้งล่าสุดใน ICU","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-19726') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ทำไมผู้ป่วยหมายเลข 017-20711 จึงเข้ารับการรักษาในโรงพยาบาลตั้งแต่ 2105","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '017-20711' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"คาร์ล กุสตาฟ โมแซนเดอร์เรียนจบปริญญาโทด้านใด","input":"","output":"เรียนจบปริญญาโทด้านศัลยศาสตร์"},{"instruction":"เป็นต่อ ขั้นเทพเริ่มต้นฉายเมื่อวันที่","input":"","output":"วันที่ 20 ธันวาคม พ.ศ. 2555"},{"instruction":"มีการลงคะแนนวันละกี่ครั้ง","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT CreationDate, VoteTypeId, COUNT(*) FROM Votes WHERE (VoteTypeId = 2 OR VoteTypeId = 3) GROUP BY CreationDate, VoteTypeId ORDER BY CreationDate, VoteTypeId"},{"instruction":"จำนวนของแท็กต่อวันสำหรับแท็กหนึ่ง","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT * FROM Tags LIMIT 20"},{"instruction":"ผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลมีจำนวนทั้งหมดเท่าไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions"},{"instruction":"คนไข้ 027-100528 ล่าสุดเข้า รพ.เมื่อช่วงเวลาใดในปีที่แล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '027-100528' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"จำนวนโพสต์ตามประเภท","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(1) AS N FROM Posts WHERE PostTypeId = '##type##'"},{"instruction":"ตั้งแต่ 1 ปีแล้วที่ผู้ป่วยหมายเลข 19144 ได้เข้าโรงพยาบาลไหม ?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 19144 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-1 year')"},{"instruction":"เปียโตร คาวาลลินิ เสียชีวิตเมื่อไร","input":"","output":"ค.ศ. 1330"},{"instruction":"200 ผู้ใช้งานอันดับแรกจากอิหร่าน รายชื่อ 200 ผู้ใช้งานอันดับแรก (จัดอันดับตามเรตติ้ง) ที่อยู่ในอิหร่านตามข้อมูลโปรไฟล์ของพวกเขา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Iran%' ORDER BY Reputation DESC LIMIT 200"},{"instruction":"ผู้ป่วย 028-66126 เข้ามาครั้งแรกที่โรงพยาบาลตั้งแต่ปี 2010 ได้อย่างไร?","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '028-66126' AND STRFTIME('%y', patient.hospitaladmittime) = '2104' ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"นอร์เบิร์ต ไวส์เซอร์คือใคร","input":"","output":"นักแสดงชายชาวเยอรมัน"},{"instruction":"พ.ศ. 2367 ใครเป็นผู้ศึกษาเนื้อเยื่อพืช และสัตว์พบว่าประกอบด้วยเซลล์","input":"","output":"ดูโธรเชต์"},{"instruction":"อเทวนิยมตรงข้ามกับอะไร","input":"","output":"เทวนิยม"},{"instruction":"ทวีปเลื่อน คิดโดยใคร","input":"","output":"อัลเฟรด เวเกเนอร์"},{"instruction":"ตั้งแต่ปี ค.ศ. 2103 ผู้ป่วยหมายเลข 71320 เข้าโรงพยาบาลครั้งแรกเมื่อไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 71320 AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ก็อดซิลลา สงครามโค่นจอมอสูร เขียนบทโดย ?","input":"","output":"ทาคาฮิเดะ โมะริชิ"},{"instruction":"สราวุธ มาตรทอง เข้าสู่วงการจากการชักชวนจากใคร","input":"","output":"กมล ภู่วัฒนวนิชย์ แห่งบริษัทบรอดคาซท์ ไทยเทเลวิชั่น"},{"instruction":"ปลากะแมะมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Chaca bankanensis"},{"instruction":"เพศของผู้ป่วยเลขที่ 53176 คืออะไร","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 53176"},{"instruction":"ค้นหาคำถามแรกจากคิวรี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerUserId AS \"user_link\", MIN(Id) AS \"post_link\" FROM Posts WHERE PostTypeId = 2 OR PostTypeId = 1 GROUP BY OwnerUserId"},{"instruction":"รถไฟ M80 จุคนได้เท่าไหร่","input":"CREATE TABLE aircraft (\n aircraft_code varchar,\n aircraft_description varchar,\n manufacturer varchar,\n basic_type varchar,\n engines int,\n propulsion varchar,\n wide_body varchar,\n wing_span int,\n length int,\n weight int,\n capacity int,\n pay_load int,\n cruising_speed int,\n range_miles int,\n pressurized varchar\n)\n\n","output":"SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = 'M80'"},{"instruction":"จำนวนรวมของคนไข้ที่ออกจากโรงพยาบาลในปี 2104 คือเท่าไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND STRFTIME('%y', admissions.dischtime) = '2104'"},{"instruction":"แดเนียล บราวน์ เป็นคนประเทศอะไร","input":"","output":"สหราชอาณาจักร"},{"instruction":"ปลาใบไม้มีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Brachirus harmandi"},{"instruction":"ค้นหาโพสต์ตาม ID ผู้ใช้ ข้อความแสดงความคิดเห็น","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') AND UserId = '##UserId##' ORDER BY Score DESC"},{"instruction":"วงศ์อ้นหรือเรียกอีกชื่อหนึ่งว่า","input":"","output":"วงศ์หนูตุ่น"},{"instruction":"คำที่ไม่ใช่คำย่อ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE CONCAT(Title, Body) COLLATE SQL_Latin1_General_CP1_CS_AS LIKE '%SCRUM%' AND ClosedDate IS NULL"},{"instruction":"ลบผู้ใช้โดยลบโพสต์ของพวกเขา","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerDisplayName, MAX(CreationDate), COUNT(*) AS Count FROM Posts WHERE OwnerUserId IS NULL GROUP BY OwnerDisplayName ORDER BY Count DESC, OwnerDisplayName LIMIT 100"},{"instruction":"สะพานเหญิตเตินเปิดใช้งานเมื่อใด","input":"","output":"วันที่ 4 มกราคม พ.ศ. 2558"},{"instruction":"ชื่อของเพลย์ลิสต์ทั้งหมดคืออะไร","input":"CREATE TABLE playlists (\n id number,\n name text\n)\n\n","output":"SELECT name FROM playlists"},{"instruction":"วอลเลย์บอลหญิงชิงแชมป์นอร์เซกา แข่งระหว่างวันที่เท่าไร","input":"","output":"2–6 สิงหาคม"},{"instruction":"เอกสารในยุคกลางตอนต้นอ้างถึงเมืองฆิฆอนว่าเป็นเมืองที่ชื่อว่าอะไร","input":"","output":"กีเกีย"},{"instruction":"GroupBy เทียบกับ Distinct Query Plan","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT AGE FROM Users GROUP BY AGE"},{"instruction":"กบฏ 26 มีนาคม พ.ศ. 2520 เกิดเหตุการณ์อะไรขึ้น","input":"","output":"ก่อรัฐประหารล้มล้างรัฐบาลของนายธานินทร์ กรัยวิเชียร"},{"instruction":"ใครที่ตอบคำถามเหมือนกับฉัน ระบุรายชื่อผู้ใช้ที่ตอบอย่างน้อยสองคำถามที่ฉันตอบด้วย ระบุรายชื่อผู้ใช้ที่ตอบอย่างน้อยสองคำถามที่ฉันตอบด้วย","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(DISTINCT myAnswer.ParentId) AS QuestionCount, otherAnswer.OwnerUserId AS \"user_link\" FROM Posts AS myAnswer, Posts AS otherAnswer WHERE otherAnswer.OwnerUserId != @MyUserId AND myAnswer.OwnerUserId = @MyUserId AND myAnswer.ParentId = otherAnswer.ParentId AND otherAnswer.PostTypeId = 2 AND myAnswer.PostTypeId = 2 GROUP BY otherAnswer.OwnerUserId HAVING COUNT(DISTINCT myAnswer.ParentId) > 1 ORDER BY QuestionCount DESC"},{"instruction":"คะแนนเฉลี่ยรวมจากคำถามทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT AVG(CAST(p.Score AS FLOAT)) FROM Posts AS p WHERE p.PostTypeId = 1"},{"instruction":"คืนค่าราคาเฉลี่ยสำหรับผลิตภัณฑ์แต่ละประเภท แสดงภาพด้วยกราฟแท่ง ผมต้องการเรียงลำดับจากมากไปน้อยตามแกน Y","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY AVG(product_price) DESC"},{"instruction":"ก็อดซิลลา ปะทะ สายพันธุ์ก็อดซิลลาต่างดาว ฉายวันที่เท่าไร","input":"","output":"10 ธันวาคม ค.ศ. 1994"},{"instruction":"เจ้าชายโบริสแห่งไลนิงเงินมีสิทธิ์ในการสืบราชบัลลังก์อังกฤษเพราะอะไร","input":"","output":"ทรงสืบเชื้อสายมาจากเจ้าหญิงวิกตอเรีย พระราชกุมารี พระนามของพระองค์ตั้งตามพระอัยกาฝ่ายพระมารดา"},{"instruction":"คำถามที่ถูกปิดและถูกเพิ่มเป็นคำถามโปรด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", FavoriteCount, Score, CreationDate FROM Posts WHERE (PostTypeId = 1) AND (NOT ClosedDate IS NULL) AND (FavoriteCount > 0) ORDER BY CreationDate DESC"},{"instruction":"ผ่านไปกี่ชั่วโมงแล้วที่ผู้ป่วย 032-21820 นอนพักอยู่ในห้อง 1063 เป็นครั้งสุดท้ายในการเข้าโรงพยาบาลครั้งนี้","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-21820' AND patient.wardid = 1063 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"กระจกลวดขุ่น"},{"instruction":"เพลงที่ประสบความสำเร็จครั้งแรกของเดอะบีเทิลส์ชื่อว่าอะไร","input":"","output":"\"เลิฟมีดู\" (Love Me Do)"},{"instruction":"ทางหลวงรัฐออนแทรีโอหมายเลข 416 มีความยาวเท่าไหร่","input":"","output":"76.4 กิโลเมต"},{"instruction":"คู่ถาม - ตอบที่พบมากที่สุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH Raw AS (SELECT Q.OwnerUserId AS QId, A.OwnerUserId AS AId, COUNT(*) AS Count FROM Posts AS Q, Posts AS A WHERE A.ParentId = Q.Id AND A.OwnerUserId > 0 AND Q.OwnerUserId > 0 AND A.OwnerUserId != Q.OwnerUserId AND Q.CommunityOwnedDate IS NULL AND A.CommunityOwnedDate IS NULL GROUP BY Q.OwnerUserId, A.OwnerUserId) SELECT Hin.QId AS \"user_link\", Hin.AId AS \"user_link\", Hin.Count AS HinCount, Her.Count AS HerCount FROM Raw AS Hin, Raw AS Her WHERE Hin.AId = Her.QId AND Hin.QId = Her.AId AND Hin.QId > Hin.AId ORDER BY CASE WHEN Hin.Count > Her.Count THEN Her.Count ELSE Hin.Count END DESC, Hin.QId, Hin.AId"},{"instruction":"ปลากะรังลายจุดเป็นปลาที่มีขนาดใหญ่จัดว่าเป็นปลาอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลากะรัง (Serranidae)"},{"instruction":"บริตนีย์สเปียส์เกิดที่เมืองใด","input":"","output":"เมืองแม็คคอมบ์ รัฐมิสซิสซิปปี"},{"instruction":"หม่อมเจ้าประสบศรีจิรประวัติ จิรประวัติ เกิดวันที่เท่าไร","input":"","output":"17 พฤศจิกายน พ.ศ. 2444"},{"instruction":"200 อันดับนำจากเมือง Chennai ประเทศอินเดีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%chennai%india%' ORDER BY Reputation DESC LIMIT 200"},{"instruction":"อากิเลส โฮเซ กุซมัน มาตูเตเกิดวันที่เท่าไหร่","input":"","output":"เกิดเมื่อ 13 เมษายน พ.ศ. 2508"},{"instruction":"องค์ชายโซฮยอนได้ทรงเข้าพิธีอภิเษกสมรสกับใคร","input":"","output":"ป้อมนัมฮัน"},{"instruction":"ผู้ป่วย 28910 มาโรงพยาบาลกี่ครั้งตั้งแต่ปี 2557 เป็นต้นมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 28910 AND STRFTIME('%y', admissions.admittime) >= '2104'"},{"instruction":"ค้นหาคำขอบคุณง่าย ๆ (น้อยกว่า 50 ตัวอักษร)","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT c.Id AS \"comment_link\", c.Text AS \"comment_body\", (SELECT COUNT(c.Id) AS \"comment_link\" FROM Comments AS c WHERE (c.Text LIKE '%fack%' OR c.Text LIKE '%fck%') AND LENGTH(c.Text) < 50) AS \"total_comments\" FROM Comments AS c WHERE (c.Text LIKE '%fu%' OR c.Text LIKE '%fuu%') AND LENGTH(c.Text) < 50 ORDER BY c.CreationDate DESC"},{"instruction":"สถานที่เกิดของเนาวรัตน์ พงษ์ไพบูลย์","input":"","output":"บ้านพนมทวน อำเภอพนมทวน จังหวัดกาญจนบุรี"},{"instruction":"สะพานขึงข้ามแม่น้ำแดง ตั้งอยู่ที่ฮานอยมีชื่อเรียกว่าสะพานอะไร","input":"","output":"สะพานเหญิตเติน"},{"instruction":"โฮลดิงได้สวมเสื้อหมายเลข 16 ที่เดิมเคยเป็นของใคร","input":"","output":"แอรอน แรมซีย์"},{"instruction":"อันตรกิริยาอย่างอ่อน เรียกอีกอย่างว่าอะไร","input":"","output":"แรงนิวเคลียร์อย่างอ่อน"},{"instruction":"ผู้อำนวยการกองประกวดมิสฟรานซ์คนปัจจุบันคือใคร","input":"","output":"ซิลวี เทลเลีย"},{"instruction":"พิพิธภัณฑ์ปราโด ตั้งอยู่ที่ใด","input":"","output":"ที่กรุงมาดริด ประเทศสเปน"},{"instruction":"ผู้ป่วย 71320 เข้ารับการรักษาในโรงพยาบาลครั้งแรกตั้งแต่ปี 2103 ใช่ไหม","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 71320 AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime LIMIT 1"},{"instruction":"อะโลน ร้องโดยวงอะไร","input":"","output":"วงฮาร์ต"},{"instruction":"กราฟแท่งเกี่ยวกับชื่อสินค้าต่างๆ มีอะไรบ้าง? ราคาสินค้าเฉลี่ยสำหรับแต่ละประเภทคือเท่าไหร่? จัดเรียง X จากต่ำไปสูง","input":"CREATE TABLE Products (\n Product_ID VARCHAR(100),\n Product_Name VARCHAR(255),\n Product_Price DECIMAL(20,4),\n Product_Description VARCHAR(255),\n Other_Product_Service_Details VARCHAR(255)\n)\n\n","output":"SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name ORDER BY Product_Name"},{"instruction":"ราคาเฉลี่ยในแต่ละประเภทของผลิตภัณฑ์มีเท่าไหร่ ฉันต้องการให้แสดงตามแกน x จากมากไปน้อย","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code DESC"},{"instruction":"พระธรรมมหาวีรานุวัตร หรืออีกชื่อหนึ่งว่าอะไร","input":"","output":"อำนวย จนฺทสโร ป.ธ.๔"},{"instruction":"สมาธิคืออะไร","input":"","output":"การฝึกฝนทางจิตหลากหลายรูปแบบ"},{"instruction":"ดูสถิติในคำถามของคุณ จำนวนวิวต่อวันของคำถาม และยอดวิวทั้งหมด เรียงลำดับจากอัตราการรับชมสูงสุดไปยังต่ำสุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT ViewCount, ROUND(CAST(ViewCount AS FLOAT) \/ DATEDIFF(dd, CreationDate, GETDATE()), 1) AS ViewsPerDay, Id AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND OwnerUserId = '##UserId##' ORDER BY ViewCount DESC"},{"instruction":"เจ้าชายอาดัลแบร์ทแห่งปรัสเซีย เป็นโอรสคนที่เท่าไร","input":"","output":"องค์ที่สาม"},{"instruction":"มีผู้ป่วยปัจจุบันอยู่กี่คนแล้ว","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL"},{"instruction":"มีการทำหัตถการ vasopressors - dopamine 5-15 micrograms\/kg\/min กี่ครั้ง","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'vasopressors - dopamine 5-15 micrograms\/kg\/min'"},{"instruction":"พิพิธบางลำพู คืออะไร","input":"","output":"ศูนย์การเรียนรู้เชิงวัฒนธรรมชุมชน"},{"instruction":"ยาคอฟ ดซูกัสวิลี เป็นหนึ่งในสามบุตรธิดาของใคร","input":"","output":"โจเซฟ สตาลิน"},{"instruction":"ELECT * จากโพสต์ที่มี ID ต่ำกว่า 50000","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE Id > 50000 AND Id < 10000"},{"instruction":"จังหวัดโทยามะตั้งอยู้ที่ใด","input":"","output":"บริเวณภาคชูบุของญี่ปุ่น"},{"instruction":"พระเจ้าชัยวรรมันที่ 1 สิ้นพระชนม์เมื่อไหน","input":"","output":"ค.ศ. 681"},{"instruction":"ปลาฉลามหัวค้อนเป็นปลาทะเลที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ Sphyrnidae"},{"instruction":"เมื่อ 06\/2103 คนไข้หมายเลข 011-23004 มีน้ำหนักครั้งแรกเท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-23004') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) = '2103-06' ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"นาถยา แดงบุหงา มีพี่น้องกี่คน","input":"","output":"9 คน"},{"instruction":"เรือพายในกีฬาแห่งชาติครั้งที่ 41 แข่งขันกี่เมตร","input":"","output":"1000 เมตร"},{"instruction":"กุ้งยิงมีอาการอย่างไร","input":"","output":"อาการบวม แดง ร้อน และอาจมีอาการปวด แต่ไม่เป็นอันตรายต่อนัยน์ตา"},{"instruction":"ใครรับบทเป็น ดร. อเล็กซานเดอร์ ไอเซก","input":"","output":"เอียน เกล็น"},{"instruction":"โพสต์ทั้งหมดของฉันตั้งแต่ปี 2016","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = 263693 AND TIME_TO_STR(CreationDate, '%YEAR') = 2016"},{"instruction":"ระยะเวลาทำงานของผู้ป่วย 033-22108 นับตั้งแต่วันเข้า ICU กี่วันแล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '033-22108' AND patient.unitdischargetime IS NULL"},{"instruction":"ค้นหาคำถามที่มีตัวอักษรตัวแรกของหัวข้อเป็นตัวพิมพ์เล็ก","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title, CONCAT('https:\/\/electronics.stackexchange.com\/questions\/', CAST(Id AS TEXT), '\/') AS URL FROM Posts WHERE PostTypeId = 1 AND LEFT(Title, 1) = LOWER(LEFT(Title, 1)) ORDER BY CreationDate DESC"},{"instruction":"ว็อล์ฟกัง เพาล์ เกิดที่เมืองอะไร","input":"","output":"เมืองโลเร็นทซ์เคียร์ชในแซกโซนี"},{"instruction":"ใครเป็นประกาศจัดตั้งองค์การบริหารส่วนตำบลโพนโกอย่างเป็นทางการ","input":"","output":"นายบรรหาร ศิลปอาชา"},{"instruction":"ปาโก เฆนโต ชื่อเต็มว่าอะไร","input":"","output":"ฟรันซิสโก \"ปาโก\" เฆนโต โลเปซ "},{"instruction":"แสดงให้ฉันดูในรูปแบบแผนภูมิแท่งว่ามีการจ่ายใบแจ้งหนี้ไปกี่ใบจากแต่ละครองรัฐ โดยแสดงตามแกนตั้งเรียงจากมากไปน้อย","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)\n\n","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC"},{"instruction":"จำนวนประชากรใน กิลกิต-บัลติสถาน","input":"","output":"มีประชากรประมาณ 1,800,000 คนในปี พ.ศ. 2558"},{"instruction":"พระโลกนาถคือใคร","input":"","output":"พระภิกษุนิกายเถรวาทชาวอิตาลี"},{"instruction":"เพราะความรักมันไม่เลือกเวลาเกิด ออกจำหน่ายและมิวสิกวิดีโอเผยแพร่ในวันที่เท่าไร","input":"","output":"15 ตุลาคม พ.ศ. 2558"},{"instruction":"กางเขนอันแรกสร้างเมื่อปีใด","input":"","output":"ปี 1913"},{"instruction":"สถิติเกี่ยวกับคำตอบของผู้ใช้","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerUserId, OwnerDisplayName, Id, PostTypeId, AnswerCount, CommentCount, Score, ViewCount, FavoriteCount FROM Posts WHERE OwnerUserId IN (12960) AND PostTypeId = 1"},{"instruction":"การถ่ายแบบดีเอ็นเอ เป็นกระบวนการทางอะไร","input":"","output":"ชีววิทยา"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"Diamond Satin Transparent"},{"instruction":"ยาคอฟ ดซูกัสวิลี เกิดวันที่เท่าไร","input":"","output":"18 มีนาคม ค.ศ. 1907"},{"instruction":"ซัดดัม ฮุสเซน ถูกจับกุมและถอดออกจากตำแหน่ง โดยกองกำลังอะไร","input":"","output":"กำลังนานาชาติ"},{"instruction":"คนไข้ 8991 เข้ารักษาตัวในโรงพยาบาลเมื่อปีที่แล้วครั้งสุดท้ายอย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8991 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ผู้ป่วย 1819 เกิดวันที่เท่าไหร่","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 1819"},{"instruction":"คนไข้ 8204 เข้าโรงพยาบาลครั้งแรกได้อย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8204 ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ผู้ป่วยรหัส 018-20179 เข้ารักษาที่โรงพยาบาลมาแล้วกี่ชั่วโมง","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaldischargetime IS NULL"},{"instruction":"นางตุลสีหรือนางวฤนทาอยู่ในศาสนาใด ?","input":"","output":"ศาสนาฮินดู"},{"instruction":"ดอยอินทนนท์ เดิมมีชื่อว่าอะไร","input":"","output":"ดอยหลวงอ่างกา"},{"instruction":"ผู้ป่วย 26156 เข้ามารักษาในโรงพยาบาลครั้งสุดท้ายเมื่อใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 26156 ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ไฟนอลแฟนตาซี ปัจจุบันคือบริษัทอะไร","input":"","output":"บริษัท สแควร์เอนิกซ์"},{"instruction":"ตั้งแต่ผู้ป่วย 3125 เข้ารับการรักษาในโรงพยาบาลเป็นเวลาเท่าไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 3125 AND admissions.dischtime IS NULL"},{"instruction":"ผู้ป่วย 032-24135 เข้ารักษาในหอผู้ป่วย 1068 เป็นเวลากี่ชั่วโมงตั้งแต่เข้ารักษาในโรงพยาบาลครั้งแรก","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-24135' AND patient.wardid = 1068 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"44 21 4 เกม เป็นรายการอะไร","input":"","output":"รายการเกมโชว์ด้านภาษาไทย"},{"instruction":"คำถามทั้งหมดที่ไม่ดี คำถามทั้งหมดที่ดี และคำถามทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND AnswerCount > 1"},{"instruction":"เทศบาลตำบลโนนสูง หลังจากอาคารทรุดตัวลง ได้กู้เงินองค์กรอะไรในการสร้างใหม่","input":"","output":"ก.ส.ท."},{"instruction":"แมทธิว มัวร์ ฮาร์ดี มากจากครอบครัวชื่ออะไร","input":"","output":"กิลเบิร์ตและรูบี มัวร์ ฮาร์ดี"},{"instruction":"สำหรับผู้ป่วยรายที่ 18866 เข้ารับบริการที่โรงพยาบาลครั้งแรกเป็นการไปแผนกฉุกเฉินหรือไม่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 18866 AND admissions.admission_location = 'emergency room admit' AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ขนาดของอนุภาคจะส่งผลต่อสุขภาพ โดยอนุภาคที่มีขนาด 10 ไมโครเมตรหรือเล็กกว่า สามารถเข้าไปในส่วนที่ลึกสุดของอวัยวะใด ?","input":"","output":"ปอด"},{"instruction":"ซิลิฟูลส์ได้ร่วมโครงการอะไร","input":"","output":"Rock Rider"},{"instruction":"วศิน อินทสระได้บวชเป็นสามเณรตอนอายุเท่าใด","input":"","output":"อายุ 13 ปี"},{"instruction":"จำนวนคำถามที่ควรได้รับการปกป้องโดยอัตโนมัติ ป้อนคำอธิบายคิวรี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(Id) FROM Posts AS q WHERE PostTypeId = 1 AND DATEDIFF(m, q.CreationDate, GETDATE()) >= 6 AND AnswerCount >= 1 AND ViewCount >= 1000"},{"instruction":"มนต์สยาม ได้ชิงแชมป์ OPBF รุ่นไลท์ฟลายเวท กับใคร","input":"","output":"ฟิล ทากูปา"},{"instruction":"คณะรัฐบาลในสมเด็จพระจักพรรดิได้ทำสงครามกับประเทศใด","input":"","output":"จักรวรรดิรัสเซีย"},{"instruction":"มีบางคลาสที่ไม่มีห้องปฏิบัติการหรือไม่?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N'"},{"instruction":"วสุ ห้าวหาญปัจจุบันอยู่ค่ายใด","input":"","output":"แกรมมี่โกลด์"},{"instruction":"ผู้ใช้ที่มีอีเมลของ Stack Exchange Inc. บน 'เกี่ยวกับฉัน' โดเมนอีเมลที่รวม: stackexchange.com และ stackoverflow.com","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", AboutMe, WebsiteUrl FROM Users WHERE (AboutMe LIKE '%@stackexchange.com%' OR AboutMe LIKE '%@stackoverflow.com%' OR AboutMe LIKE '%valued associate%')"},{"instruction":"คำถามที่บุคคลในชุมชนโหวตเพิ่มขึ้นหลายครั้ง","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT RANK() OVER (ORDER BY COUNT(ph.Id) DESC) AS \"rank\", COUNT(ph.Id) AS \"count\", ph.PostId AS \"post_link\", 'site:\/\/posts\/' + CAST(ph.PostId AS TEXT) + '\/revisions' AS \"revision_history\" FROM PostHistory AS ph WHERE ph.PostHistoryTypeId = 50 GROUP BY ph.PostId ORDER BY COUNT(ph.Id) DESC"},{"instruction":"ทำแผนภูมิวงกลมโดยแสดงวิธีที่เป็นไปได้ทั้งหมดในการเดินทางไปยังสถานที่ท่องเที่ยวพร้อมกับจำนวนสถานที่ท่องเที่ยวที่สามารถเข้าถึงได้โดยวิธีดังกล่าว","input":"CREATE TABLE Tourist_Attractions (\n Tourist_Attraction_ID INTEGER,\n Attraction_Type_Code CHAR(15),\n Location_ID INTEGER,\n How_to_Get_There VARCHAR(255),\n Name VARCHAR(255),\n Description VARCHAR(255),\n Opening_Hours VARCHAR(255),\n Other_Details VARCHAR(255)\n)","output":"SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There"},{"instruction":"ราคาต่ำสุดของผลิตภัณฑ์คืออะไร โดยจัดกลุ่มตามประเภทผลิตภัณฑ์ แสดงเป็นแผนภูมิแท่ง","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MIN(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code"},{"instruction":"ที่เกิดของ มอร์ริส อีสต์ คือที่ใด","input":"","output":"ซัมบาเลส ฟิลิปปินส์ "},{"instruction":"อาร์เธอร์ อีแวนส์ เกิดวันที่เท่าไร","input":"","output":"8 กรกฎาคม พ.ศ. 2394"},{"instruction":"SA คืออะไร","input":"CREATE TABLE days (\n days_code varchar,\n day_name varchar\n)\n\n","output":"SELECT DISTINCT day_name FROM days WHERE days_code = 'SA'"},{"instruction":"6 ปีที่ผ่านมามีสิทธิเข้ารับบริการที่โรงพยาบาลกี่ครั้ง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 80119 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-6 year')"},{"instruction":"เวลาเข้ารับการรักษาตัวของคนไข้หมายเลข 16554 ตั้งแต่ 2105 เป็นต้นมามีอะไรบ้าง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 16554 AND STRFTIME('%y', admissions.admittime) >= '2105'"},{"instruction":"ออกอัมบั้มแรกของซิลิฟูลส์ ภายใต้ค่ายสังกัด อาร์เอส ชื่ออัมบั้มอะไร","input":"","output":"เดอะวัน"},{"instruction":"โดยใช้ชื่อว่า \"สามเณราลัย แสงธรรม\" ปัจจุบันมี บาทหลวงอะไร เป็นอธิการบดี ?","input":"","output":"ดร.ชาติชาย พงษ์ศิริ"},{"instruction":"จำนวนผู้ป่วยที่ออกจากโรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL"},{"instruction":"อัลบัมแรกของ โบโนโบ","input":"","output":"Animal Magic อยู่ต้นสังกัด Tru Thoughts ในปี 2001"},{"instruction":"คำติชมของ Chris ที่ว่า 'ใช้ข้อมูลอ้างอิง'","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT CreationDate, Id AS \"comment_link\" FROM Comments WHERE UserId = 962089 AND Text LIKE '%a reference%' ORDER BY CreationDate"},{"instruction":"id ของการนัดหมายใดที่เริ่มล่าสุด","input":"CREATE TABLE appointment (\n appointmentid number,\n patient number,\n prepnurse number,\n physician number,\n start time,\n end time,\n examinationroom text\n)\n\n","output":"SELECT appointmentid FROM appointment ORDER BY start DESC LIMIT 1"},{"instruction":"แพ็ก กวัง-ฮย็อน ได้ถูก นำเรื่องราวของเขามาสร้างเป็นละครชุดเกาหลีในชื่อภาษาไทยว่าอะไร","input":"","output":"ควังยอน หมอม้าแห่งโชซอน"},{"instruction":"เพศของผู้ป่วย 032-1755 คืออะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '032-1755'"},{"instruction":"แสดงรายการทรัพย์สินทั้งหมดยี่ห้อ รุ่น รายละเอียดตามวันที่จำหน่ายโดยเรียงจากน้อยไปมาก","input":"CREATE TABLE assets (\n asset_id number,\n maintenance_contract_id number,\n supplier_company_id number,\n asset_details text,\n asset_make text,\n asset_model text,\n asset_acquired_date time,\n asset_disposed_date time,\n other_asset_details text\n)\n\n","output":"SELECT asset_make, asset_model, asset_details FROM assets ORDER BY asset_disposed_date"},{"instruction":"ดนตรีแทร���ป เป็นรูปแบบอะไร","input":"","output":"ดนตรีอิเล็กทรอนิกส์แดนซ์"},{"instruction":"AP\/55 คือข้อจำกัดอะไร","input":"CREATE TABLE restriction (\n restriction_code text,\n advance_purchase int,\n stopovers text,\n saturday_stay_required text,\n minimum_stay int,\n maximum_stay int,\n application text,\n no_discounts text\n)\n\n","output":"SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP\/55'"},{"instruction":"คุณภาพของเนื้อหา: จำนวนการโหวตขึ้นค่าเฉลี่ย","input":"CREATE TABLE PostFeedback (\n Id number,\n PostId number,\n IsAnonymous boolean,\n VoteTypeId number,\n CreationDate time\n)\n\n","output":"SELECT Month = DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0), 'Average amount of upvotes' = SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) \/ CAST(COUNT(Id) AS FLOAT) FROM PostFeedback GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) ORDER BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)"},{"instruction":"เมทัลลิกาก่อตั้งขึ้นเมื่อปีใด","input":"","output":"ค.ศ. 1981"},{"instruction":"เลือก * จาก Posts ที่ Title เหมือน '%deeplearning%'","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE Title LIKE '%learn%'"},{"instruction":"200 ผู้ใช้จากอิหร่าน อันดับสูงสุด รายชื่อ 200 ผู้ใช้ (อันดับตามชื่อเสียง) ที่อาศัยอยู่ในอิหร่านตามข้อมูลในโปรไฟล์ของตน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Iran%' ORDER BY Reputation DESC LIMIT 200"},{"instruction":"เสียงคืออะไร","input":"","output":"คลื่นเชิงกลที่เกิดจากการสั่นสะเทือนของวัตถุ"},{"instruction":"ลีซา เอเดลสตีนเป็นลูกของใคร","input":"","output":"บอนนี และแอลวิน เอเดลสตีน"},{"instruction":"แอนดี้เขมพิมุกจบการศึกษาระดับปริญญาโทจากมหาวิทยาลัยใด","input":"","output":"มหาวิทยาลัยมหิดล"},{"instruction":"ผู้ป่วย 3939 ทีประวัติการเข้ารับการรักษาในครั้งแรกเป็นอย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 3939 ORDER BY admissions.admittime LIMIT 1"},{"instruction":"สมาชิกของเดอะบีเทิลส์คนใดทำหน้าที่ร้องนำและมือกีต้าร์","input":"","output":"จอห์น เลนนอน"},{"instruction":"ฟ้าทะลายโจรมีขื่อทางวิทยาศาสตร์ว่าอะไร","input":"","output":"ชื่อวิทยาศาสตร์ : Andrographis paniculata (Burm.) Wall. ex Nees"},{"instruction":"สปีดเดมอน ว่างจำหน่ายเมื่อไร","input":"","output":"12 ตุลาคม ค.ศ. 1989"},{"instruction":"ผู้ใช้ใน Valencia จัดเรียงตามชื่อเสียง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%valencia%' OR UPPER(Location) LIKE '%VLC' ORDER BY Reputation DESC"},{"instruction":"โรงเรียนปัวสังกัดสำนักงานเขตพื้นที่การศึกษามัธยมศึกษาเขตใด","input":"","output":"เขต 37 (แพร่-น่าน)"},{"instruction":"ผู้ป่วยหมายเลข 018-20179 เข้ารับการรักษาในโรงพยาบาลผ่านห้องผ่าตัดครั้งแรกวันที่เท่าไร เมื่อ 1 ปีที่ผ่านมา","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaladmitsource = 'operating room' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"นายอนันต์ ได้รับเลือกตั้งสมัยแรก จากการเลือกตั้งสมาชิกสภาผู้แทนราษฎรไทยเป็นการทั่วไป ในปีใด ?","input":"","output":"พ.ศ. 2512"},{"instruction":"ราคาเท่าไรหรอครับ","input":"","output":"ไม่ทราบราคาของสินค้า"},{"instruction":"เพศของคนไข้หมายเลข 22315 คืออะไร","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 22315"},{"instruction":"เป็นพระธิดาพระองค์สุดท้องใน เจ้าหญิงที่มีชื่อว่า ?","input":"","output":"เจ้าหญิงมาเรีย แคโรไลนาแห่งบูร์บง-ซิซิลีทั้งสอง"},{"instruction":"แผนแบบสอบถาม GroupBy เมื่อเทียบกับแผนแบบสอบถาม Distinct","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT AGE FROM Users GROUP BY AGE"},{"instruction":"ปลานิลมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Oreochromis niloticus"},{"instruction":"ออร์ซันมีเกเล ชื่อโบสถ์แปลว่าอะไร","input":"","output":"สวนครัวของนักบุญมีคาแอล"},{"instruction":"ศาสตราจารย์ ออตโต เจสเปอร์เซน อยู่ประเทศอะไร","input":"","output":"เดนมาร์ก"},{"instruction":"แสดงรายการจำนวนใบแจ้งหนี้และยอดเงินใบแจ้งหนี้รวมจากแคลิฟอร์เนีย","input":"CREATE TABLE invoices (\n id number,\n customer_id number,\n invoice_date time,\n billing_address text,\n billing_city text,\n billing_state text,\n billing_country text,\n billing_postal_code text,\n total number\n)\n\n","output":"SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = \"CA\""},{"instruction":"แต่ละอำเภอแบ่งส่วนย่อยออกเป็นอะไร","input":"","output":"ตำบล"},{"instruction":"อุทยานพระบรมราชานุสรณ์ พระบาทสมเด็จพระพุทธเลิศหล้านภาลัย เรียกสั้น ๆ ว่าอะไร","input":"","output":"อ��ทยาน ร.2"},{"instruction":"เรือสำราญที่ใหญ่ที่สุดในโลกคือเรืออะไรในปัจจุบัน","input":"","output":"โอเอซิสออฟเดอะซีส์"},{"instruction":"ซัมเมอร์สแลม เป็นรายการอะไร","input":"","output":"รายการเพย์-เพอร์-วิว"},{"instruction":"ส่วนสูงล่าสุดของผู้ป่วย 027-149724 ในเดือนนี้คืออะไรครับ","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-149724') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"\"โทคิเมคิเมโมเรียล ออนไลน์\" ซึ่งเป็นหนึ่งในซีรีส์เกมส์จีบสาวชื่อดังเรื่องอะไร ?","input":"","output":" โทคิเมคิเมโมเรียล"},{"instruction":"ผู้ว่าราชการเมืองร้อยเอ็ดท่านแรก ดำรงตำแหน่งเมื่อไร","input":"","output":"พ.ศ. ๒๔๔๘-๒๔๕๑"},{"instruction":"แถบเมอบิอุสถูกค้นพบเมื่อไหร่","input":"","output":"พ.ศ. 2401 (ค.ศ. 1858)"},{"instruction":"คำตอบที่ดีที่สุดตามคะแนนหรือปี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", Score FROM Posts AS p WHERE YEAR(CreationDate) = '##year?2016##' AND p.PostTypeId = 2 ORDER BY Score DESC LIMIT 10"},{"instruction":"คำถามต่อวันในวันในสัปดาห์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(CreationDate, '%W'), COUNT(1) FROM Posts WHERE PostTypeId = 1 GROUP BY TIME_TO_STR(CreationDate, '%W')"},{"instruction":"ค้นหาคำถามที่ไม่มีคำตอบเยอะๆ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\", q.Score, q.ViewCount, q.AnswerCount FROM Posts AS q WHERE q.PostTypeId = 1 AND q.ClosedDate IS NULL ORDER BY q.AnswerCount, q.ViewCount DESC"},{"instruction":"ตราแผ่นดินของเบลีซ เริ่มใช้มาตั้งเเต่เมื่อไหร่","input":"","output":"พ.ศ. 2450"},{"instruction":"เลนส์ตาที่ขุ่นทำให้เกิดสิ่งใด","input":"","output":"แสงผ่านได้แย่กว่าปกต��"},{"instruction":"บรูซลีเป็นผู้คิดค้นศิลปะป้องกันตัวที่ชื่อว่าอะไร","input":"","output":"จีทคุนโด้"},{"instruction":"บริษัท กัลฟ์ เจพี จำกัด (GJP) ถือหุ้นร้อยละ เท่าไหร่ ?","input":"","output":"ร้อยละ 40.0"},{"instruction":"กามเทพออกศึก สร้างจาก ?","input":"","output":"นิยายชื่อเดียวกัน "},{"instruction":"ภาษาเอิร์สยา อยู่ประเทศอะไร","input":"","output":"ประเทศรัสเซีย"},{"instruction":"รับชื่อและการดูสำหรับโพสต์ทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title, ViewCount FROM Posts"},{"instruction":"เจ้าชายนาเยฟ บิน อับดุลลาซิซ อัล ซาอุด สิ้นพระชนม์วัที่ ?","input":"","output":"วันที่ 16 มิถุนายน ค.ศ. 2012"},{"instruction":"ดูโพสต์ทั้งหมดจากบุคคล","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", OwnerDisplayName FROM Posts WHERE OwnerDisplayName = '##UserDisplayname##'"},{"instruction":"ชื่อเต็มของฮอกวอตส์คืออะไร","input":"","output":"โรงเรียนคาถาพ่อมดแม่มดและเวทมนตร์ศาสตร์ฮอกวอตส์ (อังกฤษ: Hogwarts School of Witchcraft and Wizardry)"},{"instruction":"กรุงมินสค์ มีประชากรทั้งหมดกี่คน","input":"","output":"1,780,000 คน"},{"instruction":"ลัทธ์กมล ปิ่นโรจน์กีรติ ชื่อเล่นว่าอะไร","input":"","output":"พิม"},{"instruction":"หาจำนวนผู้ป่วยที่เข้ารับการรักษาที่โรงพยาบาลตั้งแต่ 1 ปีก่อน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-1 year')"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"Grey Circle"},{"instruction":"ระยะเวลาที่ต้องนอนพักรักษาตัวของคนไข้หมายเลข 26195 ในการเข้ารักษาตัวในโรงพยาบาลครั้งแรกคือระยะเวลายาวนานเท่าไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 26195 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"นอตทิงแฮม (อังกฤษ: Nottingham นอตทิงเงิม) เป็นนครและเมืองหลวงของ","input":"","output":"มณฑลนอตทิงแฮมเชอร์ในภาคการปกครองมิดแลนด์สตะวันออกของอังกฤษ และเป็นหนึ่งในกลุ่มเมืองใหญ่หลักของอังกฤษ"},{"instruction":"สมาคมฟุตบอลสโลวาเกีย่อตั้งในปีใด ?","input":"","output":"ค.ศ. 1993"},{"instruction":"ผู้ใช้ที่มีอีเมลของ Stack Exchange Inc. ในส่วน 'เกี่ยวกับฉัน' โดเมนอีเมลที่มี: stackexchange.com และ stackoverflow.com","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", AboutMe, WebsiteUrl FROM Users WHERE (AboutMe LIKE '%@stackexchange.com%' OR AboutMe LIKE '%@stackoverflow.com%' OR AboutMe LIKE '%valued associate%')"},{"instruction":"อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์มีความสูงเป็นอันดับใดของโลก","input":"","output":"เป็นอาคารที่สูงที่สุดอันดับที่ 5 "},{"instruction":"เนอร์วานาประสบความสำเร็จกับซิงเกิลใด","input":"","output":"Smells Like Teen Spirit"},{"instruction":"สะพานเหญิตเตินมีความกว้างทั้งหมดกี่ฟุต","input":"","output":"109 ฟุต"},{"instruction":"บริษัท อกริเพียว โฮลดิ้งส์ เป็นบริษัทประเภทอะไร","input":"","output":"จำกัด (มหาชน)"},{"instruction":"พิพิธบางลำพู สร้างขึ้นเพื่ออะไร","input":"","output":"ส่งเสริมและพัฒนาชุมชนบางลำพูให้เป็นแหล่งท่องเที่ยวบริเวณเกาะรัตนโกสินทร์"},{"instruction":"คำตอบของคำถามต่อชั่วโมงสำหรับผู้ใช้","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(CreationDate, '%h') AS hour, COUNT(CASE WHEN PostTypeId = 1 THEN 1 END) AS questions, COUNT(CASE WHEN PostTypeId = 2 THEN 1 END) AS answers FROM Posts WHERE PostTypeId IN (1, 2) GROUP BY TIME_TO_STR(CreationDate, '%h')"},{"instruction":"วิยะดา อุมารินทร์ จบการศึกษาอะไร","input":"","output":"โรงเรียนอัสสัมชัญคอนแวนต์"},{"instruction":"วีกิมีกิ ได้เปิดเผยชื่อโปรเจกซ์ I-teen girls อย่างเป็นทางการชื่อว่าอะไน","input":"","output":"วีกิ มีกิ"},{"instruction":"สโมสรฟุตบอลเซี่ยงไฮ้ เอสไอพีจี มีความจุเท่าไร","input":"","output":"56,842 ที่นั่ง"},{"instruction":"ใน พ.ศ. 2482 โรงเรียนที่เขาเรียนอยู่ปิดตัวเพราะขาดแคลนเงิน เขาจึงเข้าศึกษาในโรงเรียนของนิกายใด ?","input":"","output":"นิกายเมโทดิสต์"},{"instruction":"เอ๋อเหรอ ออกฉายเมื่อวันที่เท่าไร","input":"","output":" 6 มกราคม พ.ศ. 2548"},{"instruction":"ในช่วง 2 ปีที่ผ่านมา desmopressin nasal ได้สั่งจ่ายไปทั้งหมดกี่ครั้ง","input":"CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\n","output":"SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'desmopressin nasal' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"ผ่านมาแล้วกี่ชั่วโมง นับตั้งแต่วันแรกที่คนไข้หมายเลข 032-24135 เข้ารับการรักษาในหอผู้ป่วย 1068","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-24135' AND patient.wardid = 1068 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"หลักสูตรใดบ้างที่มีหน่วยกิต 12 หน่วย","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS'"},{"instruction":"เทอร์โบ หรืออีกชื่อหนึ่งว่าอะไร","input":"","output":" เทอร์โบชาร์จเจอร์"},{"instruction":"คนไข้หมายเลข 8569 เข้ารับการรักษาครั้งล่าสุดที่โรงพยาบาลในปีนี้ได้อย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8569 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ผู้ใช้งาน Top 20 ที่ใช้ชื่อ DavidG ผู้ใช้งาน SO Top 20 จากประเทศจีน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(DisplayName) = 'jon skeet' ORDER BY Reputation DESC LIMIT 20"},{"instruction":"4 ปีที่แล้ว คนไข้หมายเลข 52604 เข้ารับการรักษาที่โรงพยาบาลกี่โมง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 52604 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"มูลนิธิมวยโลก ดำเนินงานโดยใคร","input":"","output":"นายแจ๊ค เรนนี่"},{"instruction":"โปรดระบุวันที่ของบันทึกการประเมินและนับตามแผนภูมิเส้น และแสดงในแบบลดลงตามแกน X ด้วย","input":"CREATE TABLE Assessment_Notes (\n notes_id INTEGER,\n student_id INTEGER,\n teacher_id INTEGER,\n date_of_notes DATETIME,\n text_of_notes VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC"},{"instruction":"คอมเมนต์ยอดนิยมสูงสุดสำหรับผู้ใช้ใน SFF","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Score, Text FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250"},{"instruction":"ฉันไม่เคยตอบว่าได้","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.Id AS \"post_link\" FROM Posts AS p WHERE p.PostTypeId = 2 AND (p.Body LIKE '%I have never%' OR p.Body LIKE '%I''ve never%' OR p.Body LIKE '%never tried%')"},{"instruction":"เทศบาลตำบลจันทบเพชร เดิมเป็นองค์การบริหารอะไร","input":"","output":"ส่วนตำบลจันทบเพชร "},{"instruction":"รูปแบบฐานข้อมูลสำหรับคำถามและคำตอบ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE Id BETWEEN 6000 AND 6500"},{"instruction":"ผู้ใช้ที่ได้คะแนนสูงสุด X อันดับแรก ผู้ใช้ที่ทำคะแนนได้เร็วที่สุด","input":"CREATE TABLE VoteTypes (\n Id number,\n Name text\n)\n\n","output":"SELECT * FROM VoteTypes"},{"instruction":"ผู้ป่วยรายสุดท้าย 96404 ออกจากโรงพยาบาล ตอนไหน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 96404 ORDER BY admissions.dischtime DESC LIMIT 1"},{"instruction":"ผู้ใช้ที่แตกต่างกันมีคำถามจำนวนเท่าไร","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(DISTINCT p.AcceptedAnswerId), p2.OwnerUserId FROM Posts AS p, Posts AS p2 GROUP BY p2.OwnerUserId ORDER BY COUNT(DISTINCT p.AcceptedAnswerId) DESC"},{"instruction":"ผู้ใช้ SO สูงสุด 2500 คนแรกจากเยอรมนี","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%deutschland%' OR LOWER(Location) LIKE '%germany%' ORDER BY Reputation DESC LIMIT 2500"},{"instruction":"อันดับปลาซีกเดียวมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Pleuronectiformes"},{"instruction":"ซูเปอร์โบวล์ครั้งที่ 52 แข่งขันสนามอะไร","input":"","output":"สนามยูเอสแบงค์ สเตเดียม"},{"instruction":"ผู้ใช้งาน 150 คนแรกจ���กประเทศจีน ผู้ใช้งาน SO 150 คนแรกจากจีน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%sweden%' OR UPPER(Location) LIKE '%SWEDEN%' OR Location LIKE '%SWEDEN%' AND Reputation >= 0 ORDER BY Reputation DESC LIMIT 150"},{"instruction":"คนไข้ 42473 มาโรงพยาบาลเมื่อกี่ชั่วโมงแล้ว","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 42473 AND admissions.dischtime IS NULL"},{"instruction":"จนถึงเมื่อ 4 ปีที่แล้ว คนไข้หมายเลข 027-53836 เคยไปห้องฉุกเฉินไหม?","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-53836' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"ถิรวัฒน์ เลิศพิชชาพัชร์ จบการศึกษาอะไร","input":"","output":"โรงเรียนเทพศิรินทร์"},{"instruction":"ผู้ใช้ที่ได้รับความนิยมมากที่สุดจากเมืองปูเน ประเทศอินเดีย ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE%' OR Location LIKE '%Pune%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"ชวด มีสัญลักษณ์เป็นอะไร","input":"","output":"หนู"},{"instruction":"ผู้ป่วยรหัส 002-64535 เข้ามานอนโรงพยาบาลครั้งแรกรอบปีนี้ด้วยสาเหตุใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '002-64535' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"สุภรภ์เพ็ญ หลวงเทพนิมิต เป็นรองเลขานุการของใคร","input":"","output":"พระองค์สมเด็จพระนางเจ้าสิริกิติ์ พระบรมราชินีนาถ"},{"instruction":"`Comment` ซ้ำสำหรับ `PostHistoryTypeId IN (33, 34)`","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT Comment, COUNT(*) AS \"Count\" FROM PostHistory WHERE PostHistoryTypeId IN (33, 34) GROUP BY Comment HAVING COUNT(*) > 2 ORDER BY 'Count' DESC"},{"instruction":"แซตเทอร์นาเลียคืออะไร","input":"","output":"เทศกาลโรมันโบราณ"},{"instruction":"เลสลีนีลเซนผ่านการแต่งงานมากี่ครั้ง","input":"","output":"4 ครั้ง"},{"instruction":"ค้นหาผู้ใช้ตามชื่อแสดงผล คัดกรองผู้ใช้ตามชื่อแสดงผลและชื่อประเทศ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location, WebsiteUrl FROM Users WHERE LOWER(Location) LIKE LOWER('%##CityName##%') AND LOWER(DisplayName) LIKE LOWER('%##UserName##%') ORDER BY Reputation DESC"},{"instruction":"แสดงรายการจำนวนใบแจ้งหนี้จากสหรัฐอเมริกา แยกตามแต่ละรัฐ แสดงภาพโดยการสร้างแผนภูมิแท่ง","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)\n\n","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state"},{"instruction":"เดอะว้าวลาว ออกอากาศช่วงไหน","input":"","output":"ทุกวันเสาร์เวลา 19.30 น. - 20.30 น."},{"instruction":"GOOD TV จากช่องอะไร","input":"","output":"เนกซ์สเตป"},{"instruction":"พงษ์ศักดิ์ จันทรุกขา เกิดที่จังหวัดอะไร","input":"","output":"จังหวัดอุบลราชธานี"},{"instruction":"แยชือ ดูแด็ก เป็นคนประเทศอะไร","input":"","output":"ประเทศโปแลนด์"},{"instruction":"มหกรรมกีฬาโอลิมปิกฤดูร้อนครั้งที่ 20 จัดขึ้นเมืองอะไร","input":"","output":"ที่เมืองมิวนิก"},{"instruction":"สำหรับโพสต์ที่สร้างในปี 2017 เวลาโดยเฉลี่ยระหว่าง คำถามที่ถูกสร้างและคำตอบที่ได้รับการยอมรับ","input":"CREATE TABLE PostFeedback (\n Id number,\n PostId number,\n IsAnonymous boolean,\n VoteTypeId number,\n CreationDate time\n)\n\n","output":"SELECT CreationDate FROM PostFeedback WHERE CAST(CreationDate AS DATETIME) BETWEEN '2017-01-01 00:00:00' AND '2017-12-31 23:59:59'"},{"instruction":"ฉันกำลังมองหาคอร์สเรียนที่ขึ้น 9 หน่วยกิต มีวิชาใดบ้าง","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 9 AND department = 'EECS'"},{"instruction":"พงษ์ศักดิ์ จันทรุกขา ชื่อเดิมว่าอะไร","input":"","output":"นายสงคราม"},{"instruction":"อุทยานแห่งชาติเขาใหญ่ ตั้งอยู่ในอยู่พื้นที่ กี่อำเภอ","input":"","output":"11 อำเภอ"},{"instruction":"หมู่บ้านประวัติศาสตร์ฮาฮเวและยังดงได้ขึ้นทะเบียนเป็นมรดกโลกที่เมืองใด และประเทศอะไร ?","input":"","output":"เมืองเซบิยา ประเทศสเปน"},{"instruction":"ป้องกันแชมป์ครั้งที่ 1 กับใคร","input":"","output":"โมฮัมหมัด นูร์ฮูดา"},{"instruction":"ชื่อสามัญมากที่สุดที่ใช้กับ Jon","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT DisplayName, COUNT(*) AS total FROM Users WHERE DisplayName LIKE 'Jon %' GROUP BY DisplayName ORDER BY DisplayName DESC LIMIT 10"},{"instruction":"ตั้งแต่ปี 2104 คนไข้หมายเลข 70516 มาโรงพยาบาลครั้งสุดท้ายตอนไหน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 70516 AND STRFTIME('%y', admissions.admittime) >= '2104' ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ฟุตบอลทีมชาติปารากวัย เข้าร่วมฟุตบอลโลกกี่ครั้ง","input":"","output":"3 ครั้ง"},{"instruction":"มีการปรับปรุงบทนิยามของการตายเสียใหม่เพื่อให้สอดคล้องกับสถานการณ์ที่เปลี่ยนแปลงไป ซึ่งความจำเป็นเช่นว่านี้เกิดต้องกระทำรีบด่วนขึ้นเมื่ออุปกรณ์การพยุงชีวิต เช่นอะไร","input":"","output":"การปลูกถ่ายอวัยวะ"},{"instruction":"มีการดำเนินการรักษาโดยแพทย์ที่เฉพาะทาง เช่น ขั้นตอนการใช้ยาเกินขนาดของ beta blockers มากแค่ไหนในปี 2015?","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'agent specific therapy - beta blockers overdose' AND STRFTIME('%y', treatment.treatmenttime) = '2105'"},{"instruction":"ค้นหาโพสต์โดยหลายตัวอักษรความคิดเห็น (\"OR\" ตัวดำเนินการ) และ UserId.","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", Score, Text FROM Comments WHERE (UPPER(Text) LIKE UPPER('%##CommentText##%') OR UPPER(Text) LIKE UPPER('%##CommentText2##%')) AND UserId = '##UserId##' ORDER BY Score DESC"},{"instruction":"สะพานโกลเดนเกตอยู่ที่ไหน","input":"","output":"เมืองซานฟรานซิสโก รัฐแคลิฟอร์เนีย สหรัฐอเมริกา"},{"instruction":"ตามล่านักฆ่าแอนดรอยด์ วาดโดยใคร","input":"","output":"นาโอกิ อุราซาว่า"},{"instruction":"คำถามที่ได้รับความนิยมมากที่สุดบน Salesforce StackExchange","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Questions.Id AS \"post_link\", Questions.Title, Questions.ViewCount FROM Posts AS Questions GROUP BY Questions.Id, Questions.Title, Questions.ViewCount ORDER BY ViewCount DESC LIMIT 20"},{"instruction":"จำนวนกระบวนการรักษาเฉพาะตัวแทน-เบต้าบล็อกเกอร์ที่ใช้มากเกินไปนั้นเกิดขึ้นในปี 2105 คือเท่าใด","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'agent specific therapy - beta blockers overdose' AND STRFTIME('%y', treatment.treatmenttime) = '2105'"},{"instruction":"ด็อกคิวเสตคือยาอะไร","input":"","output":"ยาระบายที่ทำให้อุจจาระนิ่ม ใช้รักษาอาการท้องผูก"},{"instruction":"โยฮัน คริสทีอัน โรเซนมึลเลอร์ เกิดวันที่เท่าไร","input":"","output":"25 พฤษภาคม ค.ศ. 1771"},{"instruction":"สมาชิกที่มีทั้งหมดอย่างน้อยจำนวน X","input":"CREATE TABLE Badges (\n Id number,\n UserId number,\n Name text,\n Date time,\n Class number,\n TagBased boolean\n)\n\n","output":"SELECT UserId AS \"user_link\", COUNT(*) AS badgeCount FROM Badges GROUP BY UserId HAVING COUNT(*) > 100 ORDER BY badgeCount DESC"},{"instruction":"นกตะขาบทุ่งพบในทวีปใด","input":"","output":"ทวีปเอเชีย"},{"instruction":"บอกเพศผู้ป่วย 035-19890 ให้ทราบ","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '035-19890'"},{"instruction":"ผู้ใช้ที่มีอักขระในหัวข้อ \"เกี่ยวกับฉัน\" มากกว่า 3,000 ตัว","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", LENGTH(AboutMe) AS \"Length of About Me\", AboutMe FROM Users WHERE LENGTH(AboutMe) > 3000 ORDER BY LENGTH(AboutMe) DESC"},{"instruction":"พระนางช็องซ็องเข้าพิธีอภิเษกตอนอายุเท่าไหร่","input":"","output":"10"},{"instruction":"ชั้นเรียนใดที่ฉันสามารถได้รับ 1 หน่วยกิต?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 1 AND department = 'EECS'"},{"instruction":"รับจำนวนผู้ใช้ตามสถานที่","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(1) FROM Users WHERE LOWER(Location) LIKE '%##LocationInLowercase##%'"},{"instruction":"แอซเท็ก อยู่ในคริสต์ศตวรรษที่เท่าไร","input":"","output":"14, 15 และ 16"},{"instruction":"เว็ปไซต์ได้อัปโหลดข้อมูลจากเว็บใด","input":"","output":"เว็บไซต์พอร์ทัล ไซแอนซ์ ไดเร็ค ของแอ็ลเซอเฟียร์"},{"instruction":"คำถามไม่ดี ตามคะแนนโหวตและการปิดและอื่นๆ ที่คล้ายกัน_title","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, CASE WHEN NOT ClosedDate IS NULL THEN 'N' ELSE 'Er' END AS \"closed?\", Title AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND (NOT ClosedDate IS NULL OR Score < -3) ORDER BY Score LIMIT 500"},{"instruction":"พังก์โกส์อะคูสติก 2 เป็นอัลบั้มรวมเพลงที่รวมอยู่ในซีรีส์อะไร","input":"","output":"อัลบั้มเพลงคัฟเวอร์ พังก์โกส์"},{"instruction":"เพชรซ่อน: คำถามที่คนดูน้อยที่สุดที่ได้คะแนน 50 หรือมากกว่า","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Posts.Id AS \"post_link\", Posts.OwnerUserId AS \"user_link\", Score, ViewCount, Score * 1000 \/ ViewCount AS \"Score per Thousand Views\" FROM Posts WHERE Score >= 50 AND PostTypeId = 1 ORDER BY ViewCount LIMIT 1000"},{"instruction":"คำถามที่ปิดโดยผู้ควบคุมระบบ vs ชุมชน","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT UserId, UserId AS \"user_link\", COUNT(PostId) FROM PostHistory WHERE PostHistoryTypeId = 10 GROUP BY UserId"},{"instruction":"จนถึง วันที่ 21\/04\/102 น้ำหนักเฉลี่ยรายวันของผู้ป่วย 002-39753 คือ เท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT AVG(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-39753') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2102-04' GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime)"},{"instruction":"มาร์เชอ เกย์ ฮาร์เดน คือใคร ?","input":"","output":"นักแสดงภาพยนตร์ ละครเวที"},{"instruction":"ในปี ค.ศ. 1974 มีนักท่องเที่ยวเข้าเยี่ยมชมประเทศภูฏานกี่คน ?","input":"","output":"287 คน"},{"instruction":"โชฟุ เป็นเมืองในเขตอะไร","input":"","output":"ทามะ"},{"instruction":"ใครเป็นพิธีกรรายการ ?","input":"","output":"ปัญญา นิรันดร์กุล สร้างสรรค์"},{"instruction":"กระซู่เป็นสัตว์ประเภทใด","input":"","output":"สัตว์เลี้ยงลูกด้วยนม"},{"instruction":"จำนวนคำถามต่อเดือน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT number = ROW_NUMBER() OVER (ORDER BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate))), COUNT(Posts.Id) AS Total FROM Posts WHERE (PostTypeId = 1 AND CreationDate >= '##Date1##' AND CreationDate <= '##Date2##') GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) ORDER BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate))"},{"instruction":"เพชรเม็ดงาม: คะแนนคำถามที่สูงที่สุดต่อการดูหนึ่งพันครั้ง (ดูอย่างน้อย 1,000 ครั้ง)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Posts.Id AS \"post_link\", Posts.OwnerUserId AS \"user_link\", Score, ViewCount, Score * 1000 \/ ViewCount AS \"Score per Thousand Views\" FROM Posts WHERE Score > 0 AND ViewCount >= 1000 AND PostTypeId = 1 ORDER BY Score * 1000 \/ ViewCount DESC LIMIT 1000"},{"instruction":"นักพัฒนาเกมชาวอิหร่าน 10 อันดับแรกใน Stackoverflow","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location, age FROM Users WHERE LOWER(Location) LIKE '%iran%' OR UPPER(Location) LIKE '%ir' ORDER BY Reputation DESC LIMIT 10"},{"instruction":"ฉันต้องการดูคอร์สธุรกิจการพยากรณ์และการประเมินค่าหลักทรัพย์ 13 เครดิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Business Forecasting and Equity Valuation%' OR name LIKE '%Business Forecasting and Equity Valuation%') AND credits = 13"},{"instruction":"แสดงวันที่จัดส่งและแยกตามวันในแต่ละสัปดาห์ในรูปแบบแผนภูมิแท่ง และโปรดเรียงลำดับจากสูงไปต่ำตามแกน y","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Actual_Delivery_Date, COUNT(Actual_Delivery_Date) FROM Bookings ORDER BY COUNT(Actual_Delivery_Date) DESC"},{"instruction":"นะงะเซะ โทะโมะยะ ส่วนสูงเท่าไร","input":"","output":"185 เซนติเมตร"},{"instruction":"นาถยา แดงบุหงา เกิดวันที่เท่าไร","input":"","output":"2 พฤศจิกายน พ.ศ. 2504"},{"instruction":"เปลือกของต้นจำปาเทศมีสรรพคุณใช้ทำอะไร","input":"","output":"เปลือกใช้เป็นยาลดไข้"},{"instruction":"เมื่อผู้ป่วยหมายเลข 31615 ออกจากโรงพยาบาลเมื่อใดเพราะ 1 ปีที่ผ่านมานี้?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 31615 AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY admissions.dischtime LIMIT 1"},{"instruction":"ผู้ป่วย 15905 ก่อน 3 ปี มาพบแพทย์ที่ รพ. กี่ครั้ง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 15905 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year')"},{"instruction":"ภาษาโปรแกรมคืออะไร","input":"","output":"ภาษาประดิษฐ์ชนิดหนึ่งที่ออกแบบขึ้นมาเพื่อสื่อสารชุดคำสั่งแก่เครื่องจักร "},{"instruction":"ข้อจำกัด AP\/57คืออะไร","input":"CREATE TABLE restriction (\n restriction_code text,\n advance_purchase int,\n stopovers text,\n saturday_stay_required text,\n minimum_stay int,\n maximum_stay int,\n application text,\n no_discounts text\n)\n\n","output":"SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP\/57'"},{"instruction":"แสดงผลราคาเฉลี่ยของแต่ละประเภทผลิตภัณฑ์ด้วยกราฟแท่ง และคุณสามารถจัดรายการราคาเฉลี่ยของผลิตภัณฑ์จากสูงไปต่ำได้หรือไม่?","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY AVG(product_price) DESC"},{"instruction":"การแข่งขัน พาราลิมปิกฤดูอะไร","input":"","output":"ฤดูหนาว"},{"instruction":"1000 ผู้ใช้จาก Bhubaneswar & Cuttack, India TOP รายชื่อ 1000 ผู้ใช้ (จัดอันดับตามชื่อเสียง) ที่อยู่ใน Bangalore, Karnataka, India ตามข้อมูลโปรไฟล์ของพวกเขา\n\n\nขอบคุณข้อมูลจาก http:\/\/data.stackexchange.com\/stackoverflow\/query\/60933\/top-50-users-from-india\n\n\nแก้ไขโดย GNKeshava","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE LOWER(Location) LIKE '%Bhubaneswar%' OR UPPER(Location) LIKE '%Bhubaneswar%' OR Location LIKE '%Bhubaneswar%' OR LOWER(Location) LIKE '%Bhubaneshwar%' OR UPPER(Location) LIKE '%Bhubaneshwar%' OR Location LIKE '%Bhubaneshwar%' OR LOWER(Location) LIKE '%Cuttack%' OR UPPER(Location) LIKE '%Cuttack%' OR Location LIKE '%Cuttack%' ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"ออกอากาศตั้งแต่เมื่อไร","input":"","output":"ตั้งแต่วันที่ 16 พฤศจิกายน 2547 ถึง 21 พฤษภาคม 2555"},{"instruction":"รีการ์ดู ปึไรรา เกิดวันที่เท่าไร","input":"","output":"11 กุมภาพันธ์ ค.ศ. 1976"},{"instruction":"เทศกาลโฮกี เริ่มต้นวันอะไร","input":"","output":"วันแรม 1 ค่ำเดือน 4"},{"instruction":"มีการค้นพบปลาถ้ำเมื่อปี ค.ศ. อะไร","input":"","output":"ปี ค.ศ. 2012 "},{"instruction":"มันฝรั่ง ยุคแรกนั้นเกิดที่ไหร","input":"","output":"แถบเทือกเขาแอนดิสของประเทศเปรู"},{"instruction":"คำถามยอดนิยมในปี 2015","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title, ViewCount, Score FROM Posts WHERE CreationDate >= '20150101' ORDER BY ViewCount DESC"},{"instruction":"สายการบินใดคือ AS ใน sam","input":"CREATE TABLE airline (\n airline_code varchar,\n airline_name text,\n note text\n)\n\n","output":"SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'AS'"},{"instruction":"คำนวณระยะเวลาพักรักษาตัวของผู้ป่วย 005-46456 ครั้งล่าสุดในห้อง ICU","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-46456') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"พัชชา พูนพิริยะ เกิดวันที่เท่าไร","input":"","output":"6 กันยายน พ.ศ. 2537"},{"instruction":"คนไข้หมายเลข 22517 ไปโรงพยาบาลกี่ครั้งภายใน 2 ปีที่ผ่านมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 22517 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"พระนางช็องซ็องเป็นใคร","input":"","output":"พระมเหสีองค์แรกของ พระเจ้าย็องโจ พระราชาองค์ที่ 21 แห่ง ราชวงศ์โชซ็อน"},{"instruction":"ดาวเนปจูนถูกค้นพบในปีพุทธศักราชใด","input":"","output":"พ.ศ. 2389"},{"instruction":"ผู้ป่วยหมายเลข 006-245995 เข้า ICU ในปี 2104 กี่ครั้ง","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-245995') AND STRFTIME('%y', patient.unitadmittime) = '2104'"},{"instruction":"ตอบคะแนนโดยความยาวโพสต์ กลุ่มโพสต์ที่มีความยาวต่างกันพร้อมกันโดยคะแนนคำตอบสำหรับผู้ใช้ที่กำหนด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.Score AS AnswerScore, SUM(CASE WHEN LENGTH(p.Body) <= 200 THEN 1 ELSE 0 END) AS PostsWithLen_0_200, SUM(CASE WHEN LENGTH(p.Body) BETWEEN 201 AND 500 THEN 1 ELSE 0 END) AS PostsWithLen_201_500, SUM(CASE WHEN LENGTH(p.Body) BETWEEN 501 AND 1000 THEN 1 ELSE 0 END) AS PostsWithLen_501_1000, SUM(CASE WHEN LENGTH(p.Body) BETWEEN 1001 AND 2000 THEN 1 ELSE 0 END) AS PostsWithLen_1001_2000, SUM(CASE WHEN LENGTH(p.Body) > 2001 THEN 1 ELSE 0 END) AS PostsWithLen_2001plus FROM Posts AS p WHERE p.OwnerUserId = @UserId AND p.PostTypeId = 2 GROUP BY p.Score"},{"instruction":"จรูญวิทย์ พัวพันวัฒนะ ได้รับรางวัลอะไร","input":"","output":"ตำแหน่งรองชนะเลิศอันดับที่ 2"},{"instruction":"มีวิชา Water Quality and Human the Great Lakes Basin แบบ 9 หน่วยกิตใดบ้าง","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Water Quality and Human the Great Lakes Basin%' OR name LIKE '%Water Quality and Human the Great Lakes Basin%') AND credits = 9"},{"instruction":"คาร์ล กุสตาฟ โมแซนเดอร์เป็นบุตรของใคร","input":"","output":"เป็นบุตรของไอแซก โมแซนเดอร์และคริสตินา แมเรีย"},{"instruction":"select id, score จาก posts เรียงลำดับจาก score ลดลง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Score FROM Posts ORDER BY Score DESC"},{"instruction":"ฟาวน์ทินส์แอบบีย์คืออะไร","input":"","output":"เป็นแอบบีย์[1]โรมันคาทอลิกสังกัดคณะซิสเตอร์เชียนที่ตั้งอยู่ที่เทศมณฑลนอร์ธยอร์กเชอร์"},{"instruction":"ผู้ใช้ 100 อันดับต้นๆ ในอินเดีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"คำนวณระยะเวลาในการนอนไอซียูครั้งแรกของผู้ป่วยที่ 027-82318","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"SELECT TOP 100 * จาก Posts.","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT * FROM Users LIMIT 1000000"},{"instruction":"โพสต์ไหนที่ฉันแก้ไขไป บันทึกการค้นหาสำหรับการแก้ไขที่ทำทั้งหมด","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)","output":"SELECT PostId AS \"post_link\", * FROM PostHistory WHERE UserId = @UserId ORDER BY PostId DESC, Id DESC"},{"instruction":"เคต วินสเล็ต ได้รับการเข้าชิงรางวัลออสก้ากี่ครั้ง","input":"","output":"5 ครั้ง"},{"instruction":"คำถามใดที่ควรโหวตและไม่ควรโหวต","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND AnswerCount = 1 AND Id IN (SELECT ParentId FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = '##UserId##' AND Score = 0) ORDER BY CreationDate DESC"},{"instruction":"เลือก Top 10 จาก Posts","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE ViewCount > 31000 AND ViewCount <= 33000 ORDER BY ViewCount DESC"},{"instruction":"ดินแดนคัมชัตคามีประชากรทั้งหมดกี่คน","input":"","output":"322,079 คน"},{"instruction":"ในบรรดาคอร์สระดับ 400 ทั้งหมด คอร์สไหนที่ไม่มีห้องปฏิบัติการ","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N' AND number < 400 + 100 AND number >= 400"},{"instruction":"คอมเมนต์ยอดนิยมของฉัน (มีสิทธิ์ได้รับป้ายผู้เชี่ยวชาญ) แสดงความคิดเห็นที่มี 10 อัปโหวตขึ้นไป","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Score) AS rownum, PostId AS \"post_link\", Score, Text FROM Comments WHERE UserId = '##userid##' ORDER BY Score DESC"},{"instruction":"นับจำนวนผู้ป่วยที่ได้ออกจากโรงพยาบาลแล้ว","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL"},{"instruction":"ความคิดเห็นที่ฉันแสดงมากที่สุด (มีสิทธิ์ได้รับตราปราชญ์) แสดงความคิดเห็นที่มีการอัปโหวต 10 รายการหรือมากกว่า","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Score) AS rownum, PostId AS \"post_link\", Score, Text FROM Comments WHERE UserId = '##userid##' ORDER BY Score DESC"},{"instruction":"กงไกรลาศ อำเภอตั้งอยู่บนเกาะเล็ก ๆ ชื่อว่าอะไร","input":"","output":"เกาะกง"},{"instruction":"ในช่วง 3 ปีที่ผ่านมานี้ คนไข้หมายเลข 22753 มาโรงพยาบาลกี่ครั้ง?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 22753 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-3 year')"},{"instruction":"ชิงแชมป์ IBF แพนแปซิฟิกรุ่นจูเนียร์เวลเตอร์เวทเมื่อวันที่เท่าใด ?","input":"","output":"27 มีนาคม 2548"},{"instruction":"เมื่อไหร่ที่ Martijn Pieters นอน?","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(CreationDate, '%I') AS \"hour\", COUNT(*) AS \"frequency\" FROM Posts WHERE OwnerUserId = '##UserID##' GROUP BY TIME_TO_STR(CreationDate, '%I')"},{"instruction":"ตำนานลับจักรพรรดิเฉียนหลงอิงจากเหตุการณ์ใดในอดีต","input":"","output":"ประวัติศาสตร์ ฮ่องเต้เฉียนหลง ในสมัยราชวงศ์ชิง "},{"instruction":"ผู้ป่วยรายที่ 002-38474 อยู่ในห้องฉุกเฉินตั้งแต่เมื่อ 5 ปีที่แล้วใช่ไหม","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '002-38474' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-5 year')"},{"instruction":"ในประเทศกำลังพัฒนาฝุ่นละอองที่เกิดขึ้นมักจะเกิดจากโรงงานผลิตกระแสไฟฟ้าจากสิ่งใด ?","input":"","output":"ถ่านหิน\n"},{"instruction":"7 อีริส ชื่อมีที่มาจากใคร","input":"","output":"เทพีอีริสในเทพปกรณัมกรีก"},{"instruction":"ถนนพญาไท เริ่มต้นตั้งแต่ถนนอะไร","input":"","output":"ถนนพระรามที่ 4"},{"instruction":"ปลากัดป่าภาคใต้ของประเทศไทยมีขนาดยาวกี่เซนติเมตร","input":"","output":"ยาวประมาณ 5 เซนติเมตร"},{"instruction":"นับจำนวนผู้ป่วยที่ได้ออกจากโรงพยาบาลในปี 2101","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2101'"},{"instruction":"หลักสูตรความรู้ทางด้านใดของการเรียนรู้ของเครื่องที่ให้หน่วยกิต 15 หน่วย?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Machine Learning%' OR name LIKE '%Machine Learning%') AND credits = 15"},{"instruction":"พัฒนาก���รของจำนวนผู้ใช้ใหม่ จำนวนผู้ใช้ใหม่ต่อวัน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT DATE(STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate))) AS FullDate, COUNT(*) AS Total FROM Users GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)) ORDER BY FullDate DESC"},{"instruction":"พัก จู-ย็อง อดีตเคยเล่นให้กับทีมอะไร","input":"","output":"อาร์เซนอล ในพรีเมียร์ลีก อังกฤษ"},{"instruction":"มะตาด มีเส้นผ่านศูนย์กลางระหว่างกี่เมตร","input":"","output":"15-20 ซม."},{"instruction":"เป็นดินแดนส่วนแยกของประเทศสเปนในแอฟริกาเหนือ ตั้งอยู่ใด ?","input":"","output":"ริมทะเลเมดิเตอร์เรเนียน"},{"instruction":"ฉันได้ทำเครื่องหมายคำถามทั้งหมดให้เป็นที่ยอมรับแล้วหรือยัง?","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", * FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND ClosedDate IS NULL AND AnswerCount > 0 AND OwnerUserId = '##ownerid##'"},{"instruction":"สนามกีฬาติณสูลานนท์ อยู่จังหวัดอะไร","input":"","output":"จังหวัดสงขลา"},{"instruction":"แผ่นดินศักดิ์สิทธิ์ อยู่ประเทศอะไร","input":"","output":"ประเทศอิสราเอล"},{"instruction":"พญาปล้องทองจัดว่าเป็นพรรณไม้อยู่ในวงศ์ชนิดใด","input":"","output":"วงศ์ : Acanthaceae"},{"instruction":"พระนางช็องซ็องประสูตเมื่อไหร่","input":"","output":"วันที่ 7 ธันวาคม ค.ศ. 1692"},{"instruction":"ราคาเฉลี่ยสำหรับโรงแรมโดยใช้รหัสประเภทดาวแต่ละประเภทอยู่ที่เท่าไหร่ครับ","input":"CREATE TABLE Hotels (\n hotel_id INTEGER,\n star_rating_code CHAR(15),\n pets_allowed_yn CHAR(1),\n price_range real,\n other_hotel_details VARCHAR(255)\n)\n\n","output":"SELECT star_rating_code, AVG(price_range) FROM Hotels GROUP BY star_rating_code"},{"instruction":"สร้างหน้า HTML ที่แสดง (โดยส่วนใหญ่) ไฟล์ GIF ที่เคลื่อนไหวที่โพสต์ใน # วันที่ระบุ สร้าง HTML เพื่อวางลงในไฟล์ .html ว่างเปล่า แสดงรูปภาพ .GIF (โดยส่วนใหญ่คือไฟล์ GIF ที่เคลื่อนไหว) ที่เชื่อมโยงกับโพสต์ Q&A ในช่วง \"จำนวนวันที่ระบุ\" ที่ผ่านมา ค้นหาไฟล์ `.gif` ที่ปรากฏครั้งแรกในเนื้อหาโพสต์ และค้นหา `http` ย้อนกลับ คำแนะนำ: (1) เรียกใช้คิวรี่นี้โดยระบุ \"จำนวนวันที่ย้อนกลับ\" (ก่อนวันนี้) เพื่อรวมในผลลัพธ์ ... (2) คลิกดาวน์โหลด CSV จากนั้นบันทึกไฟล์ ... (3) เปลี่ยนนามสกุลไฟล์จาก .CSV เป็น .HTML ... (4) ดับเบิลคลิกไฟล์เพื่อเปิดในเบราว์เซอร์ มีข้อผิดพลาดมากมาย ห่างไกลจากความ��มบูรณ์แบบ (เพื่อความสนุกเท่านั้น!) สูงสุด ~180 gif","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT SUBSTRING(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - (CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1), CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1) AS \"gif_url\", CASE WHEN PostTypeId = 2 THEN 'Answer' ELSE 'Question' END AS \"post_type\", Id AS \"post_link\", CreationDate AS \"post_date\" FROM Posts WHERE CreationDate >= DATEADD(d, -30, GETDATE()) AND Body LIKE '%' + @stStart + '%' + @stEnd + '%' COLLATE SQL_Latin1_General_CP1_CI_AS ORDER BY CreationDate DESC"},{"instruction":"ถนนพญาไท ไปที่ไหนของกรุงเทพ","input":"","output":"ไปทางทิศเหนือในพื้นที่เขตปทุมวัน"},{"instruction":"ซาวน่าหรรษา ออกอากาศครั้งวันที่เท่าไร","input":"","output":"8 พฤศจิกายน ค.ศ. 2001"},{"instruction":"ไฟเยอโนร์ดได้รับรางวัลอะไรบ้าง","input":"","output":"คว้าแชมป์ลีกสูงสุด 15 ครั้ง, ฟุตบอลถ้วยดัตช์ 10 ครั้ง, ซูเปอร์คัพดัตช์ 2 ครั้ง, ยูฟ่าคัพ 2 ครั้ง "},{"instruction":"ระบุประเภททั้งหมด","input":"CREATE TABLE genres (\n id number,\n name text\n)\n\n","output":"SELECT DISTINCT name FROM genres"},{"instruction":"การเวก เสียงทองเลิกร้องเพลงไปทำอาชีพอะไร","input":"","output":"เล่นลิเกอยู่ตามตลาด และงานทั่วรวมทั้งรับทำขวัญนาค"},{"instruction":"ทางหลวงแผ่นดินหมายเลข 42 ผ่านทางไหนบ้าง","input":"","output":"สายคลองแงะ–จุดผ่านแดนถาวรสุไหงโก-ลก"},{"instruction":"วัยระเริงฉายเมื่อใด","input":"","output":"ปี พ.ศ. 2527"},{"instruction":"ช่วยหาเวลาที่คนไข้ 61500 เข้าโรงพยาบาลตั้งแต่ 2105","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 61500 AND STRFTIME('%y', admissions.admittime) >= '2105'"},{"instruction":"รูลา ฆานีคือใคร","input":"","output":"เป็นสุภาพสตรีหมายเลขหนึ่งของประเทศอัฟกานิสถาน ด้วยเป็นภริยาของอัชราฟ ฆานี ประธานาธิบดี"},{"instruction":"คำนวณระยะเวลาพำนักในโรงพยาบาลของผู้ป่วยหมายเลข 013-12480 ในการเข้าพักแผนกผู้ป่วยวิกฤตครั้งแรก","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"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"},{"instruction":"คำนวณระยะเวลา���ารนอนโรงพยาบาลครั้งล่าสุดของผู้ป่วยหมายเลข 010-20205","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"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"},{"instruction":"พระเจ้าซินด๊อกเป็นกษัตริย์ลำดับที่เท่าไหร่แห่งอาณาจักนซิลลา","input":"","output":"ลำดับที่ 53"},{"instruction":"ต้นกระทิงมีชื่อพื้นเมืองว่าอะไรบ้าง","input":"","output":"กากะทิง (ภาคกลาง), ทิง (กระบี่), เนาวกาน (น่าน), สารภีแนน (ภาคเหนือ)"},{"instruction":"ดาวพลูโตมีขนาดใหญ่เป็นอันดับที่เท่าไหร่ในระบบสุริยะ","input":"","output":"อันดับที่ 9"},{"instruction":"วัดศรีพโลทัยได้รับอนุญาตให้ตั้งเป็นวัดเมื่อวันที่เท่าไหร่","input":"","output":"5 ตุลาคม พ.ศ. 2508"},{"instruction":"เลขมงคล วันพ่อแห่งชาติ ใช้เลขอะไร","input":"","output":"๙"},{"instruction":"อาสนวิหารอานซี อยู่ประเทศอะไร","input":"","output":"ประเทศฝรั่งเศส"},{"instruction":"ตั้งแต่ปี 2101 เป็นต้นมา ผู้ป่วย 1417 เคยเข้ารับการรักษาที่โรงพยาบาลกี่ครั้ง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 1417 AND STRFTIME('%y', admissions.admittime) >= '2101'"},{"instruction":"ปลาตาเหลือกยาวมีความยาวเต็มที่กี่เมตร","input":"","output":"ความยาวเต็มที่ได้ถึง 1 เมตร"},{"instruction":"ปลาเทพาเป็นปลาที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาสวาย (Pangasiidae)"},{"instruction":"เคต วินสเล็ต ได้รับการเข้าชิงรางวัลลูกโลกทองคำกี่ครั้ง","input":"","output":"7 ครั้ง"},{"instruction":"จำนวนโพสต์ใน 30 วันที่ผ่านมา","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE PostTypeId IN (1, 2) AND CreationDate >= DATEADD(DAY, -30, GETDATE())"},{"instruction":"เฮเลน เคลเลอร์เป็นใคร","input":"","output":"นักเขียนและนักมนุษยธรรมชาวอเมริกัน"},{"instruction":"นิราศสองภพ ถูกสร้างเป็นละครครั้งแรกทาง ช่องอะไร","input":"","output":"ช่อง 3"},{"instruction":"คือ us US","input":"CREATE TABLE airline (\n airline_code varchar,\n airline_name text,\n note text\n)\n\n","output":"SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'US' AND airline_name LIKE 'USAIR'"},{"instruction":"จิตตคหบดี เป็นใคร","input":"","output":"เป็���มหาอุบาสกคนสำคัญในสมัย พุทธกาล"},{"instruction":"ภายหลังจากการถวายพระเพลิงแล้ว ชิ้นส่วนประกอบต่างๆ ของพระเมรุที่ถูกรื้อถอนบางส่วนจะนำไปไว้ที่ไหน","input":"","output":"จะนำไปถวายวัด เพื่อเป็นการกุศลแด่ผู้วายชนม์"},{"instruction":"อรุณ ภาวิไล มาจากตัวละครที่เขาแสดงชื่อเดียวกันในรายการอะไร","input":"","output":"เพชฌฆาตความเครียด"},{"instruction":"มียอดการดำเนินการเกี่ยวกับวัฒนธรรมใดในปี 2104","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cultures' AND STRFTIME('%y', treatment.treatmenttime) = '2104'"},{"instruction":"FF คืออะไร","input":"CREATE TABLE airline (\n airline_code varchar,\n airline_name text,\n note text\n)\n","output":"SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'FF'"},{"instruction":"พระโลกนาถจบการศึกษาจากประเทศอะไร","input":"","output":"สหรัฐอเมริกา"},{"instruction":"","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"เซ็นทรัลพัฒนา เป็นบริษัทสำหรับการพัฒนาอะไร","input":"","output":"ดูแล และบริหารโครงการอสังหาริมทรัพย์ขนาดใหญ่ทั้งในและต่างประเทศ"},{"instruction":"สมาคมฟุตบอลสหรัฐอาหรับเอมิเรตส์ เข้าร่วมกับสหพันธ์ฟุตบอลนานาชาติ เมื่อปีอะไร","input":"","output":"ค.ศ. 1974"},{"instruction":"ซูว์ลี พรูว์ดอมได้รับเกียรติให้เป็นสมาชิกของบัณฑิตยสถานฝรั่งเศสเมื่อปีใด","input":"","output":"ค.ศ. 1881 "},{"instruction":"พล็อตจำนวนวันที่สั่งซื้อมากกว่าวันที่สั่งซื้อในแผนภูมิเส้น","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Order_Date, COUNT(Order_Date) FROM Bookings"},{"instruction":"จำนวนครั้งการมาโรงพยาบาลของผู้ป่วยหมายเลข 65401 ในปีนี้","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"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')"},{"instruction":"คำถามและคำตอบที่ได้รับการยอมรับ ในโพสต์ครั้งแรก","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"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"},{"instruction":"เลตอิตบี บันทึกเสียงเมื่อไร","input":"","output":"เดือนมกราคม 1969"},{"instruction":"ฮิโระ มุระโมะโตะ เคยทำงานให้กับใคร","input":"","output":"ออสเตรเลียนบอร์ดแคสติงคอร์ปอเรชัน (เอบีซี)"},{"instruction":"ตั้งแต่เมื่อ 4 ปีมานี้ ได้รับการให้น้ำเกลือไฮโปโทนิก ครึ่งน้ำเกลือปกติเท่าไร","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'hypotonic fluid administration - half-normal saline solution' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"อันดับปลาซีกเดียวมีชื่อเรียกทางสามัญว่าอย่างไีร","input":"","output":"Flatfish"},{"instruction":"คุณสามารถเน้นหลักสูตรที่ให้ 12 หน่วยกิตเมื่อสำเร็จหลักสูตรหรือไม่","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS'"},{"instruction":"โครงการสะพานเหญิตเตินเป็นโครงการกู้ยืมเงินกับหน่วยงานใด","input":"","output":"องค์การความร่วมมือระหว่างประเทศแห่งญี่ปุ่น"},{"instruction":"ปลาช่อนถือว่าเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาช่อน (Channidae)"},{"instruction":"ออทโทที่ 1 ดยุกแห่งเบราน์ชไวค์-ลือเนบูร์ก เสียชีวิตปีอะไร","input":"","output":"9 มิถุนายน ค.ศ. 1252"},{"instruction":"พระเจ้ากะยอชวาแห่งพุกามสิ้นพระชนม์ตอนอายุเท่าไหร่","input":"","output":"38 พรรษา"},{"instruction":"เปอร์เซ็นต์ของคำถามซ้ำซ้อนรายเดือน โดยนับรวมถึงคำถามที่ถูกลบแล้วด้วย","input":"CREATE TABLE PostLinks (\n Id number,\n CreationDate time,\n PostId number,\n RelatedPostId number,\n LinkTypeId number\n)\n\n","output":"SELECT * FROM PostLinks WHERE PostId = 1066589"},{"instruction":"ตั้งวง เขียนบทและกำกับโดยใคร","input":"","output":"คงเดช จาตุรันต์รัศมี"},{"instruction":"ขนมจีน รับประทานกับอะไร","input":"","output":"น้ำยา น้ำพริก เป็นต้น"},{"instruction":"แฮโลเพริดอล เป็นยาอะไร","input":"","output":"ยาระงับอาการทางจิต"},{"instruction":"เศษส่วนการดีดดตัว <= 35 % และอย่างน้อยหนึ่งอย่างต่อไปนี้: การแทรกแซงเส้นทางหลอดเลือดหัวใจสุดท้ายที่ได้รับการจดสิทธิบัตร หรือการแทรกแซงเส้นเลือดหัวใจหลักในซีกซ้ายที่ไม่มีการป้องกัน","input":"CREATE TABLE table_test_31 (\n \"id\" int,\n \"ejection_fraction_ef\" int,\n \"macular_disease\" bool,\n \"systemic\" bool,\n \"alt\" float,\n \"iud\" bool,\n \"condom_with_spermicide\" bool,\n \"gender\" string,\n \"meropenem\" bool,\n \"non_q_wave_myocardial_infarction\" bool,\n \"hbcab\" bool,\n \"unstable_angina\" bool,\n \"birth_control_pills\" bool,\n \"cystic_fibrosis\" bool,\n \"hbv_surface_antigen_hbsag\" bool,\n \"oocytes\" int,\n \"severe_dry_eyes\" bool,\n \"afc\" int,\n \"morphological_characteristics\" bool,\n \"ovarian_reserve_test\" bool,\n \"atherectomy\" bool,\n \"hiv_infection\" bool,\n \"hormonal_contraceptives\" bool,\n \"mellitus\" bool,\n \"poor_ovarian_responder\" bool,\n \"recurrent_heart_pain\" bool,\n \"ast\" float,\n \"piperacillin\" bool,\n \"coronary_conduit\" bool,\n \"diabetic\" string,\n \"elective\" bool,\n \"ciprofloxacin\" bool,\n \"colistin\" bool,\n \"central_vision\" bool,\n \"serological_tests\" bool,\n \"inhaled_corticosteroids\" bool,\n \"angina\" bool,\n \"surgical_sterilization\" bool,\n \"retinal_disease\" bool,\n \"hcv_ab\" bool,\n \"high_risk_clinical\" bool,\n \"advanced_maternal_age\" bool,\n \"antibiotic_treatment\" bool,\n \"adequate_contraception\" bool,\n \"uveitis_disease\" bool,\n \"unprotected_left_main_coronary_artery\" bool,\n \"ovarian_response\" bool,\n \"acute_q_wave_myocardial_infarction\" bool,\n \"urgent_coronary_balloon_angioplasty\" bool,\n \"asthma\" bool,\n \"serum_creatinine\" float,\n \"intrauterine_device\" bool,\n \"kidney_disease\" bool,\n \"spermicide\" bool,\n \"fda_approved_device\" bool,\n \"anti_hepatitis_c_virus_hcv_antibody\" bool,\n \"active_scleral_disease\" bool,\n \"barrier_methods\" bool,\n \"tazobactam\" bool,\n \"glaucoma\" bool,\n \"cefepime\" bool,\n \"depo_provera\" bool,\n \"organ_failure\" bool,\n \"dysthyroid_eye_disease\" bool,\n \"peripheral_arterial_disease\" bool,\n \"cerebral_infarction\" bool,\n \"anti_hepatitis_b_core_antibody\" bool,\n \"hypertension\" bool,\n \"bilirubin\" float,\n \"risk_factor\" bool,\n \"myocardial_infarction\" bool,\n \"lupron_depot\" bool,\n \"ocular\" bool,\n \"age\" float,\n \"linezolid\" bool,\n \"NOUSE\" float\n)","output":"SELECT * FROM table_test_31 WHERE ejection_fraction_ef <= 35 AND (coronary_conduit = 1 OR unprotected_left_main_coronary_artery = 1)"},{"instruction":"กระทู้ยอดนิยม (ถาม-ตอบ) ในเว็บไซต์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"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"},{"instruction":"ปลากินยุง เป็นปลาน้ำอะไร","input":"","output":"น้ำจืด"},{"instruction":"อำเภอเป็นหน่วยการปกครองระดับที่เท่าไหร่ในประเทศไทย","input":"","output":"ระดับที่สองในประเทศไทย"},{"instruction":"อเมริกาส์เน็กซต์ท็อปโมเดล ฤดูกาลที่ 21 มีผู้เข้าแข่งขันเป็นเพศใด","input":"","output":"ชาย "},{"instruction":"บิดาของเจ้าพระยาอรรคมหาเสนาคือใคร","input":"","output":"เจ้าพระยามหาเสนา (เสน)"},{"instruction":"จอร์จ โบดีย์ มีอาชีพอะไร","input":"","output":"เป็นนักการเมือง"},{"instruction":"ภาษากันนาดาได้รับอิทธิพลด้านคำศัพท์จากภาษาใด","input":"","output":"ภาษาสันสกฤตเช่นเดียวกับภาษากลุ่มดราวิเดียนอื่น ๆ"},{"instruction":"มี Flacon 1 ml : hydralazine hcl 20 mg\/ml ij soln กี่ใบในช่วง 4 ปีก่อน","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"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')"},{"instruction":"แม่น้ำโขงมีต้นกำเนิดจากที่ใด","input":"","output":"เทือกเขาหิมาลัย"},{"instruction":"วิธีใช้ของ trandate คืออะไร","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)","output":"SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'trandate'"},{"instruction":"จำนวนแท็กต่อวันสำหรับแท็กหนึ่งแท็ก","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT * FROM Tags LIMIT 20"},{"instruction":"จังหวัดมีพื้นที่ติดกับจังหวัดอะไร","input":"","output":"จังหวัดตีโมกลาเนาทางทิศเหนือ"},{"instruction":"กลีบดอกมีสีอะไร","input":"","output":"กลีบดอกสีขาวหรือสีฟ้าอ่อน"},{"instruction":"ผู้ใช้งาน 50 อันดับแรกจากเมืองโอ๊คแลนด์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"ไผ่หก เส้นผ่านศูนย์กลางยาวเท่าไร","input":"","output":"12–15 เซนติเมตร"},{"instruction":"ผู้ป่วย 017-55081 มาครั้งแรก 06\/ปีที่แล้ว ชั่งน้ำหนักได้เท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"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"},{"instruction":"พระราชวังมัณฑะเลย์ ก่อสร้างขึ้นระหว่างปีอะไร","input":"","output":"ค.ศ. 1857-ค.ศ. 1859"},{"instruction":"ซฟวิ่ง ไพรเวท ไรอัน ฝ่าสมรภูมินรกฉายเมื่ิอไหร่","input":"","output":"กลางปี ค.ศ. 1998 "},{"instruction":"SELECT TOP 100 DisplayName จาก Users ที่ซึ่ง Location='Russia' และ Reputation=(เลือก Reputation สูงสุด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT DisplayName, LastAccessDate, WebsiteUrl, AboutMe FROM Users WHERE Location = 'Russia' ORDER BY Reputation LIMIT 100"},{"instruction":"เมนเดส เกิดในโตรอนโต ประเทศแคนาดา เขาเป็นลูกชายของใคร ?","input":"","output":"คาเรน"},{"instruction":"มูลนิธิมวยโลก ได้เข้ามาสู่ประเทศไทยในปีอะไร","input":"","output":"พ.ศ. 2537"},{"instruction":"วิกฤตการณ์นี้เกิดในบริบทความขัดแย้งที่ดำเนินอยู่ในประเทศอะไรบ้าง","input":"","output":"ประเทศแอฟริกาเหนือและตะวันออ���กลางหลายประเทศ"},{"instruction":"หลิน ฟ่ง เสียชีวิตด้วยอะไร","input":"","output":"การกินยา"},{"instruction":"50 อันดับสูงสุดของผู้ใช้จาก Auckland","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"จังหวัดเฟลโฟลันด์ ประกอบด้วยกี่เทศบาล","input":"","output":"6 เทศบาล"},{"instruction":"การต่อสู้ดำเนินตั้งแต่ช่วงเวลาใด","input":"","output":"ตั้งแต่วันที่ 22 ถึง 26 กันยายน ค.ศ. 1940"},{"instruction":"ปลาช่อนงูเห่ามีพฤติกรรมการอยู่อาศัยเป็นอย่างไร","input":"","output":"พฤติกรรมมักอยู่อาศัยตามแม่น้ำชายฝั่งที่มีพืชน้ำและพรรณไม้ขึ้นชายฝั่งมีเงาร่ม"},{"instruction":"สมาชิกโดย Rep ในไอร์แลนด์.","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT DisplayName, Reputation, Location FROM Users WHERE UPPER(Location) LIKE '%IRELAND%' ORDER BY Reputation DESC"},{"instruction":"ในปี 1993 โอเอซิสเซ็นสัญญาเป็นศิลปินกับค่ายเพลงใด","input":"","output":"Creation Records"},{"instruction":"จำนวนคำตอบของผู้ใช้ในช่วงเวลาจำแนกตามเดือน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"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"},{"instruction":"นับจำนวนครั้งที่รับ Bupropion HCl ในปีที่ผ่านมา","input":"CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\n","output":"SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'bupropion hcl' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"ผู้ใช้ตามสถานที่ (stack overflow)","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"ชื่อของ 8 ประเทศที่มีมูลค่าใบแจ้งหนี้สูงสุดคืออะไร และมูลค่าเท่าใด จัดทำเป็นกราฟแท่ง","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)","output":"SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8"},{"instruction":"คู สตาร์ก เกิดที่ประเทศอะไร","input":"","output":"สหรัฐอเมริกา"},{"instruction":"สะพานเหญิตเดินเชื่อมต่อจากที่ใดไปที่ใด","input":"","output":"ฮานอยกับท่าอากาศยานนานาชาติโหน่ยบ่าย"},{"instruction":"ผู้ป่วย 18678 เข้ารักษาครั้งแรกหลังจาก 3 ปีที่ผ่านมาด้วยการส่งตัวจากแพทย์\/ตึกปกติเมื่อใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"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"},{"instruction":"กลุ่มเกาะภาษาอังกฤษคืออะไร","input":"","output":"archipelago"},{"instruction":"เอ็มเอส โอเอซิสออฟเดอะซีส์ เป็นเรือสำราญของบริษัทใด","input":"","output":"บริษัทรอยัลแคริบเบียนอินเตอร์เนชั่นแนล"},{"instruction":"องค์การบริหารส่วนตำบลโพนโก จัดตั้งขึ้น ตามประกาศกระทรวงอะไร","input":"","output":"มหาดไทย"},{"instruction":"เหตุการณ์ 6 ตุลาเกิดขึ้นที่ไหน","input":"","output":"มหาวิทยาลัยธรรมศาสตร์ ท่าพระจันทร์ และท้องสนามหลวง"},{"instruction":"กราฟแท่งจำนวนวันที่เข้าชมที่ไม่ซ้ำกัน และจัดอันดับจากต่ำไปสูง","input":"CREATE TABLE Visits (\n Visit_ID INTEGER,\n Tourist_Attraction_ID INTEGER,\n Tourist_ID INTEGER,\n Visit_Date DATETIME,\n Visit_Details VARCHAR(40)\n)\n\n","output":"SELECT Visit_Date, COUNT(Visit_Date) FROM Visits ORDER BY COUNT(Visit_Date)"},{"instruction":"รายชื่อของ User Id ทั้งหมด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id FROM Users"},{"instruction":"ลบล้างผู้ใช้ที่โพสต์อย่างน้อย 1 ครั้ง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT DISTINCT OwnerDisplayName FROM Posts WHERE OwnerUserId IS NULL ORDER BY OwnerDisplayName"},{"instruction":"อธิบายข้อจำกัด AP\/57","input":"CREATE TABLE restriction (\n restriction_code text,\n advance_purchase int,\n stopovers text,\n saturday_stay_required text,\n minimum_stay int,\n maximum_stay int,\n application text,\n no_discounts text\n)\n\n","output":"SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP\/57'"},{"instruction":"มาวนีโอมีวิทยาลัยอะไร","input":"","output":"วิทยาลัยการสอนด้านการเล่นสกี"},{"instruction":"ตรวจหาถ้อยคำหยาบในชื่อผู้ใช้","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", DisplayName FROM Users WHERE LOWER(DisplayName) LIKE '%##Keyword##%'"},{"instruction":"สุรัสวดี เชื้อชาติ อยู่ค่ายอะไร","input":"","output":"ค่ายมูเซอร์ เรคคอร์ด"},{"instruction":"ในครั้งแรกที่เข้ารับการรักษาที่โรงพยาบาล อายุของเคสที่ 011-31229 คือเท่าไหร่ครับ","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.age FROM patient WHERE patient.uniquepid = '011-31229' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"หม่อมเจ้าเวียงวัฒนา ชยางกูร สกุลเดิมว่าอะไร","input":"","output":"บุญยมาลิก"},{"instruction":"ใครนำแผนหลงจงไปประยุกต์ใช้","input":"","output":"ขุนศึกเล่าปี่ (หลิวเป้ย) และจ๊กก๊ก (รัฐฉู่) ในสมัยสามก๊ก"},{"instruction":"ผู้ใช้ที่ใช้งานมากที่สุดจากประเทศแอลจีเรีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"กองทัพโมซัมบิก มีชื่อเรียกอย่างเป็นทางการว่าอะไร","input":"","output":"กองทัพป้องกันโมซัมบิก"},{"instruction":"กงไกรลาศ ย้ายอำเภอเพราะเหตุผลอะไร","input":"","output":"เนื่องจากเกาะกงมีน้ำท่วมถึงในฤดูน้ำหลาก ไม่สะดวกในการติดต่อราชการของประชาชน"},{"instruction":"ส่วนสูงล่าสุดของคนไข้หมายเลข 028-70851 เท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-70851') AND NOT patient.admissionheight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"สถานะสมรสของผู้ป่วย 81871 ในการเข้ารับการรักษาในโรงพยาบาลครั้งแรกเป็นอย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 81871 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ค้นหาคำถามที่โพสต์ในวันที่ระบุ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", CreationDate FROM Posts WHERE CreationDate >= '02.07.2018' AND CreationDate <= '02.08.2018'"},{"instruction":"เลือกนับ (*) จาก Posts","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts"},{"instruction":"ท่าอากาศยานนานาชาติสุลต่านฮาซานุดดินเปิดให้ใช้งานเมื่อไหร่","input":"","output":"20 สิงหาคม ค.ศ. 2008"},{"instruction":"ซ่งฉื่อ บันทึกอะไรข้างใน","input":"","output":"บันทึกประวัติศาสตร์ราชวงศ์ซ่ง"},{"instruction":"คำถามและคำตอบต่อเดือน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT DATEADD(month, DATEDIFF(month, @start, CreationDate), @start) AS \"month\", SUM(CASE WHEN PostTypeId = 1 THEN 1 ELSE 0 END) AS \"questions\", SUM(CASE WHEN PostTypeId = 2 THEN 1 ELSE 0 END) AS \"answers\" FROM Posts WHERE (PostTypeId = 1 OR PostTypeId = 2) AND CreationDate >= @start AND CreationDate < @stop AND Score = 0 GROUP BY DATEADD(month, DATEDIFF(month, @start, CreationDate), @start) ORDER BY DATEADD(month, DATEDIFF(month, @start, CreationDate), @start)"},{"instruction":"ความคิดเห็นของฉันโดยมีคะแนนพร้อมด้วยลิงก์โพสต์","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Text, Score FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC"},{"instruction":"ป้ายประชาสัมพันธ์ที่ได้รับรางวัลภายในระยะเวลาที่กำหนด","input":"CREATE TABLE Badges (\n Id number,\n UserId number,\n Name text,\n Date time,\n Class number,\n TagBased boolean\n)\n\n","output":"SELECT UserId AS \"user_link\", SUM(CASE WHEN Name = 'Publicist' THEN 1 ELSE 0 END) AS Publicist, SUM(CASE WHEN Name = 'Booster' THEN 1 ELSE 0 END) AS Booster, SUM(CASE WHEN Name = 'Announcer' THEN 1 ELSE 0 END) AS Announcer, SUM(CASE WHEN (Name = 'Announcer') OR (Name = 'Booster') OR (Name = 'Publicist') THEN 1 ELSE 0 END) AS total FROM Badges WHERE Date >= '##Date1?2019-12-12##' AND Date <= '##Date2?2019-12-14##' GROUP BY UserId ORDER BY Publicist DESC, Booster DESC, Announcer DESC, total DESC LIMIT 200"},{"instruction":"ดาวเคราะห์ใดเป็นดาวเคราะห์ที่อยู่ห่างไกลมากที่สุดในระบบสุริยะ","input":"","output":"ดาวเนปจูน"},{"instruction":"ผู้คนแห่งบอสเนียร์ทางทิศตะวันออก","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT u.DisplayName, u.Location FROM Users AS u WHERE u.Location LIKE '%Bosnia%' ORDER BY u.Location"},{"instruction":"แท็บกิจกรรมสำหรับผู้ใช้ระดับต้น ๆ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Reputation, activity = 'site:\/\/users\/' + CAST(Id AS TEXT) + '?tab=topactivity|Activity', profile = 'site:\/\/users\/' + CAST(Id AS TEXT) + '?tab=profile|Profile' FROM Users ORDER BY Reputation DESC LIMIT 200"},{"instruction":"ผู้ใช้ 200 อันดับแรกจากบัลแกเรีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", DisplayName, Reputation, Location FROM Users WHERE Location LIKE '%Sofia%' OR Location LIKE '%Bulgaria%' ORDER BY Reputation DESC LIMIT 200"},{"instruction":"ทอมมี่ ลี โจนส์ เขาเคยมีเพื่อนร่วมห้องชื่อว่าอะไร","input":"","output":"อัล กอร์ รองประธานาธิบดีของสหรัฐฯ"},{"instruction":"Wanna One เซ็นสัญญาเป็นศิลปินกับบริษัทใด","input":"","output":"YMC Entertainment"},{"instruction":"เฟลเวอร์ออฟไลฟ์ มียอดดาวน์โหลดสูงสุดเท่าไร","input":"","output":"7.7 ล้านครั้ง"},{"instruction":"อำเภอกะพ้อ ห่างจากอำเภอเมืองอะไร","input":"","output":"เมืองปัตตานี"},{"instruction":"บุญยิ่ง นันทาภิวัฒน์ได้รับพระราชทานเพลิงศพเมื่อไหร่","input":"","output":"11 มีนาคม พ.ศ. 2528\n"},{"instruction":"ยุทธศักดิ์ ศศิประภา เป็นอดีตรัฐมนตรีช่วยว่าการกระทรวงอะไร","input":"","output":"กลาโหม"},{"instruction":"ไลบรารี เจเนซิส คืออะไร","input":"","output":"โปรแกรมค้นหาสำหรับบทความทางวิทยาศาสตร์ และหนังสือ"},{"instruction":"สตีเฟน เคลลี มีอาชีพอะไร","input":"","output":"นักฟุตบอล"},{"instruction":"เมื่อ 5 ปีที่แล้วผู้ป่วยหมายเลข 84346 ออกจากโรงพยาบาลเมื่อใดเป็นครั้งแรก?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 84346 AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-5 year') ORDER BY admissions.dischtime LIMIT 1"},{"instruction":"กองทัพแห่งชาติรัฐชาน สถาปนาขึ้นเมื่อวันที่เท่าไร","input":"","output":"7 กรกฎาคม พ.ศ. 2538"},{"instruction":"320 ขนาดเท่ากับอะไร?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 320"},{"instruction":"จำนวนรายการใน PostHistory","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM PostHistory"},{"instruction":"มีลูกกี่คน","input":"","output":"ลูกชาย 3 คน"},{"instruction":"ประเทศฝรั่งเศส เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูหนาวครั้งที่ 6 ประเทศอะไร","input":"","output":"ประเทศนอร์เวย์"},{"instruction":"หอพระคันธารราษฎร์ สร้างขึ้นในการเฉลิมฉลองอะไร","input":"","output":"กรุงเทพฯ 100 ปี"},{"instruction":"นักเรียนบ้านสลิธีรินมักจะมีลักษณะอย่างไร","input":"","output":"ฉลาด แกมโกง"},{"instruction":"ต้นปลาไหลเผือกมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Eurycoma longifolia Jack"},{"instruction":"จากการตรวจครั้งล่าสุดที่โรงพยาบาล ภาวะน้ำหนักของผู้ป่วยหมายเลข 013-28507 มีการเปลี่ยนแปลงไปเท่าไหร่ เมื่อเทียบกับค่าครั้งแรกที่เข้ารักษาตัวในโรงพยาบาลในปัจจุบัน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-28507' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-28507' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)"},{"instruction":"นาส ทำอาชีพอะไร","input":"","output":"แร็ปเปอร์"},{"instruction":"อุปกรณ์ถ่ายเทประจุ มีความสำคัญอย่างไร","input":"","output":"เป็นชิ้นส่วนสำคัญของเทคโนโลยีในการถ่ายภาพดิจิทัล"},{"instruction":"ปลาทรงเครื่องมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Epalzeorhynchos bicolor"},{"instruction":"ตัว P เป็นอักษรตัวที่เท่าไหร๋","input":"","output":"16"},{"instruction":"สถานีรถไฟยูรากุโจ อยุ่ประเทศอะไร","input":"","output":"ประเทศญี่ปุ่น"},{"instruction":"ปลาซิวควายข้างเงินมีชื่อทางวิทยาศาสตร์ว่าอย่างไีร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Rasbora argyrotaenia"},{"instruction":"ผลงานที่สร้างชื่อของ จิระ มะลิกุล","input":"","output":"หับ โห้ หิ้น"},{"instruction":"โชฟุ มีขนาดพื้นที่ทั้งสิ้น","input":"","output":"21.53 ตารางกิโลเมตร"},{"instruction":"ตรีชฎา เพชรรัตน์ มีชื่อเสียงจากเวทีประกวดนางงามอะไร","input":"","output":"มิสอินเตอร์เนชั่นแนลควีนกับมิสทิฟฟานี่ยูนิเวิร์ส"},{"instruction":"จูเลียส ซีซาร์ ถึงใครลอบสังหาร","input":"","output":"กลุ่มสมาชิกวุฒิสภากบฏลอบสังหาร นำโดยมาร์กุส ยูนิอุส บรูตุส"},{"instruction":"มีผู้คนกี่คนที่ขึ้นรถ 73S","input":"CREATE TABLE aircraft (\n aircraft_code varchar,\n aircraft_description varchar,\n manufacturer varchar,\n basic_type varchar,\n engines int,\n propulsion varchar,\n wide_body varchar,\n wing_span int,\n length int,\n weight int,\n capacity int,\n pay_load int,\n cruising_speed int,\n range_miles int,\n pressurized varchar\n)","output":"SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = '73S'"},{"instruction":"เลือก 10 อันดับแรกจาก Posts","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE ViewCount > 31000 AND ViewCount <= 33000 ORDER BY ViewCount DESC"},{"instruction":"เลสลีนีลเซนแสดงภาพยนตร์ครั้งแรกในปีใด","input":"","output":"ค.ศ. 1956"},{"instruction":"มีแล็บของ 475 มั้ย ?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 475"},{"instruction":"เดอะไลต์นิงซีดส์ มีซิงเกิลแรกชื่ออะไร","input":"","output":"Pure"},{"instruction":"สโมสรกีฬาราชประชา เคยได้รางวัลชนะเลิศฟุตบอลชิงถ้วยพระราชทานประเภท ก. กี่สมัย?","input":"","output":"4 สมัย"},{"instruction":"วีซีดี รูปแบบวีซีดีมาตรฐานถูกสร้างขึ้นในปีอะไร","input":"","output":"ค.ศ. 1993"},{"instruction":"ทุตโมสมีบทบาทเป็นอะไร","input":"","output":"นักบวชแห่งเทพพทาห์ในเมืองเมมฟิส"},{"instruction":"วันสตรีไทยตรงกับวันที่เท่าไหร่","input":"","output":"วันที่ 1 สิงหาคมของทุกปี"},{"instruction":"ผู้ใช้สูงสุด 200 คนแรกในรัฐโอไฮโอ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%oh%' OR LOWER(Location) LIKE '%ohio%' ORDER BY Reputation DESC LIMIT 200"},{"instruction":"สโมสรกีฬาราชประชา เคยได้รางวัลชนะเลิศถ้วยพระราชทานควีนส์คัพกี่สมัย?","input":"","output":"2 สมัย"},{"instruction":"จาณักยะ เป็นชาวประเทศอะไร","input":"","output":"อินเดีย"},{"instruction":"โดยทีมชาติฝรั่งเศสชนะฟุตบอลทีมชาติใด","input":"","output":"ฟุตบอลทีมชาติเดนมาร์ก"},{"instruction":"ตลอดช่วงปีนี้มีคนไข้กี่รายที่ออกจากโรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"ปีที่แล้วมีคนไข้ที่รักษาในหอ 888 กี่คน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 888 AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"การคัดลอกที่แพร่หลาย: คำถามที่มีการคัดลอกมากที่สุด http:\/\/meta.stackexchange.com\/a\/244636\/200117","input":"CREATE TABLE PostLinks (\n Id number,\n CreationDate time,\n PostId number,\n RelatedPostId number,\n LinkTypeId number\n)\n\n","output":"SELECT l.RelatedPostId AS \"post_link\", COUNT(l.PostId) AS \"Duplicate Count\" FROM PostLinks AS l WHERE l.LinkTypeId = 3 GROUP BY l.RelatedPostId ORDER BY 'Duplicate Count' DESC LIMIT 100"},{"instruction":"วิวัฒนาการของคะแนนเฉลี่ยและจำนวนคำถามในปี 2015 โดยแบ่งเป็นสัปดาห์ วิวัฒนาการของคะแนนเฉลี่ยและจำนวนคำถามในปี 2015 โดยแบ่งเป็นสัปดาห์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(p.CreationDate, '%W') AS weekOfCreation, AVG(p.Score) AS meanQuestionScore, COUNT(p.Id) AS NumberOfPosts FROM Posts AS p WHERE p.PostTypeId = 1 AND TIME_TO_STR(p.CreationDate, '%Y') = 2015 GROUP BY TIME_TO_STR(p.CreationDate, '%W') ORDER BY TIME_TO_STR(p.CreationDate, '%W')"},{"instruction":"ซินเดอเรลล่ามีความหมายว่าอย่างไร","input":"","output":"เอลลาผู้มอมแมม"},{"instruction":"ครั้งสุดท้ายที่เห็นจอนคือเมื่อไหร่","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT LastAccessDate FROM Users WHERE Id = 1438"},{"instruction":"แสดงประกอบมิวสิกวิดีโอเพลงดังกล่าว ในวันที่เท่าไร","input":"","output":"9 กรกฎาคม พ.ศ. 2553"},{"instruction":"สำนักงานคณะกรรมการนโยบายเขตพัฒนาพิเศษภาคตะวันออก บังคับบัญชาของใคร","input":"","output":"นายกรัฐมนตรี"},{"instruction":"อัลเบิร์ท เกิดวันที่เท่าไร","input":"","output":"29 มีนาคม พ.ศ. 2519"},{"instruction":"ผู้ป่วย 8569 เข้ารับการรักษาในโรงพยาบาลครั้งล่าสุดในปีนี้ เพราะอะไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8569 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ต้นโมกมีชื่อเรียกพื้นเมืองว่าอย่างไร จงอธิบาย","input":"","output":"ปิดจงวา (เขมร สุรินทร์) โมกซ้อน (กลาง) โมกบ้าน (กลาง) และ หลักป่า (ระยอง)"},{"instruction":"เลขระบุและที่ตั้งของทุกวงจรในฝรั่งเศสหรือเบลเยี่ยมอะไรบ้าง แสดงแผนภูมิแท่ง คุณเรียงลำดับแกน X จากสูงไปต่ำได้ไหม","input":"CREATE TABLE circuits (\n circuitId INTEGER,\n circuitRef TEXT,\n name TEXT,\n location TEXT,\n country TEXT,\n lat REAL,\n lng REAL,\n alt TEXT,\n url TEXT\n)","output":"SELECT location, circuitId FROM circuits WHERE country = \"France\" OR country = \"Belgium\" ORDER BY location DESC"},{"instruction":"อัลบั้มฟูไฟเตอร์สชุดนี้ เดฟ โกรล เขามีจุดประสงค์ที่จะระบายความเศร้าใจหลังการเสียชีวิตของใคร","input":"","output":"เคริ์ธ โคเบน"},{"instruction":"สุดยอดชาวศรีลังกาใน Stackoverflow","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%Sri%' ORDER BY Reputation DESC LIMIT 300"},{"instruction":"ไอโฟนผลิตและจำหน่ายโดยบริษัทใด","input":"","output":"บริษัทแอปเปิล"},{"instruction":"ปีที่แล้ว ผู้ป่วยหมายเลข 26849 เข้ารับการรักษาตัวในโรงพยาบาลเป็นครั้งแรกอย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 26849 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ราคาเท่าไรหรอครับ","input":"","output":"ไม่ทราบราคาสินค้า"},{"instruction":"โอฬาร ไชยประวัติ เป็นเหตุสำคัญในคำพิพากษาของศาลปกครองสูงสุดเพราะมีผลประโยชน์อะไร","input":"","output":"ทับซ้อนกรณีการแปรรูป บมจ. กฟผ."},{"instruction":"หมอกล้า หัวใจแกร่ง นำแสดงโดยใคร","input":"","output":"เมลิสซ่า จอร์จ"},{"instruction":"คำถามที่ไม่มีคำตอบและไม่มีการเคลื่อนไหวใดเป็น 6 เดือน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\", q.AnswerCount AS Answers FROM Posts AS q WHERE q.LastActivityDate < '2011-05-06' AND q.ViewCount <= 100 AND q.PostTypeId = 1 ORDER BY Score DESC"},{"instruction":"อีริส ถูกค้นพบดดยใคร","input":"","output":"จอห์น ไฮนด์"},{"instruction":"เลยมาแล้วกี่วันจากครั้งสุดท้ายที่คนไข้ 027-85328 นอนห้อง 996 ใน HN ครั้งนี้","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-85328' AND patient.wardid = 996 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ตัวเลขการแข่งขันของแต่ละ ID ผู้สร้างคืออะไร แสดงความสัมพันธ์","input":"CREATE TABLE constructorStandings (\n constructorStandingsId INTEGER,\n raceId INTEGER,\n constructorId INTEGER,\n points REAL,\n position INTEGER,\n positionText TEXT,\n wins INTEGER\n)\n\n","output":"SELECT COUNT(*), constructorId FROM constructorStandings GROUP BY constructorId"},{"instruction":"ค้นหาคำถามหรือคำตอบจาก revisionGUID","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\" FROM PostHistory WHERE RevisionGUID = '865e9305-bef6-4397-9097-2848d0dc1233'"},{"instruction":"คณะทันตแพทยศาสตร์ มหาวิทยาลัยรังสิตได้รับการรับรองหลักสูตรทันตแพทยศาสตรบัณฑิตเมื่อไร","input":"","output":"วันที่ 24 มีนาคม 2549"},{"instruction":"วงศ์ปลาหวีเกศในประเทศไทยมีกี่สกุล","input":"","output":"4 สกุล"},{"instruction":"ส่วนใหญ่หนังสือพิมพ์จะออกเป็นรายอะไร","input":"","output":"รายวัน"},{"instruction":"จำนวนผู้ป่วยที่ออกจากโรงพยาบาลในปี 2102 ที่แท้จริงคือเท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2102'"},{"instruction":"การประชุมยัลตาคืออะไร","input":"","output":" เป็นการประชุมหัวหน้ารัฐบาลในสงครามโลกครั้งที่สองของสหรัฐ สหราชอาณาจักรและสหภาพโซเวียต"},{"instruction":"รับรายชื่อผู้ใช้ของ SO ซึ่งมีชีวประวัติประกอบไปด้วยคำที่กำหนดให้","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT 'id' AS \"user_link\" FROM Users WHERE AboutMe LIKE '%##SearchText##%' LIMIT 10"},{"instruction":"ตามความเชื่อทางโลกาวินาศศาสตร์ปรากฏการณ์จะเกิดขึ้นเมื่อไหร่","input":"","output":"วันที่ 21 ธันวาคม ค.ศ. 2012 "},{"instruction":"คนไข้ 006-50368 อายุเท่าไหร่ตอนเข้ารับการรักษาในโรงพยาบาลครั้งแรก","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.age FROM patient WHERE patient.uniquepid = '006-50368' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"สามก๊ก ตอน โจโฉ มหาอุปราชผู้หวังครองแผ่นดิน เป็นภาพยนตร์แนวอะไร","input":"","output":"อิงประวัติศาสตร์"},{"instruction":"ปลาเทพามีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Pangasius sanitwongsei"},{"instruction":"ดาร์ดะเนลส์ อยู่ประเทศอะไร","input":"","output":"ประเทศตุรกี"},{"instruction":"ลอรา ลินนีย์ ทำอาชีพอะไร","input":"","output":"นักแสดงชาวอเมริกัน"},{"instruction":"บุญชู 2 น้องใหม่ เป็นภาพยนตร์ประเทศอะไร","input":"","output":"ไทย"},{"instruction":"ผู้ป่วยหมายเลข 015-100195 มีเวลาเข้ารับการรักษาที่โรงพยาบาลในปี 2105 กี่ครั้ง","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '015-100195' AND STRFTIME('%y', patient.hospitaladmittime) = '2105'"},{"instruction":"ตัวอย่างโค้ดที่ดีและ ไม่ดี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE Body LIKE '%%' AND ParentId IN (1109022, 151777, 541966, 1016896, 6343166, 477572, 2591036, 3145089, 2201917, 5033012, 600207, 3035692, 1560788, 2091465, 531427, 2139134, 6495898, 3166501, 4605527, 2736389, 2150078, 6200533, 867518, 2471935, 3624280, 2459916, 1667278, 2795833, 2317428, 3495890, 1397361, 2169649, 2403632, 2644134, 2695746, 4946295, 7723964, 8500283, 3331527, 11444238, 5105354, 2130932, 2617266, 2160619, 454315, 3226495, 1556987, 2322234, 5832368, 1101380, 5694933, 2973270, 419184, 6330260, 2271131, 3349121, 4165414, 2780102, 6290531, 574195, 1851633, 5357455, 2217753, 3647993, 3611457, 11281010, 8181828, 3916330, 5763304, 11321129, 660151, 6520718, 6176391, 4617898, 3996938, 6070805, 4894885, 1724937, 5495225, 16143562, 13739785)"},{"instruction":"ให้ ringers lactate IV ถุง 1000 ml กี่ครั้ง","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'lactated ringers iv : 1000 ml bag'"},{"instruction":"การเปรียบเทียบรายปี: คำถามทั้งหมดเทียบกับแท็กที่ระบุ (พร้อมกราฟ) ระบุแท็กที่สมบูรณ์แล้วรันการสอบถาม คลิกที่แท็บกราฟเพื่อดูแผนภูมิ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT YEAR(CreationDate) AS \"year\", COUNT(*) AS \"cnt\" FROM Posts WHERE Title LIKE '%fax%' AND PostTypeId = 1 AND ClosedDate IS NULL GROUP BY YEAR(CreationDate) ORDER BY YEAR(CreationDate)"},{"instruction":"วัดเขาสมโภชน์ จัดตั้งเป็นวัดเมื่อไร","input":"","output":"วันที่23 กันยายน พ.ศ 2525"},{"instruction":"มานซูร์ บิน ซาเยด อัล นาห์ยาน ทำงานร่วมกับใคร","input":"","output":"ซาอีฟ บิน ซาเยด อัล นาห์ยาน"},{"instruction":"จอห์น วิลค์ส บูธ เกิดวันที่เท่าไร","input":"","output":"10 พฤษภาคม ค.ศ. 1838"},{"instruction":"สปีดเดมอน มาจากสตูดิโออัลบั้มที่เท่าไร","input":"","output":"11 Bad"},{"instruction":"วิทยาการคอมพิวเตอร์เกี่ยวกับด้านไหนบ้าง","input":"","output":"ด้านซอฟต์แวร์ ฮาร์ดแวร์ และ เครือข่าย "},{"instruction":"จังหวัดเฟลโฟลันด์ ตั้งอยู่ส่วนในของประเทศ","input":"","output":"ตั้งอยู่ตอนกลางของประเทศ"},{"instruction":"สมเด็จพระเจ้าอยู่หัวมหาวชิราลงกรณ บดินทรเทพยวรางกูร พระราชทานพระราโชวาท ได้พระทานราชโอวาทวันเด็กแห่งชาติ ปีอะไร","input":"","output":"2562"},{"instruction":"ผู้ป่วยเลขที่ 7524 เกิดวันที่เท่าไหร่ครับ\/คะ","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 7524"},{"instruction":"ผู้ป่วย 62977 ในปี 2101 เข้ารักษาตัวในโรงพยาบาลครั้งแรกเมื่อใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 62977 AND STRFTIME('%y', admissions.admittime) = '2101' ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ยาที่ได้รับตามความต้องการมาแล้ว 4 ปีมีจำนวนกี่ใบสั่งยา","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'definity' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"กลุ่มผู้ใช้ที่มีชื่อเสียงสูงสุด - เรียงตามรหัส","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", DisplayName, Reputation FROM Users ORDER BY Reputation DESC LIMIT 500"},{"instruction":"พระเจ้าบรมวงศ์เธอ พระองค์เจ้านุ่มเป็นใคร","input":"","output":"พระราชธิดาพระองค์ที่ 11 ในพระบาทสมเด็จพระพุทธยอดฟ้าจุฬาโลกมหาราช"},{"instruction":"ในช่วง 4 ปีที่ผ่านมามีการสั่งยา enoxaparin sodium 40 mg\/0.4ml sc soln จำนวนกี่ใบสั่งยา","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'enoxaparin sodium 40 mg\/0.4ml sc soln' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"แบร์ กริลพูดได้กี่ภาษา","input":"","output":"3 ภาษา"},{"instruction":"คำถามที่ดูมากที่สุดโดยไม่มีโหวต.","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE ViewCount >= 100 AND Score = 0 ORDER BY ViewCount DESC"},{"instruction":"ดีปา นูซันตารา ไอดิต คือใคร","input":"","output":"ป็นผู้นำพรรคคอมมิวนิสต์อินโดนีเซียระหว่าง พ.ศ. 2494 – 2508"},{"instruction":"évolution de la moyenne et du nombre de questions en 2015 par semaine. Evolution of mean score and number of questions in 2015 by week","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(p.CreationDate, '%W') AS weekOfCreation, AVG(p.Score) AS meanQuestionScore, COUNT(p.Id) AS NumberOfPosts FROM Posts AS p WHERE p.PostTypeId = 1 AND TIME_TO_STR(p.CreationDate, '%Y') = 2015 GROUP BY TIME_TO_STR(p.CreationDate, '%W') ORDER BY TIME_TO_STR(p.CreationDate, '%W')"},{"instruction":"วิธีการวาดเส้นพร้อมเส้นคั่นในแผนภูมิ Pareto","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Title FROM Posts WHERE Title LIKE '%Pareto%'"},{"instruction":"มีแล็บของ 527 ไหมครับ","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 527"},{"instruction":"สิปปนนท์ เกตุทัตถึงแก่อนิจกรรมด้วยอะไร","input":"","output":"โรคมะเร็งในกระดูก"},{"instruction":"ที่หยุดรถไฟทุ่งน้ำซึม ปัจจุบันเปิดใช้งานหรือไม่","input":"","output":"ปัจจุบันไม่มีการใช้งานแล้ว"},{"instruction":"เลือกหมายเลขแถว() OVER(ORDER BY ชื่อเสียง DESC) AS [#], Id AS [User Link], ชื่อเสียง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%croatia%') ORDER BY Reputation DESC"},{"instruction":"พ่อของแบร์ กริลมีอาชีพอะไร","input":"","output":"ทหารราชนาวี"},{"instruction":"ยูโกสลาเวีย เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูไหน","input":"","output":"ฤดูหนาวครั้ง"},{"instruction":"มีผู้ป่วยที่พ้นจากโรงพยาบาลในรอบ 2 ปีที่ผ่านมากี่คน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime) >= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"ชื่อของเทือกเขาแอเพนไนน์เป็นที่มาของชื่อคาบสมุทรอะไร","input":"","output":"คาบสมุทรแอเพนไนน์"},{"instruction":"ลุกวอตยูเมดมีดู เป็นเพลงของนักร้องชาวประเทศอะไร","input":"","output":"อเมริกัน"},{"instruction":"แจ้งเพศของคนไข้ 035-19890","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '035-19890'"},{"instruction":"พระองค์ทรงเป็นกษัตริย์พระองค์แรกของไทยที่ได้รับการยกย่องพระองค์ยังทำอะไรเพื่อสร้างชื่อเสียง","input":"","output":"ทรงประดิษฐ์ตัวอักษรไทย"},{"instruction":"พระสุสานขององค์ชายโซฮยอนอยู่ที่ใด","input":"","output":"เมืองโกยาง จังหวัดคยองกี"},{"instruction":"มีผู้ใช้กี่คนกันที่ตอบคำถามมากกว่า N คำถาม","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT CommentCount, COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate > DATEADD(DAY, -90, CURRENT_TIMESTAMP()) AND AnswerCount = 0 GROUP BY CommentCount"},{"instruction":" SMAP เริ่มต้นด้วยสมาชิก 6 คน หลังจากฝึกฝน ด้านต่างๆ ทั้งการร้องการเต้น รวมถึงเล่นละคร ร่วมเป็นพิธีกรในหลายรายการ จนมีฝีมือ ที่เป็นที่พอใจแล้ว ในวันที่เท่าไหร่ ?","input":"","output":" 9\/9\/1991"},{"instruction":"เครโทส เป็นนักรบอะไร","input":"","output":"นักรบสปาร์ตัน"},{"instruction":"รายชื่อผู้ใช้ 100 อันดัในสหรัฐอาหรับเอมิเรตส์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%pakistan%' ORDER BY Reputation DESC LIMIT 100"},{"instruction":"เอพิโทรคอยด์ คืออะไร","input":"","output":"เป็นตัวอย่างหนึ่งของโลกัสที่สร้างขึ้นจากจุดบนจานที่กลิ้งไปรอบรูปวงกลม (เส้นสีน้ำเงิน)"},{"instruction":"ปืร์เมอแร็นด์ จำนวนประชากรเพิ่มในปีอะไร","input":"","output":"ค.ศ. 1960"},{"instruction":"จำนวนแก้ไขต่อโพสต์","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId, COUNT(*) FROM PostHistory WHERE NOT PostId IS NULL GROUP BY PostId ORDER BY PostId, NEWID()"},{"instruction":"มีคำตอบทั้งหมดกี่ข้อ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(A.Id) FROM Posts AS A WHERE A.PostTypeId = 2"},{"instruction":"อเวนเจอร์ส: เผด็จศึก ผลิตโดยใคร","input":"","output":"มาร์เวลสตูดิโอส์"},{"instruction":"มีห้องปฏิบัติการของวิชา 285 หรือเปล่า","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 285"},{"instruction":"ค้นหาคีย์เวิร์ดในคอมเมนต์ผู้ใช้","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT CONCAT('http:\/\/stackoverflow.com\/questions\/', PostId), Score, Text, CreationDate FROM Comments WHERE Text LIKE '%##Keyword1##%' AND Text LIKE '%##Keyword2##%' AND Text LIKE '%##Keyword3##%' COLLATE Latin1_General_100_CI_AI_SC ORDER BY CreationDate DESC"},{"instruction":"มานิตย์ ภู่อารีย์ เกิดวันที่เท่าไร","input":"","output":"3 ธันวาคม พ.ศ. 2478"},{"instruction":"สมาคมวิทยุสมัครเล่นแห่งประเทศไทย ก่อตั้งกี่คน","input":"","output":"6 ท่าน"},{"instruction":"ผู้ใช้ที่ชื่อเดียวกันกับฉันซึ่งมี Twiter ในส่วน \"เกี่ยวกับฉัน\"","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(*) FROM Users WHERE DisplayName LIKE 'Abby %' AND WebsiteUrl LIKE '%twitter%'"},{"instruction":"หนังสือพิมพ์มักถูกพิมพ์ในกระดาษอะไร","input":"","output":"กระดาษสำหรับพิมพ์หนังสือพิมพ์โดยเฉพาะ ซึ่งมีราคาถูก"},{"instruction":"ลอน นอล เกิดขึ้นจังหวัดอะไร","input":"","output":"จังหวัดไพรแวง"},{"instruction":"50 ผู้ถามคำถามมากที่สุดใน MSE","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerUserId AS \"user_link\", COUNT(*) AS QuestionsCount FROM Posts WHERE NOT OwnerUserId IS NULL AND OwnerUserId != -1 GROUP BY OwnerUserId ORDER BY COUNT(*) DESC LIMIT 50"},{"instruction":"ค้นหาผู้ใช้ตามประเทศและชื่อเสียง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##NombrePais##%') ORDER BY Reputation DESC"},{"instruction":"ผู้ใช้ที่มีสิทธิออกเสียงปิดลงใช้งานในเดือนที่แล้ว","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, Reputation, LastAccessDate FROM Users WHERE Reputation >= 3000 AND LastAccessDate >= DATEADD(dd, -30, GETDATE())"},{"instruction":"สะพานมิตรภาพเวียดนาม–ญี่ปุ่นมีอีกชื่อเรียกหนึ่งว่าสะพานอะไร","input":"","output":"สะพานเหญิตเติน"},{"instruction":"พระสุนทรโวหารหรือสุนทรภู่เป็นกวีเอกในสมัยใด","input":"","output":"กรุงรัตนโกสินทร์"},{"instruction":"แสดงแผนภูมิแท่งให้ฉันว่ามีการเรียกเก็บจากรัฐใดไปแล้วเท่าใด และแสดงโดยแกน Y แบบลดหลั่น","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)\n\n","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC"},{"instruction":"จอร์จ แฮริสันเสียชีวิตด้วยสาเหตุใด","input":"","output":"มะเร็งปอด"},{"instruction":"่่่่กวีโด ดา ซีเอนา เรียกอีกชื่่อหนึ่งว่าอะไร","input":"","output":"กุยโด ดิ กราเซียโน"},{"instruction":"ปลาดุมชีเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาเสือดำ (Nandidae)"},{"instruction":"พัฒนาการของจำนวนผู้ใช้ใหม่ จำนวนผู้ใช้ใหม่ต่อวัน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT DATE(STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate))) AS FullDate, COUNT(*) AS Total FROM Users GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)) ORDER BY FullDate DESC"},{"instruction":"ประเสริฐศรี จันทน์อาภรณ์ เกิดวันที่เท่าไร","input":"","output":"18 มีนาคม พ.ศ. 2482"},{"instruction":"เมื่อไหร่ผู้ป่วย 027-4309 ถึงออกจากโรงพยาบาลครั้งแรกเมื่อ 1 ปีที่ผ่านมา","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '027-4309' AND DATETIME(patient.hospitaldischargetime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaldischargetime LIMIT 1"},{"instruction":"วัยร้ายเฟรชชี่ เป็นละครโทรทัศน์ของบริษัทใด ในเครืออะไร","input":"","output":"บริษัท เมจิค แอ็ดเวอร์เทนเม้นท์ จำกัด(ในเครือบริษัท อาร์เอส จำกัด (มหาชน))"},{"instruction":"ใครคือผีประจำบ้านสลิธีริน","input":"","output":"บารอนเลือด"},{"instruction":"เวลาเข้าโรงพยาบาลของผู้ป่วย 22756 คืออะไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 22756"},{"instruction":"ปลากระดี่อินเดีย แพร่กระจายพันธ์ในทวีปอะไร","input":"","output":"อินเดียไปจนถึงพม่า"},{"instruction":"บรูซลีเกิดที่ใด","input":"","output":"ซานฟรานซิสโก"},{"instruction":"id และชื่อของสินค้าที่มีราคาต่ำกว่า 600 หรือสูงกว่า 900 คืออะไร","input":"CREATE TABLE products (\n product_id number,\n product_type_code text,\n product_name text,\n product_price number\n)\n\n","output":"SELECT product_id, product_name FROM products WHERE product_price < 600 OR product_price > 900"},{"instruction":"10 แท็กยอดนิยมใน SO เรียงตามจำนวน","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT TagName, Count FROM Tags ORDER BY Count DESC LIMIT 10"},{"instruction":"ยุทธศักดิ์ ศศิประภา อดีตสมาชิกอะไร","input":"","output":"สภาขับเคลื่อนการปฏิรูปประเทศ"},{"instruction":"หางคำตอบยาวๆ ตอบประเด็นนี้ที่ meta กระทู้ถามใน Statistics - http:\/\/meta.stats.stackexchange.com\/q\/2083\/1036\nผมเริ่มสงสัยว่าเว็บเรายังมีผู้ใช้ไม่มากนัก โดยคำนวณจากหางให้ดูเมื่อเทียบกับเว็บอื่น","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerUserId, COUNT(*) AS TotalAnswers FROM Posts WHERE PostTypeId = 2 GROUP BY OwnerUserId ORDER BY TotalAnswers DESC"},{"instruction":"เหตุผลในการจัดสร้างประตูชัยเวลลิงตันและประตูชัยมาร์เบิลอาร์ชคืออะไร","input":"","output":"เพื่อฉลองชัยชนะของสหราชอาณาจักรเหนือฝรั่งเศสในสงครามนโปเลียน"},{"instruction":"วัดทุ่งเศรษฐีตั้งอยู่ที่ไหน","input":"","output":"หมู่ 7 บ้านห้วยบง ตำบลป่าเซ่า อำเภอเมือง จังหวัดอุตรดิตถ์"},{"instruction":"การบุกครองหมู่เกาะคูริล หรือเรียกว่าอะไร ?","input":"","output":"ปฏิบัติการขึ้นบกหมู่เกาะคูริล"},{"instruction":"วิศวกรรมสารสนเทศและการสื่อสารมีไว้สำหรับอะไร","input":"","output":"สำหรับอุตสาหกรรมหรือองค์กรวิสาหกิจที่มีสถาปัตยกรรมเทคโนโลยีสารสนเทศและสารสนเทศขนาดใหญ่"},{"instruction":"ทัวร์นาเมนต์ที่เล่นก่อนหน้านี้ที่อยู่ภายใต้อายุไม่เกินเท่าไร","input":"","output":"อายุไม่เกิน 17 ปี"},{"instruction":"ที่น้ำหนักของผู้ป่วยรหัส 006-161415 แตกต่างจากค่าวัดล่าสุดในการมาโรงพยาบาลครั้งแรก เมื่อเทียบกับค่าที่วัดครั้งสุดท้ายก่อนค่าที่วัดล่าสุดในการมาโรงพยาบาลครั้งแรก แตกต่างกันกี่หน่วย","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 OFFSET 1)"},{"instruction":"ดนตรีแทร็ป (อีดีเอ็ม) เกิดขึ้นในปีอะไร","input":"","output":"ค.ศ. 2012"},{"instruction":"คำพ้องความหมายสร้างขึ้นผ่าน 4 โหวต","input":"CREATE TABLE TagSynonyms (\n Id number,\n SourceTagName text,\n TargetTagName text,\n CreationDate time,\n OwnerUserId number,\n AutoRenameCount number,\n LastAutoRename time,\n Score number,\n ApprovedByUserId number,\n ApprovalDate time\n)\n\n","output":"SELECT * FROM TagSynonyms WHERE Score >= 4"},{"instruction":"พระยมี เชื่อว่าพระองค์เกี่ยวข้องกับอะไร","input":"","output":"พระกฤษณะ"},{"instruction":"ระหว่างการเข้าพักรักษาครั้งนี้ของผู้ป่วย 015-23047 ผ่านมาแล้วกี่วันนับตั้งแต่ผู้ป่วยพักในวอร์ด 608 ครั้งสุดท้าย","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '015-23047' AND patient.wardid = 608 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ค่าต่ำสุด ค่าสูงสุด และจำนวนคำตอบเฉลี่ยต่อโพสต์ จำนวนคำตอบต่อโพสต์ที่น้อยที่สุด สูงที่สุด และค่าเฉลี่ยบน Stack Overflow","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT MIN(Posts.AnswerCount) AS \"minimum_#_of_answers\", AVG(CAST(Posts.AnswerCount AS FLOAT)) AS \"average_#_of_answers\", MAX(Posts.AnswerCount) AS \"maximum_#_of_answers\" FROM Posts WHERE Posts.PostTypeId = 1"},{"instruction":"ไวกิงหมายถึงอะไร","input":"","output":"ชนเผ่านักรบ นักการค้า และนักตั้งถิ่นฐานจากนอร์เวย์ สวีเดน และเดนมาร์ก"},{"instruction":"เครื่องดื่ม คืออะไร","input":"","output":"สิ่งที่มนุษย์จัดเตรียมสำหรับดื่ม"},{"instruction":"ผู้ป่วย 12952 เข้ารักษาที่โรงพยาบาลในปี 2105","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 12952 AND STRFTIME('%y', admissions.admittime) = '2105'"},{"instruction":"แสดงโพสต์ที่ประกอบด้วย apt-cache ในเนื้อหา","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", CreationDate FROM Posts WHERE Body LIKE '%apt-cache%' ORDER BY CreationDate DESC"},{"instruction":"วันที่ของบันทึกการประเมิน คือหมายเลขใด จัดเรียงตามแกน x จากสูงไปต่ำ","input":"CREATE TABLE Assessment_Notes (\n notes_id INTEGER,\n student_id INTEGER,\n teacher_id INTEGER,\n date_of_notes DATETIME,\n text_of_notes VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC"},{"instruction":"อิซาเบล ลูคัส เกิดวันที่เท่าไร","input":"","output":"29 มกราคม ค.ศ. 1985"},{"instruction":"น้ำหนักของผู้ป่วย 015-8398 ต่ำสุดในแต่ละวันในครั้งล่าสุดที่เข้ารักษาตัวอยู่ในโรงพยาบาลมีค่าเท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-8398' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime)"},{"instruction":"สนามกีฬาโอลิมปิก ตั้งอยู่ในกรุงอะไร","input":"","output":"กรุงอาชกาบัต"},{"instruction":"รูปแบบการโหวตมีอะไรบ้าง","input":"CREATE TABLE VoteTypes (\n Id number,\n Name text\n)\n\n","output":"SELECT * FROM VoteTypes"},{"instruction":"ท่าอากาศยานนาฮะ อยู่ประเทศอะไร","input":"","output":"ประเทศญี่ปุ่น"},{"instruction":"ปลาตูหนาเป็นปลาที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาตูหนา (Anguilidae)"},{"instruction":"ลาดทวีป มีความลาดชันเท่าไร","input":"","output":"65 องศา"},{"instruction":"ปฏิบัติการทางทหารของโซเวียต มีจุดมุ่งหมายเพื่ออะไร ?","input":"","output":"เพื่อยึดหมู่เกาะคูริลจากญี่ปุ่นในปี 1945 โดยเป็นส่วนหนึ่งของปฏิบัติการการรุกทางยุทธศาสตร์แมนจูเรีย"},{"instruction":"รับข้อมูลจากโพสต์ล่าสุดทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Score, ViewCount, AnswerCount FROM Posts WHERE PostTypeId = 2 AND YEAR(CreationDate) > 2015"},{"instruction":"ใครคือสมาชิกลำดับที่ 5 ของโอเอซิส","input":"","output":"โนล แกลลาเกอร์"},{"instruction":"ปลากดอเมริกันมีชื่อทางวิทยาศาสต��์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Ictalurus punctatus"},{"instruction":"มาโคโตะ เป็นนักกีฬาอะไร","input":"","output":"นักคาราเต้"},{"instruction":"เอโลวีนเคยใช้ชื่อปลอมว่าอะไร?","input":"","output":"เดิร์นเฮล์ม (Dernhelm)"},{"instruction":"ทะเลแดง เชื่อมกับมหาสมุทรอินเดียที่อ่าวอะไร","input":"","output":"อ่าวเอเดน"},{"instruction":"เนื้อหาในรายวิชา MATSCIE 489 เป็นอะไร","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name FROM course WHERE department = 'MATSCIE' AND number = 489"},{"instruction":"ในการเข้ารับการรักษาครั้งแรก ผู้ป่วย 18866 เข้าแผนก ER หรือไม่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 18866 AND admissions.admission_location = 'emergency room admit' AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"หลักสูตรใดที่ให้ 10 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 10 AND department = 'EECS'"},{"instruction":"ท่าอากาศยานนานาชาติอินช็อน อยู่เมืองอะไร","input":"","output":"เมืองอินช็อน"},{"instruction":"ต้นเทียนบ้านมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Impatiens balsamina L."},{"instruction":"คนไข้ 41014 เข้ารับการรักษาตัวในโรงพยาบาลในปีที่แล้วหรือไม่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 41014 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"บริษัทแพร่สัญญาณอเมริกัน ก่อตั้งปีอะไร","input":"","output":"พ.ศ. 2486"},{"instruction":"ประติภา ปาฏีล เกิดวันที่เท่าไร","input":"","output":"19 ธันวาคม พ.ศ. 2477"},{"instruction":"พระบาทสมเด็จพระจุลจอมเกล้าเจ้าอยู่หัวมีพระบรมราชโองการโปรดเกล้าฯ ให้ใครเป็นผู้ก่อตั้ง","input":"","output":"สมเด็จพระเจ้าบรมวงศ์เธอ กรมพระยาดำรงราชานุภาพ"},{"instruction":"ดูสถิติสำหรับคำถามทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT AVG(ViewCount) AS AvgViews, STDEV(ViewCount) AS StDevViews, COUNT(*) AS N FROM Posts WHERE PostTypeId = 1"},{"instruction":"เมื่อไรผู้ป่วยหมายเลข 016-18575 ได้เข้าโรงพยาบาลครั้งล่าสุดผ่านการเข้ารับการรักษาโดยตรงในช่วง 1 ปีที่ผ่านมา","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '016-18575' AND patient.hospitaladmitsource = 'direct admit' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"ปลากะพงดำจัดว่าเป็นปลาที่อยู่ในวงศ์ปลาอะไร","input":"","output":"วงศ์ปลากะพงดำ (Lobotidae)"},{"instruction":"มีจำนวนยอดดาวน์โหลดเท่าไร","input":"","output":"1 ล้านครั้ง"},{"instruction":"โชฟุ อยู่ทางทิศอะไรของมหานคร","input":"","output":"ทางตะวันตก"},{"instruction":"ซาวน่าหรรษา ดำเนินรายการโดยใคร","input":"","output":"ยู แจซอก"},{"instruction":"ประตูชัยเวลลิงตันตั้งอยู่ที่ใด","input":"","output":"ตะวันออกเฉียงใต้ของสวนไฮด์พาร์ก กลางกรุงลอนดอน"},{"instruction":"มีผู้ป่วยในขณะนี้กี่คน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL"},{"instruction":"ซินกุ้ยเฟย์ เข้าวิงเมื่อไร","input":"","output":"ปี 1753"},{"instruction":"สวิตช์ฟุต มีผลงานกี่ชุด","input":"","output":"3 ชุด"},{"instruction":"ในปี 1968 พวกเขาได้ก่อตั้งบริษัทแผ่นเสียงของตนเองโดยใช้ชื่อว่าอะไร","input":"","output":"Apple Records"},{"instruction":"พระนางชยเทวี คือใคร","input":"","output":"พระมหากษัตริย์หญิงแห่งเจน"},{"instruction":"ใครเป็นผู้ชักนำให้ทักษิณชินวัตรเข้าสู่วงการการเมือง","input":"","output":"พลตรี จำลอง ศรีเมือง"},{"instruction":"ผู้ป่วยหมายเลข 18841 เข้ารับบริการที่ห้องฉุกเฉินเพื่อรับการรักษาตัวในโรงพยาบาลครั้งแรกเมื่อใดในรอบปีที่ผ่านมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 18841 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime LIMIT 1"},{"instruction":"สัญญาครั้งแรกของวงดนตรีสวีตมัลเล็ต จากค่ายอะไร","input":"","output":"จีนี่ เรคคอร์ดส"},{"instruction":"ทาชเคนต์ ถูกทำลายโดย���ารรุกรานของเจงกีส ข่าน เมื่อ ค.ศ.ใด","input":"","output":"1219"},{"instruction":"ปลากระดี่มุกมีความยาวเฉลี่ยเต็มที่กี่เซนติเมตร","input":"","output":"10-12 เซนติเมตร"},{"instruction":"ธงชัย เล็กกัมพล มีผลงานฮิต ติดหูคนฟังกี่เพลง","input":"","output":"สิบเพลง"},{"instruction":"ดาวพลูโตถูกค้นพบโดยใคร","input":"","output":"ไคลด์ ทอมบอ"},{"instruction":"ปลากระเบนนกเป็นปลากระเบนที่มีขนาดใหญ่มีความกว้างโดยเฉลี่ยเท่าใด","input":"","output":"มีขนาดความกว้างโดยเฉลี่ยประมาณ 1.5-2 เมตร"},{"instruction":"นับจำนวนผู้ป่วยปัจจุบันที่มีอายุอยู่ในช่วง 30 ปี","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL AND admissions.age BETWEEN 30 AND 39"},{"instruction":"คำรณ สัมบุญณานนท์ เป็นคนที่ไหน","input":"","output":"ชาวกรุงเทพฯโดยกำเนิด"},{"instruction":"เจ้าหญิงมาเรีย แคโรไลนา ประสูติเมื่อวันที่ เท่าไหร่ ?","input":"","output":"22 กันยายน 2439"},{"instruction":"เลขที่อยู่ไอพีภาษาอังกฤษคืออะไร","input":"","output":"IP address: Internet Protocol address"},{"instruction":"ราชอาณาจักรภูฏาน เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูร้อนครั้งที่ 24 เมื่อวันที่เท่าใดถึงวันที่เท่าใด","input":"","output":"17 กันยายน – 2 ตุลาคม พ.ศ. 2531"},{"instruction":"ตระกูลทาเกดะ จนจบยุคไหนของตะกูลนี้","input":"","output":"ช่วงปลายคริสต์ศตวรรษที่ 16"},{"instruction":"พระหม่อมแก้วจึงขึ้นครองราชย์สมบัติในปีอะไร","input":"","output":"พ.ศ. 2170"},{"instruction":"ปลาฉลามครีบดำมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Carcharhinus melanopterus"},{"instruction":"แสดงหลักสูตรอิสระที่มี 15 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Independent Studies%' OR name LIKE '%Independent Studies%') AND credits = 15"},{"instruction":"ใครตอบคำถามเดียวกันกับฉัน บันทึกรายการผู้ใช้ที่ตอบคำถามอย่างน้อยสองข้อที่ฉันก็ตอบ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(DISTINCT myAnswer.ParentId) AS QuestionCount, otherAnswer.OwnerUserId AS \"user_link\" FROM Posts AS myAnswer, Posts AS otherAnswer WHERE otherAnswer.OwnerUserId != @MyUserId AND myAnswer.OwnerUserId = @MyUserId AND myAnswer.ParentId = otherAnswer.ParentId AND otherAnswer.PostTypeId = 2 AND myAnswer.PostTypeId = 2 GROUP BY otherAnswer.OwnerUserId HAVING COUNT(DISTINCT myAnswer.ParentId) > 1 ORDER BY QuestionCount DESC"},{"instruction":"หมีกริซลี จัดได้ว่าเป็นหมีอะไร","input":"","output":"หมีที่มีขนาดใหญ่ที่สุดในโลก"},{"instruction":"จำนวนชื่อเสียงจากการแก้ไขโดยชุมชน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%fremont%' OR UPPER(Location) LIKE '%FREMONT%' OR Location LIKE '%fremont%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"ค้นหาตัวระบุไดร์เวอร์ที่ชัดเจนและหมายเลขจุดหยุดของไดร์เวอร์ทั้งหมดที่มีระยะเวลาจุดหยุดที่สั้นกว่าไดร์เวอร์บางคนในการแข่งขันที่มี ID 841","input":"CREATE TABLE pitstops (\n raceid number,\n driverid number,\n stop number,\n lap number,\n time text,\n duration text,\n milliseconds number\n)\n\n","output":"SELECT DISTINCT driverid, stop FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)"},{"instruction":"ผู้นำพรรคคือใคร","input":"","output":"ตนกู อับดุล ระห์มาน ยากุบ"},{"instruction":"หอพลังความร้อนจากดวงอาทิตย์คืออะไร","input":"","output":"โรงผลิตไฟฟ้าจากพลังงานความร้อนแสงอาทิตย์"},{"instruction":"สงครามโลกครั้งที่สองเริ่มตั้งด้วยเหตุการใด","input":"","output":"การบุกครองโปแลนด์ของเยอรมนี"},{"instruction":"การวินิจฉัยของเงื่อนไขของตาที่ต่อไปนี้: โรคตาขาวที่รุนแรง, โรคต้อหิน, โรคจอประสาทตาที่มีผลต่อการมองเห็นส่วนกลาง, โรคจอประสาทตา หรือ uveitis, ตาแห้งอย่างรุนแรง และโรคตาจากไทรอยด์","input":"CREATE TABLE table_test_31 (\n \"id\" int,\n \"ejection_fraction_ef\" int,\n \"macular_disease\" bool,\n \"systemic\" bool,\n \"alt\" float,\n \"iud\" bool,\n \"condom_with_spermicide\" bool,\n \"gender\" string,\n \"meropenem\" bool,\n \"non_q_wave_myocardial_infarction\" bool,\n \"hbcab\" bool,\n \"unstable_angina\" bool,\n \"birth_control_pills\" bool,\n \"cystic_fibrosis\" bool,\n \"hbv_surface_antigen_hbsag\" bool,\n \"oocytes\" int,\n \"severe_dry_eyes\" bool,\n \"afc\" int,\n \"morphological_characteristics\" bool,\n \"ovarian_reserve_test\" bool,\n \"atherectomy\" bool,\n \"hiv_infection\" bool,\n \"hormonal_contraceptives\" bool,\n \"mellitus\" bool,\n \"poor_ovarian_responder\" bool,\n \"recurrent_heart_pain\" bool,\n \"ast\" float,\n \"piperacillin\" bool,\n \"coronary_conduit\" bool,\n \"diabetic\" string,\n \"elective\" bool,\n \"ciprofloxacin\" bool,\n \"colistin\" bool,\n \"central_vision\" bool,\n \"serological_tests\" bool,\n \"inhaled_corticosteroids\" bool,\n \"angina\" bool,\n \"surgical_sterilization\" bool,\n \"retinal_disease\" bool,\n \"hcv_ab\" bool,\n \"high_risk_clinical\" bool,\n \"advanced_maternal_age\" bool,\n \"antibiotic_treatment\" bool,\n \"adequate_contraception\" bool,\n \"uveitis_disease\" bool,\n \"unprotected_left_main_coronary_artery\" bool,\n \"ovarian_response\" bool,\n \"acute_q_wave_myocardial_infarction\" bool,\n \"urgent_coronary_balloon_angioplasty\" bool,\n \"asthma\" bool,\n \"serum_creatinine\" float,\n \"intrauterine_device\" bool,\n \"kidney_disease\" bool,\n \"spermicide\" bool,\n \"fda_approved_device\" bool,\n \"anti_hepatitis_c_virus_hcv_antibody\" bool,\n \"active_scleral_disease\" bool,\n \"barrier_methods\" bool,\n \"tazobactam\" bool,\n \"glaucoma\" bool,\n \"cefepime\" bool,\n \"depo_provera\" bool,\n \"organ_failure\" bool,\n \"dysthyroid_eye_disease\" bool,\n \"peripheral_arterial_disease\" bool,\n \"cerebral_infarction\" bool,\n \"anti_hepatitis_b_core_antibody\" bool,\n \"hypertension\" bool,\n \"bilirubin\" float,\n \"risk_factor\" bool,\n \"myocardial_infarction\" bool,\n \"lupron_depot\" bool,\n \"ocular\" bool,\n \"age\" float,\n \"linezolid\" bool,\n \"NOUSE\" float\n)","output":"SELECT * FROM table_test_31 WHERE ocular = 1 OR (active_scleral_disease = 1 OR glaucoma = 1 OR (retinal_disease = 1 AND central_vision = 1) OR macular_disease = 1 OR uveitis_disease = 1 OR severe_dry_eyes = 1 OR dysthyroid_eye_disease = 1)"},{"instruction":"ต้นโมกมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Wrightia religiosa Benth."},{"instruction":"ดาวพลูโตถูกค้นพบในปี พ.ศ. ใด","input":"","output":"พ.ศ. 2473"},{"instruction":"วิชาใดเป็นวิชา 6 หน่วยกิต SI","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE department = 'SI' AND credits = 6"},{"instruction":"ผู้ป่วยหมายเลข 004-7984 ได้มาตรวจที่โรงพยาบาลจนถึงปัจจุบันวันที่ 2102 หรือยัง","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '004-7984' AND STRFTIME('%y', patient.hospitaladmittime) <= '2102'"},{"instruction":"ต้นกัลปพฤกษ์มีชื่อเรียกอื่นๆว่าอะไรบ้าง","input":"","output":"ชัยพฤกษ์ (ภาคเหนือ), กานล์ (เขมร-สุรินทร์), เปลือกขม (ปราจีนบุรี), กาลพฤกษ์"},{"instruction":"อิซาเบล ลูคัส เป็นที่รู้จักจากบทบาทอะไร","input":"","output":"ทาชา แอนดรูวส์"},{"instruction":"ผู้ใช้อันดับต้น SO 2500 คนแรกจาก NC","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE Location LIKE '%NC%' OR LOWER(Location) LIKE '%north carolina%' AND NOT LOWER(Location) LIKE '%france%' AND NOT Location LIKE '%NCR%' ORDER BY Reputation DESC LIMIT 2500"},{"instruction":"นายวีระศักดิ์ ฟูตระกูลคือใคร ?","input":"","output":"สมาชิก วุฒิสภาไทย ชุดที่ 12"},{"instruction":"เพราะเหตุใดประเทศรัสเซียเป็นสถานที่ท่องเที่ยวที่ได้รับความนิยมมากที่สุดในโลก","input":"","output":"มรดกทางวัฒนธรรมที่หลากหลายและแหล่งท่องเที่ยวทางธรรมชาติที่ยิ่งใหญ่"},{"instruction":"หมายเลขโทรศัพท์ของพนักงานแต่ละคนคืออะไร และนับโดยใช้แผนภูมิแท่ง","input":"CREATE TABLE Employee (\n EmployeeId integer,\n LastName varchar(20),\n FirstName varchar(20),\n Title varchar(30),\n ReportsTo integer,\n BirthDate datetime,\n HireDate datetime,\n Address varchar(70),\n City varchar(40),\n State varchar(40),\n Country varchar(40),\n PostalCode varchar(10),\n Phone varchar(24),\n Fax varchar(24),\n Email varchar(60)\n)\n\n","output":"SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone"},{"instruction":"แว���นแก้ว พบมากในภาคอะไร","input":"","output":"ภาคเหนือ"},{"instruction":"รับหมายเลขของโพสต์ที่มีอยู่","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT COUNT(Votes.Id) FROM Votes WHERE VoteTypeId = 4"},{"instruction":"จำนวนผู้ใช้ที่มีชื่อเสียง แยกประเภทและเรียงลำดับโดยวันที่เข้าใช้ล่าสุด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT DATEADD(day, DATEDIFF(day, 0, LastAccessDate), 0) AS \"Last access date\", COUNT(*) AS \"Users\" FROM Users WHERE Reputation >= '##Reputation:int?5##' GROUP BY DATEADD(day, DATEDIFF(day, 0, LastAccessDate), 0) ORDER BY DATEADD(day, DATEDIFF(day, 0, LastAccessDate), 0)"},{"instruction":"ทวีปเลื่อน เสนอขึ้นในปีอะไร","input":"","output":"พ.ศ. 2455"},{"instruction":"สถานีรถไฟเมงูโระ เป็นสถานีรถไฟในแขวงอะไร","input":"","output":"แขวงชินางาวะ"},{"instruction":"แวมไพร์ ทไวไลท์ (อังกฤษ: Twilight) เป็นภาพยนตร์อเมริกันปี พ.ศ. 2551 ซึ่งในส่วนของนิยาย Twilight ภาษาไทยก็ใช้ชื่อว่าอะไร ?","input":"","output":"แรกรัตติกาล"},{"instruction":"ผ่านไปกี่ชั่วโมงแล้วหลังจากผู้ป่วยหมายเลข 021-80293 เข้าห้อง ICU","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '021-80293' AND patient.unitdischargetime IS NULL"},{"instruction":"บริการเครือข่ายสังคมสัญชาติอเมริกัน เฟซบุ๊ก (อังกฤษ: Facebook) ถูกเขียนขึ้นด้วย","input":"","output":"ซีพลัสพลัส และ พีเอชพี"},{"instruction":"ตัวกรองที่กำหนดเองของ SEBASSBM (ขั้นตอนการทดสอบ)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id FROM Posts WHERE ViewCount = 9999"},{"instruction":"อะโลน บันทึกเสียงโดยวงดนตรีอะไร","input":"","output":"วงดนตรีร็อก"},{"instruction":"จำนวนผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลทั้งหมดคือเท่าไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions"},{"instruction":"พรรคนี้เกิดจากความร่วมมือระหว่างใครกับใคร","input":"","output":"ระหว่างตุน ฟาอุด สตีเฟนส์ กับฮาร์ริส ซัลเละฮ์ อดีตเลขาธิการทั่วไปขององค์การร่ว��แห่งชาติซาบะฮ์"},{"instruction":"พัก จู-ย็อง เล่นตำแหน่งอะไร","input":"","output":"ตำแหน่งกองหน้า"},{"instruction":"เขตการปกครองของประเทศจีน ปัจจุบัน เพิ่มกี่ระดับ","input":"","output":"2 ระดับ"},{"instruction":"คนไข้ 033-2671 เพศอะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '033-2671'"},{"instruction":"อู๋ จวินหรู เกิดวันที่เท่าไร","input":"","output":"2 สิงหาคม พ.ศ. 2508"},{"instruction":"วงดนตรีแคลช เปิดผับ ชื่ออะไร","input":"","output":"แคลงก์"},{"instruction":"อพชินี อุตตมะโยธิน เป็นหลานของใคร","input":"","output":"โหน่ง-วสันต์ อุตตมะโยธิน"},{"instruction":"พระยาเสนาะดุริยางค์ เข้ารับราชการปีอะไร","input":"","output":"พ.ศ. 2422"},{"instruction":"เส้นเรื่องสอง เกี่ยวกับอะไร","input":"","output":"เรื่องราวของทายาทคนสุดท้ายของตระกูลกษัตริย์ที่ถูกชิงบัลลังก์ไป"},{"instruction":"อหังการ์ราชันย์ยักษ์ มีการจัดพิมพ์เป็นรูปเล่มแบบพ็อคเก็ตบุ๊คขนาดไม่เกินกี่หน้า","input":"","output":"200 หน้า"},{"instruction":"ราคาเท่าไรหรอครับ","input":"","output":"ไม่ทราบราคาของสินค้า"},{"instruction":"การแข่งขัน ฟุตบอลโลก 2018 รอบคัดเลือก โซนยุโรป กลุ่ม ไอ กลุ่มโซนที่ไหน","input":"","output":"ยุโรป"},{"instruction":"Eduardo Martins เป็นลูกค้าของบริษัทใด","input":"CREATE TABLE customers (\n id number,\n first_name text,\n last_name text,\n company text,\n address text,\n city text,\n state text,\n country text,\n postal_code text,\n phone text,\n fax text,\n email text,\n support_rep_id number\n)\n\n","output":"SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\""},{"instruction":"อายุของผู้ป่วย 011-31229 ในการเข้ารักษาครั้งแรกเท่าไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.age FROM patient WHERE patient.uniquepid = '011-31229' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ผู้ป่วยหมายเลข 14467 เข้ารับการรักษาในโรงพยาบาลครั้งสุดท้ายเมื่อไหร่ ตั้งแต่ปี 2558","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 14467 AND STRFTIME('%y', admissions.admittime) >= '2105' ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"เบ็ก เกิดวันที่เท่าไร","input":"","output":"8 กรกฎาคม ค.ศ. 1970"},{"instruction":"ได้คะแนนเสียงทั้งหมดของฉันไปเลย","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT v.VoteTypeId, COUNT(*) FROM Votes AS v WHERE v.UserId = '##UserID##' GROUP BY v.VoteTypeId"},{"instruction":"จิระนันท์ ประเสริฐกุล เป็นอดีตผู้นำนักศึกษาในเหตุการณ์อะไร","input":"","output":"14 ตุลา"},{"instruction":"200 อันดับผู้ใช้สูงสุดจากบัลแกเรีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", DisplayName, Reputation, Location FROM Users WHERE Location LIKE '%Sofia%' OR Location LIKE '%Bulgaria%' ORDER BY Reputation DESC LIMIT 200"},{"instruction":"ผู้ใช้ SO สูงสุด 50 อันดับจากอิหร่าน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%iran' ORDER BY Reputation DESC LIMIT 50"},{"instruction":"ปลากดคังสาละวินเป็นปลาน้ำจืดที่จัดอยู่วงศ์พันธุ์สัตว์น้ำประเภทใด","input":"","output":"วงศ์ปลากด (Bagridae)"},{"instruction":"Kiss the Series รักต้องจูบ เป็นซีรีส์ดัดแปลงเนื้อเรื่องจากนิยายอะไร","input":"","output":"นิยายแนวโรแมนติกคอมเมดี้ Set Kiss 2 เล่ม"},{"instruction":"แสดงรายการวิชาที่ลงทะเบียนได้ 11 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 11 AND department = 'EECS'"},{"instruction":"รายการการแก้ไขที่ข้อความสรุปการแก้ไขมีคำหลักตามที่กำหนด","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Comment, UserId AS \"user_link\", CreationDate FROM PostHistory WHERE UserId = '##userid##' AND Comment LIKE '%##keyword##%' ORDER BY CreationDate"},{"instruction":"ต้นกระวานจัดได้เป็นพืชสมุนไพรจัดอยู่ในวงศ์พันธุ์ไม้ชนิดใด","input":"","output":"วงศ์ : Zingiberaceae"},{"instruction":"select count (*) from Posts.","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts"},{"instruction":"ประเทศรัสเซียเป็นสถานที่ท่องเที่ยวที่ได้รับความนิยมเป็นอันดับที่เท่าใดของยุโรป","input":"","output":"อันดับที่ 7 "},{"instruction":"ปลาฉลามขาวเป็นปลาที่พบบนผิวน้ำมากกว่าส่วนในบริเวณน้ำลึกที่เมตรที่จะไม่พบ��ลามขาว","input":"","output":"บริเวณน้ำลึก ถึงระดับ 1280 เมตร"},{"instruction":"เอเชียนอินดอร์-มาร์เชียลอาร์ตสเกมส์จัดขึ้นกี่ครั้ง","input":"","output":"ทุก ๆ 4 ปี"},{"instruction":"แสงจักรราศี ปรากฏการณ์นี้มีการสังเกตและตรวจสอบเป็นครั้งแรกในปีอะไร","input":"","output":"ค.ศ. 1683"},{"instruction":"ค้นหาคำตอบคุณภาพต่ำของฉัน เนื้อหานี้จะจัดลำดับคำถามของคุณตามความยาวของโพสต์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerUserId AS \"user_link\", Id AS \"post_link\", LENGTH(Body) AS \"length_of_post\" FROM Posts WHERE NOT ParentId IS NULL AND OwnerUserId = '##UserId##' ORDER BY 'length_of_post'"},{"instruction":"วงดนตรีแคลช ได้กับมารวมกันอีกครั้ง วันที่เท่าไร","input":"","output":"เดือนกรกฎาคม พ.ศ. 2561"},{"instruction":"หาจำนวนนามสกุลของครูเรียงตามตัวอักษรในนามสกุลโดยใช้แผนภูมิแท่ง","input":"CREATE TABLE Teachers (\n teacher_id INTEGER,\n address_id INTEGER,\n first_name VARCHAR(80),\n middle_name VARCHAR(80),\n last_name VARCHAR(80),\n gender VARCHAR(1),\n cell_mobile_number VARCHAR(40),\n email_address VARCHAR(40),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT last_name, COUNT(last_name) FROM Teachers GROUP BY last_name ORDER BY last_name"},{"instruction":"ประกอบพิธีราชาภิเษกเมื่อใด","input":"","output":"วันที่ 28 มกราคม ค.ศ. 454 (พ.ศ. 997)"},{"instruction":"ผู้ป่วย 2700 เคยมาแผนกฉุกเฉินในปี 2104 หรือไม่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 2700 AND admissions.admission_location = 'emergency room admit' AND STRFTIME('%y', admissions.admittime) <= '2104'"},{"instruction":"จำนวนผู้ใช้: ผู้ใช้ในตำแหน่งที่กำหนด - ไม่คำนึงถึงตัวพิมพ์ใหญ่หรือตัวพิมพ์เล็ก","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"WITH UsersStatedLocation AS (SELECT CASE WHEN LOWER(Location) LIKE LOWER('##Location##') THEN 'Location Input' ELSE 'Not a match' END AS StatedLocation FROM Users WHERE LENGTH(Location) > 1) SELECT UsersStatedLocation.StatedLocation, COUNT(1) AS \"count\" FROM UsersStatedLocation GROUP BY UsersStatedLocation.StatedLocation ORDER BY StatedLocation"},{"instruction":"ไรอัน ซีเครสต์ เขาเป็ผู้ดำเนินรายการวิทยุที่ชื่อว่าอะไร","input":"","output":"On Air with Ryan Seacrest"},{"instruction":"ในประเทศไทย ใครได้ลิขสิทธิ์ของสัตวแพทย์มือใหม่หัวใจเมโลดี้","input":"","output":"เนชั่นคอมิคส์"},{"instruction":"เป็นโรงเรียนในโครงการจัดการศึกษาเชิงระบบสู่โรงเรียนมาตรฐานสากล ในช่วงปีการศึกษาใด ","input":"","output":"ปีการศึกษา 2553 – 2555"},{"instruction":" เป็นชุดแผ่นด��นไหวที่ถล่มเมืองอะไร","input":"","output":"เมืองอี๋เหลียง"},{"instruction":"ปลากริมมุกเป็นปลาน้ำจืดที่มีขนาดเล็กที่สุดในโลกโดยมีความยาวเท่าไร","input":"","output":"ความยาวไม่เกิน 4 เซนติเมตร"},{"instruction":"ไอ้แมงปอแมน ฮีโร่ซุปเปอร์รั่ว ใครเป็นตัวเอก","input":"","output":"ริค"},{"instruction":"ประเทศอินเดีย เข้ารว่มการแข่งขันอะไร","input":"","output":"กีฬาโอลิมปิก"},{"instruction":"จำนวนครั้งที่ใช้ยา adefovir dipivoxil จนถึง 2104 อยู่ที่เท่าไร","input":"CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\n","output":"SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'adefovir dipivoxil' AND STRFTIME('%y', prescriptions.startdate) <= '2104'"},{"instruction":"แม่น้ำอะเมซอนมีแม่น้ำสาขากี่สาขา","input":"","output":"มากกว่า 1,100 สาขา"},{"instruction":"ปลาตีนมีการอาศัยอยู่ถิ่นที่อยู่อยู่ใด","input":"","output":"อาศัยในป่าชายเลนในประเทศไทยมีกระจายเป็นตอน ๆ ริมฝั่งทะเลด้านอ่าวไทย"},{"instruction":"ยอดแก้ไขที่ได้รับการยอมรับเทียบกับการแก้ไขที่ถูกปฏิเสธต่อเดือน","input":"CREATE TABLE SuggestedEdits (\n Id number,\n PostId number,\n CreationDate time,\n ApprovalDate time,\n RejectionDate time,\n OwnerUserId number,\n Comment text,\n Text text,\n Title text,\n Tags text,\n RevisionGUID other\n)\n\n","output":"WITH Raw AS (SELECT TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%Y') AS yyyy, TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%M') AS mm, COUNT(ApprovalDate) AS ApprovalCount, COUNT(RejectionDate) AS RejectionCount FROM SuggestedEdits GROUP BY TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%Y'), TIME_TO_STR(COALESCE(ApprovalDate, RejectionDate), '%M')) SELECT DATEFROMPARTS(yyyy, mm, 1) AS Month, ApprovalCount, RejectionCount FROM Raw ORDER BY Month DESC"},{"instruction":"ผู้ป่วยปัจจุบันกี่รายที่มีอายุในช่วง 30 ปี?","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 30 AND 39"},{"instruction":"เพลงประจำรายการมีชื่อว่าอะไร","input":"","output":"나야나 (PICK ME)"},{"instruction":"ค้นหาคำถามหรือคำตอบจาก revisionGUID","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\" FROM PostHistory WHERE RevisionGUID = '865e9305-bef6-4397-9097-2848d0dc1233'"},{"instruction":"การแข่งขัน ฟุตบอลโลก 2018 รอบคัดเลือก โซนยุโรป กลุ่ม ไอ เริ่มต้นเวลาเท่าไร","input":"","output":"18:00 MSK (UTC+3)"},{"instruction":"อาสนวิหารแวร์ซายใช้สถาปัตยกรรมแบบใด","input":"","output":"สถาปัตยกรรมแบบโรโกโกอันวิจิตร"},{"instruction":"เอ็นบีเอ็น เทเลวิชั่น ขยายตัวส่งเป็นจำนวนเท่าไร","input":"","output":"39 สถานี"},{"instruction":"ฉันต้องการดูแนวโน้มของจำนวนข้อมูลบันทึกโดยจัดเรียงจากวันของข้อมูลบันทึก และแสดงแกน x จากต่ำไปสูง","input":"CREATE TABLE Assessment_Notes (\n notes_id INTEGER,\n student_id INTEGER,\n teacher_id INTEGER,\n date_of_notes DATETIME,\n text_of_notes VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes"},{"instruction":"CDA Cloud-Gazing: Azure Python คำถาม","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('Azure') ORDER BY Score DESC"},{"instruction":"อินเทล ก่อตั้งขึ้นโดยมีสำนักงานอยู่ไหน","input":"","output":"ซานตาคลารา รัฐแคลิฟอร์เนีย สหรัฐอเมริกา"},{"instruction":"ปลาการ์ตูนเป็นปลาทะเลสวยงามที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาสลิดหิน (Pomacentridae)"},{"instruction":"ขั้นตอนสารกระตุ้นความดันโลหิต - โดปามีน 5-15 ไมโครกรัม\/กก.\/นาที ทำไปได้กี่ครั้ง","input":"CREATE TABLE treatment (\n treatmentid number,\n patientunitstayid number,\n treatmentname text,\n treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'vasopressors - dopamine 5-15 micrograms\/kg\/min'"},{"instruction":"ใครเป็นคนทำการจัดกลุ่มของธาตุตามคุณสมบัติร่วมทางเคมี","input":"","output":"ดมิทรี อีวาโนวิช เมนเดลีเยฟ (Dmitry Ivanovich Mendeleev)"},{"instruction":"จอร์จ โบดีย์ เคยเป็นผู้แทนราษฎรจากสภาผู้แทนราษฎรอะไร","input":"","output":"ออสเตรเลียใต้"},{"instruction":"ELECT * FROM posts WHERE Id < 50000","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE Id > 50000 AND Id < 10000"},{"instruction":"ระบบโหลดเซนซิง เป็นระบบควบคุมอะไร","input":"","output":"ควบคุมทางไฮดรอลิกส์"},{"instruction":"เลือก * จากผู้ใช้งานที่ตำแหน่งที่ตั้ง เช่น 'Pune'","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT * FROM Users WHERE Location LIKE '%Oklahoma%' ORDER BY Reputation DESC"},{"instruction":"ปลาจิ้มฟันจระเข้ยักษ์เป็นปลาน้ำจืดที่จัดอยู่ในวงศ์ของปลาใด","input":"","output":"วงศ์ม้าน้ำและปลาจิ้มฟันจระเข้ (Syngnathidae) "},{"instruction":"ปลากระสงมีความยาวเต็มที่กี่เซนติเมตร","input":"","output":"ความยาวเต็มที่ประมาณ 40 เซนติเมตร"},{"instruction":"นิสัยของปลาการ์ตูนเป็นรูปแบบใด อธิบาย","input":"","output":"เป็นปลาที่หวงถิ่นมากพบ อาศัยอยู่ตามแนวปะการังกับดอกไม้ทะเล"},{"instruction":"ซากุ หลังจากการสถาปนาเมืองซากุขึ้นในปีอะไร","input":"","output":"พ.ศ. 2548"},{"instruction":"เอเชียนคัพ 2011 เป็นการแข่งขันฟุตบอลเอเชียนคัพ ครั้งที่เท่าไร","input":"","output":"15"},{"instruction":"รถไฟฟ้า M80 มีความจุผู้โดยสารสูงสุดเท่าใด","input":"CREATE TABLE aircraft (\n aircraft_code varchar,\n aircraft_description varchar,\n manufacturer varchar,\n basic_type varchar,\n engines int,\n propulsion varchar,\n wide_body varchar,\n wing_span int,\n length int,\n weight int,\n capacity int,\n pay_load int,\n cruising_speed int,\n range_miles int,\n pressurized varchar\n)\n\n","output":"SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = 'M80'"},{"instruction":"รหัสวอร์ดสุดท้ายที่คนไข้ 030-44598 เข้ารับการรักษาในโรงพยาบาลครั้งนี้คืออะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-44598' AND patient.hospitaldischargetime IS NULL) ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"25 ปี มนต์เพลงคาราบาวจัดขึ้นที่ไหน","input":"","output":"อิมแพ็ค อารีน่า เมืองทองธานี"},{"instruction":"วสันต์ โชติกุล เรียนศิลปะ จบการศึกษาจากที่ไหน","input":"","output":"วิทยาลัยเพาะช่าง"},{"instruction":"หลักสูตรไหนที่มี 11 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 11 AND department = 'EECS'"},{"instruction":"ปลากรายถือว่าเป็นปลาน้ำจืดชนิดหนึ่งที่จัดอยู่ในวงศ์ของปลาชนิดใด","input":"","output":"วงศ์ปลากราย (Notopteridae)"},{"instruction":"คำนวนระยะเวลาที่นอนรักษาในโรงพยาบาลครั้งที่ 1 ของผู้ป่วยหมายเลข 027-107035","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '027-107035' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ต้นชุมเห็ดเทศมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Senna alata L."},{"instruction":"ลัทธ์กมล ปิ่นโรจน์กีรติ โด่งดังผลงานโฆษณาอะไร","input":"","output":"สก๊อตเบอร์รี่"},{"instruction":"ตั้งแต่ผู้ป่วยรายที่ 018-20179 เข้ารับการรักษาในโรงพยาบาลผ่านมากี่ชั่วโมงแล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaldischargetime IS NULL"},{"instruction":"มีคุณสมบัติอะไรบ้าง","input":"","output":"ลวดลาย\/ดีไซน์เเบบพื้นผิวมีลาย"},{"instruction":"ตรีชฎา เพชรรัตน์ ชื่อเล่นเดิมว่าอะไร","input":"","output":"บอย"},{"instruction":"คำตอบสั้นที่ประกอบด้วย 'ปัญหาเดียวกัน' ค้นหาโพสต์คำตอบสั้นพิเศษที่มีวลี 'ปัญหาเดียวกัน' เหล่านี้มักเป็นคำตอบแบบไม่ได้ตอบและมีคุณภาพต่ำมาก","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", Body FROM Posts WHERE PostTypeId = 2 AND LENGTH(Body) <= 100 AND (Body LIKE '%can you help%')"},{"instruction":"รับผู้ใช้ทั้งหมดของตำแหน่งที่กำหนด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName FROM Users WHERE Location IN (SELECT DISTINCT (Location) FROM Users WHERE Location LIKE '%urgaon%')"},{"instruction":"คำตอบคุณภาพต่ำความยาวมาก","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", OwnerUserId AS \"user_name\", Score AS \"score\", LENGTH(Body) AS \"length\", Score * LENGTH(Body) AS \"weighted\" FROM Posts WHERE PostTypeId = 2 AND LENGTH(Body) >= 15000 AND Score <= 25 AND CommunityOwnedDate IS NULL ORDER BY 'weighted' DESC LIMIT 1000"},{"instruction":"ให้จำนวนคนไข้ที่ได้เข้ารักษาในโรงพยาบาล เมื่อ 1 ปีที่ผ่านมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-1 year')"},{"instruction":"ค่าเฉลี่ยจำนวนการตอบกลับขึ้นอยู่กับวันในสัปดาห์ที่โพสต์คำถาม","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH tmp AS (SELECT AnswerCount AS ACount, Period = TIME_TO_STR(CreationDate, '%W') FROM Posts WHERE PostTypeId = 1) SELECT Period, AVG(CAST(ACount AS FLOAT)) FROM tmp GROUP BY Period ORDER BY Period"},{"instruction":"เดอะฟอกออฟวอร์ สร้างขึ้นปีอะไร","input":"","output":"พ.ศ. 2546"},{"instruction":"จำนวนคำถามที่ถามใ���วันจันทร์","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT * FROM PostHistory AS p WHERE p.PostHistoryTypeId = 35 AND p.CreationDate BETWEEN '2016-10-18 00:00:00' AND '2018-10-18 23:59:59'"},{"instruction":"นักร้องนำวงซิลิฟูลส์ ได้ลาออกจากวงด้วยสาเหตุอะไร","input":"","output":"ประสบอุบัติเหตุจากการเล่นฟุตบอล"},{"instruction":"สะพานโกลเดนเกตถูกสร้างขึ้นในสมัยประธานาธิบดีคนใด","input":"","output":"ประธานาธิบดีแฟรงคลิน ดี. รูสเวลท์"},{"instruction":"คำนวณระยะเวลาที่ผู้ป่วยหมายเลข 93104 พักรักษาตัวครั้งล่าสุดในโรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 93104 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"พระบาทสมเด็จพระมงกุฎเกล้าเจ้าอยู่หัวทรงสร้างวังเทวะเวสม์ใครผู้ใด","input":"","output":"สมเด็จพระเจ้าบรมวงศ์เธอ พระองค์เจ้าเทวัญอุไทยวงศ์ กรมพระยาเทวะวงศ์วโรปการ"},{"instruction":"จำนวนคำตอบของผู้ใช้ตั้งแต่วันที่ระบุ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.OwnerUserId, COUNT(p.Id) AS \"number_of_answers\" FROM Posts AS p WHERE DATEDIFF(day, p.CreationDate, GETDATE()) <= 90 GROUP BY p.OwnerUserId ORDER BY COUNT(p.Id) DESC"},{"instruction":"ครั้งแรกเกี่ยวกับโศกนาฏกรรม ชื่ออะไร","input":"","output":"เฮย์เซล"},{"instruction":"นักร้องใหม่ชื่อว่าอะไร","input":"","output":"เบนจามิน จุง ทัฟเนล"},{"instruction":"ไอโฟนรุ่นที่สองใช้อะไร","input":"","output":"UMTS และ HSDPA"},{"instruction":"ผู้ป่วยราย 006-43795 เปลี่ยนแปลงน้ำหนักที่วัดได้ในวันที่ 2103-12-18 เวลา 05:43:00 เทียบกับค่าที่วัดได้ในวันที่ 2103-08-01 เวลา 17:39:00 เท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-43795') AND NOT patient.admissionweight IS NULL AND patient.unitadmittime = '2103-12-18 05:43:00') - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-43795') AND NOT patient.admissionweight IS NULL AND patient.unitadmittime = '2103-08-01 17:39:00')"},{"instruction":"คะแนนชื่อเสียงเฉลี่ยของผู้ใช้ SO ในสหราชอาณาจักรที่มีคะแนนตั้งแต่ 15 ขึ้นไป","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT AVG(Reputation) AS \"average_reputation\", COUNT(Id) AS \"total_users\" FROM Users WHERE LOWER(Location) LIKE '%united kingdom' AND Reputation >= 15"},{"instruction":"สำราญ แพทยกุล ดำรงตำแหน่งผู้บังคับบัญชา กรมทหารราบที่ 31 รักษาพระองค์ ระหว่างปีอะไร","input":"","output":"พ.ศ. 2500 - 2504"},{"instruction":"เพิร์ลแจมเป็นวงดนตรีสัญชาติใด","input":"","output":"อเมริกัน"},{"instruction":"คำถามที่ไม่มีคำตอบและมีคะแนนเป็น 0 คำถามที่สามารถทำเครื่องหมายว่ามีคำตอบได้โดยการโหวตคำถามที่ตอบด้วยตัวเอง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\" FROM Posts AS q WHERE q.PostTypeId = 1 AND q.ClosedDate IS NULL AND q.AcceptedAnswerId IS NULL AND q.AnswerCount > 0 AND EXISTS(SELECT a.Id FROM Posts AS a WHERE a.Score = 0 AND a.ParentId = q.Id) AND NOT EXISTS(SELECT a.Id FROM Posts AS a WHERE a.Score > 0 AND a.ParentId = q.Id) ORDER BY q.Id DESC"},{"instruction":"ผู้ใช้ที่มีชื่อเสียงมากที่สุดจากไอร์แลนด์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation FROM Users WHERE Location LIKE '%Ireland%' AND Reputation > 8000 ORDER BY Reputation DESC"},{"instruction":"วอลเลย์บอลชายชิงแชมป์นอร์เซกา จัดทุกๆกี่ปี","input":"","output":"2 ปี"},{"instruction":"เลิฟเกม เป็นเพลงที่เท่าไร","input":"","output":"เพลงที่ 4"},{"instruction":"มีรายชื่อของคาบเรียนที่ไม่มีห้องปฏิบัติการหรือเปล่า","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N'"},{"instruction":"เพราะเหตุใดจึงสร้างละครเรื่องกามเทพออกศึก ?","input":"","output":"เพื่อฉลองการครบรอบสี่สิบเจ็ดปีของช่อง 3"},{"instruction":"คะแนนเฉลี่ยต่อการรับชมร้อยครั้ง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH counts_cte AS (SELECT LAST_DATE_OF_MONTH(p.CreationDate) AS Cmonth, SUM(Score) AS Score, SUM(ViewCount) AS Views FROM Posts AS p WHERE PostTypeId = 1 GROUP BY LAST_DATE_OF_MONTH(p.CreationDate)) SELECT Cmonth, 100 * (CAST(Score AS FLOAT)) \/ (CAST(Views AS FLOAT)) AS \"score_per_view\" FROM counts_cte ORDER BY Cmonth"},{"instruction":"การชำระเงินครั้งแรกคือวันที่เท่าใด","input":"CREATE TABLE payment (\n payment_id number,\n customer_id number,\n staff_id number,\n rental_id number,\n amount number,\n payment_date time,\n last_update time\n)\n\n","output":"SELECT payment_date FROM payment ORDER BY payment_date LIMIT 1"},{"instruction":"เรียงลำดับสมาชิกตามจำนวนผู้เข้าชม","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Views FROM Users ORDER BY Views DESC"},{"instruction":"สมาชิกของเดอะบีเทิลส์คนใดทำหน้าที่มือกีต้าร์","input":"","output":"จอร์จ แฮร์ริสัน"},{"instruction":"ปลากะพงลายเป็นปลาน้ำกร่อยจัดอยู่ในวงศ์ของปลาประเภทใด","input":"","output":"วงศ์ปลาเสือตอ (Datnioididae)"},{"instruction":"ชะมดเช็ด มีหางวงสีดำอย่างไร","input":"","output":"6-9 ปล้อง"},{"instruction":"ผู้ใช้ที่มีข้อมูล \"เกี่ยวกับฉัน\" มากกว่า 3,000 ตัวอักษร","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", LENGTH(AboutMe) AS \"Length of About Me\", AboutMe FROM Users WHERE LENGTH(AboutMe) > 3000 ORDER BY LENGTH(AboutMe) DESC"},{"instruction":"รายวิชาภาษาโปรตุเกสขั้นสูงไหนที่ได้ 8 หน่วยกิต แสดงให้ฉันเห็นได้หรือไม่","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Advanced Portuguese%' OR name LIKE '%Advanced Portuguese%') AND credits = 8"},{"instruction":"สถานีรถไฟชุมทางเขาชุมทอง เป็นสถานีรถไฟระดับอะไร","input":"","output":"ระดับ 3"},{"instruction":"เงาเสน่หา กำกับการแสดงโดยใคร","input":"","output":"องอาจ สิงห์ลำพอง"},{"instruction":"สตาร์อัลไลแอนซ์ ก่อตั้งขึ้นวันที่เท่าไร","input":"","output":"14 พฤษภาคม ค.ศ. 1997"},{"instruction":"ไข้ที่ 1 ผู้ป่วย 25814 เข้ารับที่โรงพยาบาลครั้งแรกตั้งแต่ 2101 เมื่อไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 25814 AND STRFTIME('%y', admissions.admittime) >= '2101' ORDER BY admissions.admittime LIMIT 1"},{"instruction":"สตีเฟน เคลลี เป็นนักฟุตบอลประเทศอะไร","input":"","output":"ไอร์แลนด์เหนือ"},{"instruction":"การคัดพลดับเบิลยูดับเบิลยูอีกลับมาคัดพลอีกครั้งเมื่อใด","input":"","output":"วันที่ 19 กรกฎาคม พ.ศ. 2559"},{"instruction":"ชะนีแก้มเหลือง น้ำหนักเมื่อโตเต็มที่ประมาณเท่าไร","input":"","output":"5.75 กิโลกรัม"},{"instruction":"นพ. เอริก ฟอร์แมน แสดงโดยใคร","input":"","output":"โอมาร์ เอพส์"},{"instruction":"ผู้ป่วยเลขที่ 004-7984 มาโรงพยาบาลจริงหรือไม่ถึง 2102","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '004-7984' AND STRFTIME('%y', patient.hospitaladmittime) <= '2102'"},{"instruction":"ผู้ป่วย 016-22566 ที่เคยมานอนโรงพยาบาลครั้งแรกเมื่อ 2 ปีก่อนที่ผ่านมา ครั้งนั้นเข้ามานอนด้วยวิธีการไหนครับ","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '016-22566' AND patient.hospitaladmitsource = 'direct admit' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"อาร์เธอร์ อีแวนส์ เป็นคนประเทศอะไร","input":"","output":"อังกฤษ"},{"instruction":"อำเภอกัลยาณิวัฒนาจัดตั้งขึ้นเมื่อ พ.ศ. ใด","input":"","output":"พ.ศ. 2552"},{"instruction":"อาสนวิหารวาน ตั้งอยู่ที่ไหน","input":"","output":"ตั้งอยู่ที่เมืองวาน จังหวัดมอร์บีอ็อง แคว้นเบรอตาญ"},{"instruction":"บริษัทการค้ากับแอฟริกาและหมู่เกาะอินเดียของสกอตแลนด์มีชื่อเรียกอีกชื่อหนึ่งว่าอะไร","input":"","output":"บริษัทดาเรียนสกอติช"},{"instruction":"ผู้ป่วยหมายเลข 594 อายุเท่าไหร่ในระหว่างที่เข้ารับการรักษาในโรงพยาบาลครั้งล่าสุด?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT admissions.age FROM admissions WHERE admissions.subject_id = 594 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"50 ความคิดเห็นที่ได้รับการโหวตสูงสุดในเดือนพฤศจิกายน","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Comments WHERE CreationDate BETWEEN '2012-11-01' AND '2012-11-30' ORDER BY Score DESC LIMIT 50"},{"instruction":"ภาษาเอิร์สยา อยู่รัฐอะไร","input":"","output":"สาธารณรัฐมอร์โดเวีย"},{"instruction":"แอร์เคบีแซด มีอีกชื่อหนึ่งว่าอะไร","input":"","output":"แอร์กานบาวซา"},{"instruction":"มีขนาดของสินค้าอยู่เท่าไร","input":"","output":"ขนาด W1830 x H2440 หนา 6 mm."},{"instruction":"วิธีรับประทานยาอมนิโคตินคืออะไร","input":"CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\n","output":"SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'nicotine lozenge'"},{"instruction":"ท้าวอินทรสุริยา เกิดเมื่อวันที่เท่าไหร่","input":"","output":"10 ธันวาคม พ.ศ. 2428"},{"instruction":"เลือก * จากผู้ใช้ที่ id เหมือน 'sunny%';","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT * FROM Users WHERE Id LIKE '1100%'"},{"instruction":"ราชวงศ์ออเรนจ์-นัสเซาเป็นราชวงศ์ของอาณาจักรใด","input":"","output":"อาณาจักรเนเธอร์แลนด์"},{"instruction":"ถาวร วิรัฒน์จันทร์ เริ่มเล่นในอาชีพที่ไหน","input":"","output":"กอล์ฟเอเชียนทัวร์"},{"instruction":"Rep ที่ได้จากการถามซ้ำ http:\/\/meta.stackexchange.com\/questions\/237286\/how-to-find-data-on-dupes-in-sp","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT * FROM Tags WHERE TagName LIKE 'reg%'"},{"instruction":"ปล้นอึดท้ายครัว ซึ่งสร้างเค้าโครงเรื่องพื้นฐานโดยใคร","input":"","output":"มิตเชลล์ แคปเนอร์"},{"instruction":"วิยะดา อุมารินทร์ ชื่อจริงว่าอะไร","input":"","output":"วิยะดา ตรียะกุล"},{"instruction":"นิราศสองภพ เป็นละครโทรทัศน์ไทยแนวอะไร","input":"","output":"ดราม่า-อิงประวัติศาสตร์"},{"instruction":"จำนวนผู้ป่วยที่ออกจากโรงพยาบาลจนถึงปี 2103","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) <= '2103'"},{"instruction":"อากิเลส โฮเซ กุซมัน มาตูเตหยุดชกไปกี่ปี","input":"","output":"3 ปี"},{"instruction":"คำร้องต้นฉบับภาษาฝรั่งเศสของเลมีเซราบล์โดยใคร","input":"","output":"อัลเลง บูบลิลและฌอง-มาร์ก นาเตล"},{"instruction":"734 มีกี่ที่","input":"CREATE TABLE aircraft (\n aircraft_code varchar,\n aircraft_description varchar,\n manufacturer varchar,\n basic_type varchar,\n engines int,\n propulsion varchar,\n wide_body varchar,\n wing_span int,\n length int,\n weight int,\n capacity int,\n pay_load int,\n cruising_speed int,\n range_miles int,\n pressurized varchar\n)\n\n","output":"SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = '734'"},{"instruction":"คำว่า \"โตเกียว\" หมายถึงอะไร","input":"","output":"นครหลวงตะวันออก"},{"instruction":"ยุทธการที่ป่าเฮือร์ทเกิน รบกันระหว่างกองทัพอะไร","input":"","output":"กองทัพอเมริกันและกองทัพเยอรมัน"},{"instruction":"ในปีค.ศ. 1981 องค์การยูเนสโก ได้ประกาศว่า ?","input":"","output":"โรงละครเป็นมรดกโลกร่วมกับประตูชัยแห่งออร็องฌ์"},{"instruction":"เพชรเม็ดงาม: คำถามที่ได้รับการรีวิวในระดับต่ำที่สุดที่มีคะแนน 50 คะแนนขึ้นไป","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Posts.Id AS \"post_link\", Posts.OwnerUserId AS \"user_link\", Score, ViewCount, Score * 1000 \/ ViewCount AS \"Score per Thousand Views\" FROM Posts WHERE Score >= 50 AND PostTypeId = 1 ORDER BY ViewCount LIMIT 1000"},{"instruction":"วันพีซ ฉบับอนิเมะ ออกอากาศทางช่องอะไร","input":"","output":"ฟูจิทีวี"},{"instruction":"ผู้ใช้ เรียงตามจำนวนการแก้ไขแท็ก","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT UserId AS \"user_link\", COUNT(Id) FROM PostHistory WHERE PostHistoryTypeId = 6 GROUP BY UserId ORDER BY COUNT(Id) DESC"},{"instruction":"น้ำอัดลมมีแอลกอฮอล์หรือไม่","input":"","output":"ไม่มีส่วนผสมของแอลกอฮอล์"},{"instruction":"การแก้ไขแท็ก ที่ไม่มีการเปลี่ยนแปลง","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT 'site:\/\/posts\/' + CAST(ph.PostId AS TEXT) + '\/revisions' AS \"revision_history\" FROM PostHistory AS ph WHERE (ph.PostHistoryTypeId IN (6, 9)) AND (ph.Text = '')"},{"instruction":"ดนตรีใช้ในด้านใดได้บ้าง","input":"","output":"ด้านสุนทรียศาสตร์ การสื่อสาร ความบันเทิง รวมถึงใช้ในงานพิธีการต่าง ๆ ได้"},{"instruction":"ผู้ใช้งาน Stack Overflow ชั้นนำที่อยู่ใน Toru","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE LOWER('%toru%') ORDER BY Reputation DESC"},{"instruction":"ผู้ป่วยหมายเลข 7476 เข้ามาที่โรงพยาบาลผ่านการรับตัวฉุกเฉินเมื่อใด ครั้งล่าสุดคือปีที่แล้วไหม","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 7476 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"เจย์ แมนูเอล คือใคร","input":"","output":"ผู้ควบคุมด้านศิลป์จากรายการ อเมริกาส์เน็กซต์ท็อปโมเดล"},{"instruction":"ออกอากาศครั้งแรกวันที่เท่าไร","input":"","output":"29 สิงหาคม ค.ศ. 2005"},{"instruction":"เจ้ากรมอู่ทหารเรือคนปัจจุบันคือใคร","input":"","output":"พล.ร.ท.มิ่ง อิ่มวิทยา"},{"instruction":"ตั้งแต่วันที่ผู้ป่วย ID 015-59552 เข้ารับการรักษาครั้งแรก จนถึงวันนี้ ผ่านมากี่วันแล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '015-59552' AND patient.hospitaldischargetime IS NULL"},{"instruction":"จาณักยะ เป็นที่ปรึกษาให้ใคร","input":"","output":"พระอาจารย์ที่ปรึกษาส่วนพระองค์ของกษัตริย์อินเดีย"},{"instruction":"อำเภอกะพ้อ ห่างจากอำเภอเมือง กี่กิโลเมตร","input":"","output":"68 กิโลเมตร"},{"instruction":"ประเทศบาร์เบโดส เข้าร่วมกีฬาอะไร","input":"","output":"กีฬาโอลิม"},{"instruction":"ปัจจุบันมีผู้ป่วยอายุ 40 ปี จำนวนเท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 40 AND 49"},{"instruction":"เกม โดตา 2 เป็นแนวเกมอะไร","input":"","output":"โมบา"},{"instruction":"ไรอัน ซีเครสต์ รายการวิทยุที่ออกอากาศ ทางคลื่นอะไร","input":"","output":"คลื่น KIIS-FM"},{"instruction":"วันครูแห่งชาติครั้งแรกกำหนดขึ้นโดยใคร","input":"","output":"คณะรัฐมนตรี"},{"instruction":"แวมไพร์ อิน บรู๊คลิน เป็นภาพยนตร์แนวอะไร","input":"","output":"แอคชั่น-เฮอร์เรอร์"},{"instruction":"ความท้าทายที่ได้รับการตอบโดย Shaggy เเละ ETHProductions","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id FROM Posts AS a WHERE EXISTS(SELECT 1 FROM Posts WHERE ParentId = a.Id AND OwnerUserId = 58974) AND EXISTS(SELECT 1 FROM Posts WHERE ParentId = a.Id AND OwnerUserId = 42545)"},{"instruction":"ณภัทร ภู่ประเสริฐ ปัจจุบันเล่นให้กับสโมสรอะไร","input":"","output":"สโมสรฟุตบอล สมุทรปราการ เอฟซี"},{"instruction":"เป้งดอย ปลายสุดของทางใบมีใบย่อยเท่าไร","input":"","output":"3 ใบ"},{"instruction":"แนวร่วมประชาชนซาบะฮ์ตั้งอยู่ที่ใด","input":"","output":"รัฐซาบะฮ์"},{"instruction":"บุญชง วีสมหมาย เสียชีวิตเมื่อไร","input":"","output":"19 เมษายน พ.ศ. 2546"},{"instruction":"คิเซคิ \/ นัมเบอร์วัน มีรูปแบบยังไง","input":"","output":"รูปแบบของดับเบิ้ล เอ ไซด์ ซิงเกิล"},{"instruction":"มีโครงการสำหรับ 489 หรือไม่ ?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT has_projects FROM course WHERE department = 'EECS' AND number = 489"},{"instruction":"คะแนนโหวตสูงสุด ความคิดเห็นที่ไม่เหมือนกัน","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Score, Text FROM Comments WHERE Text LIKE '%faq#vote-differences%' ORDER BY Score DESC LIMIT 10"},{"instruction":"สร้างข้อมูลตารางอินเด็กซ์ที่กลับด้านสำหรับ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT * FROM Users WHERE LastAccessDate LIKE '%2018%'"},{"instruction":"จำนวนโพสต์ที่มีเงินค่าตอบแทนเริ่มต้นและสิ้นสุด","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"WITH opened AS (SELECT PostId FROM Votes WHERE VoteTypeId = 8), closed AS (SELECT PostId FROM Votes WHERE VoteTypeId = 9) SELECT COUNT(*) FROM (SELECT * FROM opened INTERSECT SELECT * FROM closed) AS q"},{"instruction":"ปลาซิวแก้วถือว่าเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาหลังเขียว (Clupeidae)"},{"instruction":"สโตน เคยเป็นที่นิยมใช้ในประเทศอะไร","input":"","output":"ประเทศเครือจักรภพแห่งชาติ"},{"instruction":"ความเร็วสูงสุดที่ตะวันตก","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT Q.Id AS \"post_link\", Q.CreationDate AS Asked, A.LastEditDate AS Answered, CAST((JULIANDAY(A.LastEditDate) - JULIANDAY(Q.CreationDate)) AS INT) AS Seconds FROM Posts AS Q, Posts AS A WHERE A.ParentId = Q.Id AND A.OwnerUserId != Q.OwnerUserId AND A.OwnerUserId >= 1 AND Q.OwnerUserId >= 1 AND A.LastEditDate >= Q.CreationDate ORDER BY Seconds LIMIT 100"},{"instruction":"ส่งคืนชื่อและรหัสของลูกค้าที่มี TN ในที่อยู่โดยใช้แผนภูมิแท่ง และจัดเรียงตามลำดับจากน้อยไปมากตามแกน y","input":"CREATE TABLE Customers (\n customer_id INTEGER,\n payment_method_code VARCHAR(10),\n customer_code VARCHAR(20),\n customer_name VARCHAR(80),\n customer_address VARCHAR(255),\n customer_phone VARCHAR(80),\n customer_email VARCHAR(80)\n)\n\n","output":"SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE \"%TN%\" ORDER BY customer_id"},{"instruction":"แท่งกราฟสำหรับหมายเลขโทรศัพท์ของพนักงานแต่ละคนคืออะไร? ฉันต้องการรายการตามแกน y จากน้อยไปมาก","input":"CREATE TABLE Employee (\n EmployeeId integer,\n LastName varchar(20),\n FirstName varchar(20),\n Title varchar(30),\n ReportsTo integer,\n BirthDate datetime,\n HireDate datetime,\n Address varchar(70),\n City varchar(40),\n State varchar(40),\n Country varchar(40),\n PostalCode varchar(10),\n Phone varchar(24),\n Fax varchar(24),\n Email varchar(60)\n)\n\n","output":"SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY COUNT(Phone) DESC"},{"instruction":"ทรงอภิเษกสมรสกับผู้ใด","input":"","output":"เจ้าชายฟิลิปแห่งออสเตรีย"},{"instruction":"จำนวนการโหวตลบและการโหวตบวกต่อเดือน","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT LAST_DATE_OF_MONTH(CreationDate), SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS downvotes, SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS upvotes, ROUND(1.0 * SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) \/ SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END), 3) AS ratio FROM Votes WHERE VoteTypeId IN (2, 3) GROUP BY LAST_DATE_OF_MONTH(CreationDate) ORDER BY LAST_DATE_OF_MONTH(CreationDate)"},{"instruction":"ความคิดเห็นยอดนิยมตลอดกาล","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)","output":"SELECT PostId AS \"post_link\", Score, Text FROM Comments ORDER BY Score DESC LIMIT 250"},{"instruction":"กบฏวังหลวง มีผู้นำโดยใคร","input":"","output":"นายปรีดี พนมยงค์"},{"instruction":"ถนนเจ้าคุณทหาร อยู่จังหวัดอะไร","input":"","output":"กรุงเทพมหานคร"},{"instruction":"รูปแบบเอกสารใช้ได้หลายระบบชื่อเรียกภาษาอังกฤษชื่อว่าอะไร","input":"","output":"portable document format (ย่อ: pdf)"},{"instruction":"ชาวบอสเนียในสหภาพโซเวียต","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT u.DisplayName, u.Location FROM Users AS u WHERE u.Location LIKE '%Bosnia%' ORDER BY u.Location"},{"instruction":"ตระกูลทาเกดะ ตั้งโดยใคร","input":"","output":"มินาโมโตะ โนะ โยชิกิโยะ"},{"instruction":"เปอร์เซ็นต์ของโพสต์ที่ปิดเนื่องจากเหตุผลที่ปิดคือโพสต์ที่ไม่เกี่ยวข้อง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS \"r1\" FROM Posts AS q WHERE q.PostTypeId = 1"},{"instruction":"จำนวนคำถามที่ซ้ำกันทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS count FROM Posts WHERE PostTypeId = 2"},{"instruction":"ส่งกลับชื่อของภาพยนตร์ที่ได้รับการจัดระดับเรท R","input":"CREATE TABLE film (\n film_id number,\n title text,\n description text,\n release_year time,\n language_id number,\n original_language_id number,\n rental_duration number,\n rental_rate number,\n length number,\n replacement_cost number,\n rating text,\n special_features text,\n last_update time\n)\n\n","output":"SELECT title FROM film WHERE rating = 'R'"},{"instruction":"โรงละครแห่งออร็องฌ์อยู่ประเทศอะไร ?","input":"","output":"ฝรั่งเศส"},{"instruction":"รีการ์ดู ปึไรรา เรียกสั้นว่าอะไร","input":"","output":"รีการ์ดู"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"กระจกระเบียง"},{"instruction":"ศุทธนะ ธีวีระปัญญาจบการศึกษาอะไร","input":"","output":"รัฐศาสตร์บัณฑิต คณะรัฐศาสตร์ จุฬาลงกรณ์มหาวิทยาลัย"},{"instruction":"นมเปรี้ยวมีความเป็นกรด-เบสอยู่ที่เท่าไหร่","input":"","output":"3.8-4.6"},{"instruction":" วิลลี เม็สเซอร์ชมิท และโรแบร์ท ลุสเซอร์ ทำงานที่ใด ?","input":"","output":"Bayerische Flugzeugwerke"},{"instruction":"ฟุจิวะระ โนะ เคนชิ เสียชีวิตในวันที่เท่าไร","input":"","output":"16 ตุลาคม 1570"},{"instruction":"เครื่องดื่มที่นำมาใช้ทดแทนนมมีอะไรบ้าง","input":"","output":"นมถั่วเหลือง นมข้าว นมข้าวโพด นมแอลมอนด์"},{"instruction":"มะตาด มีชื่อพื้นเมืองอื่น ๆ อีกดังนี้","input":"","output":"ส้มปรุ ส้านกว้าง ส้านท่า ส้านใหญ่ (สุราษฎร์ธานี) ส้านป้าว (เชียงใหม่) แส้น (ตรัง, สงขลา)"},{"instruction":"สำนักงานคณะกรรมการนโยบายเขตพัฒนาพิเศษภาคตะวันออก จัดตั้งขึ้นเมื่อไร","input":"","output":"อังคารที่ 15 พฤษภาคม พ.ศ. 2561"},{"instruction":"ในหลักสูตร ANTHRCUL ระดับ 500 หลักสูตรใดบ้างที่ได้ 17 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE credits = 17 AND department = 'ANTHRCUL' AND number < 500 + 100 AND number >= 500"},{"instruction":"กาปรี อยู่อ่าวอะไร","input":"","output":"อ่าวเนเปิลส์"},{"instruction":"ในหลักสูตรระดับ ANTHRCUL 500 หลักสูตรใดบ้างที่เป็นหลักสูตร 17 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE credits = 17 AND department = 'ANTHRCUL' AND number < 500 + 100 AND number >= 500"},{"instruction":"พระเจ้าวรวงศ์เธอ กรมหมื่นอนุพงษ์จักรพรรดิ์ มีชีวิตอยู่ในช่วงไหน","input":"","output":"6 กันยายน พ.ศ. 2421 - 14 กรกฎาคม พ.ศ. 2475"},{"instruction":"แท็กทั้งหมดจัดเรียงจากการใช้งานมากไปหาน้อย","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT TagName, 'count' FROM Tags ORDER BY 'count' DESC"},{"instruction":"คำถามยอดนิยมที่ยังไม่มีคำตอบที่ได้รับการยอมรับ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.ViewCount, p.Id AS \"Post Id\", p.Title, p.AnswerCount FROM Posts AS p WHERE p.PostTypeId = 1 AND p.AcceptedAnswerId IS NULL AND p.ClosedDate IS NULL AND p.CommunityOwnedDate IS NULL AND p.AnswerCount = 0 ORDER BY p.ViewCount DESC LIMIT 100"},{"instruction":"ศูนย์สื่อมวลชนโอลิมปิกลอนดอน เปิดอย่างเป็นทางการเมื่อไหร่","input":"","output":"27 ม��ถุนายน พ.ศ. 2555 (ค.ศ. 2012)"},{"instruction":"เขาได้เสนอให้ประหารชีวิตนักโทษในช่วงการปฏิวัติฝรั่งเศสโดยวิธีใด ?","input":"","output":"โดยการบั่นคอ"},{"instruction":"ก็อดซิลลา ปะทะ สายพันธุ์ก็อดซิลลาต่างดาว เป็นภาพยนตร์แนวอะไร","input":"","output":"แนววิทยาศาสตร์ไคจู"},{"instruction":"สาธารณรัฐเอกวาดอร์ เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูร้อนครั้งที่ 26 ที่เมืองอะไร","input":"","output":"เมืองแอตแลนตา"},{"instruction":"ผู้ป่วย 12917 เข้าโรงพยาบาลโดยการโอนย้ายจากโรงพยาบาล\/โรงพยาบาลพิเศษ ตั้งแต่ปี 2103 เป็นครั้งสุดท้ายเมื่อใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 12917 AND admissions.admission_location = 'transfer from hosp\/extram' AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ขนาดของเครื่อง 414 เป็นเท่าไร","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 414"},{"instruction":"ใครเป็นหัวหน้าคระฝ่ายญี่ปุ่น ?","input":"","output":"นายโซสุเกะ มัดซูโอกะ รัฐมนตรีว่าการกระทรวงต่างประเทศญี่ปุ่น"},{"instruction":"แบร์ กริลมีความชอบอะไร","input":"","output":"การผจญภัย"},{"instruction":"เปอร์เซ็นต์ของคำถามที่ได้รับคำตอบที่ยอมรับได้ขึ้นอยู่กับวันในสัปดาห์ที่โพสต์คำถาม","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH tmp AS (SELECT Id, AcceptedAnswerId AS Acc, Period = TIME_TO_STR(CreationDate, '%W') FROM Posts WHERE PostTypeId = 1) SELECT Period, ROUND((COUNT(Acc)) * 100.0 \/ (COUNT(*)), 2) AS percentage FROM tmp GROUP BY Period ORDER BY Period"},{"instruction":"ซีรีส์นี้สร้างสรรค์โดยใคร","input":"","output":"พอล เชอริง"},{"instruction":"เพลี้ยกระโดดสีน้ำตาลทำลายอะไร","input":"","output":"ข้าว"},{"instruction":"บัวชมพู ฟอร์ด ได้แสดงละครโทรทัศน์ ก่อนจะมาเป็นศิลปินในสังกัดอะไร","input":"","output":"สังกัดMusic Cream"},{"instruction":"ผู้ใช้ stackoverflow อันดับต้นๆ ของศรีลังกา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Id) LIKE '%sri lanka%' ORDER BY Reputation DESC"},{"instruction":"ทาชเคนต์ เป็นเมืองหลวงของประเทศใด","input":"","output":"อุซเบกิสถาน"},{"instruction":"วันที่เกิดโศกนาฏกรรม ครั้งแรกวันที่เท่าไร","input":"","output":"ค.ศ. 1985"},{"instruction":"มีระยะเวลาเท่าใดนับตั้งแต่ผู้ป่วย 033-22108 เข้ารับการดูแลในหอผู้ป่วยวิกฤต","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '033-22108' AND patient.unitdischargetime IS NULL"},{"instruction":"จอยดิวิชันคืออะไร","input":"","output":"เป็นวงร็อกอังกฤษ "},{"instruction":"KZ จากผู้ใช้ SO อันดับต้นๆ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%kazakhstan%' OR UPPER(Location) LIKE '%KZ' ORDER BY Reputation DESC"},{"instruction":"อักษรละตินมีที่มาจากไหน","input":"","output":"อักษรละตินมีที่มาจากอักษรคิวมี "},{"instruction":"กรานาโด เอสพาดา เปิดวันที่เท่าไร","input":"","output":"16 ตุลาคม 2549"},{"instruction":"ซเวตัน โซโคลอฟ เกิดวันที่เท่าไร","input":"","output":"31 ธันวาคม ค.ศ. 1989"},{"instruction":"ปลาใบขนุนถือว่าเป็นปลาที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ Lactariidae"},{"instruction":"อี.ที. เพื่อนรัก ออกฉายในปีอะไร","input":"","output":"พ.ศ. 2525"},{"instruction":"วาดแผนภูมิแท่งความสัมพันธ์ระหว่าง ยี่ห้อสินทรัพย์ กับ จำนวนยี่ห้อสินทรัพย์ แสดงในลำดับจากน้อยไปมากตามแกน X","input":"CREATE TABLE Assets (\n asset_id INTEGER,\n maintenance_contract_id INTEGER,\n supplier_company_id INTEGER,\n asset_details VARCHAR(255),\n asset_make VARCHAR(20),\n asset_model VARCHAR(20),\n asset_acquired_date DATETIME,\n asset_disposed_date DATETIME,\n other_asset_details VARCHAR(255)\n)\n\n","output":"SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make"},{"instruction":"น้ำมันพริกคืออะไร","input":"","output":"เป็นเครื่องปรุงอาหารที่ทำจากน้ำมันพืชที่ผสมกับพริก"},{"instruction":"บางคนเหมารวมว่าคนที่ไม่มีศาสนาเป็นอย่างไร","input":"","output":"คนที่ชั่วร้าย"},{"instruction":"ระบุชื่อเชื้อชาติที่แตกต่างกันทั้งหมดตามลำดับพจนานุกรมย้อนกลับ","input":"CREATE TABLE races (\n raceid number,\n year number,\n round number,\n circuitid number,\n name text,\n date text,\n time text,\n url text\n)\n\n","output":"SELECT DISTINCT name FROM races ORDER BY name DESC"},{"instruction":"การกราบที่ใช้สำหรับกราบพระเรียกว่าอย่างไร","input":"","output":"กราบแบบเบญจางคประดิษฐ์"},{"instruction":"50 คอมเมนต์ที่ได้รับโหวตสูงสุดประจำเดือนพฤศจิกายน","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Comments WHERE CreationDate BETWEEN '2012-11-01' AND '2012-11-30' ORDER BY Score DESC LIMIT 50"},{"instruction":"โพสต์ที่ยาวที่สุดสำหรับ Amal Murali","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", LENGTH(Body) - (PATINDEX('%<\/code><\/pre>%', Body) - PATINDEX('%
%', Body)) AS lenwithoutcode FROM Posts ORDER BY 2 DESC LIMIT 20"},{"instruction":"เอเชียนอินดอร์-มาร์เชียลอาร์ตสเกมส์้เป็นการแข่งขันแบบใด","input":"","output":"เป็นการแข่งขันกีฬาในร่มและศิลปะการป้องกันตัว"},{"instruction":"เซตีเนีย ตั้งอยู่ในเขตอะไร","input":"","output":"เขตภูเขา ทางตะวันตกเฉียงเหนือของประเทศ"},{"instruction":"คมพยาบาท เริ่มแรกบทประพันธ์เป็นละครวิทยุของใคร","input":"","output":"คณะกมลพิศมัย"},{"instruction":"Penaeidae แบ่งออกได้เป็นกี่จำพวก","input":"","output":"2 จำพวก"},{"instruction":"หน่วยความจำแฟลช หรือว่าอะไร","input":"","output":"แฟลช"},{"instruction":"จามจุรี เชิดโฉม เข้าสู่วงการอายุเท่าไร","input":"","output":"18 ปี"},{"instruction":"กะพ้อเขาจันทร์ แฉกตรงกลางมีขนาดอย่างไร","input":"","output":"ขนาดใหญ่ที่สุด"},{"instruction":"จาริสกัทซิสมามาสร้างในปีใด","input":"","output":"1964"},{"instruction":"ไอโซเมอร์เรขาคณิต คืออะไร","input":"","output":"เป็นคำที่ใช้ในเคมีอินทรีย์ คำนำหน้า \"ซิส\" และ \"ทรานส์\""},{"instruction":"ผู้ใช้ที่เลื่อนชั้นได้เร็วที่สุดของ X rep ผู้ใช้ที่เลื่อนชั้นได้เร็วที่สุดในจำนวน rep ที่กำหนด","input":"CREATE TABLE VoteTypes (\n    Id number,\n    Name text\n)\n\n","output":"SELECT * FROM VoteTypes"},{"instruction":"คนไข้ที่อยู่ในหอ517 นับตั้งแต่เมื่อ 2 ปีก่อน มีจำนวนเท่าไหร่","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 517 AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"วิศวกร Linux (AboutMe มีคำหลักที่เกี่ยวข้องกับวิศวกร Linux)","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT DISTINCT CONCAT('https:\/\/stackoverflow.com\/users\/', u.Id) AS \"profile_link\", u.DisplayName, u.Reputation, u.Location, u.WebsiteUrl, REPLACE(REPLACE(u.AboutMe, CHAR(13), ''), CHAR(10), '') AS AboutMe FROM Users AS u WHERE (u.AboutMe LIKE '%linux%' OR u.AboutMe LIKE '%ubuntu%' OR u.AboutMe LIKE '%unix%' OR u.AboutMe LIKE '%red hat%' OR u.AboutMe LIKE '%fedora project%' OR u.AboutMe LIKE '%ovirt%') AND (u.AboutMe LIKE '%admin%' OR u.AboutMe LIKE '%engineer%') ORDER BY u.Reputation DESC"},{"instruction":"เกมล่าเกม เป็นภาพยนตร์สัญชาติอะไร","input":"","output":"อเมริกัน"},{"instruction":"ต้นกระทือมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Zingiber zerumbet (L.) Smith. "},{"instruction":"ซังตุสเข้าสู่การแข่งระดับอาชีพตอนอายุเท่าไหร่","input":"","output":"20 ปี"},{"instruction":"จำนวนความคิดเห็นสำหรับคำถาม","input":"CREATE TABLE Comments (\n    Id number,\n    PostId number,\n    Score number,\n    Text text,\n    CreationDate time,\n    UserDisplayName text,\n    UserId number,\n    ContentLicense text\n)\n\n","output":"SELECT UserId FROM Comments WHERE NOT UserId IS NULL GROUP BY UserId ORDER BY COUNT(*) DESC"},{"instruction":"คำถาม X ส่วนใหญ่ในแท็ก","input":"CREATE TABLE TagSynonyms (\n    Id number,\n    SourceTagName text,\n    TargetTagName text,\n    CreationDate time,\n    OwnerUserId number,\n    AutoRenameCount number,\n    LastAutoRename time,\n    Score number,\n    ApprovedByUserId number,\n    ApprovalDate time\n)\n\n","output":"SELECT TOP(100) AS Id, SourceTagName, TargetTagName FROM TagSynonyms AS T WHERE T.SourceTagName LIKE '%' + @Tag + '%'"},{"instruction":"อัลละฮ์เปอลีฮารากันซุลตัน เป็นเพลงอะไร","input":"","output":"เพลงชาติเนอการาบรูไนดารุสซาลาม"},{"instruction":"ในจำนวนวิชาทั้งหมด มีวิชาใดบ้างมูลค่า 14 หน่วยกิต","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 14 AND department = 'EECS'"},{"instruction":"ในปัจจุบันมีฐานะเป็นโบสถ์ประจำเขตแพริชนิกายโรมันคาทอลิก ซึ่งในอดีตเคยมีฐานะเป็น ?","input":"","output":"อาสนวิหารประจำมุขมณฑลออลอรง"},{"instruction":"เอเอช-64 อาพาชีขึ้นบินครั้งแรกเมื่อใด","input":"","output":"วันที่ 30 กันยายน พ.ศ. 2518"},{"instruction":"ฉันสามารถลงเรียนวิชาอะไรได้บ้างที่สามารถได้ 5 หน่วยกิต","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 5 AND department = 'EECS'"},{"instruction":"จำนวนผู้ใช้ที่สร้างขึ้นต่อเดือน","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT * FROM Users LIMIT 10"},{"instruction":"ภาวะสมองตายเป็นบทนิยามทางใด","input":"","output":"ทางนิติศาสตร์และทางแพทยศาสตร์ใช้หมายเอาการตายของบุคคล "},{"instruction":"ลิบเจนถูกรายงานว่าจดทะเบียนกับประเทศใด","input":"","output":"ประเทศรัซเซียและอัมสเตอร์ดัม"},{"instruction":"ปลาทรงเครื่องเป็นปลาที่อยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาตะเพียน (Cyprinidae)"},{"instruction":"เจ้าหญิงชาร์ลอตต์ เป็นลูกคนเดีย��หรือไม่","input":"","output":"สายพระโลหิตเพียงพระองค์เดียว"},{"instruction":"โพสต์ที่เชื่อมโยงไปยัง reddit.com","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT CreationDate, Id AS \"post_link\" FROM Posts WHERE LOWER(Body) LIKE '%reddit.com%' OR LOWER(Body) LIKE '%redd.it%' ORDER BY CreationDate DESC LIMIT 1000"},{"instruction":"การพัฒนาแหล่งน้ำ ตลอดจนดำเนินการตามข้อเสนอแนะของที่ประชุมสหประชาชาติปี 1992 ว่าด้วยสิ่งแวดล้อมและการพัฒนา","input":"","output":" Agenda 21 "},{"instruction":"เวลาใดในแต่ละวันที่ฉันตอบคำถามมากที่สุด","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(p.CreationDate, '%h'), COUNT(*) FROM Posts AS p WHERE p.OwnerUserId = @UserId AND p.PostTypeId = 2 GROUP BY TIME_TO_STR(p.CreationDate, '%h')"},{"instruction":"พระนางชยเทวี เป็นพระมหากษัตริย์หญิงแห่งเจนประเทศอะไร","input":"","output":"จักรวรรดิเขมร"},{"instruction":"มะริดเป็นไม้พื้นเมือง ขึ้นได้ทั่วไปในฟิลิปปินส์ ผลสุกรับประทานได้มีรสชาติเป็นอย่างไร?","input":"","output":"รสหวาน"},{"instruction":"แขวงอิตาบาชิ มีพื้นที่เท่าไร","input":"","output":"32.17 ตารางกิโลเมตร"},{"instruction":"ผลผลิตอะซิทัลดีไฮด์ในปี 1960 คือเท่าใด?","input":"","output":"45,245 ตัน"},{"instruction":"Pt No.12917 เข้ารพ.ครั้งสุดท้ายมาจากโรงพยาบาล\/ห้องฉุกเฉินตั้งแต่ปี 2103 เป็นระยะเวลานานเท่าใด","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 12917 AND admissions.admission_location = 'transfer from hosp\/extram' AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"พระเจ้ากนิษกะคือใคร","input":"","output":"กษัตริย์ที่ปกครองอาณาจักรกุษาณะ"},{"instruction":"นับจำนวนครั้งที่ bupropion hcl ได้ถูกสั่งในปีที่แล้ว","input":"CREATE TABLE prescriptions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    startdate time,\n    enddate time,\n    drug text,\n    dose_val_rx text,\n    dose_unit_rx text,\n    route text\n)\n\n","output":"SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'bupropion hcl' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"โชตาโร อิชิโนโมริมีชื่อเสียงจากการประกอบอาชีพใด","input":"","output":"นักเขียนการ์ตูน"},{"instruction":"ผู้ป่วยหมายเลข 009-10951 มีความสูงจากการวัดล่าสุดในเดือ���นี้เท่าใด","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-10951') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ปลาตะกรับมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Scatophagus argus"},{"instruction":"จำนวนของรายการใน PostHistory","input":"CREATE TABLE PostHistory (\n    Id number,\n    PostHistoryTypeId number,\n    PostId number,\n    RevisionGUID other,\n    CreationDate time,\n    UserId number,\n    UserDisplayName text,\n    Comment text,\n    Text text,\n    ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM PostHistory"},{"instruction":"เกมก็อดออฟวอร์ จัดจำหน่ายโดนค่ายอะไร","input":"","output":"โซนี่คอมพิวเตอร์เอ็นเตอร์เท็นเมนต์"},{"instruction":"รายวิชาเกี่ยวกับพีชคณิตพ้องรูปใดที่ให้ 3 หน่วยกิต","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Homological Algebra%' OR name LIKE '%Homological Algebra%') AND credits = 3"},{"instruction":"การเลือกตั้งสมาชิกสภาแห่งชาติ ใครเป็นผู้ชนะ","input":"","output":"พรรคแรงงานแห่งเกาหลี"},{"instruction":"ผู้ป่วย 022-76925 อายุเท่าไหร่ระหว่างที่ได้รับการรักษาในครั้งสุดท้าย","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.age FROM patient WHERE patient.uniquepid = '022-76925' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"ผู้ป่วยหมายเลข 033-7332 มาพบแพทย์ในปีที่แล้วกี่ครั้ง","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '033-7332' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"ผ่านไปแล้วกี่วันตั้งแต่ครั้งสุดท้ายที่ผู้ป่วย 005-48105 อยู่ที่หอผู้ป่วย 267 ในการเข้ารับการรักษาในโรงพยาบาลปัจจุบัน","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '005-48105' AND patient.wardid = 267 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ชื่อเกมประกาศอย่างทางการเมื่อใด","input":"","output":"13 ตุลาคม พ.ศ. 2553"},{"instruction":"เจ้าหญิงนาเด็จดาแห่งบัลแกเรียสิ้นพระชนเมื่้อไหร่","input":"","output":"15 กุมภาพันธ์ ค.ศ. 1958"},{"instruction":"ชื่อ “เฮราบาร์แบรินี” ตั้งตามชื่อผู้เป็นเจ้าของซึ่งคือตระกูลอะไร","input":"","output":"ตระกูลบาร์แบรินี"},{"instruction":"เหงียน วัน ลิญ เกิดวันที่เท่าไหร่ ?","input":"","output":"1 กรกฎาคม พ.ศ. 2458"},{"instruction":"ส่วนด้านคอนเสิร์ตที่ไดอาน่าไปร่วมแสดงก็คือ ?","input":"","output":"RS MEETING CONCERT STAR MISSION มันส์หลุดโลก"},{"instruction":"กองพลส่งทางอากาศที่ 101ใช้ยุทธวิธีใดในการต้านทานกองทัพเยอรมัน","input":"","output":"ยุทธการตอกลิ่ม"},{"instruction":"ตรงกลางแผงเป็นภาพร่างของพระเยซูถูกแบบไปยังที่บรรจุพระศพ ชายที่มีหนวดที่อยู่ข้างหลังคือ ?","input":"","output":"โจเซฟแห่งอาริมาเธีย"},{"instruction":"คนไข้ 81871 มีสถานะสมรสเป็นอย่างไรในครั้งแรกที่มาพบแพทย์","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 81871 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"ปีที่ผ่านมามีการทำหัตถการปรึกษาโรคหัวใจทั้งหมดกี่ครั้ง?","input":"CREATE TABLE treatment (\n    treatmentid number,\n    patientunitstayid number,\n    treatmentname text,\n    treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'cardiology consultation' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"ตัวอย่าง โลกัส ","input":"","output":"เส้นตรงคือโลกัสของจุดที่อยู่ในระยะห่างเท่ากับสองจุดที่กำหนดตายตัวไว้ หรือจากเส้นขนานสองเส้น"},{"instruction":"ไทยแลนด์ก็อตทาเลนต์ เป็นรายการประเภทอะไร","input":"","output":"รายการเรียลลิตี้โชว์"},{"instruction":"โพสต์ที่โหวตสูงสุดและต่ำสุด","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT 'site:\/\/questions\/' + CAST(Id AS TEXT) AS \"question_with_highest_score\" FROM Posts ORDER BY Score DESC LIMIT 1"},{"instruction":"ลักษณะอุทยานแห่งชาติดอยอินทนนท์ เป็นอย่างไร","input":"","output":"ภูเขาสูงสลับซับซ้อน"},{"instruction":"ไฮดี คลุม ฟอบส์ได้จัดอันดับให้เป็นนางแบบรายได้สูงที่สุดเป็นอันดับเท่าไร","input":"","output":"อันดับ 3"},{"instruction":"แสดงรหัสวิธีการชำระเงินทั้งหมดและจำนวนคำสั่งซื้อสำหรับแต่ละรหัส แสดงเป็นแถบบาร์","input":"CREATE TABLE Invoices (\n    Invoice_ID INTEGER,\n    Order_ID INTEGER,\n    payment_method_code CHAR(15),\n    Product_ID INTEGER,\n    Order_Quantity VARCHAR(288),\n    Other_Item_Details VARCHAR(255),\n    Order_Item_ID INTEGER\n)","output":"SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code"},{"instruction":"เปรียบเทียบคะแนนเฉลี่ยเป็นรายปีของ คำถามและคำตอบ","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT YEAR(CreationDate) AS \"postyear\", CAST(SUM(CASE WHEN PostTypeId = 1 THEN Score ELSE 0 END) AS FLOAT) \/ SUM(CASE WHEN PostTypeId = 1 THEN 1 ELSE 0 END) AS \"q\", CAST(SUM(CASE WHEN PostTypeId = 2 THEN Score ELSE 0 END) AS FLOAT) \/ SUM(CASE WHEN PostTypeId = 2 THEN 1 ELSE 0 END) AS \"a\", CAST(SUM(Score) AS FLOAT) \/ SUM(1) AS \"q&a\" FROM Posts WHERE YEAR(CreationDate) >= 2008 AND ClosedDate IS NULL AND DeletionDate IS NULL AND CommunityOwnedDate IS NULL AND PostTypeId IN (1, 2) GROUP BY YEAR(CreationDate) ORDER BY YEAR(CreationDate)"},{"instruction":"คำถามที่ไม่มีการโหวตเห็นด้วย","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\" FROM Posts AS q WHERE PostTypeId = 1 AND Score > 0 AND ClosedDate IS NULL AND (SELECT COUNT(*) FROM Posts AS a WHERE a.ParentId = q.Id AND a.Score > -1) = 0 AND AcceptedAnswerId IS NULL ORDER BY CreationDate"},{"instruction":"Select * จาก Users.","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT * FROM Users"},{"instruction":"จำนวนโพสต์พร้อมค่าเริ่มต้นและสิ้นสุด","input":"CREATE TABLE Votes (\n    Id number,\n    PostId number,\n    VoteTypeId number,\n    UserId number,\n    CreationDate time,\n    BountyAmount number\n)\n\n","output":"WITH opened AS (SELECT PostId FROM Votes WHERE VoteTypeId = 8), closed AS (SELECT PostId FROM Votes WHERE VoteTypeId = 9) SELECT COUNT(*) FROM (SELECT * FROM opened INTERSECT SELECT * FROM closed) AS q"},{"instruction":"สูญพันธุ์ไปเมื่อใด?","input":"","output":"6.2 ล้านปีก่อน"},{"instruction":"ประเทศเบลเยียม เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูหนาวครั้งที่ 13 แข่งขันที่ประเทศอะไร","input":"","output":"ประเทศสหรัฐอเมริกา"},{"instruction":"ในบรรดาวิชานี้ที่ฉันต้องเลือกมีวิชาใดบ้างที่มีหน่วยกิต 15 หน่วย","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 15 AND department = 'EECS'"},{"instruction":"ผู้ใช้เขียนคำไปทั้งหมดกี่คำแล้ว","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT SUM(LENGTH(Body) - LENGTH(REPLACE(Body, ' ', '')) + 1) AS NumbofWords FROM Posts AS p WHERE p.OwnerUserId = '##UserId##'"},{"instruction":"ผู้ใช้เบต้า RPG.SE ยังคงใช้งานเป็นประจำในเดือนก่อน","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT DisplayName, Reputation FROM Users WHERE CreationDate < '2012\/04\/11' AND LastAccessDate > DATEADD(m, -1, GETDATE()) ORDER BY Reputation DESC"},{"instruction":"โกลด มอแนมีชื่อเต็มว่าอย่างไร","input":"","output":"อ็อสการ์-โกลด มอแน"},{"instruction":"มหาศึกรวมพลังฮีโร่: คาเมนไรเดอร์ ปะทะ ซุปเปอร์เซนไต เป็นภาพยนตร์ที่นำกี่ภาพยนคร์นำมารวมกัน","input":"","output":"2 ภาพยนตร์"},{"instruction":"ผู้คนใช้คอมเมนต์ 'Leaving a half-answer as a comment' อย่างไร","input":"CREATE TABLE Comments (\n    Id number,\n    PostId number,\n    Score number,\n    Text text,\n    CreationDate time,\n    UserDisplayName text,\n    UserId number,\n    ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", * FROM Comments WHERE Text LIKE '%Leaving a half-answer as a comment%'"},{"instruction":"แสดงความคิดเห็นทั้งหมดของผู้ใช้ที่กำหนด","input":"CREATE TABLE Comments (\n    Id number,\n    PostId number,\n    Score number,\n    Text text,\n    CreationDate time,\n    UserDisplayName text,\n    UserId number,\n    ContentLicense text\n)\n\n","output":"SELECT Comments.Text FROM Comments WHERE Comments.UserId = @UserId"},{"instruction":"ก่อตั้งในเมืองลิเวอร์พูลโดยนักร้องนำคือ ?","input":"","output":"เอียน แมคัลลอก"},{"instruction":"วสันต์ โชติกุล เป็นน้องชายของใคร","input":"","output":"อัสนี โชติกุล"},{"instruction":"วัดเศวตฉัตรวรวิหารบรูณะครั้งใหญ่โดยใคร","input":"","output":"พระเจ้าบรมวงศ์เธอ กรมหมื่นสุรินทรรักษ์"},{"instruction":"คำถามยอดนิยมที่ยังไม่มีคำตอบที่จัดอันดับตามจำนวนการดู","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT TOP(50) AS ViewCount FROM Posts WHERE AnswerCount IS NULL ORDER BY ViewCount DESC"},{"instruction":"ต้นยี่โถมีการขยายพันธุ์ในรูปแบบลักษณะใด","input":"","output":"เพาะเมล็ด ตอนกิ่ง หรือการปักชำกิ่ง"},{"instruction":"ในวัยเด็กเขาสนใจในดนตรีโดยเฉพาะเพลงโซลคลาสสิกอย่าง มาร์วิน เกย์ และสตีวี วันเดอร์ ที่มีอิทธิพลต่อเขา ���ขาตัดสินใจที่จะเข้าสู่วงการดนตรีเมื่ออายุได้กี่ปี ?","input":"","output":"16 ปี"},{"instruction":"สหภาพยุโรปวางแผนห้ามการเลี้ยงแบบแบตเตอรีเมื่อใด","input":"","output":"หลัง พ.ศ. 2555"},{"instruction":"จำนวนผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลตั้งแต่ปี  2102.","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE STRFTIME('%y', admissions.admittime) >= '2102'"},{"instruction":"ผู้ใช้ Stack Overflow 2000 อันดับแรกจากเนเธอร์แลนด์จัดตามชื่อเสียง ผู้ใช้ SO 2000 อันดับแรกจากเนเธอร์แลนด์หรือเมืองในเนเธอร์แลนด์","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Position, DisplayName, Reputation, WebsiteUrl, Location, WebsiteUrl, AboutMe, 'http:\/\/stackoverflow.com\/users\/' + CAST(Id AS TEXT(10)) AS ProfileUrl FROM Users WHERE UPPER(Location) LIKE '%NETHERLANDS%' OR UPPER(Location) LIKE '%NEDERLAND%' OR UPPER(Location) LIKE N'%AMSTERDAM%' OR UPPER(Location) LIKE N'%EINDHOVEN%' OR UPPER(Location) LIKE N'%UTRECHT%' OR UPPER(Location) LIKE N'%NIJMEGEN%' OR UPPER(Location) LIKE N'%ROTTERDAM%' OR UPPER(Location) LIKE N'%HAAG%' ORDER BY Reputation DESC LIMIT 2000"},{"instruction":"รัฐบาลเวียดนามอิสระศูนย์กลางตั้งอยู่ที่ใด","input":"","output":"แคลิฟอร์เนีย สหรัฐอเมริกา"},{"instruction":"คริสตัล เกล เกิดวันที่เท่าไร","input":"","output":" 8 มกราคม ค.ศ. 1951"},{"instruction":"โคลด์ สโตน ครีมเมอรี่มาจากประเทศอะไร","input":"","output":"สัญชาติอเมริกัน"},{"instruction":"คนไข้หมายเลข 53176 เพศอะไร","input":"CREATE TABLE patients (\n    row_id number,\n    subject_id number,\n    gender text,\n    dob time,\n    dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 53176"},{"instruction":"เกรกอรี เฮาส์ รับบทโดยใคร","input":"","output":"ฮิวจ์ ลอรี"},{"instruction":"แสดงวันที่นำส่งจริงทั้งหมดและจัดเป็นแท่งตามวันในกราฟแท่ง และจัดเรียงจากล่างขึ้นบนตามแกน Y","input":"CREATE TABLE Bookings (\n    Booking_ID INTEGER,\n    Customer_ID INTEGER,\n    Workshop_Group_ID VARCHAR(100),\n    Status_Code CHAR(15),\n    Store_ID INTEGER,\n    Order_Date DATETIME,\n    Planned_Delivery_Date DATETIME,\n    Actual_Delivery_Date DATETIME,\n    Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Actual_Delivery_Date, COUNT(Actual_Delivery_Date) FROM Bookings ORDER BY COUNT(Actual_Delivery_Date) DESC"},{"instruction":"มูลค่าที่ได้รับการวัดล่าสุดในการเข้าพักโรงพยาบาลครั้งแรกเปรียบเทียบกับมูลค่าที่วัดล่าสุดเป็นอันดับสองที่ได้วัดไว้ในการเข้าพักครั้งแรกนั้นน้ำหนักของผู้ป่วยหมายเลข 006-161415 นั้นแตกต่างกันเท่าใด","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 OFFSET 1)"},{"instruction":"ปล้นอึดท้ายครัว กำกับโดยใคร","input":"","output":"โฮวาร์ด ดัช"},{"instruction":"สมาชิกของเดอะบีเทิลส์คนใดทำหน้าที่ร้องนำและมือเบส","input":"","output":"พอล แม็กคาร์ตนีย์"},{"instruction":"ใครคือผู้ดัดแปลงเลมีเซราบล์ให้เป็นคำร้องภาษาอังกฤษ","input":"","output":"เฮอร์เบิร์ต เครตซเมอร์"},{"instruction":"เปอร์เซ็นของคำถามที่มีคำตอบที่ได้รับการยอมรับ ขึ้นอยู่กับวันในสัปดาห์ที่โพสต์คำถาม","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"WITH tmp AS (SELECT Id, AcceptedAnswerId AS Acc, Period = TIME_TO_STR(CreationDate, '%W') FROM Posts WHERE PostTypeId = 1) SELECT Period, ROUND((COUNT(Acc)) * 100.0 \/ (COUNT(*)), 2) AS percentage FROM tmp GROUP BY Period ORDER BY Period"},{"instruction":"ผู้ใช้ที่ตอบคำถามที่ชัดเจนที่สุด","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)","output":"SELECT A.OwnerUserId AS \"user_link\", COUNT(DISTINCT A.ParentId) AS \"distinct_questions_answered\" FROM Posts AS A WHERE A.PostTypeId = 2 AND A.OwnerUserId > 0 GROUP BY A.OwnerUserId ORDER BY 'distinct_questions_answered' DESC"},{"instruction":"บุญชู 2 น้องใหม่ ทำรายจากภาพยนตร์ได้เท่าไร","input":"","output":"16 ล้านบาท"},{"instruction":"1000 ผู้ใช้อันดับต้นๆของอินเดียและปากีสถาน","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, LOWER(Location) AS CNTRY FROM Users WHERE LOWER(Location) IN ('india', 'pakistan') ORDER BY Reputation DESC LIMIT 10000"},{"instruction":"ในช่วงฤดูร้อน ปี พ.ศ. 2560 เทศบาลนครฮานอยได้ร่วมมือกับหน่วยงานใดเพื่อติดตั้งไฟส่องสว่างทั่วหอคอยสะพานตอนกลางคืน","input":"","output":"บริษัทฟิลิปส์"},{"instruction":"คำตอบที่ได้รับคะแนนเป็นศูนย์","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT a.Id AS \"post_link\", a.Score, a.OwnerUserId AS \"user_link\" FROM Posts AS a, Posts AS q WHERE a.PostTypeId = 2 AND q.PostTypeId = 1 AND a.Score = 0 AND a.ParentId = q.Id AND q.AcceptedAnswerId = a.Id"},{"instruction":"ค้นหาคำที่เกี่ยวข้องกับพลังงานในส่วนเนื้อหาของโพสต์","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE ('body' LIKE '%energy%' OR 'body' LIKE '%energy consum%')"},{"instruction":"มะริด มีชื่อวิทยาศาสตร์ว่าอะไร ?","input":"","output":"Diospyros blancoi"},{"instruction":"อุบัติรักข้ามขอบฟ้า มีเนื้อหาเรื่องเกี่ยวกับอะไร ?","input":"","output":"ความรักของวัยรุ่น 2 คู่ "},{"instruction":"มีการสั่งวิตามินรวมกี่รายการ","input":"CREATE TABLE medication (\n    medicationid number,\n    patientunitstayid number,\n    drugname text,\n    dosage text,\n    routeadmin text,\n    drugstarttime time,\n    drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'multivitamins'"},{"instruction":"พอร์ตแลนด์ ตั้งอยู่ที่ใด","input":"","output":"ตั้งอยู่ทางทิศเหนือของรัฐออริกอน ประเทศสหรัฐอเมริกา"},{"instruction":"ผู้ป่วยที่มีความเสี่ยงอย่างน้อย 2 ข้อต่อไปนี้: ความดันโลหิตสูง; โรคเบาหวานชนิดที่ ii; โรคไตเรื้อรัง; มีประวัติกล้ามเนื้อหัวใจตายหรือโรคหัวใจขาดเลือด; มีประวัติเส้นเลือดในสมองตีบ; โรคหลอดเลือดแดงส่วนปลาย","input":"CREATE TABLE table_test_31 (\n    \"id\" int,\n    \"ejection_fraction_ef\" int,\n    \"macular_disease\" bool,\n    \"systemic\" bool,\n    \"alt\" float,\n    \"iud\" bool,\n    \"condom_with_spermicide\" bool,\n    \"gender\" string,\n    \"meropenem\" bool,\n    \"non_q_wave_myocardial_infarction\" bool,\n    \"hbcab\" bool,\n    \"unstable_angina\" bool,\n    \"birth_control_pills\" bool,\n    \"cystic_fibrosis\" bool,\n    \"hbv_surface_antigen_hbsag\" bool,\n    \"oocytes\" int,\n    \"severe_dry_eyes\" bool,\n    \"afc\" int,\n    \"morphological_characteristics\" bool,\n    \"ovarian_reserve_test\" bool,\n    \"atherectomy\" bool,\n    \"hiv_infection\" bool,\n    \"hormonal_contraceptives\" bool,\n    \"mellitus\" bool,\n    \"poor_ovarian_responder\" bool,\n    \"recurrent_heart_pain\" bool,\n    \"ast\" float,\n    \"piperacillin\" bool,\n    \"coronary_conduit\" bool,\n    \"diabetic\" string,\n    \"elective\" bool,\n    \"ciprofloxacin\" bool,\n    \"colistin\" bool,\n    \"central_vision\" bool,\n    \"serological_tests\" bool,\n    \"inhaled_corticosteroids\" bool,\n    \"angina\" bool,\n    \"surgical_sterilization\" bool,\n    \"retinal_disease\" bool,\n    \"hcv_ab\" bool,\n    \"high_risk_clinical\" bool,\n    \"advanced_maternal_age\" bool,\n    \"antibiotic_treatment\" bool,\n    \"adequate_contraception\" bool,\n    \"uveitis_disease\" bool,\n    \"unprotected_left_main_coronary_artery\" bool,\n    \"ovarian_response\" bool,\n    \"acute_q_wave_myocardial_infarction\" bool,\n    \"urgent_coronary_balloon_angioplasty\" bool,\n    \"asthma\" bool,\n    \"serum_creatinine\" float,\n    \"intrauterine_device\" bool,\n    \"kidney_disease\" bool,\n    \"spermicide\" bool,\n    \"fda_approved_device\" bool,\n    \"anti_hepatitis_c_virus_hcv_antibody\" bool,\n    \"active_scleral_disease\" bool,\n    \"barrier_methods\" bool,\n    \"tazobactam\" bool,\n    \"glaucoma\" bool,\n    \"cefepime\" bool,\n    \"depo_provera\" bool,\n    \"organ_failure\" bool,\n    \"dysthyroid_eye_disease\" bool,\n    \"peripheral_arterial_disease\" bool,\n    \"cerebral_infarction\" bool,\n    \"anti_hepatitis_b_core_antibody\" bool,\n    \"hypertension\" bool,\n    \"bilirubin\" float,\n    \"risk_factor\" bool,\n    \"myocardial_infarction\" bool,\n    \"lupron_depot\" bool,\n    \"ocular\" bool,\n    \"age\" float,\n    \"linezolid\" bool,\n    \"NOUSE\" float\n)","output":"SELECT * FROM table_test_31 WHERE (CASE WHEN hypertension = 1 THEN 1 ELSE 0 END + CASE WHEN diabetic = 'ii' THEN 1 ELSE 0 END + CASE WHEN mellitus = 1 THEN 1 ELSE 0 END + CASE WHEN kidney_disease = 1 THEN 1 ELSE 0 END + CASE WHEN myocardial_infarction = 1 OR angina = 1 THEN 1 ELSE 0 END + CASE WHEN cerebral_infarction = 1 THEN 1 ELSE 0 END + CASE WHEN peripheral_arterial_disease = 1 THEN 1 ELSE 0 END) >= 2"},{"instruction":"สามารถเน้นหมวดที่ได้ 12 เครดิต หลังจากสำเร็จหรือไม่?","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS'"},{"instruction":"สโมสรที่ตกรอบคัดเลือกเพลย์ออฟมาจากสมาคมฟุตบอลที่ได้สิทธิ์เพียงรอบคัดเลือกเพลย์ออฟจะได้สิทธิ์เข้าเล่นในรายการอะไร","input":"","output":"รายการเอเอฟซีคัพ 2014 "},{"instruction":"select * from posts limit 10;","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE Score > 1000"},{"instruction":"ผู้ใช้ 50 อันดับต้นๆ จาก Iaşi (โรมาเนีย)","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, AboutMe, ProfileImageUrl FROM Users WHERE LOWER(Location) LIKE '%iasi%' ORDER BY Reputation DESC LIMIT 50"},{"instruction":"จักรพรรดิอังโกทรงทำสงครามสงครามแย่งชิงราชบัลลังก์กับใคร","input":"","output":"เจ้าชายคินะชิ ผู้เป็นพระเชษฐา"},{"instruction":"รับโพสต์วิกิชุมชนทั้งหมด","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE OwnerUserId = -1 AND PostTypeId = 3 ORDER BY CreationDate DESC LIMIT 100"},{"instruction":"ราเชล แม็กอดัมส์ แสดงในภาพยนตร์ดัดแปลงจากบทประพันธ์เรื่องอะไร","input":"","output":"The Notebook"},{"instruction":"อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์สร้างขึ้นเพื่ออะไร","input":"","output":"เป็นโรงแรม"},{"instruction":"นักคณิตศาสตร์บางท่านกล่าวว่าสี่ผู้ยิ่งใหญ่ของวงการคณิตศาสตร์มีใครบ้าง","input":"","output":"อาร์คิมิดีส นิวตัน ��กาส์ และออยเลอร์"},{"instruction":"ยุทธนา เปื้องกลาง ได้รับทุนจากใคร","input":"","output":"สมเด็จพระเทพรัตนราชสุดาฯ สยามบรมราชกุมารี"},{"instruction":"จัดสัน เวลลิเวอร์ สมรสกับใคร","input":"","output":" เจน ดักลาส ฮัตชินส์"},{"instruction":"ค้นหาสามขั้นตอนที่มีค่าใช้จ่ายแพงที่สุด","input":"CREATE TABLE procedures (\n    code number,\n    name text,\n    cost number\n)\n\n","output":"SELECT name FROM procedures ORDER BY cost LIMIT 3"},{"instruction":"บอกฉันระยะเวลารักษาตัวใน ICU ในตอนแรกของผู้ป่วย 004-17866","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-17866') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"เครือข่ายบลูเนตเวิร์ก ของช่องอะไร","input":"","output":"เอ็นบีซี เอบีซี"},{"instruction":"เป็นผู้กำกับร่วมของภาพยนตร์เรื่องอะไร ?","input":"","output":"โบลท์ ซูเปอร์โฮ่ง ฮีโร่หัวใจเต็มร้อย และ บิ๊กฮีโร่ 6"},{"instruction":"ธนาคารทิสโก้ จำกัด (มหาชน)  เป็นธนาคารในประเทศใด ?","input":"","output":"ประเทศไทย"},{"instruction":"ระดับชื่อเสียงโดยเฉลี่ยของผู้ใช้ตามปีและเดือน","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT AVG(Reputation * 1.0), TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') FROM Users GROUP BY TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') ORDER BY TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m')"},{"instruction":"ทะเลแดง มีความยาวประมาณเท่าไร","input":"","output":"1900 กิโลเมตร"},{"instruction":"ณภัทร ภู่ประเสริฐ มีอาชีพอะไร","input":"","output":"นักฟุตบอล"},{"instruction":"การป้องกันไม่ให้เกิดโรคไข้เลือดออกทำได้อย่างไร","input":"","output":"ทำโดยลดจำนวนแหล่งเพาะพันธุ์และจำนวนของยุง และป้องกันมิให้ยุงลายกัด"},{"instruction":"ปลาบึกมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Pangasianodon gigas"},{"instruction":"ปลาตะพัดมีชื่อมีเรียกทางวิทายาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Scleropages formosus"},{"instruction":"กราฟเส้นแสดงการประเมินในแต่ละวันที่เท่าไหร่ และเรียงลำดับในแกน x จากมากไปน้อย","input":"CREATE TABLE Assessment_Notes (\n    notes_id INTEGER,\n    student_id INTEGER,\n    teacher_id INTEGER,\n    date_of_notes DATETIME,\n    text_of_notes VARCHAR(255),\n    other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC"},{"instruction":"วันที่ 23 มีนาคม พ.ศ. 2449 ไทยสูญเสียดินแดนใดบ้าง","input":"","output":"ดินแดนมณฑลบูรพ�� คือเขมรส่วนใน ได้แก่เสียมราฐ พระตะบอง และศรีโสภณ"},{"instruction":"ซาวน่าหรรษา เป็นรายการแนวอะไร","input":"","output":"รายการวาไรตี้โชว์"},{"instruction":"โรงเรียนบ้านกกค้อกกโพธิ์ .ในการเปิดสอนครั้งเรกนั้นมีจำนวนนักเรียนกี่คน","input":"","output":" 71 คน"},{"instruction":"คนไข้เลขที่ 015-23047 เข้าห้อง ICU มาแล้วกี่ชั่วโมง","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '015-23047' AND patient.unitdischargetime IS NULL"},{"instruction":"ต้นแก้วออกดอกลักษณะใด","input":"","output":"ดอกเป็นช่อใหญ่ ช่อสั้นออกตามปลายกิ่งหรือยอด ช่อหนึ่งมีดอกประมาณ 5-10 ดอก แต่ละดอกมีกลีบดอก 5 กลีบ"},{"instruction":"วัดสุวรรณคีรีวิหาร เป็พระอะไร","input":"","output":"พระอารามหลวง ชั้นตรี ชนิดสามัญ"},{"instruction":"มีการสั่งให้ใช้แลคเตทริงเกอร์ IV : ถุงละ 1,000 มล กี่ครั้ง","input":"CREATE TABLE medication (\n    medicationid number,\n    patientunitstayid number,\n    drugname text,\n    dosage text,\n    routeadmin text,\n    drugstarttime time,\n    drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'lactated ringers iv : 1000 ml bag'"},{"instruction":"พระเจ้าบรมวงศ์เธอ พระองค์เจ้างอนรถ พระนามเดิมว่าอะไร","input":"","output":"พระองค์เจ้าชายงอนรถ"},{"instruction":"คำนวณระยะเวลาที่ผู้ป่วย 002-56853 พักใน icu ครั้งสุดท้าย","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-56853') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ผู้ป่วยรายที่ 027-142451 นอนอยู่ที่หอ 966 ในการเข้ารับบริการครั้งนี้เป็นเวลากี่ชั่วโมงแล้ว","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-142451' AND patient.wardid = 966 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"เพื่อนพ้องน้องพี่ เป็นบริษัทเกี่ยวกับอะไร","input":"","output":"ดำเนินธุรกิจสื่อสารมวลชน"},{"instruction":"แผ่นดินไหวในมณฑลยูนนาน เกิดขึ้นที่ประเทศอะไร","input":"","output":"สาธารณรัฐประชาชนจีน"},{"instruction":"คาร์ล กุสตาฟ โมแซนเดอร์ เกิดที่เมืองใด","input":"","output":"เกิดที่เมืองคาลมาร์ "},{"instruction":"ปลาแปบควายนั้นเป็นปลาที่อยู่วงศ์ย่อยของ Cultrinae อยากทราบว่าอยู่สกุลใด","input":"","output":"สกุล Paralaubuca"},{"instruction":"สนามกีฬาโอลิมปิก เริ่มก่อสร้างในปีอะไร","input":"","output":"ค.ศ. 2000"},{"instruction":"ประยุทธ์ จันทร์โอชานำคณะรักษาความสงบแห่งชาติทำรัฐประหารเมื่อวันที่เท่าไหร่","input":"","output":"22 พฤษภาคม 2557"},{"instruction":"กองทัพอาหรับ นำโดย คอลิด บิน วะลีด เข้ายึดครองซีเรีย ในวันที่เท่าไร","input":"","output":"20 สิงหาคม"},{"instruction":"คณะพาณิชยศาสตร์และการบัญชี มหาวิทยาลัยธรรมศาสตร์ ก่อตั้งเมื่อวันที่เท่าไหร่","input":"","output":"วันที่ 23 พฤศจิกายน 2481"},{"instruction":"เที่ยวบินมีชั้นบริการแบบใดบ้าง","input":"CREATE TABLE class_of_service (\n    booking_class varchar,\n    rank int,\n    class_description text\n)\n\n","output":"SELECT DISTINCT booking_class FROM class_of_service"},{"instruction":"มีผู้ป่วยออกจากโรงพยาบาลกี่คนในปีนี้","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"ส่วนใหญ่ปิดและลบจุดที่ผู้ใช้จำหน่าย ประวัติการโพสต์ที่ถูกลบและปิด","input":"CREATE TABLE PostHistory (\n    Id number,\n    PostHistoryTypeId number,\n    PostId number,\n    RevisionGUID other,\n    CreationDate time,\n    UserId number,\n    UserDisplayName text,\n    Comment text,\n    Text text,\n    ContentLicense text\n)\n\n","output":"SELECT Text, COUNT(Id) FROM PostHistory WHERE PostHistoryTypeId IN (10, 12) AND CreationDate > '2011-12-31' AND NOT Text LIKE '%},{%' GROUP BY Text HAVING COUNT(Id) > 99 ORDER BY COUNT(Id) DESC"},{"instruction":"การเลือกตั้งสมาชิกสภาแห่งชาติ ใครเป็นผู้นำ","input":"","output":"คิม จ็อง-อิล"},{"instruction":"เพีย ซุนด์ฮาแก ได้รับการประกาศให้เป็นหัวหน้าผู้ฝึกสอนฟุตบอลหญิงทีมชาติสหรัฐ เมื่อใด","input":"","output":"13 พฤศจิกายน ค.ศ. 2007"},{"instruction":"แหล่งที่มาและการแก้ไขที่มี ","input":"CREATE TABLE PostHistory (\n    Id number,\n    PostHistoryTypeId number,\n    PostId number,\n    RevisionGUID other,\n    CreationDate time,\n    UserId number,\n    UserDisplayName text,\n    Comment text,\n    Text text,\n    ContentLicense text\n)\n\n","output":"SELECT PostHistoryTypeId, PostId AS \"post_link\", CreationDate, Comment, Text FROM PostHistory WHERE PostHistoryTypeId IN (2, 5) AND Text LIKE '%%' ORDER BY CreationDate DESC"},{"instruction":"กงไกรลาศ เดิมเป็นแขวงหนึ่งของเมืองอะไร","input":"","output":"เมืองสุโขทัย"},{"instruction":"ฟุรุซะโตะ รูปแบบซีดีขนาดกี่เซนติเมตร","input":"","output":"8 เซนติเมตร"},{"instruction":"ฮันส์ โมโดร เขาถูกตัดสินลงโทษการทุจริตการเลือกตั้งโดยศาลแขวงเดรสเดินในปีอะไร","input":"","output":"ค.ศ. 1995"},{"instruction":"พัทธ์ธีรา ศรุติพงศ์โภคิน จบการศึกษาจากประเทศอะไร","input":"","output":"ประเทศนิวซีแลนด์"},{"instruction":"รวมยอดคะแนนสูงสุดจากความคิดเห็น","input":"CREATE TABLE Comments (\n    Id number,\n    PostId number,\n    Score number,\n    Text text,\n    CreationDate time,\n    UserDisplayName text,\n    UserId number,\n    ContentLicense text\n)\n\n","output":"SELECT UserId AS \"user_link\", SUM(Score) AS \"total_score\", COUNT(*) AS \"#comments\" FROM Comments WHERE UserId IN ('##UserID##') GROUP BY UserId ORDER BY SUM(Score) DESC"},{"instruction":"แสดงวิธีที่แตกต่างในการไปสถานที่ท่องเที่ยวและจำนวนสถานที่ท่องเที่ยวที่สามารถเข้าถึงได้ด้วยวิธีการที่เกี่ยวข้อง และพล็อตเป็นแผนภูมิแท่ง","input":"CREATE TABLE Tourist_Attractions (\n    Tourist_Attraction_ID INTEGER,\n    Attraction_Type_Code CHAR(15),\n    Location_ID INTEGER,\n    How_to_Get_There VARCHAR(255),\n    Name VARCHAR(255),\n    Description VARCHAR(255),\n    Opening_Hours VARCHAR(255),\n    Other_Details VARCHAR(255)\n)\n\n","output":"SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There"},{"instruction":"ปลาจีน ซึ่งล้วนแต่เป็นปลาในวงศ์อะไร","input":"","output":"วงศ์ปลาตะเพียน"},{"instruction":"ในปีนี้ผู้ป่วยหมายเลข 028-47306 มาโรงพยาบาลครั้งสุดท้าย เพื่อทำอะไร","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '028-47306' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"ชูชัย พระขรรค์ชัย หัดมวยครั้งแรกกับใคร","input":"","output":"ครูปูน พระขรรค์ชัย"},{"instruction":"ผู้ป่วยรหัส 009-15 เข้ารับการรักษาในหอผู้ป่วยใดเป็นหอผู้ป่วยแรกในปีที่แล้ว","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-15') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"ออทโทที่ 1 ดยุกแห่งเบราน์ชไวค์-ลือเนบูร์ก เป็นยุคคนแรกระหว่างปีอะไร","input":"","output":"ค.ศ. 1235"},{"instruction":"การเลือกตั้งแบบบัญชีรายชื่อในประเทศไทย ตั้งขึ้นในปีอะไร","input":"","output":"พุทธศักราช 2550"},{"instruction":"อัลละฮ์เปอลีฮารากันซุลตัน ประพันธ์เนื้อร้องโดยใคร","input":"","output":"เปองีรัน ฮัจญี มูฮัมมัด ยูซุฟ บิน อับดุล ราฮิม"},{"instruction":"เมล บอชเนอร์ เกิดปีอะไร","input":"","output":"1940"},{"instruction":"หน่วยความจำแฟลช มีลักษณะอย่างไร","input":"","output":"การทำงานเป็นอิเล็กทรอนิกส์ทั้งหมด"},{"instruction":"น้ำหนักเพ��่มขึ้นจากครั้งก่อนมาเท่าไร","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)"},{"instruction":"สนามกีฬาติณสูลานนท์ อยู่ตำบลอะไร","input":"","output":"ตำบลบ่อยาง"},{"instruction":"ออร์ซันมีเกเล เป็นโบสถ์อะไร","input":"","output":"คาทอลิก"},{"instruction":"พังก์โกส์อะคูสติก 2 อยู่ค่ายเพลงอะไร","input":"","output":"ค่ายเพลงเฟียร์เลสเรเคิดส์"},{"instruction":"ปลากระเบนขาวมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Himantura signifer"},{"instruction":"ครุยเสนามาตย์ มีกี่ชั้น","input":"","output":" 3 ชั้น"},{"instruction":"คืนค่าราคาเฉลี่ยของแต่ละประเภทผลิตภัณฑ์ แสดงผลด้วยแผนภูมิแท่ง ฉันต้องการจัดเรียงแบบเรียงจากน้อยไปมากตามแกน Y","input":"CREATE TABLE Products (\n    product_id INTEGER,\n    product_type_code VARCHAR(10),\n    product_name VARCHAR(80),\n    product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY AVG(product_price) DESC"},{"instruction":"Collaborative software คือแนวคิดที่สอดคล้องกับอะไร","input":"","output":"Computer-supported cooperative work (CSCW) "},{"instruction":"10 อันดับสูงสุดผู้ใช้ในประเทศ.","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') ORDER BY Reputation DESC LIMIT 10"},{"instruction":"เอ็มบีเคเอนเตอร์เทนเมนต์ ชื่อเดิมชื่อว่าอะไร","input":"","output":"คอร์คอนเทนส์มีเดีย"},{"instruction":"คุณคิดว่า 579 มันใหญ่แค่ไหน","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 579"},{"instruction":"น้ำหนักของผู้ป่วย 006-118236 ล่าสุดเทียบกับน้ำหนักในครั้งล่าสุดที่เคยวัดที่โรงพยาบาลก่อนหน้าครั้งล่าสุด แตกต่างกันอย่างไร","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-118236' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-118236' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 OFFSET 1)"},{"instruction":"แหลมโฟรเวิร์ดตั้งอยู่ที่ใด","input":"","output":"จุดทางใต้สุดของแผ่นดินใหญ่ของทวีปอเมริกาใต้ อยู่ในแคว้นมากายาเนสและลาอันตาร์ตีกาชีเลนาของประเทศชิลี"},{"instruction":"ลฺหวี่ ปู้เหวย์ อยู่ในยุคอะไร","input":"","output":"ยุครณรัฐ"},{"instruction":"รับความคิดเห็นตามรหัสผู้ใช้","input":"CREATE TABLE Comments (\n    Id number,\n    PostId number,\n    Score number,\n    Text text,\n    CreationDate time,\n    UserDisplayName text,\n    UserId number,\n    ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') AND UserId = '##UserId##' ORDER BY Score DESC"},{"instruction":"ค้นหาผู้ใช้โดยชื่อที่แสดง คัดกรองผู้ใช้ตามชื่อที่แสดง และชื่อประเทศ","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location, WebsiteUrl FROM Users WHERE LOWER(Location) LIKE LOWER('%##CityName##%') AND LOWER(DisplayName) LIKE LOWER('%##UserName##%') ORDER BY Reputation DESC"},{"instruction":"ปลากัดอมไข่กระบี่ มีชื่อเรียกอีกชื่อหนึ่งว่าอะไร","input":"","output":"ปลากัดหัวโม่งกระบี่"},{"instruction":"ค้นหาคำถามโดยใช้คีย์เวิร์ดใดๆ","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT p.CreationDate, p.Body, p.Id AS \"post_link\" FROM Posts AS p WHERE p.PostTypeId = 1 AND p.Body LIKE '%##keyword1##%' LIMIT 100"},{"instruction":"ผู้ใช้ที่มีชื่อเสียงซึ่งไม่ได้เข้าชมเว็บไซต์อีกต่อไป","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", LastAccessDate FROM Users WHERE Reputation >= '##MinReputation##' ORDER BY LastAccessDate"},{"instruction":"ซากูมะ โชซัง ภรรยาของเขาคือใคร","input":"","output":"อาราอิ มัน"},{"instruction":"This Little Life ได้รับรางวัลอะไร","input":"","output":"รางวัลบาฟต้า"},{"instruction":"แสดงรายการรหัสคำสั่งซื้อ และรหัสลูกค้าสำหรับคำสั่งซื้อที่อยู่ในสถานะยกเลิก โดยมีการจั���เรียงตามวันสั่งซื้อโดยใช้กราฟแบบกระจาย","input":"CREATE TABLE Customer_Orders (\n    order_id INTEGER,\n    customer_id INTEGER,\n    order_status_code VARCHAR(10),\n    order_date DATETIME\n)\n\n","output":"SELECT order_id, customer_id FROM Customer_Orders WHERE order_status_code = \"Cancelled\" ORDER BY order_date"},{"instruction":"แหล่งแซนาดูแสดงถึงวัฒนธรรมของชนชาติใด","input":"","output":"การผสมผสานวัฒนธรรมของชาวมองโกลเร่ร่อนกับชาวจีนฮั่นเข้าด้วยกัน"},{"instruction":"อิซาเบล ลูคัส รู้จักครั้งแรกในละครโทรทัศน์ของอะไร","input":"","output":"ออสเตรเลีย"},{"instruction":"คำถามที่เข้าชมสูงสุดในปี 2015","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT Title, ViewCount, Score FROM Posts WHERE CreationDate >= '20150101' ORDER BY ViewCount DESC"},{"instruction":"ชะมดเช็ด มีแถบสีดำและขาวบริเวณไหน","input":"","output":"ลำคอ"},{"instruction":"แสดงเป็นแท่งแผนภูมิ ซึ่งแยกประเภทรหัสวิธีการชำระเงินกับจำนวนคำสั่งซื้อที่ดำเนินการ และแสดงจาก X ในลำดับที่เพิ่มขึ้น","input":"CREATE TABLE Invoices (\n    Invoice_ID INTEGER,\n    Order_ID INTEGER,\n    payment_method_code CHAR(15),\n    Product_ID INTEGER,\n    Order_Quantity VARCHAR(288),\n    Other_Item_Details VARCHAR(255),\n    Order_Item_ID INTEGER\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY payment_method_code"},{"instruction":"ผู้ป่วย 006-93378 มีน้ำหนักที่วัดครั้งที่สองในครั้งแรกที่ไปเยี่ยมที่โรงพยาบาลต่างจากครั้งแรกที่ไปเยี่ยมที่โรงพยาบาลเท่าไหร่","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-93378' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-93378' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)"},{"instruction":"เลิฟเกม ร้องโดยใคร","input":"","output":"เลดี้ กาก้า"},{"instruction":"ผู้ป่วยรายที่ 594 มีอายุเท่าไหร่ในระหว่างการเข้ารับการรักษาในโรงพยาบาลครั้งสุดท้าย","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)","output":"SELECT admissions.age FROM admissions WHERE admissions.subject_id = 594 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"คำถ��ม (ทั้งหมดที่ตอบ ตอบไม่ได้ ผู้ใช้) ตามวันที่","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT DATE(p.CreationDate) AS date, COUNT(DISTINCT p.OwnerUserId) AS users, SUM(1) AS total, SUM(CASE WHEN COALESCE(p.AcceptedAnswerId, 0) = 0 THEN 1 ELSE 0 END) AS unanswered, SUM(CASE WHEN COALESCE(p.AcceptedAnswerId, 0) = 0 THEN 0 ELSE 1 END) AS answered FROM Posts AS p GROUP BY DATE(p.CreationDate) ORDER BY DATE(p.CreationDate)"},{"instruction":"ราชสหพันธ์ฟุตบอลสเปน เป็นหน่วยงานที่ทำหน้าที่ดูแลกิจการฟุตบอลต่าง ๆ ในประเทศสเปน ก่อตั้งขึ้นเมื่อปี ค.ศ. ใด?","input":"","output":"1913"},{"instruction":"อาร์เธอร์ อีแวนส์ ทำอาชีพอะไร","input":"","output":"นักโบราณคดี"},{"instruction":"จำนวนคำถามที่ถามในเว็บไซต์ก่อนเดต","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate < '##Date##'"},{"instruction":"150 อันดับผู้ใช้สูงสุดจากเนปาล","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Nepal%' ORDER BY Reputation DESC LIMIT 150"},{"instruction":"คืนชื่อหนังที่จัดประเภท R","input":"CREATE TABLE film (\n    film_id number,\n    title text,\n    description text,\n    release_year time,\n    language_id number,\n    original_language_id number,\n    rental_duration number,\n    rental_rate number,\n    length number,\n    replacement_cost number,\n    rating text,\n    special_features text,\n    last_update time\n)\n\n","output":"SELECT title FROM film WHERE rating = 'R'"},{"instruction":"ซูเปอร์ฮีโรในภาษาไทยว่ายอดมนุษย์สื่อถึงอะไร","input":"","output":"พระพุทธเจ้าที่สามารถผจญเอาชนะมาร คือ ความชั่ว ได้ เพราะแก่นของซูเปอร์ฮีโรคือความดีย่อมชนะความชั่ว"},{"instruction":"ผู้ใช้ 10 อันดับแรกจาก","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation FROM Users ORDER BY Reputation DESC LIMIT 10"},{"instruction":"ปลากะรังปากแม่น้ำนั้นเป็นปลาทะเลจัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลากะรัง (Serranidae)"},{"instruction":"เบอร์นาร์ด คืออะไร","input":"","output":"แอนิชันสั้นๆ"},{"instruction":"ในปี 2007 นี้ องค์การอาหารและการเกษตรโลก (FAO) และองค์การสหประชาชาติ (UN) (ในนามโครงการน้ำเพื่อชีวิต) (Water for life) เป็นผู้จัดร่ว�� ในหัวข้องาน(ธีม) ว่าอะไร","input":"","output":"Coping with Water Scarcity"},{"instruction":"เดอะเฟซเมนไทยแลนด์ ซีซัน 2 เป็นรายการอะไร","input":"","output":"รายการเรียลลิตี"},{"instruction":"สัตว์เลี้ยงลูกด้วยนมกี่ชนิด","input":"","output":"71 ชนิด"},{"instruction":"สาธารณรัฐยูกันดา เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูร้อน ปี ค.ศ อะไร","input":"","output":"ค.ศ. 1960"},{"instruction":"ศูนย์แพทยศาสตรศึกษาชั้นคลินิก โรงพยาบาลสรรพสิทธิประสงค์ตั้งมาเพื่อสอนใคร","input":"","output":"นักศึกษาแพทย์ตามหลักสูตรแพทยศาสตรบัณฑิตของคณะแพทยศาสตร์ มหาวิทยาลัยขอนแก่น"},{"instruction":"บริษัทฯ จึงได้เสนอข้อตกลงเพื่อการชดเชยกับสมาคมชาวประมงในปีใด?","input":"","output":"1926 และ 1943"},{"instruction":"หลักสูตรไหนใน Machine Learning ที่มีค่า 15 หน่วยกิต","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Machine Learning%' OR name LIKE '%Machine Learning%') AND credits = 15"},{"instruction":"ปัญหาจากการออกจากสังกัดอาร์เอส","input":"","output":"ไม่อยากจะกดดันตัวเองในเรื่องของการทำงาน"},{"instruction":"กราฟแท่งแสดงจำนวนการแข่งขันของชนชาติต่างๆ ทั้งหมดที่จัดขึ้นระหว่างปี 2009 ถึง 2011","input":"CREATE TABLE races (\n    raceId INTEGER,\n    year INTEGER,\n    round INTEGER,\n    circuitId INTEGER,\n    name TEXT,\n    date TEXT,\n    time TEXT,\n    url TEXT\n)\n\n","output":"SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name"},{"instruction":"เวลาเข้ารับการรักษาในโรงพยาบาลของคนไข้ 52604 เมื่อ 4 ปีที่แล้วคือเวลาเท่าไร?","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 52604 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"คนไข้ 8991 เข้ารับการรักษาในโรงพยาบาลครั้งล่าสุดเมื่อปีที่ผ่านมา","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8991 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"อาณาจักรพืช ประกอบด้วยอะไรบ้าง","input":"","output":"ประกอบด้วย ไม้ยืนต้น ไม้ดอก พืชล้มลุก และเฟิร์น พบได้ทั้งบนบกและในน้ำ "},{"instruction":"สปีดเดมอน เป็นเพลงของใคร","input":"","output":"นักร้องชาวอเมริกัน ไมเคิล แจ็กสัน"},{"instruction":"ปลาตะพากเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์อะไร","input":"","output":"วงศ์ปลาตะเพียน (Cyprinidae) "},{"instruction":"แอร์ฮาร์ท ไฮเดิน ได้รับการแต่งตั้งให้เป็นหัวหน้าของหน่วยเอ็สเอ็ส,ระดับชั้นหัวกะทิของหน่วยเอ็สอานปีใด ?","input":"","output":"ค.ศ. 1927"},{"instruction":"ท่าอากาศยานนานาชาติโลแกน อยู่เมืองอะไร","input":"","output":"เมืองบอสตัน"},{"instruction":"คนไข้เลขที่ 006-125738 ล่าสุดเข้ารับการรักษาที่โรงพยาบาลเมื่อ 2104 อย่างไร","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '006-125738' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"แม่น้ำที่มีความสำคัญต่อไรน์ลันท์คือแม่น้ำอะไร","input":"","output":"แม่น้ำไรน์และแม่น้ำมอแซล"},{"instruction":"สมาชิกที่ได้ตอบคำถามที่แตกต่างมากที่สุด","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)","output":"SELECT A.OwnerUserId AS \"user_link\", COUNT(DISTINCT A.ParentId) AS \"distinct_questions_answered\" FROM Posts AS A WHERE A.PostTypeId = 2 AND A.OwnerUserId > 0 GROUP BY A.OwnerUserId ORDER BY 'distinct_questions_answered' DESC"},{"instruction":"Meki หมายถึงอะไร","input":"","output":"เด็กสาวทั้ง 8 ที่มีเอกลักษณ์ของตัวเอง ที่ถือกุญแจคนละอัน"},{"instruction":"จำนวนผู้ใช้ที่มี 1 rep","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT COUNT(*) FROM Users WHERE Reputation = 1 AND (CreationDate = LastAccessDate)"},{"instruction":"วัดดอนจันทร์ ตั้งเป็นวัดเมื่อเดือนอะไร ?","input":"","output":"สิงหาคม"},{"instruction":"รายการที่มีกิจกรรมสุดท้ายเป็นการ CW-ification","input":"CREATE TABLE PostHistory (\n    Id number,\n    PostHistoryTypeId number,\n    PostId number,\n    RevisionGUID other,\n    CreationDate time,\n    UserId number,\n    UserDisplayName text,\n    Comment text,\n    Text text,\n    ContentLicense text\n)\n\n","output":"SELECT ph.PostId AS \"post_link\", revisions = 'site:\/\/posts\/' + CAST(ph.PostId AS TEXT) + '\/revisions' FROM PostHistory AS ph WHERE (ph.PostHistoryTypeId = 16) AND ph.Id IN (SELECT MAX(Id) AS last FROM PostHistory GROUP BY PostId) ORDER BY ph.PostId DESC"},{"instruction":"สับปะรดมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Ananas comosus  Merr."},{"instruction":"ปาโอโล อุชเชลโล มีอาชีพอะไร","input":"","output":"จิตรกรสมัยศิลปะเรอเนซองส์"},{"instruction":"นโยบายการแข่งขัน การลงทุนและสิทธิทรัพย์สินทางปัญญา จะมีการเสนอร่างอย่างไร","input":"","output":"มีการเสนอร่างต่อสมัชชาสหภาพแอฟริกาในเดือนมกราคม 2563"},{"instruction":"ค้นหาคำตอบจากข้อความและชื่อผู้ใช้","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE OwnerUserId = '##UserId##' AND ParentId > 0 AND Body LIKE '%##Text##%'"},{"instruction":"สมเด็จพระราชินีนาถบียาตริชแห่งโปรตุเกส เกิดวันที่เท่าไร","input":"","output":"7 กุมภาพันธ์ ค.ศ. 1373"},{"instruction":"จันทน์ขาว เป็นพืชในวงศ์อะไร","input":"","output":"วงศ์ย่านตีเมีย"},{"instruction":"ปลาฉนากจะงอยปากแคบมีขนาดโตเต็มที่กี่เมตร","input":"","output":"ขนาดโตเต็มที่ราว 4 เมตร "},{"instruction":"เพื่อให้ได้ 18 หน่วยกิต ควรลงวิชาอะไรบ้าง","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 18 AND department = 'EECS'"},{"instruction":"รัชพล นาวันโน ปัจจุบันเซ็นสัญญากับทีมอะไร","input":"","output":"ทีมพีที ประจวบ"},{"instruction":"สุภรภ์เพ็ญ หลวงเทพนิมิต ชื่อเดิมว่าอะไร","input":"","output":"สุภรเพ็ญ หลวงเทพ"},{"instruction":"SMAP ได้ถูกจัดอันดับศิลปินไอดอลที่ยอดขายรวมตั้งแต่เดบิวต์ทั้งซิงเกิล อัลบั้มและDVDได้มากที่สุดเป็นอันดับ 1 ของประเทศอะไร ?","input":"","output":"ประเทศญี่ปุ่น"},{"instruction":"น้ำหนักต่ำสุดรายวันของผู้ป่วยหมายเลข 015-8398 ในการเข้ารับการรักษาครั้งล่าสุดในโรงพยาบาลมีน้ำหนักอยู่ที่เท่าใด","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-8398' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime)"},{"instruction":"แสดงราคาผลิตภัณฑ์สูงสุดสำหรับแต่ละประเภทผลิตภัณฑ์ในกราฟแท่ง ฉันต้องการจัดเรียงจากน้อยไปมากตามจำนวนทั้งหมด","input":"CREATE TABLE Products (\n    product_id INTEGER,\n    product_type_code VARCHAR(10),\n    product_name VARCHAR(80),\n    product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY MAX(product_price)"},{"instruction":"โจเซฟ เชริดัน เล ฟานิว มีอาชีพอะไร","input":"","output":"นักประพันธ์แนวกอทิก"},{"instruction":"เมื่อไหร่���ี่ผู้ป่วยหมายเลข 76005 เข้ารับการรักษาในโรงพยาบาลครั้งล่าสุดเมื่อปีที่แล้ว","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 76005 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"EA ย่อมาจากอะไร","input":"CREATE TABLE airline (\n    airline_code varchar,\n    airline_name text,\n    note text\n)\n\n","output":"SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'EA'"},{"instruction":"ผู้ใช้ที่มีเหรียญบรอนซ์แท็กส่วนตัว","input":"CREATE TABLE Badges (\n    Id number,\n    UserId number,\n    Name text,\n    Date time,\n    Class number,\n    TagBased boolean\n)\n\n","output":"SELECT B.Name, B.UserId AS \"user_link\" FROM Badges AS B WHERE Class = 3 AND TagBased = 1 AND (SELECT COUNT(B2.Name) FROM Badges AS B2 WHERE B2.Name = B.Name AND B2.Class = 3 AND B2.TagBased = 1) = 1 GROUP BY B.Name, B.UserId ORDER BY B.Name"},{"instruction":"จอห์น วิลค์ส บูธ มีอาชีพอะไร","input":"","output":"นักแสดงละครเวที"},{"instruction":"ครึ่งชีวิตใช้อธิบายอะไรได้บ้าง","input":"","output":"ปริมาณใด ๆ ก็ตามที่มีสลายตัวแบบเอ็กโพเนนเชียลด้วย"},{"instruction":"สาธารณรัฐเอลซัลวาดอร์ เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูอะไร","input":"","output":"ฤดูร้อน"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"The Net"},{"instruction":"#ชื่อไม่ถูกต้อง?","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"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"},{"instruction":"ธิกกลายเป็นเพื่อนกับประธานค่ายอะไร ?","input":"","output":"อัพทาวน์เรคคอร์ด อังเดร ฮาร์เรลล์"},{"instruction":"การนับโพสต์ตามอายุเป็นวัน","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"WITH PostAge AS (SELECT Id, DATEDIFF(day, CreationDate, @LastVote) AS Age FROM Posts WHERE PostTypeId = '##PostTypeId:int?2##'), PostsByAge AS (SELECT Age, COUNT(*) AS Count FROM PostAge GROUP BY Age) SELECT Age, Count, SUM(Count) OVER (ORDER BY Age DESC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RollingCount FROM PostsByAge ORDER BY Age"},{"instruction":"ลิงค์ไปยังความคิดเห็นของฉันโดยเรียงตามคะแนน","input":"CREATE TABLE Comments (\n    Id number,\n    PostId number,\n    Score number,\n    Text text,\n    CreationDate time,\n    UserDisplayName text,\n    UserId number,\n    ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS CommentCount, Score FROM Comments WHERE UserId = @UserId GROUP BY Score ORDER BY Score DESC"},{"instruction":"คนไข้รหัส 028-39354 ได้รับการตรวจเยี่ยมผู้ป่วยสุดท้ายเมื่อ 4 ปีที่แล้วอะไร","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-39354') AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"ฮย็อนซ็อง มีสมาชิกครอบครัวกี่คน","input":"","output":"4 คน ได้แก่ คุณพ่อ, คุณแม่, พี่ชาย, และตัวเขาเอง "},{"instruction":"คริส จอห์น เกิดวันที่เท่าไร","input":"","output":"14 กันยายน พ.ศ. 2522"},{"instruction":"ผู้ป่วยรหัส 006-71495 ตั้งแต่วันที่ 02\/2104 มีน้ำหนักตัวน้อยที่สุดต่อวันเท่าไร","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-71495') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2104-02' GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime)"},{"instruction":"เดอะซิมส์ 4 เอาต์ดอร์รีทรีต วางจำหน่ายเมื่อใด","input":"","output":"13 มกราคม 2558"},{"instruction":"เลือกจาก post โดยมี limit อยู่ที่ 10","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE Score > 1000"},{"instruction":"ช่วยบอกฉันที ว่า วิธีใช้ยาแท็บเล็ตโพแทสเซียมคลอไรด์ คือ","input":"CREATE TABLE medication (\n    medicationid number,\n    patientunitstayid number,\n    drugname text,\n    dosage text,\n    routeadmin text,\n    drugstarttime time,\n    drugstoptime time\n)\n\n","output":"SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'potassium chloride tab'"},{"instruction":"ค้นหาคำตอบโดยข้อความและ User ID","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE OwnerUserId = '##UserId##' AND ParentId > 0 AND Body LIKE '%##Text##%'"},{"instruction":"แอร์เคบีแซด ก่อตั้งในปีอะไร","input":"","output":"ค.ศ. 2010"},{"instruction":"สร้างข้อมูลตารางดัชนีแบบกลับสำหรับ","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT * FROM Users WHERE LastAccessDate LIKE '%2018%'"},{"instruction":"คนไข้หมายเลข 28484 เ��ยไปห้องฉุกเฉินเมื่อ 3 ปีที่แล้วหรือไม่","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 28484 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year')"},{"instruction":"แอสกีคืออะไร","input":"","output":"รหัสมาตรฐานของสหรัฐอเมริกาเพื่อการแลกเปลี่ยนสารสนเทศ"},{"instruction":"ราคาเท่าไรหรอครับ","input":"","output":"ไม่ทราบราคาของสินค้า"},{"instruction":"ทดสอบคิวรีสำหรับแถวที่ว่าง","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT Posts.Id AS \"post_link\" FROM Posts WHERE Posts.OwnerUserId = @UserId"},{"instruction":"ค้นหานักแสดงที่เกิดในเมือง Austin ที่เกิดหลังปี 1980 ทั้งหมด","input":"CREATE TABLE actor (\n    aid int,\n    gender text,\n    name text,\n    nationality text,\n    birth_city text,\n    birth_year int\n)\n\n","output":"SELECT name FROM actor WHERE birth_city = 'Austin' AND birth_year > 1980"},{"instruction":"แผ่นดินไหวในมณฑลยูนนาน เกิดขึ้นใกล้ที่ไหน","input":"","output":"พรมแดนพม่า"},{"instruction":"เพชฌฆาตกระสุนเปลือย ออกฉายในปีอะไร","input":"","output":"ค.ศ. 1992"},{"instruction":"อาร์เอ็มเอส โอลิมปิก คือชื่อของอะไร","input":"","output":"เรือเดินสมุทร"},{"instruction":"เปอร์เซ็นต์ของผู้ใช้ที่มีค่า reputation เกินระดับที่กำหนดให้","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)","output":"SELECT ((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation >= 15) \/ (SELECT COUNT(*) FROM Users))"},{"instruction":"แบร์ กริล มีจริงว่าอะไร","input":"","output":"เอ็ดเวิร์ด ไมเคิล กริล"},{"instruction":"ในระบบฟุตบอลลีกอาชีพของประเทศไทย หลังจากที่ก่อนหน้านี้เคยลงแข่งขันระดับสมัครเล่นในฟุตบอลชิงถ้วยพระราชทานประเภทต่างๆ ภายใต้ชื่อว่าอะไร ?","input":"","output":"เทศบาลเมืองเสนา"},{"instruction":"ชาร์ล เดอ โกล มีชื่อเต็มว่าอะไร","input":"","output":"ชาร์ล อ็องเดร โฌแซ็ฟ มารี เดอ โกล"},{"instruction":"จำนวนโพสต์ต่อปี","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT YEAR(CreationDate), COUNT(Id) FROM Posts WHERE AnswerCount > 1 GROUP BY YEAR(CreationDate)"},{"instruction":"แท็กที่มีการใช้มากกว่���หนึ่งครั้ง และไม่มีหน้า wiki สำหรับแท็กนั้น","input":"CREATE TABLE Tags (\n    Id number,\n    TagName text,\n    Count number,\n    ExcerptPostId number,\n    WikiPostId number\n)\n\n","output":"SELECT t.* FROM Tags AS t WHERE t.Count > 1 AND (t.ExcerptPostId IS NULL OR t.WikiPostId IS NULL) ORDER BY t.Count DESC, t.Id DESC"},{"instruction":"ราคาเท่าไรหรอครับ","input":"","output":"ราคา 1 ตารางฟุตขึ้นไป 230 บาท"},{"instruction":"โรลเลอร์โคสเตอร์ไทคูน ตัวเกมวางจำหน่ายสำหรับอะไร","input":"","output":"ไมโครซอฟท์ วินโดวส์"},{"instruction":"แจ้งจำนวนการผ่าตัดลอกพังผืดครั้งล่าสุดให้ทราบด้วย","input":"CREATE TABLE treatment (\n    treatmentid number,\n    patientunitstayid number,\n    treatmentname text,\n    treatmenttime time\n)\n\n","output":"SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'fasciotomy' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"ผู้ป่วยหมายเลข 65467 มีประวัติเข้ารับการรักษาในโรงพยาบาลกี่ครั้งในรอบหนึ่งปีที่ผ่านมา","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 65467 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"คะแนนเฉลี่ยของคำถาม(ต่อวันระหว่างวันที่)","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT DATE(p.CreationDate), AVG(CAST(p.Score AS FLOAT)) FROM Posts AS p WHERE p.PostTypeId = 1 AND p.CreationDate >= '##Date1##' AND p.CreationDate <= '##Date2##' GROUP BY DATE(p.CreationDate) ORDER BY DATE(p.CreationDate)"},{"instruction":"รูดอล์ฟ อีมิว คาลมาน สร้างแบบจำลองอะไร","input":"","output":"คณิตศาสตร์ของระบบ"},{"instruction":"ค้นหาผู้ใช้ที่ให้รางวัลมากที่สุดต่อโพสต์","input":"CREATE TABLE Votes (\n    Id number,\n    PostId number,\n    VoteTypeId number,\n    UserId number,\n    CreationDate time,\n    BountyAmount number\n)","output":"SELECT UserId AS \"user_link\", PostId AS \"post_link\", COUNT(*) AS Bounties FROM Votes WHERE VoteTypeId = 8 AND CreationDate >= '2011-09-09 11:00:00' GROUP BY UserId, PostId ORDER BY Bounties DESC"},{"instruction":"ปลาน้ำเงินมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Phalacronotus apogon"},{"instruction":"แสดงรหัสวิธีการชำระเงินทั้งหมดและจำนวนคำสั่งซื้อสำหรับแต่ละรหัสในแผนภูมิแท่ง แสดงตามแกน y จากต่ำไปสูง","input":"CREATE TABLE Invoices (\n    Invoice_ID INTEGER,\n    Order_ID INTEGER,\n    payment_method_code CHAR(15),\n    Product_ID INTEGER,\n    Order_Quantity VARCHAR(288),\n    Other_Item_Details VARCHAR(255),\n    Order_Item_ID INTEGER\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*)"},{"instruction":"ช่วงสงงครามโลกครั้งที่สองเยอรมันจับมือกับฝ่ายใด","input":"","output":"เข้าเป็นพันธมิตรกับอิตาลีและฝ่ายอักษะที่เล็กกว่า"},{"instruction":"ผู้ป่วย 14397 รับการรักษาค��ั้งสุดท้ายในโรงพยาบาลอย่างไร","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 14397 ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ใช้แผนภูมิแท่งเพื่อหานามสกุลของครูโดยเรียงลำดับตามตัวอักษร","input":"CREATE TABLE Teachers (\n    teacher_id INTEGER,\n    address_id INTEGER,\n    first_name VARCHAR(80),\n    middle_name VARCHAR(80),\n    last_name VARCHAR(80),\n    gender VARCHAR(1),\n    cell_mobile_number VARCHAR(40),\n    email_address VARCHAR(40),\n    other_details VARCHAR(255)\n)\n\n","output":"SELECT last_name, COUNT(last_name) FROM Teachers GROUP BY last_name ORDER BY last_name"},{"instruction":"หลักสูตร CSP 100 คืออะไร","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name FROM course WHERE department = 'CSP' AND number = 100"},{"instruction":"MATSCIE 489 คืออะไร","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name FROM course WHERE department = 'MATSCIE' AND number = 489"},{"instruction":"ปืร์เมอแร็นด์ คืออะไร","input":"","output":"เทศบาลและเมือง"},{"instruction":"ฝ่ายใดมีเสบียงอาหารอุดมสมบูรณ์ มีความได้เปรียบอย่างไร","input":"","output":"มีโอกาสชนะแล้วครึ่งหนึ่ง"},{"instruction":"ฟุตบอลทีมชาติสโลวาเกียเข้ารอบฟุตบอลโลก เป็นครั้งแรกตั้งแต่ได้รับอิสระ คือปี ?","input":"","output":"2010"},{"instruction":"พระโลกนาถมรณภาพที่ไหน","input":"","output":"ประเทศพม่า"},{"instruction":"รับรายชื่อผู้ใช้ SO ที่มีไบโอของคำที่ระบุ","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT 'id' AS \"user_link\" FROM Users WHERE AboutMe LIKE '%##SearchText##%' LIMIT 10"},{"instruction":"ฉันจะได้เครดิตกี่หน่วย สำหรับ 425","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT credits FROM course WHERE department = 'EECS' AND number = 425"},{"instruction":"โรงเรียนมารีย์อนุสรณ์ สอนระดับอะไรบ้าง","input":"","output":"ระดับเตรียมอนุบาล–มัธยมศึกษาตอนต้น"},{"instruction":"เดชเซียวฮื้อยี้ สร้างขึ้นในปีอะไร","input":"","output":"ค.ศ. 1979"},{"instruction":"กรานาโด เอสพาดา ภายในเกมจะอิงอะไร","input":"","output":"ศิลปะยุคบาโรก"},{"instruction":"จักรพรรดิฮั่นจื้อ ถูกใครฆ่า","input":"","output":"เหลียง จี้"},{"instruction":"มนุษย์ หลังวิวัฒนาการไปเป็นอะไร","input":"","output":"ออสตราโลพิเธซีน"},{"instruction":"สกุลช้าง จัดเป็นพืชประเภทใด","input":"","output":"เป็นพืชในวงศ์กล้วยไม้ (Orchidaceae)"},{"instruction":"ปิด ไม่ได้ถูกลบ คำถามที่มีการโหวต <= 1 เรียงตามวันที่","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\", q.CreationDate FROM Posts AS q WHERE q.PostTypeId = 1 AND q.CreationDate > '##StartDate##' AND q.CreationDate < '##EndDate##' AND q.ClosedDate > '##StartDate##' AND q.DeletionDate IS NULL AND q.Score <= 1 AND COALESCE((SELECT MAX(a.Score) FROM Posts AS a WHERE a.ParentId = q.Id AND a.PostTypeId = 2), 0) <= 1 ORDER BY q.CreationDate"},{"instruction":"ผลงานหนึ่งของอันซิทร็อล คือ อะไร","input":"","output":"การยกร่าง \"กฎหมายแม่แบบอันซิทร็อลว่าด้วยอนุญาโตตุลาการพาณิชย์ระหว่างประเทศ\" "},{"instruction":"ออสตินเลยได้รับการเลี้ยงดูจาก","input":"","output":"มิเชลล์ มาโฮน (อังกฤษ: Michelle Mahone) แม่เพียงคนเดียวของเขา "},{"instruction":"กบฏ 26 มีนาคม พ.ศ. 2520 ได้ยึดสถานที่สำคัญกี่แห่ง","input":"","output":"4 แห่ง"},{"instruction":"พระราชบิดาของเจ้าชายนาเยฟ บิน อับดุลลาซิซ อัล ซาอุดคือ ?","input":"","output":"กษัตริย์อับดุลอาซิซ"},{"instruction":"โทน บทประพันธ์โดยใคร","input":"","output":"เปี๊ยก โปสเตอร์"},{"instruction":"Mike Einziger มีหน้าที่อะไรในวง","input":"","output":"กีตาร์"},{"instruction":"แสดงรหัสวิธีการชำระเงินทั้งหมดและจำนวนคำสั่งซื้อสำหรับแต่ละรหัส โดยแสดงเป็นแผนภูมิวงกลม","input":"CREATE TABLE Invoices (\n    Invoice_ID INTEGER,\n    Order_ID INTEGER,\n    payment_method_code CHAR(15),\n    Product_ID INTEGER,\n    Order_Quantity VARCHAR(288),\n    Other_Item_Details VARCHAR(255),\n    Order_Item_ID INTEGER\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code"},{"instruction":"ราคาสินค้าสูงสุดที่จัดกลุ่มตามประเภทของผลิตภัณฑ์คืออะไร แสดงเป็นกราฟแท่ง และเรียงชื่อจากต่ำไปสูง","input":"CREATE TABLE Products (\n    product_id INTEGER,\n    product_type_code VARCHAR(10),\n    product_name VARCHAR(80),\n    product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code"},{"instruction":"การเลือกตั้งสมาชิกสภาแห่งชาติ เกิดขึ้นที่ประเทศอะไร","input":"","output":"ประเทศเกาหลีเหนือ"},{"instruction":"คนองศึก วีระศักดิ์เล็ก มีอาชีพอะไร","input":"","output":"นักมวยไทยชาวไทย"},{"instruction":"จุดหมายปลาทางของยูไนเต็ดแอร์ไลน์ ไปที่ไหน","input":"","output":"ท่าอากาศยานนานาชาติลอสแอนเจลิส"},{"instruction":"คำถามคำตอบต่อชั่วโมงสำหรับผู้ใช้","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(CreationDate, '%h') AS hour, COUNT(CASE WHEN PostTypeId = 1 THEN 1 END) AS questions, COUNT(CASE WHEN PostTypeId = 2 THEN 1 END) AS answers FROM Posts WHERE PostTypeId IN (1, 2) GROUP BY TIME_TO_STR(CreationDate, '%h')"},{"instruction":"การก่อสร้างเจดีย์ชเวซี่โกน เริ่มต้นขึ้นในรัชสมัยใด ?","input":"","output":"พระเจ้าจานซิต้า"},{"instruction":"รบกวนให้จดชื่อชั้นเที่ยวบินทั้งหมดที่ให้บริการ","input":"CREATE TABLE class_of_service (\n    booking_class varchar,\n    rank int,\n    class_description text\n)\n\n","output":"SELECT DISTINCT booking_class FROM class_of_service"},{"instruction":"ที่หยุดรถไฟหนองมงคล อยู่ห่างจากสถานีรถไฟธนบุรีเป็นระยะทางเท่าไร","input":"","output":"364.98 กิโลเมตร"},{"instruction":"Top Users ที่การแก้ไขถูกปฏิเสธมากที่สุด","input":"CREATE TABLE SuggestedEdits (\n    Id number,\n    PostId number,\n    CreationDate time,\n    ApprovalDate time,\n    RejectionDate time,\n    OwnerUserId number,\n    Comment text,\n    Text text,\n    Title text,\n    Tags text,\n    RevisionGUID other\n)\n\n","output":"SELECT OwnerUserId AS \"user_link\", COUNT(*) FROM SuggestedEdits WHERE ApprovalDate IS NULL AND NOT RejectionDate IS NULL GROUP BY OwnerUserId ORDER BY COUNT(*) DESC LIMIT 10"},{"instruction":"เอ็กซ์ตรีมรูลส์ กำหนดจัดวันที่เท่าไร","input":"","output":"15 กรกฎาคม 2018"},{"instruction":"ไข้หวัดนกถูกค้นพบครั้งแรกที่ประเทศใด","input":"","output":"ประเทศอิตาลี"},{"instruction":"เมื่อวันที่เท่าไรคนไข้ 018-20179 ได้เข้ารับการรักษาที่โรงพยาบาลผ่านห้องผ่าตัดครั้งแรกเมื่อ 1 ปีที่แล้ว","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaladmitsource = 'operating room' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ไอดิตเกิดที่ไหน","input":"","output":"ไอดิตเกิดที่เมืองเมดัน เกาะสุมาตรา"},{"instruction":"ภาษาเยอรมันเป็นภาษาที่คนพูดเป็นภาษาแม่มากสุดที่ไหน","input":"","output":"ในสหภาพยุโรป"},{"instruction":"สโมสรฟุตบอลมัคคาบีเทลอาวีฟเป็นสโมสรของประเทศอะไร","input":"","output":"ประเทศอิสราเอล"},{"instruction":"ผู้ป่วยหมายเลข 23969 ได้มาตรวจที่โรงพยาบาลแล้วกี่ครั้งในปีนี้?","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 23969 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"เจ้าหญิงชาร์ลอตต์ ประสูติเมื่อวันที่เท่าไร","input":"","output":"30 กันยายน พ.ศ. 2441"},{"instruction":"ขณะนี้ผู้ป่วย 10855 สมรสหรือโสด","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 10855 AND admissions.dischtime IS NULL"},{"instruction":"ผู้ใช้งานชั้นนำจาก Innsbruck ประเทศออสเตรีย","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%innsbruck%' OR UPPER(Location) LIKE '%INNSBRUCK%' OR Location LIKE '%Innsbruck%' ORDER BY Reputation DESC"},{"instruction":"หมวดวิชาใดที่เสนอหน่วยกิต 13 หน่วยในส่วนของรายวิชา RELIGION ระดับ 200","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE credits = 13 AND department = 'RELIGION' AND number < 200 + 100 AND number >= 200"},{"instruction":"มุฮัมมัด อิบน์ มูซา อัลคอวาริซมีย์ มีชื่อเสียงในสมัยอะไร","input":"","output":"อัลมะอ์มูน แห่งราชวงศ์อับบาซียะห์"},{"instruction":"ระงับพิษคืออะไร","input":"","output":"ไม้พุ่มในวงศ์ Phyllanthaceae"},{"instruction":"จำนวนผู้ใช้งานที่สร้างใหม่ต่อเดือน","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT * FROM Users LIMIT 10"},{"instruction":"ยูไนเต็ดแอร์ไลน์ เที่ยวบินที่ 232 หลังจากเหตุการณ์ขึ้นนักบินแก้สถานะการอย่างไร","input":"","output":"นักบินตัดสินใจนำเครื่องลงจอดฉุกเฉินที่สนามบินซูใน รัฐไอโอว่า"},{"instruction":"คุณคิดว่า 579 ใหญ่แค่ไหน?","input":"CREATE TABLE course (\n    course_id int,\n    name varchar,\n    department varchar,\n    number varchar,\n    credits varchar,\n    advisory_requirement varchar,\n    enforced_requirement varchar,\n    description varchar,\n    num_semesters int,\n    num_enrolled int,\n    has_discussion varchar,\n    has_lab varchar,\n    has_projects varchar,\n    has_exams varchar,\n    num_reviews int,\n    clarity_score int,\n    easiness_score int,\n    helpfulness_score int\n)\n\n","output":"SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 579"},{"instruction":"ภาพยนต์ บราเธอร์ส ได้รับแรงบันดาลใจมาจากบทประพันธ์ใคร","input":"","output":"โฮเมอร์"},{"instruction":"ปลาดุกลำพันมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Clarias nieuhofii"},{"instruction":"เอมิ มาเรียคืือใคร","input":"","output":"นักร้องและนักแต่งเพลงเพลงอาร์แอนด์บีชาวญี่ปุ่น"},{"instruction":"วาดแผนภูมิแท่งข้อมูลจำนวนรวมตามวิธีเดินทาง โดยเรียงจากจำนวนน้อยไปหามาก","input":"CREATE TABLE Tourist_Attractions (\n    Tourist_Attraction_ID INTEGER,\n    Attraction_Type_Code CHAR(15),\n    Location_ID INTEGER,\n    How_to_Get_There VARCHAR(255),\n    Name VARCHAR(255),\n    Description VARCHAR(255),\n    Opening_Hours VARCHAR(255),\n    Other_Details VARCHAR(255)\n)\n\n","output":"SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*)"},{"instruction":"ปลาน้ำหมึกนั้นนิยมนำมาทำอะไร","input":"","output":"นิยมเลี้ยงเป็นปลาสวยงาม"},{"instruction":"อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์สร้างเสร็จเมื่อใด","input":"","output":"เดือนมิถุนายน ค.ศ. 1981"},{"instruction":"ประเภทผู้ป่วยที่เข้ารับบริการประเภทแรกของผู้ป่วย 3939 คืออะไร","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 3939 ORDER BY admissions.admittime LIMIT 1"},{"instruction":"8 อันดับประเทศที่มีขนาดใบแจ้งหนี้สูงสุดและขนาดเท่าใด โปรดวาดเป็นกราฟแท่ง","input":"CREATE TABLE invoices (\n    id INTEGER,\n    customer_id INTEGER,\n    invoice_date TIMESTAMP,\n    billing_address VARCHAR(70),\n    billing_city VARCHAR(40),\n    billing_state VARCHAR(40),\n    billing_country VARCHAR(40),\n    billing_postal_code VARCHAR(10),\n    total NUMERIC(10,2)\n)","output":"SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8"},{"instruction":"ทำไมคนไข้รายที่ 004-32341 จึงได้เข้ารับการรักษาในโรงพยาบาลเป็นครั้งแรกเมื่อ 2 ปีที่ผ่านมา","input":"CREATE TABLE patient (\n    uniquepid text,\n    patienthealthsystemstayid number,\n    patientunitstayid number,\n    gender text,\n    age text,\n    ethnicity text,\n    hospitalid number,\n    wardid number,\n    admissionheight number,\n    admissionweight number,\n    dischargeweight number,\n    hospitaladmittime time,\n    hospitaladmitsource text,\n    unitadmittime time,\n    unitdischargetime time,\n    hospitaldischargetime time,\n    hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '004-32341' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ผู้ป่วยหมายเลข 18159 มาที่โรงพยาบาลตั้งแต่ 3 ปีก่อนหรือไม่","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 18159 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-3 year')"},{"instruction":"อะลาดินอยู่ในนิทานชุดไหน","input":"","output":"พันหนึ่งราตรี (One Thousand and One Nights)"},{"instruction":"รักปรุงรส ออกอากาศเป็นละครโทรทัศน์ครั้งแรกเมื่อในปีอะไร","input":"","output":"พ.ศ. 2561"},{"instruction":"ประเทศแคนาดา เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูหนาวครั้งที่ 17 ระหว่างวันที่เท่าไร","input":"","output":"12 กุมภาพันธ์ – 27 กุมภาพันธ์ พ.ศ. 2537"},{"instruction":"หาที่นัดหมายที่แตกต่างกัน แล้วนับเป็นแผนภูมิแท่ง และจัดเรียงจากมากไปน้อยจากแกน y","input":"CREATE TABLE Visits (\n    Visit_ID INTEGER,\n    Tourist_Attraction_ID INTEGER,\n    Tourist_ID INTEGER,\n    Visit_Date DATETIME,\n    Visit_Details VARCHAR(40)\n)\n\n","output":"SELECT Visit_Date, COUNT(Visit_Date) FROM Visits ORDER BY COUNT(Visit_Date) DESC"},{"instruction":"อาร์ชบิชอปแห่งแคนเทอร์เบอรี อยู่ประเทศอะไร","input":"","output":"อังกฤษ"},{"instruction":"เฮาส์ ติดรางวัลซีรีย์อะไรในอเมริกา","input":"","output":"หนึ่งในสิบรายการเรตติงสูงสุดในสหรัฐตั้งแต่ฤดูกาลที่ 2 จนฤดูกาลที่ 4"},{"instruction":"สถาปัตยกรรมสากล ามารถไปก่อสร้างที่ไหนในโลกนี้ ก็ได้โดยเมินเฉยต่อบริบทในช่วงกลางศตวรรษที่ เท่าไหร่ ?","input":"","output":"ศตวรรษที่20"},{"instruction":"ศรนารายณ์ ส.สมหมาย จัดอยู่ในประเภทอะไรของมวย","input":"","output":"มวยเข่า"},{"instruction":"สุหฤท สยามวาลา ชื่อเล่นว่าอะไร","input":"","output":"โต้"},{"instruction":"อเมริกาส์เน็กซต์ท็อปโมเดล ฤดูกาลที่ 21 ออกอากาศในปีใด","input":"","output":"ปี 2557"},{"instruction":"จดเวลาเข้าโรงพยาบาลของคนไข้ 30267 ปีนี้","input":"CREATE TABLE admissions (\n    row_id number,\n    subject_id number,\n    hadm_id number,\n    admittime time,\n    dischtime time,\n    admission_type text,\n    admission_location text,\n    discharge_location text,\n    insurance text,\n    language text,\n    marital_status text,\n    ethnicity text,\n    age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 30267 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"ในการเขียนโปรแกรมเชิงวัตถุเรียกอีกหนึ่งว่าอะไร","input":"","output":"คลาส (อังกฤษ: class)"},{"instruction":"ครัวซ็อง กลายมาเป็นอาหารหลักตามร้านขนมต่างๆของประเทศอะไร","input":"","output":"ประเทศฝรั่งเศส"},{"instruction":"ผู้ใช้ระดับท็อปจาก Ahmedabad ประเทศอินเดีย","input":"CREATE TABLE Users (\n    Id number,\n    Reputation number,\n    CreationDate time,\n    DisplayName text,\n    LastAccessDate time,\n    WebsiteUrl text,\n    Location text,\n    AboutMe text,\n    Views number,\n    UpVotes number,\n    DownVotes number,\n    ProfileImageUrl text,\n    EmailHash text,\n    AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%ahmedabad, gujarat, india%' OR UPPER(Location) LIKE '%AHMEDABAD, GUJARAT, INDIA%' OR Location LIKE '%Ahmedabad, Gujarat, India%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"ริกกี เนลสัน เสียชีวิตเมื่อไร","input":"","output":"31 ธันวาคม ค.ศ. 1985"},{"instruction":"จำนวนคำตอบโดยเฉลี่ยขึ้นอยู่กับวันในสัปดาห์ที่โพสต์คำถาม","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"WITH tmp AS (SELECT AnswerCount AS ACount, Period = TIME_TO_STR(CreationDate, '%W') FROM Posts WHERE PostTypeId = 1) SELECT Period, AVG(CAST(ACount AS FLOAT)) FROM tmp GROUP BY Period ORDER BY Period"},{"instruction":"ยอมรับอัตราส่วนสำหรับเว็บไซต์","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT CAST(COUNT(AcceptedAnswerId) AS FLOAT) \/ COUNT(*) AS Accept_ratio FROM Posts WHERE PostTypeId = 1"},{"instruction":"รับโพสต์ที่ขึ้นต้นด้วย '-1'","input":"CREATE TABLE Posts (\n    Id number,\n    PostTypeId number,\n    AcceptedAnswerId number,\n    ParentId number,\n    CreationDate time,\n    DeletionDate time,\n    Score number,\n    ViewCount number,\n    Body text,\n    OwnerUserId number,\n    OwnerDisplayName text,\n    LastEditorUserId number,\n    LastEditorDisplayName text,\n    LastEditDate time,\n    LastActivityDate time,\n    Title text,\n    Tags text,\n    AnswerCount number,\n    CommentCount number,\n    FavoriteCount number,\n    ClosedDate time,\n    CommunityOwnedDate time,\n    ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\" FROM Posts WHERE 'body' LIKE '

-1 %'"},{"instruction":"วันที่ลงความคิดเห็นแรก","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT MIN(CreationDate) FROM Comments"},{"instruction":"ผู้นำการออกแบบเกม โดตา 2 คือใคร","input":"","output":"ไอซ์ฟร็อก"},{"instruction":"นับจำนวนผู้ป่วยที่เข้ามารักษาในโรงพยาบาลในช่วง 1 ปี ที่ผ่านมา","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"ในวัยเด็กเอมิ มาเรียได้รับอิทธิพลแนวเพลงจากนักร้องคนใด","input":"","output":"เจเน็ต แจ็กสัน, ไมเคิล แจ็กสัน และเคซีแอนด์โจโจ"},{"instruction":"รับผู้ใช้ที่มีสไมลีย์ในชื่อผู้ใช้","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, Reputation, DisplayName, Location, Age, CreationDate, WebsiteUrl FROM Users WHERE DisplayName LIKE '%sanchy%' ORDER BY Reputation DESC"},{"instruction":"บอกฉันด้วยว่า มีผู้ป่วยที่ออกจากโรงพยาบาลเป็นจำนวนเท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL"},{"instruction":"โหวตอย่างใกล้ชิดสำหรับแท็ก X โดยผู้ใช้ (พร้อมลิงก์)","input":"CREATE TABLE ReviewTasks (\n Id number,\n ReviewTaskTypeId number,\n CreationDate time,\n DeletionDate time,\n ReviewTaskStateId number,\n PostId number,\n SuggestedEditId number,\n CompletedByReviewTaskId number\n)\n\n","output":"SELECT COUNT(*) FROM ReviewTasks WHERE ReviewTaskTypeId = 2 AND ReviewTaskStateId = 1"},{"instruction":"อันดับของผู้ใช้งานในสถานที่มีตัวแทนผู้สนับสนุน โดยมีมูลค่าขั้นต่ำ","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", DisplayName, Reputation, Location, Views, ProfileImageUrl, AboutMe FROM Users WHERE Reputation >= '##repcap##' AND LOWER(Location) LIKE LOWER(N'%##Location##%') ORDER BY Reputation DESC"},{"instruction":"สะพานเหญิตเตินมีความกว้างทั้งหมดกี่เมตร","input":"","output":"33.2 เมตร"},{"instruction":"คำถามที่ถูกปิดและถูกเพิ่มในรายการด้านโปรด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", FavoriteCount, Score, CreationDate FROM Posts WHERE (PostTypeId = 1) AND (NOT ClosedDate IS NULL) AND (FavoriteCount > 0) ORDER BY CreationDate DESC"},{"instruction":"ปลากัดป่าภาคใต้มีพฤติกรรมอย่างไร","input":"","output":"มีพฤติกรรมก้าวร้าวน้อย"},{"instruction":"ชวาทซ์วัลท์-ชตาดีอ็อน คืออะไร","input":"","output":"สนามฟุตบอล"},{"instruction":"พงษ์ศักดิ์ จันทรุกขา ได้รับปริญญาอะไร","input":"","output":"มหาบัณฑิตกิตติมศักดิ์ ศิลปะศาสตร์มหาบัณฑิต สาขา ดนตรีศึกษา"},{"instruction":"สรารัตน์ หรุ่มเรืองวงศ์ มีอีกชื่อหนึ่งว่าอะไร","input":"","output":"ปูดำ"},{"instruction":"ณ 2 ปีที่แล้ว หอผู้ป่วย 489 มีผู้ป่วยทั้งสิ้นกี่ราย","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 489 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"กราฟแท่งสำหรับหมายเลขโทรศัพท์ของพนักงานแต่ละคนคืออะไร และคุณช่วยแสดงในลักษณะเรียงจากมากไปหาน้อยตามหมายเลขโทรศัพท์ได้มั้ย","input":"CREATE TABLE Employee (\n EmployeeId integer,\n LastName varchar(20),\n FirstName varchar(20),\n Title varchar(30),\n ReportsTo integer,\n BirthDate datetime,\n HireDate datetime,\n Address varchar(70),\n City varchar(40),\n State varchar(40),\n Country varchar(40),\n PostalCode varchar(10),\n Phone varchar(24),\n Fax varchar(24),\n Email varchar(60)\n)\n\n","output":"SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone ORDER BY Phone DESC"},{"instruction":"เม็กกาโลดอน ชื่อยุคอะไร","input":"","output":"ไมโอซีนตอนต้นถึงไพลโอซีน"},{"instruction":"ตอนไหนเป็นการไปรพ. ครั้งสุดท้ายในรอบ 2 ปีที่ผ่านมา ที่คนไข้ 035-4428 เข้ารับการรักษาแบบผู้ป่วยนอก","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '035-4428' AND patient.hospitaladmitsource = 'floor' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"อาณาจักรโคกูรยอโดนกองทัพใดตีแตก","input":"","output":"กองทัพพันธมิตรชิลลา-ถัง"},{"instruction":"วังเทวะเวสม์ ตั้งอยู่ที่ใด","input":"","output":"ริมแม่น้ำเจ้าพระยา ทางทิศเหนือของวังบางขุนพรหม ทางทิศใต้ของวังเทเวศร์ บนถนนสามเสน"},{"instruction":"ผู้บริหารระดับสูงจากโซล ประเทศเกาหลีใต้","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%seoul%' OR UPPER(Location) LIKE '%SEOUL%' OR Location LIKE '%Seoul%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"ข้อความของ Chris ที่มี 'ใช้ข้อมูลอ้างอิง'","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT CreationDate, Id AS \"comment_link\" FROM Comments WHERE UserId = 962089 AND Text LIKE '%a reference%' ORDER BY CreationDate"},{"instruction":"โหวตอันดับสูงสุดของคำถาม ตอบ - MSE","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT * FROM Votes LIMIT 10"},{"instruction":"อัลด์โนอา.เซโร่ออกอากาศครึ่งหลังเมื่อใด","input":"","output":"มกราคม พ.ศ 2558"},{"instruction":"แยกเกียกกายคืออะไร ?","input":"","output":"เป็นสี่แยกจุดตัดระหว่างถนนประชาราษฎร์ สาย 1,"},{"instruction":"โพสต์ทั้งหมดที่ถูกโหวตน้อยของผู้ใช้","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE OwnerUserId = '##UserID##' AND Score < 0"},{"instruction":"มาร์กาเร็ตแห่งยอร์กเป็นธิดาของใคร","input":"","output":"ริชาร์ด ดยุคแห่งยอร์กกับเซซิลี เนวิลล์ "},{"instruction":"บอกฉันหน่อยว่าผู้ป่วย 3745 นอนอยู่โรงพยาบาลนานเท่าไหร่ เมื่อครั้งล่าสุด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 3745 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"โรงเรียนปัวเปิดการสอนตั้งแต่เมื่อใด","input":"","output":"เปิดทำการสอนตั้งแต่วันที่ 18 พฤษภาคม พ.ศ. 2507 "},{"instruction":"ฟาม ฟาเตล เพลงฮิตอันดับ 1 คือเพลงอะไร","input":"","output":"Hold It Against Me"},{"instruction":"คีย์บอร์ด เรียกอีกอย่างว่าอะไร","input":"","output":"แป้นพิมพ์"},{"instruction":"หลักสูตร Adv Hlth Assess มีหลักสูตรใดบ้างที่เป็น 18 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Adv Hlth Assess%' OR name LIKE '%Adv Hlth Assess%') AND credits = 18"},{"instruction":"มีหลักสูตรด้านใดที่ลงได้ 2 หน่วยกิตในระดับ SW 100","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE credits = 2 AND department = 'SW' AND number < 100 + 100 AND number >= 100"},{"instruction":"ยูโกสลาเวีย เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูหนาวครั้งที่ 18 จัดขึ้นระหว่างช่วงไหน","input":"","output":"7 กุมภาพันธ์ – 22 กุมภาพันธ์ พ.ศ. 2541"},{"instruction":"ผู้ป่วย 21302 เข้ามารักษาในโรงพยาบาลครั้งแรกในปีนี้จากการรับต่อจากโรงพยาบาล\/นอกโรงพยาบาล วันที่เท่าไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 21302 AND admissions.admission_location = 'transfer from hosp\/extram' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime LIMIT 1"},{"instruction":"อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์ปัจจุบันเป็นอะไร","input":"","output":"เป็นถนน อาคารเวิลด์เทรดเซ็นเตอร์ 2 และ อาคาร Transportation hub"},{"instruction":"ผู้ใช้ที่มีคะแนนน้อยกว่า 15 คนมีกี่คน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(*) AS Users FROM Users WHERE Reputation < 15 AND Id > 0"},{"instruction":"เปอร์เซ็นต์คำถามที่ให้คะแนนลบในแต่ละปี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT SUM(CASE WHEN Score < 0 THEN 1 ELSE 0 END) * 100 \/ COUNT(*) AS percentage, COUNT(*) AS total, SUM(CASE WHEN Score < 0 THEN 1 ELSE 0 END) AS negatice_count FROM Posts WHERE YEAR(CreationDate) = @year AND PostTypeId = 1"},{"instruction":"คำถามที่ไม่มีคำตอบที่ดีที่สุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT q.Id AS \"post_link\" FROM Posts AS q WHERE PostTypeId = 1 AND Score > 0 AND ClosedDate IS NULL AND (SELECT COUNT(*) FROM Posts AS a WHERE a.ParentId = q.Id AND a.Score > -1) = 0 AND AcceptedAnswerId IS NULL ORDER BY CreationDate"},{"instruction":"สถิติการชกของยูกิ มูราอิเป็นอย่างไร","input":"","output":"สถิติการชก 28 ครั้ง ชนะ 12 (น็อค 3) เสมอ 4 แพ้ 12\n"},{"instruction":"เลือก * จากผู้ใช้ทุกที่ที่ตั้งที่ตั้งเหมือนกับ 'pune'","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT * FROM Users WHERE Location LIKE '%Oklahoma%' ORDER BY Reputation DESC"},{"instruction":"ภาพยนตร์ได้โครงเรื่องจากบทภาพยนตร์ของใคร","input":"","output":"Suliko Jgenti"},{"instruction":"รับคำติชมจากรหัสผู้ใช้","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') AND UserId = '##UserId##' ORDER BY Score DESC"},{"instruction":"ไซราคูเซียเป็นชื่อเรียกของอะไร ในสมัยกรีกโบราณ","input":"","output":"เรือ"},{"instruction":"select * from posts.","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts"},{"instruction":"เสือฝ้ายเคยบวชเรียนแล้วสึกออกมาเป็นผู้ใหญ่บ้าน ที่ใด ?","input":"","output":"ผู้ใหญ่บ้าน บ้านท่าใหญ่ หมู่ 7 ตำบลเดิมบาง อำเภอเดิมบางนางบวช จังหวัดสุพรรณบุรี"},{"instruction":"3 ปีที่แล้ว มีคนไข้รับเข้ารักษาในโรงพยาบาลจำนวนเท่าใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year')"},{"instruction":"รัชพล นาวันโน โดยในอดีตรัชพลได้เคยร่วมเดินสายแข่งฟุตบอลรายการต่าง ๆ ร่วมกับใคร","input":"","output":"เมสซี่เจ ชนาธิป สรงกระสินธ์"},{"instruction":"รัฐลูเซิร์น มีเมืองศูนย์กลางอยู่ที่ไหน","input":"","output":"นครลูเซิร์น"},{"instruction":"จำนวนผู้ใช้: ผู้ใช้ในสถานที่ที่กำหนด – ไม่คำนึงถึงตัวพิมพ์ใหญ่","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"WITH UsersStatedLocation AS (SELECT CASE WHEN LOWER(Location) LIKE LOWER('##Location##') THEN 'Location Input' ELSE 'Not a match' END AS StatedLocation FROM Users WHERE LENGTH(Location) > 1) SELECT UsersStatedLocation.StatedLocation, COUNT(1) AS \"count\" FROM UsersStatedLocation GROUP BY UsersStatedLocation.StatedLocation ORDER BY StatedLocation"},{"instruction":"พระเจ้าอัลฟอนโซที่ 11 เป็นกษัตริย์แห่งกัสติยาตั้งแต่เมื่อใด","input":"","output":"ค.ศ. 1312 จนถึง ค.ศ. 1350"},{"instruction":"โดยออกเพลงใหม่ชื่อว่าอะไร","input":"","output":"แป๊ะอย่าร้อง"},{"instruction":"ซูเปอร์โบวล์ครั้งที่ 42 นัดตัดสินในฤดูกาลจัดขึ้นในเวลาอะไร","input":"","output":"18.30 น.ตามเวลาท้องถิ่น (23:30 UTC)"},{"instruction":"ประวัติการเข้ารักษาพยาบาลของผู้ป่วยหมายเลข 60515 ย้อนหลัง 3 ปี","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 60515 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year')"},{"instruction":"แสดงโพสต์ที่มีคำว่า apt-cache อยู่ในเนื้อหา","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", CreationDate FROM Posts WHERE Body LIKE '%apt-cache%' ORDER BY CreationDate DESC"},{"instruction":"โพสต์ที่ได้รับเกียรติโดย VoteType 4","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT Id, CreationDate, PostId AS \"post_link\", 'site:\/\/q\/' + CAST(PostId AS TEXT) + '|Link' AS \"working_link\" FROM Votes WHERE VoteTypeId = 4 ORDER BY Id"},{"instruction":"นิวต์ กิงริช มีชื่อเมื่อเกิดว่าอะไร","input":"","output":"นิวตัน ลีรอย แมคเฟียร์สัน"},{"instruction":"แท็กที่แนะนำที่ไม่มีการโหวต","input":"CREATE TABLE TagSynonyms (\n Id number,\n SourceTagName text,\n TargetTagName text,\n CreationDate time,\n OwnerUserId number,\n AutoRenameCount number,\n LastAutoRename time,\n Score number,\n ApprovedByUserId number,\n ApprovalDate time\n)\n\n","output":"SELECT 'site:\/\/tags\/' + TargetTagName + '\/synonyms|' + SourceTagName AS Synonym, TargetTagName AS Original, OwnerUserId AS \"user_link\" FROM TagSynonyms WHERE Score = 0 AND ApprovalDate IS NULL ORDER BY 'user_link' DESC"},{"instruction":"ตัวละครหลักคือใคร","input":"","output":"วอลเตอร์ ไวต์"},{"instruction":"ค้นพบธารน้ำแข็งครั้งแรกในประเทศญี่ปุ่นที่จังหวัดโทยามะเมื่อไหร่","input":"","output":"เดือนพฤษภาคม พ.ศ. 2555"},{"instruction":"นับจำนวนลูกค้าที่ลงทะเบียนไว้","input":"CREATE TABLE customers (\n customer_id text,\n address_id number,\n customer_name text,\n customer_phone text,\n customer_email_address text,\n other_details text\n)","output":"SELECT COUNT(*) FROM customers"},{"instruction":"ว็อล์ฟกัง เพาล์ เรียนจบปริญญาอะไร","input":"","output":"มหาวิทยาลัยเทคนิคเบอร์ลิน"},{"instruction":"การฮั้วประมูล มีรูปแบบอย่างไร","input":"","output":"บุคคลหลายฝ่ายสมยอมกันเสนอราคาโดยไม่ได้ประสงค์จะเสนอเช่นนั้นจริง"},{"instruction":"ให้สัดส่วนราคาโดยเฉลี่ยของสินค้าแต่ละประเภท","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code"},{"instruction":"ลักษณะเด่นของสงครามเย็นที่แตกต่างจากสงครามอื่นคืออะไร","input":"","output":"ไม่มีการสู้รบขนาดใหญ่โดยตรงระหว่างสองฝ่าย"},{"instruction":"วิวัฒนาการของคะแนนสอบถามเฉลี่ย และจำนวนคำถามของแต่ละสัปดาห์ในปี 2015","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(p.CreationDate, '%W') AS weekOfCreation, SUM(p.Score) AS meanQuestionScore FROM Posts AS p WHERE p.PostTypeId = 1 AND TIME_TO_STR(p.CreationDate, '%Y') = 2015 GROUP BY TIME_TO_STR(p.CreationDate, '%W') ORDER BY TIME_TO_STR(p.CreationDate, '%W')"},{"instruction":"จอห์น วิค แรงกว่านรก เริ่มฉาบวันที่เท่าไร ","input":"","output":"21 พฤษภาคม ค.ศ. 2021"},{"instruction":"แสดงหมายเลขวันที่ของหมายเหตุการประเมิน โดยเรียงจากค่ามากไปน้อยในแกน x","input":"CREATE TABLE Assessment_Notes (\n notes_id INTEGER,\n student_id INTEGER,\n teacher_id INTEGER,\n date_of_notes DATETIME,\n text_of_notes VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC"},{"instruction":"เกิลส์เจเนอเรชันมีชื่อภาษาเกาหลีว่าอะไร","input":"","output":"โซนยอชีแด"},{"instruction":"พระเมรุมาศและพระเมรุใช้ในพระราชพิธีใด","input":"","output":"พระราชพิธีพระบรมศพหรือพระราชพิธีพระศพโดยเฉพาะ"},{"instruction":"2000 อันดับผู้ใช้ Stack Overflow ชาวเนเธอร์แลนด์ผู้มีชื่อเสียง ผู้ใช้ SO 2000 อันดับแรกจากเมืองในเนเธอร์แลนด์หรือเมืองที่ตั้งอยู่ในเนเธอร์แลนด์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Position, DisplayName, Reputation, WebsiteUrl, Location, WebsiteUrl, AboutMe, 'http:\/\/stackoverflow.com\/users\/' + CAST(Id AS TEXT(10)) AS ProfileUrl FROM Users WHERE UPPER(Location) LIKE '%NETHERLANDS%' OR UPPER(Location) LIKE '%NEDERLAND%' OR UPPER(Location) LIKE N'%AMSTERDAM%' OR UPPER(Location) LIKE N'%EINDHOVEN%' OR UPPER(Location) LIKE N'%UTRECHT%' OR UPPER(Location) LIKE N'%NIJMEGEN%' OR UPPER(Location) LIKE N'%ROTTERDAM%' OR UPPER(Location) LIKE N'%HAAG%' ORDER BY Reputation DESC LIMIT 2000"},{"instruction":"พัฒนาการของจำนวนโพสต์แต่ละประเภท คำนวณกราฟของจำนวนโพสต์ของแต่ละประเภทในแต่ละวันระหว่างวันที่สองวันโพสต์ประเภทที่ 1 คือคำถาม โพสต์ประเภทที่ 2 คือคำตอบ และสำหรับข้อมูลเพิ่มเติม ดู http:\/\/meta.stackexchange.com\/q\/2677\/285933","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(CreationDate, '%d') AS DayDate, STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)) AS FullDate, COUNT(*) AS Total FROM Posts WHERE PostTypeId = 1 GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)), TIME_TO_STR(CreationDate, '%d') ORDER BY FullDate DESC"},{"instruction":"ในปี พ.ศ 2499 ใครกล่าวคำปราศัยในวันครูแห่งชาติ","input":"","output":"จอมพล ป. พิบูลสงคราม"},{"instruction":"โพสต์ล่าสุด ที่มีคะแนนติดลบ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT 'id' AS \"post_link\", 'score', 'creationdate', 'closeddate', 'body' FROM Posts WHERE Score < -10 ORDER BY CreationDate DESC LIMIT 50"},{"instruction":"อักษรละตินเรียกอีกอย่างว่าอะไร","input":"","output":"อักษรโรมัน"},{"instruction":"นับจำนวนคำตอบของ ELL ในแต่ละปี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(AnswerCount) AS \"total_answers\" FROM Posts WHERE YEAR(CreationDate) = @GiveYear"},{"instruction":"ค้นหาผู้ใช้ที่ให้ค่าตอบแทนสูงสุดต่อโพสต์","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)","output":"SELECT UserId AS \"user_link\", PostId AS \"post_link\", COUNT(*) AS Bounties FROM Votes WHERE VoteTypeId = 8 AND CreationDate >= '2011-09-09 11:00:00' GROUP BY UserId, PostId ORDER BY Bounties DESC"},{"instruction":"ดนตรีแทร็ป ได้เป็นองค์ประกอบรวมในการกำเนิดอะไร","input":"","output":"ดนตรี"},{"instruction":"เลี้ยงขอบคุณผีบรรพบุรุษในรอบปี ซึ่งพิธีการเหยาแบบนี้จะกระทำเพียงปีละครั้งเท่านั้นในช่วงเดือนเมษายนถึงเดือนมิถุนายนเท่านั้น คือเหยาเพื่อ ?","input":"","output":"เหยาเพื่อเลี้ยงผี"},{"instruction":"พินินฟารินามีชื่อเดิมว่าอะไร","input":"","output":"คาร์รอซเซอเรีย พินินฟารินา (Carrozzeria Pininfarina)"},{"instruction":"ดึงข้อมูลจากโพสต์กอนหน้าทั้งหมด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Score, ViewCount, AnswerCount FROM Posts WHERE PostTypeId = 2 AND YEAR(CreationDate) > 2015"},{"instruction":"บรูซลีเสียชีวิตเมื่อใด","input":"","output":"ปี 1973"},{"instruction":"ไสว บุญมา มีลูกชื่อว่าอะไรบ้าง","input":"","output":"ดาว และ เดือน"},{"instruction":"จำนวนผู้ใช้ที่ไม่ซ้ำสำหรับแท็ก (หรือแท็ก)","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT Id FROM Tags WHERE TagName IN ('office-js')"},{"instruction":"พลาโซมัยซินพัฒนามาจากยาชนิดใด","input":"","output":"ซิโซมัยซิน"},{"instruction":"อำเภอกัลยาณิวัฒนาเป็นอำเภอลำดับที่เท่าใดของประเทศไทย","input":"","output":"ลำดับที่ 878"},{"instruction":"เคต วินสเล็ต มีอาชีพอะไร","input":"","output":"นักแสดงหญิง"},{"instruction":"วิวัฒนาการของจำนวนโพสต์ในแต่ละประเภท คำนวณกราฟที่มีจำนวนโพสต์ในแต่ละประเภทสำหรับแต่ละวันระหว่างสองวันที่เลือก ประเภทของโพสต์คือ 1 สำหรับคำถาม 2 สำหรับคำตอบ และเพิ่มเติม โปรดดูที่ http:\/\/meta.stackexchange.com\/q\/2677\/285933","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(CreationDate, '%d') AS DayDate, STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)) AS FullDate, COUNT(*) AS Total FROM Posts WHERE PostTypeId = 1 GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)), TIME_TO_STR(CreationDate, '%d') ORDER BY FullDate DESC"},{"instruction":"ผู้ใช้ที่มีตรา x มากที่สุด","input":"CREATE TABLE Badges (\n Id number,\n UserId number,\n Name text,\n Date time,\n Class number,\n TagBased boolean\n)\n\n","output":"SELECT UserId AS \"user_link\", COUNT(*) AS \"badge_count\" FROM Badges WHERE Name = '##Badge:string##' GROUP BY UserId HAVING COUNT(*) > 1 ORDER BY 'badge_count' DESC LIMIT 100"},{"instruction":"เพื่อนพ้องน้องพี่ มีใครถือหุ้นด้วย","input":"","output":"กลุ่มเพื่อนของนายวีระ"},{"instruction":"เฉลิมศักดิ์ อักขี ปัจจุบันเขาได้ลงเล่นให้กับใคร","input":"","output":"บีจี ปทุม ยูไนเต็ด"},{"instruction":"100 อันดับแรก สิ่งขึ้นชื่อในอิหร่าน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Iran%' ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"เจ้าภาพกีฬาซีเกมส์ 1977 คือประเทศใด","input":"","output":"กัวลาลัมเปอร์ ประเทศมาเลเซีย"},{"instruction":"ปี พ.ศ. 2561 แก้ว บุญจิรา ภักดีวิจิตร บุตรสาวคนเดียวของฉลอง ภักดีวิจิตรได้นำภาพยนตร์จากฝีมือการกำกับของพ่อกลับมาสร้างของค่ายอาหลองนิวไลน์ในรูปแบบละครโทรทัศน์อีกครั้งโดยจะออกอากาศทางช่องใด ?","input":"","output":"ช่อง 3"},{"instruction":"เมื่อ 2 ปีก่อน คนไข้ 006-36108 เข้ารับการรักษาในโรงพยาบาลครั้งแรกอย่างไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '006-36108' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ผู้ใช้งาน Stackoverflow ชาวไอริชอันดับสูงสุด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE Id = 1362136 ORDER BY Reputation DESC"},{"instruction":"อากิ โทโยซากิ มีผลงานพากย์ที่สำคัญครั้งแรกในปีใด ?","input":"","output":"พ.ศ. 2550"},{"instruction":"อเวนเจอร์ส: เผด็จศึก เป็นภาพยนตร์ลำดับที่เท่าไหร่ของจักรวาลภาพยนตร์มาร์เวล","input":"","output":"ยี่สิบสอง"},{"instruction":"กล้วยป่าสยามมีชื่อวิทยาศาสตร์ว่าอะไร","input":"","output":"Musa acuminata subsp. siamea"},{"instruction":"แอ็สแอนเซแอ็ฟ คืออะไร","input":"","output":"เป็นบริษัทบริการรถไฟที่ใหญ่ที่สุดในฝรั่งเศส"},{"instruction":"เออร์ไวน์ คินเนสคือใคร","input":"","output":"บุรุษผู้เชี่ยวชาญในการยิงปืน และเป็นชายหนุ่มในดวงใจของสาว ๆ เป็นคนที่แม่นปืนที่สุดใน Garden"},{"instruction":"อาร์ชเดอลาเดฟ็องส์เป็นอนุสรณ์สถานที่ตั้งอยู่ในย่านใด","input":"","output":"ย่านลาเดฟ็องส์ ทางทิศตะวันตกของกรุงปารีส"},{"instruction":"อัมบั้มต่อมาชื่ออัมบั้มอะไร","input":"","output":"เมทีโอรา"},{"instruction":"พระเจ้าซินด๊อก ครองราชย์เมื่อใด ?","input":"","output":"ค.ศ. 913 - ค.ศ. 917"},{"instruction":"ผู้ใช้ในดูไบมีชื่อเสียง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Ranking = ROW_NUMBER() OVER (ORDER BY Reputation DESC), * FROM Users WHERE Location LIKE '%Dubai%' OR Location LIKE '%dubai%' ORDER BY Reputation DESC"},{"instruction":"วันนี้ผ่านมากี่วันแล้ว นับตั้งแต่ผู้ป่วย 005-48105 อยู่หอ 267 ครั้งล่าสุด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '005-48105' AND patient.wardid = 267 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"เปอร์เซ็นไทล์ของผู้ใช้ที่มีตำแหน่งที่ตั้ง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT (SELECT COUNT(Id) FROM Users WHERE NOT Location IS NULL) * 100.0 \/ (SELECT COUNT(Id) FROM Users)"},{"instruction":"ฟุรุซะโตะ ซิงเกิลช���ดนี้ถูกนำกลับมาจำหน่ายอีกครั้งในปีอะไร","input":"","output":"ปี พ.ศ. 2547"},{"instruction":"100 อันดับแรกของคำถามที่ได้รับความนิยมมากที่สุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", OwnerUserId AS \"user_link\", ViewCount FROM Posts WHERE PostTypeId = 1 ORDER BY ViewCount DESC LIMIT 100"},{"instruction":"สนามกีฬาติณสูลานนท์ โดยสนามนี้ยังเคยผ่านจัดฟุตบอลในกีฬาอะไร","input":"","output":"เอเชียนเกมส์ครั้งที่ 13"},{"instruction":"อาหรับราตรีภาษาอังกฤษฉบับแรกำเนิดขึ้นเมื่อไหร่","input":"","output":"ค.ศ. 1706"},{"instruction":"คำถามที่แย่ที่สุดสำหรับปีที่กำหนด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", Score, AnswerCount, ViewCount, FavoriteCount FROM Posts WHERE PostTypeId = 1 AND YEAR(CreationDate) = '##year##' AND Score <= 0 ORDER BY Score, AnswerCount"},{"instruction":"ค้นหาในความคิดเห็น\/ทั้งหมด","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", CreationDate, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') ORDER BY CreationDate DESC"},{"instruction":"อัตราคำตอบที่มีผู้โหวตสูงสุดของฉัน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT (SELECT CAST(COUNT(Id) AS FLOAT) FROM Posts AS a WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 AND Score > 0 AND (Score = (SELECT MAX(Score) FROM Posts AS b WHERE b.ParentId = a.ParentId))) \/ (SELECT COUNT(*) FROM Posts AS c WHERE c.OwnerUserId = @UserId AND c.PostTypeId = 2) * 100 AS \"top_voted_answer_rate\""},{"instruction":"โอฬาร ไชยประวัติ สังกัดสมัยรัชบาลใคร","input":"","output":"สมัยรัฐบาลสมชาย วงศ์สวัสดิ์"},{"instruction":"บทความทั้งหมดของฉันในคำอธิบาย","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(Id), PostTypeId FROM Posts WHERE OwnerUserId = @UserId AND CreationDate >= '##year##0101' AND CreationDate <= '##year##1231' GROUP BY PostTypeId"},{"instruction":"งานวันเด็กถูกจัดขึ้นวันแร��เมื่อไหร่","input":"","output":"เริ่มต้นจัดงานวันเด็กครั้งแรกเมื่อวันที่ 3 ตุลาคม พ.ศ. 2498 "},{"instruction":"ยอดสั่งซื้อขั้นต่ำ ค่าเฉลี่ย และสูงสุดคือเท่าไร ตรวจสอบใบแจ้งหนี้ทั้งหมด","input":"CREATE TABLE invoices (\n invoice_id number,\n order_id number,\n payment_method_code text,\n product_id number,\n order_quantity text,\n other_item_details text,\n order_item_id number\n)\n\n","output":"SELECT MIN(order_quantity), AVG(order_quantity), MAX(order_quantity) FROM invoices"},{"instruction":"ตัวเลือกการถามปกป้องโดยจำนวนคำตอบที่ถูกลบ","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", CreationDate FROM PostHistory WHERE PostHistoryTypeId = 19 ORDER BY CreationDate DESC"},{"instruction":"ตัวแทนพรอดิวเซอร์แห่งชาติมีชื่อว่าอะไร","input":"","output":"โบอา"},{"instruction":"ถนนเจ้าคุณทหาร ระยะทางประมาณเท่าไร","input":"","output":"5.2 กิโลเมตร"},{"instruction":"ขนมจีนคืออะไร","input":"","output":"อาหารคาวชนิดหนึ่ง ทำด้วยแป้งเป็นเส้นกลม ๆ คล้าย เส้นหมี่"},{"instruction":"วิชาอะไรจัดเป็นวิชาที่สำคัญของชีววิทยาและทางการแพทย์","input":"","output":"Histology"},{"instruction":"ปัจจุบันสุจาริณีและพระราชโอรสกี่พระองค์","input":"","output":"สี่องค์ "},{"instruction":"ค้นหาชื่อการแข่งขันที่แตกต่างกันของการแข่งขันทั้งหมดที่จัดขึ้นระหว่างปี 2014 ถึง 2017?","input":"CREATE TABLE races (\n raceid number,\n year number,\n round number,\n circuitid number,\n name text,\n date text,\n time text,\n url text\n)\n\n","output":"SELECT DISTINCT name FROM races WHERE year BETWEEN 2014 AND 2017"},{"instruction":"ผู้ใช้งาน SO สูงสุด จากรัฐ Arizona","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE Reputation >= (SELECT Reputation FROM Users WHERE Id = 5285908) AND (UPPER(Location) LIKE '% AZ%' OR UPPER(Location) LIKE '% ARIZONA%') ORDER BY Reputation DESC"},{"instruction":"เลือก 100 ผู้ใช้สูงสุดจากโพส","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT * FROM Users LIMIT 1000000"},{"instruction":"มีคอร์ส Adv Hlth Assess ที่มี 18 หน่วยกิตไหม ","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Adv Hlth Assess%' OR name LIKE '%Adv Hlth Assess%') AND credits = 18"},{"instruction":"ปกป้องคำถามด้วยจำนวนคำตอบที่ถูกลบไป","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", CreationDate FROM PostHistory WHERE PostHistoryTypeId = 19 ORDER BY CreationDate DESC"},{"instruction":"วิชาเอกสังคมศาสตร์ชุดไหนมีหน่วยกิต 13 หน่วย","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Special the Social Sciences%' OR name LIKE '%Special the Social Sciences%') AND credits = 13"},{"instruction":"ซาวน่าหรรษา ออกอากาศทางสถานีอะไร","input":"","output":"เคบีเอส"},{"instruction":"มีคำตอบกี่ข้อ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(A.Id) FROM Posts AS A WHERE A.PostTypeId = 2"},{"instruction":"ความคิดเห็นที่มีอันดับสูงที่สุดของฉันพร้อม CreationDate","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Score, Text, CreationDate FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250"},{"instruction":"อำพล ลำพูนและวรรษมน วัฒโรดมแสดงคู่กันอีกครั้งในภาพยนตร์เรื่องใด","input":"","output":"น้ำพุ"},{"instruction":"วันท่ี่ของบักทึกการประเมินคือวันไหน ให้นับตามกราฟเส้นตรง และแสดงค่าตามแกน X โดยเรียงลำดับจากมากไปน้อย","input":"CREATE TABLE Assessment_Notes (\n notes_id INTEGER,\n student_id INTEGER,\n teacher_id INTEGER,\n date_of_notes DATETIME,\n text_of_notes VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC"},{"instruction":"ซับบาธ แปลว่าอะไร","input":"","output":"พัก"},{"instruction":"ระยะเวลาการนอนโรงพยาบาลของผู้ป่วยหมายเลข 015-100195 เมื่อปี 2010 คือเท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '015-100195' AND STRFTIME('%y', patient.hospitaladmittime) = '2105'"},{"instruction":"คอนสตันติน เชียร์เนนโค ชื่อเต็มว่าอะไร","input":"","output":"คอนสตันติน อุสตีโนวิช เชียร์เนนโค"},{"instruction":"ปราสาทมืด ใครเป็นผู้พิการในเรื่อง","input":"","output":"คุณแจ๋ว"},{"instruction":"Penaeidae เป็นวงศ์ตะกูลของอะไร","input":"","output":"ครัสเตเชียนจำพวกกุ้ง"},{"instruction":"Siamogale melilutra มีกะโหลกและฟันคล้ายกับอะไร?","input":"","output":"แบดเจอร์"},{"instruction":"แรงบันดาลใจสำคัญต่อแนวทางศึกษาฟิสิกส์ยุคใหม่คืออะไร","input":"","output":"ทฤษ��ีแห่งสรรพสิ่งและทฤษฎีสตริง"},{"instruction":"จำนวนผู้ใช้งานที่สามารถกดไม่ถูกใจได้ (มีคะแนนความนิยมสูงกว่า 125)","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(u.Id) AS \"Total Users\", COUNT(CASE WHEN u.Reputation >= 125 THEN 1 ELSE NULL END) AS \"Total Can DV\", CAST(ROUND(COUNT(CASE WHEN u.Reputation >= 125 THEN 1 ELSE NULL END) \/ CAST(COUNT(u.Id) AS FLOAT) * 100, 4) AS TEXT) + '%' AS \"% Can DV\" FROM Users AS u"},{"instruction":"ชิมิ ร้องโดยใคร","input":"","output":"กลุ่มศิลปินบลูเบอร์รี่"},{"instruction":"เคส 010-9767 เข้ารับการรักษาครั้งสุดท้ายเมื่อไหร่ในปี 2105","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '010-9767' AND STRFTIME('%y', patient.hospitaladmittime) = '2105' ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"พ.ศ. 2208 ใครเป็นผู้สร้างกล้องจุลทรรศน์ชนิดเลนส์เดียวจากแว่นขยายที่เขาฝนเอง แว่นขยายบางอันขยายได้ถึง 270 เท่า","input":"","output":"อันโตนี ฟัน เลเวินฮุก"},{"instruction":"สามก๊ก ตอน โจโฉ มหาอุปราชผู้หวังครองแผ่นดิน ออกฉายครั้งแรกปีอะไร","input":"","output":"ค.ศ. 1999"},{"instruction":"ลบทิ้ง - แบบสอบถามทดลอง","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT CreationDate FROM Comments WHERE UserId = '##UserId##'"},{"instruction":"เดอะว้าวลาว เป็นรายการอะไร","input":"","output":"รายการเรียลลิตี้"},{"instruction":"FF คืออะไร","input":"CREATE TABLE airline (\n airline_code varchar,\n airline_name text,\n note text\n)\n\n","output":"SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'FF'"},{"instruction":"โยนิโสมนสิการ หมายถึงอะไร","input":"","output":"การทำในใจให้ดีละเอียดถี่ถ้วน"},{"instruction":"มีบทบาทเป็นอะไรในทางคณิตศาสตร์","input":"","output":"ตัวกลาง"},{"instruction":"เพลงแรกของซิงเกิลนี้ เป็นเพลงปิดของอะนิเมะเรื่องอะไร","input":"","output":"โอ้! เทพธิดา"},{"instruction":"ประเทศฝรั่งเศส เข้าร่วมการแข่งขันอะไร","input":"","output":"กีฬาโอลิม"},{"instruction":"น้องฟาน เปิดตัวครั้งเเรกเมื่อไหร่","input":"","output":"11 เมษายน 2560"},{"instruction":"โลมาแม่น้ำโบลิเวียคืออะไร","input":"","output":"โลมาแม่น้ำชนิดหนึ่ง จัดอยู่ในวงศ์โลมาแม่น้ำอเมซอน (Iniidae)"},{"instruction":"เมื่อคนไข้รายล่าสุด 96404 ออกจากโรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 96404 ORDER BY admissions.dischtime DESC LIMIT 1"},{"instruction":"ผู้ใช้ stack overflow ชาวแอลจีเรียที่ยอดเยี่ยมที่สุด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Age, 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('%Algiers%') OR UPPER(Location) LIKE UPPER('DZ') OR UPPER(Location) LIKE UPPER('% %')) ORDER BY Reputation DESC LIMIT 2000"},{"instruction":"ภูเขาที่กั้นกลางระหว่างอ่าวน้อยและอ่าวประจวบมีชื่อว่าอะไร","input":"","output":"ภูเขาตาม่องล่าย"},{"instruction":"พัชชา พูนพิริยะ มีอาชีพอะไร","input":"","output":"ผู้กำกับภาพยนตร์เคาท์ดาวน์"},{"instruction":"หลวงพี่แจ๊ส 4G ทำรายได้เท่าไร","input":"","output":"154 ล้านบาท"},{"instruction":"อันดับผู้ใช้ที่มีการแก้ไขที่ถูกปฏิเสธมากที่สุด","input":"CREATE TABLE SuggestedEdits (\n Id number,\n PostId number,\n CreationDate time,\n ApprovalDate time,\n RejectionDate time,\n OwnerUserId number,\n Comment text,\n Text text,\n Title text,\n Tags text,\n RevisionGUID other\n)\n\n","output":"SELECT OwnerUserId AS \"user_link\", COUNT(*) FROM SuggestedEdits WHERE ApprovalDate IS NULL AND NOT RejectionDate IS NULL GROUP BY OwnerUserId ORDER BY COUNT(*) DESC LIMIT 10"},{"instruction":"ไฟนอลแฟนตาซี เป็นเกมแนวอะไร","input":"","output":"เกมอาร์พีจี"},{"instruction":"Greece 1000 พร้อมหมายเลขบรรทัด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Place, Id AS \"user_link\", Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Thess%' OR Location LIKE '%Greece%' OR Location LIKE N'%Gr' OR (Location LIKE N'%Athens%' AND NOT Location LIKE N'%GA%') ORDER BY Reputation DESC LIMIT 1000"},{"instruction":"อัลละฮ์เปอลีฮารากันซุลตัน แปลว่าอะไร","input":"","output":"ขอพระเจ้าทรงพิทักษ์องค์สุลต่าน"},{"instruction":"ซ่งเจียง เป็นตัวละครหลักในวรรณกรรมเรื่องอะไร","input":"","output":"สุยหู่จ้วน"},{"instruction":"พัลพาทีน แสดงโดยใคร","input":"","output":"แมคเดียร์มิด"},{"instruction":"การคัดพลดับเบิลยูดับเบิลยูอีจัดขึ้นครั้งแรกเมื่อใด","input":"","output":"จัดขึ้นครั้งแรกในปี พ.ศ. 2545"},{"instruction":"เดิม อำเภอสุวรรณภูมิ มีชื่อว่าอะไร","input":"","output":"ท่งศรีภูมิ"},{"instruction":"เกาะบอลส์พีระมิด อยู่ทางทิศอะไรของเกาะลอร์ด","input":"","output":"ตะวันออกเฉียงใต้"},{"instruction":"ปลาตองลายมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Chitala blanci"},{"instruction":"ก่อนหน้านี้ คนไข้หมายเลข 65467 เข้าโรงพยาบาลกี่ครั้งในรอบปี","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 65467 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":" แตง สร้างขึ้นในปีอะไร","input":"","output":"พ.ศ. 2480"},{"instruction":"วัดไสยาศน์ก่อตั้งขึ้นเมื่อปี พ.ศ.​ใด","input":"","output":"พ.ศ 2498"},{"instruction":"เขาได้เซ็นสัญญากับค่ายเพลง","input":"","output":"Young Money Entertainment, Cash Money Records และ Republic Records."},{"instruction":"ตั้งแต่ 6 ปีก่อนมาแล้ว กี่ครั้งที่คนไข้หมายเลข 50480 เข้ารับการรักษาตัวที่โรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 50480 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-6 year')"},{"instruction":"จำนวนคำถามหลังจากเปิดให้มีสินไหมทดแทนใน SO","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(Id) FROM Posts WHERE CreationDate >= '2009-01-27' AND PostTypeId = 1"},{"instruction":"แบคทีเรียช่วยทำให้นมกลายเป็นนมเปรี้ยวอย่างไร","input":"","output":"ช่วยย่อยน้ำตาลแลคโตสในนมให้เป็นกรดแลคติค"},{"instruction":"การขนส่งเอชเอ็ม ก่อตั้งโดยใคร","input":"","output":"โฮเมอร์ เมอร์คาโด"},{"instruction":"ผู้ใช้งาน 300 คนแรกจากโรมาเนีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%arad%romania%' ORDER BY Reputation DESC LIMIT 300"},{"instruction":"เทือกเขาหิมาลัย เป็นเทือกเขาในทวีปอะไร","input":"","output":"ทวีปเอเชีย"},{"instruction":"ค่าเฉลี่ยชื่อเสียงของผู้ใช้โดยแบ่งตามปีและเดือน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT AVG(Reputation * 1.0), TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') FROM Users GROUP BY TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') ORDER BY TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m')"},{"instruction":"ริชาร์ด รอเจอส์ เกิดที่เมืองอะไร","input":"","output":"เมืองฟลอเรนซ์"},{"instruction":"น้ำหนักของผู้ป่วยหมายเลข 016-8658 ที่ตรวจวัดครั้งล่าสุดในครั้งแรกที่เข้ารับการรักษาในโรงพยาบาล แตกต่างจากค่าที่ตรวจวัดครั้งแรกในครั้งที่แรกที่เข้ารับการรักษาในโรงพยาบาลมากน้อยแค่ไหน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-8658' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-8658' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)"},{"instruction":"รัฐลูเซิร์น ตั้งของชีวมณฑลเอ็นท์เลอบูคแห่งองค์การอะไร","input":"","output":"ยูเนสโก"},{"instruction":"ปลากระดี่อินเดีย เป็นสกุลปลาอะไร","input":"","output":"ปลาน้ำจืดขนาดเล็ก"},{"instruction":"ผู้ป่วย 021-95970 เข้ารับการรักษาในโรงพยาบาลมาแล้วกี่วัน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '021-95970' AND patient.hospitaldischargetime IS NULL"},{"instruction":"กลุ่มย่อยที่สองของเอ็นซีทียูคืออะไร","input":"","output":"เอ็นซีที 127"},{"instruction":"เพลงเปิดตัวของนักร้องใหม่ ชื่อเพลงอะไร","input":"","output":"สเตย์อะเวย์"},{"instruction":"ปลาตองลายเคยถูกขึ้นบัญชีเป็นปลาหายากของสหภาพเพื่อการอนุรักษ์ธรรมชาติปีอะไร","input":"","output":"เมื่อปี พ.ศ. 2537"},{"instruction":"สโมสรฟุตบอลมัคคาบีเทลอาวีฟมีสโมสรเยาวชนกี่ทีม","input":"","output":"17 ทีม ผู้เล่น 400 คน ซึ่งมีอายุระหว่าง 9-19 ปี"},{"instruction":"ผู้ใช้ SO ระดับต้น ๆ จากเมือง Poznan ประเทศโปแลนด์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE (LOWER(Location) LIKE '%poznan%' OR LOWER(Location) LIKE '%pozna %') AND Reputation >= 100 ORDER BY Reputation DESC"},{"instruction":"รายละเอียดของสินค้า","input":"","output":"รายละเอียดสินค้าไม่มี"},{"instruction":"ผู้ใช้ที่เก่งที่สุด: Santiago de Chile รายชื่อผู้ใช้ใน Santiago เรียงตามคะแนนชื่อเสียง Forked จากคำถามต้นฉบับโดย BoltClock","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%santiago%chile%' ORDER BY Reputation DESC"},{"instruction":"โดโรโระมาจากที่ไหน","input":"","output":"หมู่ดาวแกรมม่��ดาวเคราะห์ลำดับที่ 58"},{"instruction":"แนวร่วมสามัคคีสงเคราะห์ชาติกัมพูชา เป็นศูนย์กลางของระบบอะไร","input":"","output":"ระบบใหม่ในกัมพูชา"},{"instruction":"เขตการปกครองของประเทศจีน มีอยู่ด้วยกันกี่ระดับ","input":"","output":"3 ระดับ"},{"instruction":"ขอผู้ใช้ทั้งหมดจากคิวบา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Reputation, DisplayName, Location FROM Users ORDER BY Reputation DESC"},{"instruction":"แมทธิว มัวร์ ฮาร์ดี เกิดวันที่เท่าไร","input":"","output":"23 กันยายน ค.ศ. 1974"},{"instruction":"ปลาแค้ยักษ์มีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Bagarius yarrelli"},{"instruction":"ผู้ใช้ที่โหวตลบมากที่สุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score FROM Posts WHERE Id = 298680"},{"instruction":"คำถามล่าสุดที่มีคะแนน 5 ขึ้นไป รายการคำถามล่าสุดบนไซต์ที่มีคะแนน 5 ขึ้นไป ต่อยอดที่ 500","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n","output":"SELECT 'post_link' = Id, Score, CAST(TIME_TO_STR(CreationDate, '%d %b %Y') AS TEXT(11)) AS Date FROM Posts WHERE PostTypeId = 1 AND Score >= 5 AND ClosedDate IS NULL ORDER BY CreationDate DESC LIMIT 500"},{"instruction":"ครั้งสุดท้ายที่ผู้ป่วย006-57924 เข้ามาใช้บริการผ่านแผนกฉุกเฉิน เป็นช่วงเวลาใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-57924' AND patient.hospitaladmitsource = 'emergency department' ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"เกเลชี อิเฮอานาชอ มีอาชีพอะไร","input":"","output":"นักฟุตบอล"},{"instruction":"ผู้ป่วยหมายเลข 7375 เข้าพักโรงพยาบาลวันที่เท่าไหร่จนถึง 2100","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 7375 AND STRFTIME('%y', admissions.dischtime) <= '2100' ORDER BY admissions.dischtime LIMIT 1"},{"instruction":"บอกจำนวนผู้ป่วยที่ได้���อกจากโรงพยาบาลทั้งหมด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL"},{"instruction":"ราคาต่ำสุดของผลิตภัณฑ์ที่แบ่งตามประเภทของผลิตภัณฑ์คือเท่าไร แสดงในแผนภูมิแท่ง","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MIN(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code"},{"instruction":"แคนดี (ซิงเกิล) อยู่ในประเทศอะไร ?","input":"","output":"ประเทศญี่ปุ่น"},{"instruction":"ซ่งเจียง เคยครองความเป็นใหญ่ในบริเวณมณอะไร","input":"","output":"มณฑลซานตงและมณฑลเหอหนาน"},{"instruction":"ครั้งสุดท้ายที่ผู้ป่วย 006-57924 เข้ารับการรักษาที่โรงพยาบาลผ่านแผนกฉุกเฉินคือเมื่อไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-57924' AND patient.hospitaladmitsource = 'emergency department' ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"นักบุญเจอโรมเป็นภาพเขียนสีน้ำมันที่เขียนโดยใคร","input":"","output":"คาราวัจโจ"},{"instruction":"ผู้ป่วยหมายเลข 006-122567 เข้ารักษาตัวใน ICU รวมกี่ครั้งในปี 2101","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-122567') AND STRFTIME('%y', patient.unitadmittime) = '2101'"},{"instruction":"ดูสถิติสำหรับคำถามของคุณ จำนวนการดูต่อวันสำหรับคำถามของคุณ และการดูทั้งหมด โดยเรียงลำดับจากอัตราการดูสูงสุดไปยังต่ำสุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT ViewCount, ROUND(CAST(ViewCount AS FLOAT) \/ DATEDIFF(dd, CreationDate, GETDATE()), 1) AS ViewsPerDay, Id AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND OwnerUserId = '##UserId##' ORDER BY ViewCount DESC"},{"instruction":"ตั้งแต่เมื่อ 6 ปีที่แล้ว ผู้ป่วยหมายเลข 80119 เข้ารับการรักษาที่ รพ. กี่ครั้ง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 80119 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-6 year')"},{"instruction":"20 คำถามยอดนิยม (มีผู้เข้าชมมากที่สุด)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", OwnerUserId AS \"user_link\", ViewCount FROM Posts WHERE PostTypeId = 1 ORDER BY ViewCount DESC LIMIT 20"},{"instruction":"ประเทศออสเตรเลียปกครองด้วยระบอบอะไร","input":"","output":"ออสเตรเลียยังคงรักษาระบบการเมืองเสรีนิยมประชาธิปไตย"},{"instruction":"เอเชียนคัพ 2011 ระบบคัดเลือกเปลี่ยนแปลงอย่างไร","input":"","output":"มีทีมชนะเลิศจากเอเอฟซีแชลเลนจ์คัพ เข้ามาร่วมแข่งขันด้วย\nเจ้าภาพ"},{"instruction":"ราชอาณาจักรรัตนโกสินทร์ เป็นราชอาณาจักรที่เท่าใดของประวัติศาสตร์ไทย","input":"","output":"เป็นราชอาณาจักรที่สี่"},{"instruction":"คนไข้ 022-199074 เข้าโรงพยาบาลมาแล้วกี่วัน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '022-199074' AND patient.hospitaldischargetime IS NULL"},{"instruction":"ผู้ใช้งานยอดนิยมจาก Yekaterinburg รัสเซีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%ekaterinburg%' OR UPPER(Location) LIKE '%EKATERINBURG%' OR Location LIKE '%ekaterinburg%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"วงดนตรี แคลช ได้เซ็นสัญญาครั้งแรกชื่อค่ายอะไร","input":"","output":"ค่ายอัพจี"},{"instruction":"เชน วอร์ด ชนะรายการอะไร","input":"","output":" ผู้ชนะเลิศจากการประกวดแสดงความสามารถ"},{"instruction":"ค่าความจริงคืออะไร","input":"","output":"ค่าที่ใช้บ่งบอกว่าประพจน์ใดเป็นความจริง"},{"instruction":"150 ผู้ใช้สูงสุดจากบัลแกเรีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Bulgaria%' OR Location LIKE '%sofia%' ORDER BY Reputation DESC LIMIT 150"},{"instruction":"หมอสั่งยากี่ใบในปีก่อนสำหรับขวดละ 50 ml : แมกนีเซียมซัลเฟต 4% 2 ขวด","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = '50 ml flex cont : magnesium sulfate 4% ij soln' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"ลองหาคำถาม BLCR ที่ถูกลบ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Body FROM Posts WHERE LOWER(Body) LIKE '%blcr%'"},{"instruction":"โพสต์ที่ลิงก์ไปยังเว็บไซต์อื่น","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.Id, p.PostTypeId, p.Score FROM Posts AS p WHERE p.Score > 1 AND p.PostTypeId = 1 AND p.Body LIKE '%judaism%'"},{"instruction":"โพสทั้งหมดของฉันในการไล่ลำดับ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(Id), PostTypeId FROM Posts WHERE OwnerUserId = @UserId AND CreationDate >= '##year##0101' AND CreationDate <= '##year##1231' GROUP BY PostTypeId"},{"instruction":"น้ำหนักครั้งล่าสุดของผู้ป่วย 015-7988 เมื่อ 35 เดือนก่อนคือเท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-7988') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-35 month') ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"นายพงศ์พัฒน์ เคยครองยศอะไร","input":"","output":"พลตำรวจโท"},{"instruction":"ปลาน้ำเงินจัดว่าเป็นปลาที่อยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาเนื้ออ่อน (Siluridae)"},{"instruction":"ชาวศรีลังกาท็อปใน Stackoverflow","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%Sri%' ORDER BY Reputation DESC LIMIT 300"},{"instruction":"ความคิดเห��นสูงสุดของผู้ใช้","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Score, Text FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250"},{"instruction":"มาร์เชอ เกย์ ฮาร์เดน ได้รับรางวัลออสการ์ในสาขาใด ?","input":"","output":"นักแสดงสมทบหญิงยอดเยี่ยม"},{"instruction":"ลบผู้ใช้ตามโพสต์ของผู้ใช้เหล่านั้น","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT OwnerDisplayName, MAX(CreationDate), COUNT(*) AS Count FROM Posts WHERE OwnerUserId IS NULL GROUP BY OwnerDisplayName ORDER BY Count DESC, OwnerDisplayName LIMIT 100"},{"instruction":"มอร์ริส อีสต์ เกิดเมื่อไหร่","input":"","output":"8 สิงหาคม พ.ศ. 2516"},{"instruction":"ธีรภัทร พริ้งศุลกะ เกิดที่จังหวัดอะไร","input":"","output":"สุราษฏร์ธานี"},{"instruction":"มีสถานพยาบาชื่อว่า ?","input":"","output":"โรงพยาบาลชุมชนคำไฮใหญ่"},{"instruction":"โหวตทั้งหมดที่ได้รับ","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT v.VoteTypeId, COUNT(*) FROM Votes AS v WHERE v.UserId = '##UserID##' GROUP BY v.VoteTypeId"},{"instruction":"ที่ซึ่งบทความที่ไหนก็ตามบน meta นั้นนำเสนอ","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT UserId AS \"user_link\", COUNT(PostId) AS \"number_of_posts\" FROM PostHistory WHERE PostHistoryTypeId IN (3, 6) AND Text LIKE '%%' GROUP BY UserId ORDER BY COUNT(PostId) DESC"},{"instruction":"คำถามสำหรับวันที่กำหนด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE CreationDate = '##PostDate##' LIMIT 10"},{"instruction":"หางาน Laravel ผู้เชี่ยวชาญใกล้ Salt Lake City, UT","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Location, Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##Location##%') ORDER BY Reputation DESC"},{"instruction":"เป็นผู้ป่วยที่ 018-47575 ในห้องฉุกเฉิน?","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '018-47575' AND patient.hospitaladmitsource = 'emergency department'"},{"instruction":"จำนวนคำถามคำตอบใหม่ๆ ตั้งแต่ปีที่ระบุ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT YEAR(CreationDate) AS \"year\", MONTH(CreationDate) AS \"month\", SUM(CASE WHEN Posts.PostTypeId = 1 THEN 1 ELSE 0 END) AS QuestionCount, SUM(CASE WHEN Posts.PostTypeId = 2 THEN 1 ELSE 0 END) AS AnswerCount FROM Posts WHERE YEAR(CreationDate) >= 2014 GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY YEAR(CreationDate), MONTH(CreationDate)"},{"instruction":"ให้ราคาต่อหน่วยสินค้าสูงสุดในแต่ละประเภทสินค้าในรูปแบบกราฟแท่ง โดยเรียงตามแกน y จากน้อยไปมาก","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY MAX(product_price)"},{"instruction":"บอกเวลารับเข้า รพ. ผู้ป่วย 56009 จนถึง 2100","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 56009 AND STRFTIME('%y', admissions.admittime) <= '2100'"},{"instruction":"เนื่องจากอุปกรณ์จ่ายพลังงานมีเพียงจุดเดียว ผู้ผลิตส่วนมากมักจะเพิ่มอุปกรณ์อะไรมาด้วย ?","input":"","output":"อุปกรณ์จ่ายพลังงานสำรอง"},{"instruction":"ฉันได้ทำเครื่องหมายคำถามของฉันให้เป็นได้รับการยอมรับทั้งหมดหรือไม่","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", * FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND ClosedDate IS NULL AND AnswerCount > 0 AND OwnerUserId = '##ownerid##'"},{"instruction":"ผู้ใช้ SO ระดับแนวหน้าจาก Poznan ประเทศโปแลนด์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE (LOWER(Location) LIKE '%poznan%' OR LOWER(Location) LIKE '%pozna %') AND Reputation >= 100 ORDER BY Reputation DESC"},{"instruction":"หลักสูตรในเทคนิค AI ขั้นสูง มีกี่หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Advanced Al Techniques%' OR name LIKE '%Advanced Al Techniques%') AND credits = 4"},{"instruction":"ฮาร์เดนแจ้งเกิดในผลงานภาพยนตร์เรื่องใด ?","input":"","output":"The First Wives' Club (1996)"},{"instruction":"น้ำหนักของคนไข้ 006-158338 ในเดือนนี้ครั้งที่ 1 อยู่ที่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-158338') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"เกเลชี อิเฮอานาชอ ชื่อเต็มว่าอะไร","input":"","output":"เกเลชี ปรอมีเซ อิเฮอานาชอ"},{"instruction":"อินช็อนยังได้รับการยอมรับจากสกายแทร็ก ว่าเป็นท่าอากาศยานระดับอะไร","input":"","output":"ระดับ 5 ดาว"},{"instruction":"เพชรในตม : คำถามที่คนดูน้อยกว่า 10 วิว ที่มีคะแนนสูงสุด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Posts.Id AS \"post_link\", Posts.OwnerUserId AS \"user_link\", Score, ViewCount, Score * 1000 \/ ViewCount AS \"Score per Thousand Views\" FROM Posts WHERE ViewCount < 10 AND PostTypeId = 1 ORDER BY Score DESC LIMIT 1000"},{"instruction":"50 ผู้ใช้สูงสุดจาก Michigan รายชื่อ 50 ผู้ใช้สูงสุด (จัดอันดับตามชื่อเสียง) ที่อาศัยอยู่ในกาลิกัต\/Kozhikode รัฐ Kerala ประเทศอินเดีย ตามข้อมูลโปรไฟล์ของพวกเขา ขอบคุณที่ http:\/\/data.stackexchange.com\/stackoverflow\/qe\/1157\/top-100-users-from-greece","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Michigan%' ORDER BY Reputation DESC LIMIT 150"},{"instruction":"เพศของผู้ป่วย 027-144847 คืออะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '027-144847'"},{"instruction":"จัดตั้งองค์การบริหารส่วนตำบลโพนโก ในลำดับที่เท่าไร","input":"","output":"1889"},{"instruction":"โรแลนด์ ทีบี-303 คืออะไร","input":"","output":"เบสซินธิไซเซอร์"},{"instruction":"ศูนย์สื่อมวลชนโอลิมปิกลอนดอนสร้างสำหรับอะไร","input":"","output":"ดทำขึ้นเป็นพิเศษสำหรับโอลิมปิกฤดูร้อน 2012"},{"instruction":"ผู้ป่วยหมายเลขใด 032-1755 มีเพศอะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '032-1755'"},{"instruction":"วันเด็กแห่งชาติ ตรงกับวันใด","input":"","output":"วันเสาร์ที่สองของเดือนมกราคมของทุกปี"},{"instruction":"ทิร์ฟมัวร์ ความจุเท่าไร","input":"","output":"22,546 คน"},{"instruction":"กองพลน้อย 2506 เป็นส่วนหนึ่งของแนวหน้าปฏิวัติประชาธิปไตยอะไร","input":"","output":"คิวบา"},{"instruction":"แสดงวันที่วางแผนการจัดส่งทั้งหมดและค่าถังตามปีในแผนภูมิเส้น และจัดอันดับจากสูงไปต่ำตามแกน X","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date DESC"},{"instruction":"อัลด์โนอา.เซโร่แบ่งเป็นครึ่งแรกและครึ่งหลังอย่างละกี่ตอน","input":"","output":"12 ตอน"},{"instruction":"สนามกีฬาติณสูลานนท์ มีความจุเท่าไร","input":"","output":"35,000 ที่นั่ง"},{"instruction":"โฎนแกว อยู่จังหวัดอะไร","input":"","output":"จังหวัดตาแก้ว"},{"instruction":"เวลาที่ผู้ป่วย 31615 ออกจากโรงพยาบาลครั้งแรก ในรอบ 1 ปีที่ผ่านมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 31615 AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY admissions.dischtime LIMIT 1"},{"instruction":"โฎนแกว มีประชากรเท่าไร","input":"","output":"39,186 คน"},{"instruction":"ราเนอส์ อยู่ประเทศอะไร","input":"","output":"ประเทศเดนมาร์ก"},{"instruction":"เลือก * ทั้งหมดจาก PostFeedback ที่มีเงื่อนไขเป็น IsAnonymous = 1.","input":"CREATE TABLE PostFeedback (\n Id number,\n PostId number,\n IsAnonymous boolean,\n VoteTypeId number,\n CreationDate time\n)\n\n","output":"SELECT COUNT(*), TIME_TO_STR(CreationDate, '%-mo%Mt%-I') FROM PostFeedback WHERE IsAnonymous = 1 GROUP BY TIME_TO_STR(CreationDate, '%-mo%Mt%-I')"},{"instruction":"สวิตช์ฟุต เป็นแนววงดนตรีอะไร","input":"","output":"อัลเทอร์เนทีฟ ร็อก"},{"instruction":"บริษัท จีเอฟพีที ก่อตั้งขึ้นเมื่อใด","input":"","output":"วันที่ 25 พฤศจิกายน พ.ศ. 2524"},{"instruction":"แยชือ ดูแด็ก สโมสรสุดท้ายที่เล่นให้คือสโมสรอะไร","input":"","output":"เรอัลมาดริด"},{"instruction":"ผู้ใช้ 10 อันดับแรก อัห์เมดาบาด อินเดีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%Ahmedabad%' OR UPPER(Location) LIKE '%Ahmedabad%' OR Location LIKE '%Ahmedabad%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"คำถามเฉพาะวันที่","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE CreationDate = '##PostDate##' LIMIT 10"},{"instruction":"วีอาร์เนเวอร์เอเวอร์เกตติงแบ็กทูเกเตอร์ จากสตูดิโออัลบั้มที่เท่าไร","input":"","output":"สี่ เรด (ค.ศ. 2012)"},{"instruction":"ปลากินยุง อยู่ในวงศ์ปลาอะไร","input":"","output":"ปลาสอด"},{"instruction":"มีลักษณะคล้ายฟันของอะไร ?","input":"","output":"จระเข้ "},{"instruction":"เพชฌฆาตกระสุนเปลือย เขียนบทโดยใคร","input":"","output":"หว่อง จิง"},{"instruction":"คำถามแย่ๆ จากการโหวตคะแนน การปิดกั้น และอื่นๆ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, CASE WHEN ClosedDate IS NULL THEN 'Y' ELSE 'Er' END AS \"closed?\", Id AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND (NOT ClosedDate IS NULL OR Score < -3) ORDER BY Score LIMIT 500"},{"instruction":"ตามล่านักฆ่าแอนดรอยด์ นำเนื้อหามาจากผลงานของใคร","input":"","output":"เท็ตสึกะ โอซามุ"},{"instruction":"แสดงราคาผลิตภัณฑ์สูงสุดของแต่ละประเภทผลิตภัณฑ์ในแผนภูมิวงกลม","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code"},{"instruction":"โฮลเดน เป็นบริษัทสัญชาติอะไร","input":"","output":"สัญชาติออสเตรเลีย"},{"instruction":"542 คือขนาดอะไร?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 542"},{"instruction":"ค่าโดยสารรหัส Y หมายถึง","input":"CREATE TABLE class_of_service (\n booking_class varchar,\n rank int,\n class_description text\n)\n\n","output":"SELECT DISTINCT booking_class FROM class_of_service WHERE booking_class = 'Y'"},{"instruction":"สมาคมวิทยุสมัครเล่นแห่งประเทศไทย ใบอนุญาตเลขที่เท่าไร","input":"","output":"ค. 99\/2507"},{"instruction":"สายการบินใดที่เป็นแบบ AS ใน SAM","input":"CREATE TABLE airline (\n airline_code varchar,\n airline_name text,\n note text\n)\n\n","output":"SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'AS'"},{"instruction":"ผู้ป่วยหมายเลข 23930 เพศชายหรือหญิง","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 23930"},{"instruction":"พระเจ้าบรมวงศ์เธอ พระองค์เจ้านุ่มสิ้นพระชนเมื่อใด","input":"","output":"สิ้นพระชนม์ในรัชกาลที่ 3 เมื่อพ.ศ. 2381"},{"instruction":"มาวนีโอมีความหนาแน่นประชากรเท่าใด","input":"","output":"1.24 คน\/ตร.กม. (3.2 คน\/ตร.ไมล์)"},{"instruction":"ใครเป็นคนก่อตั้งไทยรัฐ","input":"","output":"กำพล วัชรพล ปัจจุบันมี "},{"instruction":"ริชาร์ด รอเจอส์ เข้าศึกษาที่สมาคมอะไร","input":"","output":"สถาปัตยกรรม วิทยาลัยสถาปัตยกรรม ในลอนดอน"},{"instruction":"หม่อมเจ้าประสบศรีจิรประวัติ จิรประวัติ เป็นพระนัดดาของใคร","input":"","output":"พระบาทสมเด็จพระจุลจอมเกล้าเจ้าอยู่หัว"},{"instruction":"วิธีกลืนกินของ heparin flush crrt (5000 units\/ml) คืออะไร","input":"CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\n","output":"SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'heparin flush crrt (5000 units\/ml)'"},{"instruction":"สกุลการเวก หรือ ภาษาอังกฤษคือ ?","input":"","output":"Artabotrys"},{"instruction":"คะแนนความคิดเห็นที่สูงที่สุด รวมลิงก์ไปยังโพสต์","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT c.Id AS \"comment_link\", c.Score, c.UserId AS \"user_link\", c.CreationDate FROM Comments AS c WHERE Score > 100 ORDER BY Score DESC LIMIT 100"},{"instruction":"เจดีย์ประธานเหลือแต่ฐาน มีวิหารอยู่ด้านใด ?","input":"","output":"ด้านตะวันออกของเจดีย์"},{"instruction":"แจกแจง Id ของคำสั่งซื้อ, Id ของลูกค้าตามสถานะที่ยกเลิกคำสั่งซื้อ สั่งโดยวันที่สั่งซื้อ แสดงการสหสัมพันธ์","input":"CREATE TABLE Customer_Orders (\n order_id INTEGER,\n customer_id INTEGER,\n order_status_code VARCHAR(10),\n order_date DATETIME\n)\n\n","output":"SELECT order_id, customer_id FROM Customer_Orders WHERE order_status_code = \"Cancelled\" ORDER BY order_date"},{"instruction":"จิน เป็ง หรือจีนเป็งเกิดวันที่ ?","input":"","output":"21 ตุลาคม พ.ศ. 2467"},{"instruction":"เจ้าชายอาดัลแบร์ทแห่งปรัสเซีย พระนามเต็มว่าอะไร","input":"","output":"อาดัลแบร์ท แฟร์ดีนันท์ เบเร็งการ์ วิคทอร์"},{"instruction":"สงครามโลกครั้งที่สอง เกิดขึ้นระหว่าง ค.ศ. ใด","input":"","output":"ค.ศ. 1939 ถึง 1945"},{"instruction":"เพศของผู้ป่วย 007-7925 คืออะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '007-7925'"},{"instruction":"นายสวัสดิ์ วัฒนายากรเป็นบุตรของใคร","input":"","output":"ขุนธำรงพันธุ์ภักดี กับนางสร้อยทอง วัฒนายากร (คณานุรักษ์)"},{"instruction":"[WIP] จำนวนคำตอบในสัปดาห์ที่กำหนดในช่วงเวลาหนึ่ง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT 'Six months ago', COUNT(*) FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN DATEADD('m', -6, GETDATE()) AND DATEADD('m', -6, DATEADD('w', -1, GETDATE())) UNION ALL SELECT 'Two years ago months ago', COUNT(*) FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN DATEADD('y', -2, GETDATE()) AND DATEADD('y', -2, DATEADD('w', -1, GETDATE()))"},{"instruction":"จำนวนความคิดเห็นของผู้ใช้งาน","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT UserId AS \"user_link\", COUNT(*) FROM Comments WHERE CreationDate BETWEEN '##fromDate:string##' AND '##tillDate:string##' GROUP BY UserId ORDER BY COUNT(*) DESC"},{"instruction":"ปลาใบโพจุดมีชื่อทางสามัญว่าอะไร","input":"","output":"Spotted sicklefish"},{"instruction":"ค้นหาโพสต์ที่คุณถูกเสนอรางวัลมากกว่าหนึ่งรางวัล","input":"CREATE TABLE Votes (\n Id number,\n PostId number,\n VoteTypeId number,\n UserId number,\n CreationDate time,\n BountyAmount number\n)\n\n","output":"SELECT PostId AS \"post_link\", COUNT(*) AS Bounties FROM Votes WHERE VoteTypeId = 8 AND UserId = '##UserId##' GROUP BY PostId ORDER BY Bounties DESC"},{"instruction":"จำนวนครั้งเข้ารับบริการของผู้ป่วย 65401 ในปีนี้","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"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')"},{"instruction":" เรื่องราวประวัติศาสตร์นี้บันทึกครั้งแรกในหนังสือเล่มใด","input":"","output":"ประวัติศาสตร์ในสมัยซัมกุก หรือ สามอาณาจักรแห่งเกาหลี"},{"instruction":"คำตอบของฉันบน Stack Exchange","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE OwnerUserId = 3422261"},{"instruction":"มีคุณสมบัติอะไรบ้าง","input":"","output":"ไม่ทราบคุณสมบัติ"},{"instruction":"อาสนวิหารวาน เป็นอาสนวิหารนิกายอะไร","input":"","output":"นิกายโรมันคาทอลิก"},{"instruction":"สถานีรถไฟพิชัย ระยะทางทั้งหมดเท่าไร","input":"","output":"447.55 กิโลเมตร"},{"instruction":"เวลาทั้งหมดที่ผ่านไปนับตั้งแต่ผู้ป่วย 016-18575 เข้ารับการรักษาตัวใน ICU","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '016-18575' AND patient.unitdischargetime IS NULL"},{"instruction":"มาร์ ตี นาตาเลกาวา เกิดวันที่เท่าไร","input":"","output":"22 มีนาคม ค.ศ. 1963 "},{"instruction":"ดาวพลูโตถูกพบที่บริเวณใด","input":"","output":"แถบไคเปอร์"},{"instruction":"กราฟเส้นสำหรับจำนวนวันที่ของบันทึกการประเมินคืออะไร","input":"CREATE TABLE Assessment_Notes (\n notes_id INTEGER,\n student_id INTEGER,\n teacher_id INTEGER,\n date_of_notes DATETIME,\n text_of_notes VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes"},{"instruction":"มินนีแอโพลิสอยู่ติดกับเมืองใด","input":"","output":"เซนต์พอล"},{"instruction":"คำนวณระยะเวลานอนพักรักษาในไอซียูครั้งสุดท้ายของผู้ป่วย 005-46456","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-46456') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"วิลเลียมส์ได้ร่วมทำงานในแผนกเนื้อเรื่องของภาพยนตร์เรื่องใด ?","input":"","output":"มู่หลาน, จักรพรรดิกลายพันธุ์ อัศจรรย์พันธุ์ต๊อง, และ มหัศจรรย์หมีผู้ยิ่งใหญ่"},{"instruction":"ไดอาน่า แรนด์ Diana Rand เกิดวันที่ ?","input":"","output":"4 กันยายน พ.ศ. 2528"},{"instruction":"โพสต์ทั้งหมดของฉันตั้งแต่ปี 2016","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = 263693 AND TIME_TO_STR(CreationDate, '%YEAR') = 2016"},{"instruction":"ผู้ใช้ stackoverflow ชั้นนำประจำศรีลังกา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Id) LIKE '%sri lanka%' ORDER BY Reputation DESC"},{"instruction":"ถิรวัฒน์ เลิศพิชชาพัชร์ ถูกทีมอะไรยืมตัวไป","input":"","output":"ทีมพันธมิตร"},{"instruction":"เนินเขาใดติดอยู่กับมาลากา","input":"","output":"เนินเขาอาฆาร์กิอา (Axarquía)"},{"instruction":"แขวงอิตาบาชิ มีความหนาแน่นทั้งสิ้น","input":"","output":"16,270 คนต่อตารางกิโลเมตร"},{"instruction":"เจ้าพรหมาภิพงษธาดา มีพระนามเดิมว่าอะไร","input":"","output":"เจ้าพรหมวงศ์"},{"instruction":"แสดงรายการวันจัดส่งที่วางแผนไว้และวันจัดส่งจริงของการจอง","input":"CREATE TABLE bookings (\n booking_id number,\n customer_id number,\n workshop_group_id text,\n status_code text,\n store_id number,\n order_date time,\n planned_delivery_date time,\n actual_delivery_date time,\n other_order_details text\n)\n\n","output":"SELECT planned_delivery_date, actual_delivery_date FROM bookings"},{"instruction":"วอลเลย์บอลชายในเอเชียนเกมส์ 2018 จัดร่วมกับใคร","input":"","output":"สภาโอลิมปิกแห่งเอเชีย (โอซีเอ)"},{"instruction":"20 อันดับผู้ใช้สูงสุดจาก Noida","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%noida' OR UPPER(Location) LIKE '%NOIDA' ORDER BY Reputation DESC LIMIT 20"},{"instruction":"ตัวละครหลักป่วยเป็นโรคอะไร","input":"","output":"โรคมะเร็งปอด"},{"instruction":"บราสสิโนสเตอรอยด์เป็นสารกลุ่มที่ออกฤทธิ์ต่ออะไร","input":"","output":"ออกฤทธิ์ต่อการเจริญเติบโตของพืช"},{"instruction":"เจ้าชายฟิลิปแห่งออสเตรียเป็นพระราชโอรสของใคร","input":"","output":"สมเด็จพระจักรพรรดิแม็กซิมิเลียนที่ 1 แห่งโรมันอันศักดิ์สิทธิ์ และพระนางมารี เดอ บูร์กอญ"},{"instruction":"ตัวกรองแบบกำหนดเองของ SebasSBM (ช่วงทดสอบ)","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id FROM Posts WHERE ViewCount = 9999"},{"instruction":"ภารกิจเลือด ตีพิมพ์ครั้งแรกที่ประเทศไทยเมื่อไร","input":"","output":"เดือนมีนาคม พ.ศ. 2547"},{"instruction":"ประเทศใดใช้พูดภาษาอังกฤษเป็นภาษาที่หนึ่ง","input":"","output":"สหราชอาณาจักร สหรัฐอเมริกา แคนาดา ออสเตรเลีย ไอร์แลนด์ นิวซีแลนด์ และประเทศในแคริบเบียน"},{"instruction":"คะแนนเฉลี่ยต่อการดู 100 ครั้ง","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH counts_cte AS (SELECT LAST_DATE_OF_MONTH(p.CreationDate) AS Cmonth, SUM(Score) AS Score, SUM(ViewCount) AS Views FROM Posts AS p WHERE PostTypeId = 1 GROUP BY LAST_DATE_OF_MONTH(p.CreationDate)) SELECT Cmonth, 100 * (CAST(Score AS FLOAT)) \/ (CAST(Views AS FLOAT)) AS \"score_per_view\" FROM counts_cte ORDER BY Cmonth"},{"instruction":"ราคาเท่าไรหรอครับ","input":"","output":"ราคาเริ่มต้น : เริ่มจากขนาดความหนา 6 มม. 150 บาท\/ตารางฟุต "},{"instruction":"ตะไคร้หอมถือว่าเป็นพืชสมุนไพรจัดอยู่ในวงศ์พรรณไม้ชนิดใด","input":"","output":"วงศ์ : Gramineae"},{"instruction":"คนไข้หมายเลข 028-7951 เข้ามารักษาที่โรงพยาบาลครั้งแรกตั้งแต่เมื่อไหร่ จนถึง 2104","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '028-7951' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"คนไข้หมายเลข 23930 เป็นเพศชายหรือเพศหญิง","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 23930"},{"instruction":"ผู้ใช้อย่างต่อเนื่องอายุต่ำกว่า 18 ปี","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Views AS Age, Reputation FROM Users WHERE Age < 18 AND Reputation >= 200 ORDER BY Age"},{"instruction":"โพสต์ที่มี 9 คะแนน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, Id AS \"post_link\" FROM Posts WHERE Score = 9 AND TIME_TO_STR(CreationDate, '%YEAR') = 2016 ORDER BY CreationDate DESC"},{"instruction":"เปอร์เซ็นต์ของคำถามแบบปิดแบ่งตามชั่วโมงของวัน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT TIME_TO_STR(q.CreationDate, '%I') AS \"Hour\", CAST((100.0 * COUNT(q.ClosedDate) \/ COUNT(*)) AS FLOAT(10, 0)) AS \"Closed percent\", COUNT(*) AS \"question_count\" FROM Posts AS q WHERE q.PostTypeId = 1 GROUP BY TIME_TO_STR(q.CreationDate, '%I') ORDER BY 'Hour'"},{"instruction":"คำตอบที่ผู้ใช้มีการอ้างอิงถึง Wikipedia จะดึงคำตอบจากผู้ใช้ที่เลือกมาทั้งหมดที่มี 'en.wikipedia.org\/wiki' ในนั้น","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT A.Id AS \"post_link\", A.CreationDate AS \"answer_date\" FROM Posts AS A WHERE A.PostTypeId = 2 AND (A.Body LIKE '%en.m.wikipedia.org\/wiki%') ORDER BY 'answer_date' DESC"},{"instruction":"เทิร์ฟมัวร์ เป็นสนามของอะไร","input":"","output":"สโมสรฟุตบอล"},{"instruction":"โรบิน ชาลส์ ธิกคือใคร ?","input":"","output":" เป็นนักร้อง นักแต่งเพลง นักดนตรี เป็นนักแสดงในบางโอกาส"},{"instruction":"การสร้างภาพประสาท เป็นการใช้เทคนิคอะไร","input":"","output":"เพื่อสร้างภาพ���ั้งโดยตรงหรือโดยอ้อมของโครงสร้าง"},{"instruction":"ยุทธนา เปื้องกลาง มีภูมิลำเนาที่ไหน","input":"","output":"จังหวัดนครสวรรค์"},{"instruction":"ตั้งแต่ผู้ป่วยหมายเลข 032-9230 เข้าพักรักษาตัวในครั้งปัจจุบันในหอผู้ป่วย 1068 เป็นเวลาทั้งหมดกี่ชั่วโมงแล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-9230' AND patient.wardid = 1068 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"ต้นเกดมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"Manilkara hexandra"},{"instruction":"เจ้าแก้วบูฮม คือใคร","input":"","output":"เจ้านายลาวผู้สร้างเมืองท่งหรือเมืองทุ่งศรีภูมิ"},{"instruction":"ปลาฉลามขาวอาศัยอยู่ตามแถบทะเลชายฝั่งเกือบทั่วทุกมุมโลกแต่ต้องมีอุณหภูมิเท่าไหร่","input":"","output":"อุณหภูมิระหว่าง 12C - 24C"},{"instruction":"SELECT DisplayName, Reputation, Id จาก Users ที่ไหน UPPER(Location) LIKE '%ISRAEL%' สั่ง B","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT DisplayName, Reputation, Id AS \"user_link\" FROM Users WHERE UPPER(Location) LIKE '%ISRAEL%' ORDER BY 2 DESC"},{"instruction":"ต้นมะขามมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Tamarindus indica L."},{"instruction":"ส่งคืนยอดรวมของยอดชำระเงินทั้งหมด","input":"CREATE TABLE payment (\n payment_id number,\n customer_id number,\n staff_id number,\n rental_id number,\n amount number,\n payment_date time,\n last_update time\n)\n\n","output":"SELECT SUM(amount) FROM payment"},{"instruction":"ชื่อเรื่องขึ้นต้นและจบด้วยขีดทอน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Title, Score FROM Posts WHERE Title LIKE '\/%\/'"},{"instruction":"006-50368 เข้ารับการรักษาครั้งแรกที่ รพ. อายุเท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.age FROM patient WHERE patient.uniquepid = '006-50368' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ผู้ใช้ SO อันดับแรก ใน Arizona","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE Reputation >= (SELECT Reputation FROM Users WHERE Id = 5285908) AND (UPPER(Location) LIKE '% AZ%' OR UPPER(Location) LIKE '% ARIZONA%') ORDER BY Reputation"},{"instruction":"พระอภัยมณีเป็นวรรณคดีผลงานชิ้นเอกของใคร","input":"","output":"พระสุนทรโวหาร หรือสุนทรภู่"},{"instruction":"อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์เริ่มก่อสร้างเมื่อใด","input":"","output":"ธันวาคม ค.ศ. 1979"},{"instruction":"ฮิตเลอร์แต่งตั้งใครเป็นผู้บังคับบัญชากองทัพเยอรมัน","input":"","output":"จอมพล เออร์วิน รอมเมล"},{"instruction":"จำนวนผู้ใช้ตามสถานที่ตั้ง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(*), Users.Location FROM Users WHERE LOWER(Users.Location) = '%india%' GROUP BY Users.Location"},{"instruction":"จำนวนใบสั่งยาแน่ชัดที่ปฏิบัติตั้งแต่ 4 ปีที่แล้ว มีจำนวนเท่าไหร่","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'definity' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"ความสัมพันธ์ระหว่างลำดับของนิวคลีโอไทด์และลำดับของกรดอะมิโนนี้เรียกว่าอะไร","input":"","output":"รหัสพันธุกรรม"},{"instruction":"ตรีชฎา เพชรรัตน์ เกิดวันที่เท่าไร","input":"","output":"5 ตุลาคม 2529"},{"instruction":"ผู้ร้ายนำ Pll ไปใช้ทำอะไรได้บ้าง","input":"","output":"การโจรกรรมอัตลักษณ์บุคคล"},{"instruction":"จังหวัดกำแพงเพชรอยู่ห่างจากกรุงเทพกี่กิโลเมตร","input":"","output":"362 กิโลเมตร"},{"instruction":"อ็องตวน กาล็องมาจากประเทศอะไร","input":"","output":"ฝรั่งเศส"},{"instruction":"พระโคตมพุทธเจ้า","input":"","output":"เจ้าชายสิทธัตถะ"},{"instruction":"จนถึง 2104 คนไข้หมายเลข 86206 เข้ามาโรงพยาบาลครั้งแรกทาง Phys referral\/Normal deli เมื่อไหร่","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 86206 AND admissions.admission_location = 'phys referral\/normal deli' AND STRFTIME('%y', admissions.admittime) <= '2104' ORDER BY admissions.admittime LIMIT 1"},{"instruction":"สาวผู้ที่สามารถดูดพลังผู้อื่นได้มีชื่อว่า ?","input":"","output":"แอนนา มารี"},{"instruction":"การ์ตูนวิเคราะห์ข้อมูลที่คุณชื่นชอบคืออะไร?","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Comments WHERE PostId = 423"},{"instruction":"สินค้าที่มีค่าของศูนย์กลางการค้าที่สำคัญของแอฟริกาคืออะไร","input":"","output":"ยางสน ยาง��ม้หอม และเครื่องเทศ "},{"instruction":"ข้อความที่นิยมที่สุด (ถาม-ตอบ) บนไซต์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"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"},{"instruction":"อาหรับราตรีภาษาอังกฤษฉบับแรกใช้ชื่อว่าอะไร","input":"","output":"ความบันเทิงอาหรับราตรี (The Arabian Nights' Entertainment)"},{"instruction":"ลิงคินพาร์ก ออกจำหน่ายเมื่อวันที่เท่าไร","input":"","output":"2 สิงหาคม พ.ศ. 2553"},{"instruction":"มหกรรมกีฬาโอลิมปิกฤดูร้อนครั้งที่ 20 ประจำปีอะไร","input":"","output":"ค.ศ. 1972 (พ.ศ. 2515)"},{"instruction":"คำถาม N คำ ที่มีหัวเรื่องสั้นที่สุดในไซต์ที่กำหนด","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", LENGTH(Title) AS \"no._of_characters\" FROM Posts WHERE PostTypeId = 1 ORDER BY 'no._of_characters' LIMIT 100"},{"instruction":"มีการจ่ายใบสั่งยาสำหรับการเตรียมสารละลายNSS ในปี 2101 กี่ใบ?","input":"CREATE TABLE medication (\n medicationid number,\n patientunitstayid number,\n drugname text,\n dosage text,\n routeadmin text,\n drugstarttime time,\n drugstoptime time\n)\n\n","output":"SELECT COUNT(*) FROM medication WHERE medication.drugname = 'nss infusion' AND STRFTIME('%y', medication.drugstarttime) = '2101'"},{"instruction":"ฟุตบอลชิงถ้วยพระราชทานประเภท ก. ชื่อเดิมว่าอะไร","input":"","output":"ถ้วยใหญ่"},{"instruction":"ให้กราฟแท่งจำนวนรวมของแต่ละรหัสวิธีการชำระเงิน และเรียงข้อมูลแกน y จากน้อยไปมาก","input":"CREATE TABLE Invoices (\n Invoice_ID INTEGER,\n Order_ID INTEGER,\n payment_method_code CHAR(15),\n Product_ID INTEGER,\n Order_Quantity VARCHAR(288),\n Other_Item_Details VARCHAR(255),\n Order_Item_ID INTEGER\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*)"},{"instruction":"สัตว์ฟันแทะมีการดำรงชีวิตเป็นแบบใด","input":"","output":"ขุดโพรงอยู่ใต้ดิน ในโพรงมีทางเข้าออกหลายทาง ซึ่งในโพรงนั้นเป็นแบ่งเป็นห้อง ๆ"},{"instruction":"ท่าอากาศยานนานาชาติสุลต่านมะฮ์มุด บาดารูดินที่ 2 อยู่เมืองอะไร","input":"","output":"เมืองปาเล็มบัง"},{"instruction":"นายประพันธ์ บูรณุปกรณ์ เกิดเมื่อวันที่ เท่าไหร่ ?","input":"","output":"12 เมษายน พ.ศ. 2492"},{"instruction":"เวิลด์ไวด์เว็บคืออะไร","input":"","output":"พื้นที่ที่เก็บข้อมูลข่าวสารที่เชื่อมต่อกันทางอินเทอร์เน็ต"},{"instruction":"โรงเรียนปัวตั้งอยู่ที่ใด","input":"","output":"ล��ที่ 266 หมู่ 8 ถนนวรนคร ตำบลปัว อำเภอปัว จังหวัดน่าน"},{"instruction":"นมมีสีอะไร","input":"","output":"สีขาว"},{"instruction":"ถนนพญาไท เป็นถนนสายไหนของประเทศ","input":"","output":"สายหนึ่งในกรุงเทพมหานคร"},{"instruction":"ประชากรทั้งหมดของโตเกียวมีจำนวนเท่าใด","input":"","output":"กว่า 35 ล้านคน"},{"instruction":"หลักสูตรวิชามานุษยวิทยาเชิงร่วมสมัยในอเมริกา จำนวน 12 หน่วยกิต คืออะไร","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Anthropology of Contemporary American Culture%' OR name LIKE '%Anthropology of Contemporary American Culture%') AND credits = 12"},{"instruction":"ผู้ใช้ตามตำแหน่งที่ตั้ง (stack overflow)","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"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"},{"instruction":"พงศ์พัฒน์ ฉายาพันธุ์ ฉายาอะไร","input":"","output":"นายพลช็อกโลก"},{"instruction":"วชิรวิชญ์ ไพศาลกุลวงศ์ ชื่อเล่นว่าอะไร","input":"","output":"ออกัส"},{"instruction":"เขาศูนย์ อยู่ห่างจากภูเขาอะไร","input":"","output":"หลวง"},{"instruction":"ปลาซิวเจ้าฟ้ามีชื่อเรียกเต็มๆว่าอะไร","input":"","output":"ปลาซิวเจ้าฟ้าจุฬาภรณ์ "},{"instruction":"200,000 โพสต์แรก โดยจำนวนการดู","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts ORDER BY Posts.ViewCount DESC LIMIT 200000"},{"instruction":"SELECT TOP 100 DisplayName จาก Users WHERE Location='Russia' และ Reputation=(เลือกสูงสุด(ชื่อเสียง)","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)","output":"SELECT DisplayName, LastAccessDate, WebsiteUrl, AboutMe FROM Users WHERE Location = 'Russia' ORDER BY Reputation LIMIT 100"},{"instruction":"ต้นทับทิมเป็นพรรณไม้จัดอยู่ในวงศ์ชนิดใด","input":"","output":"วงศ์ : Punicaceae"},{"instruction":"ในปี ค.ศ. 2015 มีประชากรกี่คน ?","input":"","output":"74,782 คน"},{"instruction":"ร้อยละคำถามที่ให้คะแนนเป็นลบต่อปี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT SUM(CASE WHEN Score < 0 THEN 1 ELSE 0 END) * 100 \/ COUNT(*) AS percentage, COUNT(*) AS total, SUM(CASE WHEN Score < 0 THEN 1 ELSE 0 END) AS negatice_count FROM Posts WHERE YEAR(CreationDate) = @year AND PostTypeId = 1"},{"instruction":"กำนันคนแรกของตำบลคือใคร","input":"","output":"นายวิภาส อินสว่าง"},{"instruction":"คำตอบที่นับได้ มากกว่า 50","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE AnswerCount > 50"},{"instruction":"สุรัสวดี เชื้อชาติ ชื่อเล่นว่าอะไร","input":"","output":"แหม่ม"},{"instruction":"คนไข้รหัส 50480 เข้าโรงพยาบาลมากี่รอบใน 6 ปีที่ผ่านมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 50480 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-6 year')"},{"instruction":"ปลาตีนนั้นเป็นปลาที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลาบู่"},{"instruction":"แจ้งยอดรวมผู้ป่วยที่พ้นจากการรักษาในโรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL"},{"instruction":"ปิดการโหวตสำหรับแท็ก X โดยผู้ใช้ (พร้อมลิงค์)","input":"CREATE TABLE ReviewTasks (\n Id number,\n ReviewTaskTypeId number,\n CreationDate time,\n DeletionDate time,\n ReviewTaskStateId number,\n PostId number,\n SuggestedEditId number,\n CompletedByReviewTaskId number\n)\n\n","output":"SELECT COUNT(*) FROM ReviewTasks WHERE ReviewTaskTypeId = 2 AND ReviewTaskStateId = 1"},{"instruction":"ปัจจุบันมีโรงพยาบาลพระจอมเกล้า (โรงพยาบาลเพชรบุรี) สร้างขึ้นใกล้กับเขาพนมขวดนี้ตั้งแต่ปี พ.ศ 2491 จากบันทึกที่มีชื่อว่าอะไร ?","input":"","output":"หนังสือสมุดราชบุรี"},{"instruction":"ปลากัดป่าภาคใต้มีชื่อทางวิทยาศสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Betta imbellis"},{"instruction":"การรับเข้ารักษาครั้งสุดท้ายในปีนี้ของผู้ป่วยหมายเลข 4288 คือประเภทอะไร?","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 4288 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"สินค้าขนาดเท่าไหร่","input":"","output":"���ว้าง 55 x ลึก 60 x สูง110-120 ซม."},{"instruction":"หมอกล้า หัวใจแกร่ง เป็นละครโทรทัศน์ประเทศอะไร","input":"","output":"อเมริกา"},{"instruction":"เจ้าอู่เมือง ณ เชียงตุง เจ้าฟ้าเมืองเชียงตุงองค์ที่เท่าไร","input":"","output":"พระองค์สุดท้าย"},{"instruction":"จำนวนคำถามที่ถามในวันจันทร์","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT * FROM PostHistory AS p WHERE p.PostHistoryTypeId = 35 AND p.CreationDate BETWEEN '2016-10-18 00:00:00' AND '2018-10-18 23:59:59'"},{"instruction":"แท็กมีคำถามทั้งหมดกี่ข้อ","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT Id FROM Tags WHERE TagName = 'SCOM'"},{"instruction":"เทศบาลตำบลบางจาก อยู่จังหวัดอะไร","input":"","output":"จังหวัดนครศรีธรรมราช"},{"instruction":"หาจำนวนคนไข้ที่ได้เข้ารักษาที่โรงในปีนี้","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')"},{"instruction":"กลองโนรานิยมทำด้วยแก่นอะไร","input":"","output":"แก่นไม้ขนุน"},{"instruction":"แสดงแท่งกราฟจำนวนใบแจ้งหนี้ที่ออกในแต่ละรัฐให้ฉันได้ไหม คุณเรียงข้อมูลของแกน Y ตามลำดับจากน้อยไปมากได้ไหม","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)\n\n","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*)"},{"instruction":"รับโพสต์ที่เชื่อมโยงโดยหมายเลขโพสต์","input":"CREATE TABLE PostLinks (\n Id number,\n CreationDate time,\n PostId number,\n RelatedPostId number,\n LinkTypeId number\n)\n\n","output":"SELECT DISTINCT PostId AS \"post_link\", * FROM PostLinks WHERE RelatedPostId = '##PostId##'"},{"instruction":"พระยาขัติยะวงษาเอกาธิกสตานันท์ เป็นเจ้าเมืองอะไร","input":"","output":"เจ้าเมืองร้อยเอ็ดองค์"},{"instruction":"สภาองคมนตรีแห่งพระราชินีมีชื่อเรียกอีกอย่างว่าอะไร","input":"","output":"สภาองคมนตรีแห่งอังกฤษ"},{"instruction":"ปลากะรังหน้างอนมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Cromileptes altivelis"},{"instruction":"ยากุป บวัชต์ชือกอฟสกี เกิดวันที่เท่าไร","input":"","output":"14 ธันวาคม ค.ศ. 1985"},{"instruction":"สาธารณรัฐเติร์กเมนิสถาน เข้าร่วมการแข่งขันอะไร","input":"","output":"กีฬาโอลิมปิก"},{"instruction":"เลือก id จาก posts โดยที่ ViewCount>100000","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id, Title FROM Posts WHERE ViewCount > 100000"},{"instruction":"แวมไพร์ อิน บรู๊คลิน มีสัญชาติอะไร","input":"","output":"อเมริกา"},{"instruction":"ก่อตั้งขึ้นเมื่อใด","input":"","output":"วันที่ 7 กรกฎาคม พ.ศ. 2453"},{"instruction":"วรรณกรรมเด็ก สำหรับเด็กยังครอบคลุมถึงอะไรบ้าง","input":"","output":"สื่อ ของเล่น และการแสดงต่าง ๆ"},{"instruction":"วันสตรีไทย ตรงกับวันที่เท่าไหร่","input":"","output":"วันที่ 1 สิงหาคมของทุกปี"},{"instruction":"อีเลียดคืออะไร","input":"","output":"หนึ่งในสองบทกวีมหากาพย์กรีกโบราณของโฮเมอร์"},{"instruction":"วันสันติภาพไทย อยู่ในช่วงสงครามอะไร","input":"","output":"สหรัฐอเมริกาและบริเตนใหญ่"},{"instruction":"ปลาแค้วัวถือว่าเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์อะไร","input":"","output":"วงศ์ปลาแค้ (Sisoridae)"},{"instruction":"ปลาแค้งูนิยมนำมาทำอะไร อธิบาย","input":"","output":"นิยมเลี้ยงเป็นปลาสวยงาม ซึ่งเป็นปลาที่มีราคาสูง และมีชื่ออื่นอีกว่า \"ปลาแค้หัวแบน\""},{"instruction":"แกร์ฮาร์ท โดมัคคือใคร","input":"","output":"พยาธิแพทย์และนักวิทยาแบคทีเรียชาวเยอรมัน"},{"instruction":"เมื่อวันที่ 21 มีนาคม 2561 จนถึงเดือนกรกฎาคม 2562 มีรัฐกี่รัฐลงนามความตกลงฯ","input":"","output":"54 รัฐ"},{"instruction":"พระศรีสรรเพชญดาญาณ หุ้มด้วยทองคำหนักเท่าไร","input":"","output":"286 ชั่ง"},{"instruction":"ผู้ป่วย 86209 ครั้งสุดท้ายเข้าโรงพยาบาลเมื่อปี 2105 อย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 86209 AND STRFTIME('%y', admissions.admittime) = '2105' ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ปลาตูหนามีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Anguilla bicolor"},{"instruction":"พระนางชยเทวี สร้างจารึกไว้ที่เมืองอะไร","input":"","output":"เมืองพระนครพรรณนา"},{"instruction":"สะพานภูมิพล มีลักษณะอย่างไร","input":"","output":"สะพานขึงขนาด 7 ช่องจราจร"},{"instruction":"แสดงชื่อและรหัสของลูกค้าที่มี TN ในที่อยู่ แสดงเป็นแผนภูมิวงกลม","input":"CREATE TABLE Customers (\n customer_id INTEGER,\n payment_method_code VARCHAR(10),\n customer_code VARCHAR(20),\n customer_name VARCHAR(80),\n customer_address VARCHAR(255),\n customer_phone VARCHAR(80),\n customer_email VARCHAR(80)\n)\n\n","output":"SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE \"%TN%\""},{"instruction":"ภารกิจเลือด เป็นนิยายเของใคร","input":"","output":"ไมเคิล คอนเนลลี"},{"instruction":"พาราลิมปิกฤดูหนาว เป็นการแข่งขันกีฬาอะไร","input":"","output":"กีฬาคนพิการระดับโลก"},{"instruction":"ตั้งแต่เมื่อ 6 ปีที่แล้วคนไข้ 021-250695 เข้าห้องฉุกเฉินอีกหรือไม่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '021-250695' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-6 year')"},{"instruction":"อาร์ชบิชอปแห่งแคนเทอร์เบอรี ประจำมุขมณฑลอะไร","input":"","output":"แคนเทอร์เบอรี"},{"instruction":"ตึกเอ็มไพร์สเตต นับเป็นตึกอะไร","input":"","output":"ตึกหลังแรกของโลกที่มีความสูงมากกว่า 100 ชั้น"},{"instruction":"ผู้ใช้งานที่แก้ไขมากที่สุดต่อโพสต์","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"WITH Edits AS (SELECT RANK() OVER (ORDER BY COUNT(*) DESC) AS Rank, UserId AS \"user_link\", COUNT(*) AS NumRevisions FROM PostHistory WHERE PostHistoryTypeId BETWEEN 4 AND 9 GROUP BY UserId) SELECT Rank, 'user_link', NumRevisions FROM Edits WHERE Rank < 100 OR 'user_link' = '##UserID##' ORDER BY Rank"},{"instruction":"คำนวณระยะเวลาการนอนรักษาในโรงพยาบาลครั้งล่าสุดของผู้ป่วย 003-42706","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '003-42706' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"เอลเดอร์ธิง บางครั้งก็เรียกว่าอะไร","input":"","output":"โอลด์วัน"},{"instruction":"อากิระ โทซาวะ เขาเป็นที่รู้จักกันดีในสมาคมอะไร","input":"","output":"Dragon Gate"},{"instruction":"กราฟแท่งแกน x รหัสประเภทผลิตภัณฑ์แกน y ราคาสูงสุดของผลิตภัณฑ์ เรียงแสดงผลจากน้อยไปมากตาม product_type_code ได้ไหมครับ","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code"},{"instruction":"อมฤตสัญจาร หมายถึงพิธีอะไร","input":"","output":"พิธีปาหุล"},{"instruction":"จังหวัดซีลางังซามาร์ เป็นจังหวัดในเขตอะไร","input":"","output":"เขตซีลางังคาบีซายาอัน"},{"instruction":"แสดงรายการจำนวนใบแจ้งหนี้จากสหรัฐอเมริกา จัดกลุ่มตามรัฐ แสดงภาพด้วยแผนภูมิแท่ง","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)\n\n","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state"},{"instruction":"จีเอสคาลเท็กซ์โซลเคไอเอ็กซ์เอ็กซ์ เจ้าของที��คือใคร","input":"","output":"บริษัท จีเอสสปอร์ต"},{"instruction":"50 อันดับแรกของนักพัฒนาบนอุปกรณ์เคลื่อนที่จาก Gujarat","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%kochi%' AND (LOWER(AboutMe) LIKE '%android%') ORDER BY Reputation DESC LIMIT 50"},{"instruction":"บอกวันที่เกิดของผู้ป่วยหมายเลข 76494","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 76494"},{"instruction":"นา แท-จู เคยเป็นแชมป์เทควันโดสายอะไร","input":"","output":"สายพูมแซ"},{"instruction":"จำนวนผู้ใช้แบ่งตามช่วงชื่อเสียง (15K-75K) ผู้ใช้ที่มีชื่อเสียงสูงตามจำนวนชื่อเสียงที่ได้รับแต่ละวัน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", DisplayName, Reputation, Location FROM Users WHERE (Reputation >= 15000) AND (Reputation <= 75000) ORDER BY Reputation DESC"},{"instruction":"ใครคือเจ้าของบริษัทที่ดำเนินโครงการโฮปเวลล์","input":"","output":"กอร์ดอน วู"},{"instruction":"ตัวละครเอกของสัตวแพทย์มือใหม่หัวใจเมโลดี้ชื่อว่าอะไร","input":"","output":"อิวาชิโร่ เท็ตโช"},{"instruction":"ซูเปอร์โบวล์ครั้งที่ 52 แข่งขันในเมืองอะไร","input":"","output":"เมืองมินนีแอโพลิส"},{"instruction":"จำนวนโพสต์ต่อผู้ใช้ นี่คือการสอบถามที่ส่งกลับจำนวนของโพสต์ต่อผู้ใช้ โดยจัดเรียงจากจำนวนมากไปหาน้อย","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE CreationDate >= DATEFROMPARTS(2013, 3, 1)"},{"instruction":"แสงอรุณ วรรณจู อยู่สำนักพิมพ์อะไร","input":"","output":"สำนักพิมพ์แจ่มใส"},{"instruction":"ซ่งฉื่อ เนื้อหาแบ่งเป็นกี่บท","input":"","output":"496 บท"},{"instruction":"ผู้ป่วยหมายเลข 27172 เข้ารับการรักษาในโรงพยาบาลมาแล้วกี่ชั่วโมง","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 27172 AND admissions.dischtime IS NULL"},{"instruction":"เมื่อไหร่ในปีที่ผ่านมาคนไข้หมายเลข 18841 เข้าโรงพยาบาลครั้งแรกโดยผ่านห้องฉุกเฉิน","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 18841 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime LIMIT 1"},{"instruction":"วงดนตรีแคลช ร้องเพลงประกอบภาพยนตร์ ชื่อเพลงอะไรบ้าง","input":"","output":"พันธุ์เอ็กซ์เด็กสุดขั้ว"},{"instruction":"100 ผู้ใช้ชั้นนำจาก Cambridge ประเทศสหราชอาณาจักร แสดงรายชื่อ 100 ผู้ใช้ชั้นนำ (จัดอันดับตามชื่อเสียง) ที่อยู่ใน Cambridge ประเทศสหราชอาณาจักรตามข้อมูลโปรไฟล์ของพวกเขา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Reputation, WebsiteUrl, Location FROM Users WHERE (Location LIKE '%Cambridge%' AND NOT Location LIKE '%MA%') ORDER BY Reputation DESC LIMIT 100"},{"instruction":"แกร์ฮาร์ท โดมัคได้รับรางเบลจากการค้นพบอะไร","input":"","output":"พบว่าพรอนโตซิล ซึ่งเป็นสารกลุ่มซัลโฟนาไมด์ มีฤทธิ์ต้านเชื้อสเตรปโตค็อกคัส (Streptococcus) "},{"instruction":"อธิบายรหัสอาหาร SD\/D","input":"CREATE TABLE food_service (\n meal_code text,\n meal_number int,\n compartment text,\n meal_description varchar\n)\n\n","output":"SELECT DISTINCT compartment, meal_code, meal_description, meal_number FROM food_service WHERE meal_code = 'SD\/D'"},{"instruction":"พระพุทธชินราช ตั้งอยู่ในกรุงอะไร","input":"","output":"กรุงสุโขทัย"},{"instruction":"ประกอบด้วยภาษาที่ใกล้เคียงกันกี่ภาษา ?","input":"","output":"16 ภาษา "},{"instruction":"โดยปล่อยซิงเกิลชื่อว่าอะไร","input":"","output":"ใจเย็นเย็น"},{"instruction":"สำหรับแต่ละประเภทสินค้า ให้แสดงส่วนสัมพันธ์ระหว่างราคาสินค้าขั้นต่ำและราคาสินค้าสูงสุดในแผนภูมิแบบกระจาย","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT MAX(product_price), MIN(product_price), product_type_code FROM Products GROUP BY product_type_code"},{"instruction":" ส่วนใหญ่พูดภาษาในตระกูลออสโตร-เอเชียติก ใน พ.ศ.2536คิดเป็น ของประชากรลาวทั้งหมด ?","input":"","output":"24%"},{"instruction":"ความแตกต่างระหว่างรหัสค่าโดยสาร Q และรหัสค่าโดยสาร B","input":"CREATE TABLE class_of_service (\n booking_class varchar,\n rank int,\n class_description text\n)","output":"SELECT DISTINCT booking_class, class_description, rank FROM class_of_service WHERE booking_class = 'B' OR booking_class = 'Q'"},{"instruction":"จังหวัดคาราฟูโตะ เป็นส่วนบริหารของประเทศญี่ปุ่นตั้งเเต่เมื่อไหร่","input":"","output":"ค.ศ. 1905 ถึง ค.ศ. 1945"},{"instruction":"มหาศึกชิงบัลลังก์ ฉายครั้งแรกทางช่องอะไร","input":"","output":"HBO"},{"instruction":"This Little Life กำกับภาพยนตร์โดยใคร","input":"","output":"ซาราห์ แกฟร่อน"},{"instruction":"อเวนเจอร์ส: เผด็จศึก มีเค้าโครงเรื่องมาจากอะไร","input":"","output":"มาร์เวลคอมิกส์ เรื่อง ดิอเวนเจอร์ส"},{"instruction":"ผู้ป่วยรหัส 018-119251 มีค่าเฉลี่ยของน้ำหนักในแต่ละเดือนก่อนเดือน 11\/2558 เท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT AVG(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-119251') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2105-11' GROUP BY STRFTIME('%y-%m', patient.unitadmittime)"},{"instruction":"นอร์เบิร์ต ไวส์เซอร์เกิดวันไหน","input":"","output":"9 กรกฎาคม 2489"},{"instruction":"หาข้อมูลทั้งหมดจาก Posts ที่ rand() น้อยกว่าเท่ากับ 3","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE RAND() = 0.3"},{"instruction":"Eduardo Martins เป็นลูกค้าของบริษัทอะไร","input":"CREATE TABLE customers (\n id number,\n first_name text,\n last_name text,\n company text,\n address text,\n city text,\n state text,\n country text,\n postal_code text,\n phone text,\n fax text,\n email text,\n support_rep_id number\n)\n\n","output":"SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\""},{"instruction":" คนไทยทางภาคเหนือนิยมเรียกปลาร้าว่าอะไร","input":"","output":" คนไทยทางภาคเหนือนิยมเรียกปลาร้าว่า ฮ้า"},{"instruction":"20 โพสต์ยอดนิยมใน 1 สัปดาห์","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)","output":"SELECT Id AS \"post_link\", Title, Score FROM Posts WHERE Posts.CreationDate > CURRENT_TIMESTAMP() - 7 ORDER BY Score DESC LIMIT 20"},{"instruction":"่หม่อมเจ้าเวียงวัฒนา ชยางกูร เป็นพระโอรสของใคร","input":"","output":"พระเจ้าบรมวงศ์เธอ กรมหมื่นพงษาดิศรมหิป"},{"instruction":"ฉายครั้งแรกทางช่องใด","input":"","output":"เอเอ็มซี"},{"instruction":"ฉันต้องการดูวิชาเศรษฐศาสตร์ระหว่างประเทศ 3 หน่วยกิต","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%International Economics%' OR name LIKE '%International Economics%') AND credits = 3"},{"instruction":"ถนนอินทรพิทักษ์ มีลักษณะเป็นถนนแบบใด","input":"","output":"6 ช่องทางจราจร เขตถนนกว้าง 30 เมตร ระยะทางยาว 780 เมตร"},{"instruction":"คะแนนความคิดเห็นและ PostId","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) AS CommentCount, Score, PostId AS \"post_link\" FROM Comments WHERE UserId = @UserId GROUP BY Score, PostId ORDER BY Score DESC"},{"instruction":"วิชาใดไม่มีห้องปฏิบัติการ","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N'"},{"instruction":"ผู้ป่วยที่ไม่ได้มีข้อห้ามใดๆ ต่อไปนี้: การติดเชื้อหรือการอักเสบที่กระดูกสันหลัง โรคอ้วนขั้นรุนแรง โรคทางจิต โรคพิษสุราเรื้อรัง โรคติดยาเสพติด การตั้งครรภ์ การแพ้โลหะ การแพ้สิ่งแปลกปลอม ผู้ป่วยที่มีเนื้อเยื่อที่คลุมไม่เพียงพอเหนือบริเวณที่ผ่าตัด บาดแผลเปิดที่อยู่ใกล้กับบริเวณที่ผ่าตัด กรณีใดๆ ที่ไม่ได้ระบุไว้ในข้อบ่งชี้เฉพาะ","input":"CREATE TABLE table_test_30 (\n \"id\" int,\n \"ejection_fraction_ef\" int,\n \"multiple_long_bone_fractures\" bool,\n \"extracellular_volume_expansion\" bool,\n \"pregnancy_or_lactation\" bool,\n \"bleeding\" int,\n \"serum_potassium\" float,\n \"prosthetic_heart_valve\" bool,\n \"hbg\" int,\n \"anticoagulation\" bool,\n \"incomplete_spinal_cord_injury\" bool,\n \"complex_pelvic_fractures\" bool,\n \"ascites\" bool,\n \"gcs\" int,\n \"urine_output\" int,\n \"hyperkalemia\" bool,\n \"head_injury\" bool,\n \"operative_area\" bool,\n \"trauma\" bool,\n \"renal_disease\" bool,\n \"metal_sensitivity\" bool,\n \"para\" bool,\n \"creatinine_clearance_cl\" float,\n \"mental_illness\" bool,\n \"estimated_glomerular_filtration_rate_egfr\" int,\n \"pulmonary_rales\" bool,\n \"edema\" bool,\n \"platelet_count\" float,\n \"inadequate_tissue_coverage\" bool,\n \"associated_long_bone_fractures\" bool,\n \"pe\" bool,\n \"long_term_anticoagulation\" int,\n \"pitting\" bool,\n \"injury_patterns\" bool,\n \"spinal_infection\" bool,\n \"jugular_venous_distention\" bool,\n \"serum_sodium_concentration\" int,\n \"previous_hemorrhagic_stroke\" bool,\n \"orthopedic\" bool,\n \"kidney_disease\" bool,\n \"open_wounds\" bool,\n \"quadriplegia\" bool,\n \"chronic_warfarin_therapy\" bool,\n \"chest_x_ray\" bool,\n \"inflammation\" bool,\n \"morbid_obesity\" bool,\n \"iv_furosemide\" int,\n \"cardiomyopathy\" bool,\n \"atrial_flutter\" bool,\n \"alcohol_abuse\" bool,\n \"aortic\" bool,\n \"mitral\" bool,\n \"atrial_fibrillation\" bool,\n \"drug_abuse\" bool,\n \"foreign_body_sensitivity\" bool,\n \"venous_thromboembolic_disease\" bool,\n \"chronic_anticoagulation\" bool,\n \"myocardial_infarction\" bool,\n \"dvt\" bool,\n \"NOUSE\" float\n)","output":"SELECT * FROM table_test_30 WHERE spinal_infection = 1 OR inflammation = 1 OR morbid_obesity = 1 OR mental_illness = 1 OR alcohol_abuse = 1 OR drug_abuse = 1 OR pregnancy_or_lactation = 1 OR metal_sensitivity = 1 OR foreign_body_sensitivity = 1 OR (inadequate_tissue_coverage = 1 AND operative_area = 1) OR (open_wounds = 1 OR operative_area = 1)"},{"instruction":"35 ผู้ใช้ที่ใช้งานมากที่สุดจาก Ahmedabad","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%kochi%' OR UPPER(Location) LIKE '%KOCHI%' OR Location LIKE '%kochi%' ORDER BY Reputation DESC LIMIT 35"},{"instruction":"อัลบัมที่ 3 ของ โบโนโบ","input":"","output":"Days to Come จำหน่ายเมือปี 2006"},{"instruction":"คืนค่าฮิสโตแกรมเกี่ยวกับจำนวนใบแจ้งหนี้ที่เรียกเก็บจากแต่ละรัฐ และเรียงลำดับแกน x จากน้อยไปมาก","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)","output":"SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY billing_state"},{"instruction":"ทอมมี่ ลี โจนส์ เกิดที่ประเทศอะไร","input":"","output":"สหรัฐอเมริกา"},{"instruction":"ผู้ป่วยรหัส3929 ครั้งนี้มีประกันสุขภาพอะไรครับ","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 3929 AND admissions.dischtime IS NULL"},{"instruction":"จนถึงเมื่อ 2 ปีที่แล้ว มีผู้ป่วยกี่คนที่ออกจากโรงพยาบาล","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) <= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"บิรูเต กัลดิกาส์ เกิดวันที่เท่าไร","input":"","output":"10 พฤษภาคม ค.ศ. 1946"},{"instruction":"ขอโพสต์ที่มีแท็กยอดนิยม","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT Count, TagName FROM Tags WHERE Count > 50000 ORDER BY Count"},{"instruction":"ทักษิณชินวัตรเคยเป็นประธานสโมสรฟุตบอลใด","input":"","output":"สโมสรฟุตบอลแมนเชสเตอร์ซิตี"},{"instruction":"มาร์ ตี นาตาเลกาวา อยู่ประเทศอะไร","input":"","output":"ประเทศอินโดนีเซีย"},{"instruction":"สมาชิกที่ใช้งานสามารถลงคะแนนได้ และเป็นสมาชิกตั้งแต่วันแรกของการเลือกตั้งครั้งแรก","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT COUNT(Id) FROM Users WHERE LastAccessDate > '2017-07-24 00:00:01' AND Reputation > 150"},{"instruction":"เพศของผู้ป่วย 7107 คืออะไร","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.gender FROM patients WHERE patients.subject_id = 7107"},{"instruction":"ผู้ใช้ที่ยอดนิยมจาก New Delhi","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%New Delhi%' ORDER BY Reputation DESC LIMIT 100"},{"instruction":"จังหวัดมีชื่อเสียงในด้านจังหวัดมีชื่อเสียงในด้านใด ?","input":"","output":"ลองกอง"},{"instruction":"เฮเลน ���คลเลอร์ได้ก่อตั้งองค์การใดเมื่อปี 2458","input":"","output":"เฮเลนเคลเลอร์สากล"},{"instruction":"id และชื่อของลูกค้าที่มีที่อยู่ที่มีคำว่า WY และไม่ได้ใช้บัตรเครดิตสำหรับการชำระเงินคืออะไร","input":"CREATE TABLE customers (\n customer_id number,\n payment_method_code text,\n customer_code text,\n customer_name text,\n customer_address text,\n customer_phone text,\n customer_email text\n)\n\n","output":"SELECT customer_id, customer_name FROM customers WHERE customer_address LIKE \"%WY%\" AND payment_method_code <> \"Credit Card\""},{"instruction":"แอริสตอเติลคือใคร","input":"","output":"นักปรัชญากรีกโบราณ"},{"instruction":"กรดซัลฟิวริก ค้นพบโดยใคร","input":"","output":"ญาบิร"},{"instruction":"ค้นหาโพสต์โดยข้อความความคิดเห็นหลายๆ รายการ (ตัวดำเนินการ 'OR') และ UserId","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"comment_link\", Score, Text FROM Comments WHERE (UPPER(Text) LIKE UPPER('%##CommentText##%') OR UPPER(Text) LIKE UPPER('%##CommentText2##%')) AND UserId = '##UserId##' ORDER BY Score DESC"},{"instruction":"มีขนาดของสินค้าอยู่เท่าไร","input":"","output":"ขนาด W1830 x H2440 หนา 6 mm."},{"instruction":"กะพ้อเขาจันทร์ เป็นปาล์มในสกุลอะไร","input":"","output":"สกุลกะพ้อ"},{"instruction":"คนไข้ 032-4849 ครั้งแรกที่มารับบริการในโรงพยาบาลได้เข้าห้องฉุกเฉินหรือไม่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '032-4849' AND patient.hospitaladmitsource = 'emergency department' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"อากิ โทโยซากิ คือใคร ?","input":"","output":"นักพากย์และนักร้อง"},{"instruction":"หาข้อสงสัยของการลบโพสต์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Reputation, DisplayName FROM Users WHERE Reputation >= 20000 ORDER BY Reputation DESC, DisplayName"},{"instruction":"ตั้งแต่ 2104 ผู้ป่วย 10211 ออกจากโรงพยาบาลครั้งสุดท้ายเมื่อใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 10211 AND STRFTIME('%y', admissions.dischtime) >= '2104' ORDER BY admissions.dischtime DESC LIMIT 1"},{"instruction":"เจสส์ แม็กแมน ก่อตั้งขึ้นในปีอะไร","input":"","output":"ค.ศ. 1952"},{"instruction":"สุหฤท สยามวาลา เกิดวันที่เท่าไร","input":"","output":"8 สิงหาคม พ.ศ. 2511"},{"instruction":"กอร์ดอน แบงส์ เกิดวันไหน?","input":"","output":"30 ธันวาคม พ.ศ. 2480"},{"instruction":"รับโพสต์ที่เกี่ยวโยงโดยรหัสโพสต์","input":"CREATE TABLE PostLinks (\n Id number,\n CreationDate time,\n PostId number,\n RelatedPostId number,\n LinkTypeId number\n)\n\n","output":"SELECT DISTINCT PostId AS \"post_link\", * FROM PostLinks WHERE RelatedPostId = '##PostId##'"},{"instruction":"ค้นหานักแสดงทั้งหมดจากหนังเรื่อง Austin ที่เกิดหลังปี 1980","input":"CREATE TABLE actor (\n aid int,\n gender text,\n name text,\n nationality text,\n birth_city text,\n birth_year int\n)\n\n","output":"SELECT name FROM actor WHERE birth_city = 'Austin' AND birth_year > 1980"},{"instruction":"สตาร์เวิลด์ ประเทศไทยสามารถรับชมได้ผ่านทางไหน","input":"","output":"GOOD TV"},{"instruction":"ณภัทร ภู่ประเสริฐ เกิดที่จังหวัดอะไร","input":"","output":"สมุทรปราการ"},{"instruction":"มีวิชา 489 ที่ EECS หรือไม่ครับ","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT has_projects FROM course WHERE department = 'EECS' AND number = 489"},{"instruction":"จำนวนคำถามและคำตอบใหม่ตั้งแต่ปีที่กำหนดไว้","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT YEAR(CreationDate) AS \"year\", MONTH(CreationDate) AS \"month\", SUM(CASE WHEN Posts.PostTypeId = 1 THEN 1 ELSE 0 END) AS QuestionCount, SUM(CASE WHEN Posts.PostTypeId = 2 THEN 1 ELSE 0 END) AS AnswerCount FROM Posts WHERE YEAR(CreationDate) >= 2014 GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY YEAR(CreationDate), MONTH(CreationDate)"},{"instruction":"จุดประสงค์ของการตั้งโครงการ Rock Rider","input":"","output":"เพื่อผลิตเพลงและทัวร์คอนเสิร์ต"},{"instruction":"ต้นโมกมีการขยายพันธุ์ไม้ในรูปแบบลักษณะใด","input":"","output":"ทำการขยายพันธุ์โดยการปักชำ หรือ เพาะเมล็ด"},{"instruction":"เลตอิตบี เป็นลำดับที่เท่าไรของวง","input":"","output":"สุดท้ายของวงร็อกอังกฤษ"},{"instruction":"หลักสูตรเครดิต 12 หน่วยมีวิชาอะไรบ้าง?","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS'"},{"instruction":"สถานที่ท่องเที่ยวที่จะสามารถเข้าถึงได้โดยรถบัส มีชื่อว่าอะไรบ้าง","input":"CREATE TABLE tourist_attractions (\n tourist_attraction_id number,\n attraction_type_code text,\n location_id number,\n how_to_get_there text,\n name text,\n description text,\n opening_hours text,\n other_details text\n)\n\n","output":"SELECT name FROM tourist_attractions WHERE how_to_get_there = \"bus\""},{"instruction":"ใครคือผู้ก่อตั้งบ้านเรเวนคลอ","input":"","output":"โรเวนนา เรเวนคลอ"},{"instruction":"คุณชายเลี้ยงหมู คุณหนูเลี้ยงแกะ ออกอากาศทุกวันอะไร","input":"","output":"พุธ - พฤหัสบดี"},{"instruction":"คนไข้ 027-154299 น้ำหนักล่าสุด เดือน 12\/ปีนี้ เท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-154299') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', patient.unitadmittime) = '12' ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"การร้องเพลงครั้งแรกในค่ายจีนี เรคคอร์ดส ชื่อเพลงว่าอะไร","input":"","output":"ตอบ"},{"instruction":"ครั้งที่เข้ารับบริการที่โรงพยาบาลปัจจุบัน ผู้ป่วย 006-195316 ได้เข้ารับบริการที่ห้องฉุกเฉินหรือไม่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '006-195316' AND patient.hospitaladmitsource = 'emergency department' AND patient.hospitaldischargetime IS NULL"},{"instruction":"ปลาดุกมูนถือว่าเป็นปลาน้ำจืดชนิดหนึ่งที่จัดอยู่ในวงศ์ใด","input":"","output":"วงศ์ปลากด (Bagridae)"},{"instruction":"แชมป์ประเทศไทยรุ่นแบนตัมเวท ชิงเมื่อไร","input":"","output":"20 สิงหาคม 2540"},{"instruction":"หม่อมราชวงศ์สดศรี ปันยารชุน มีนามเดิมว่า","input":"","output":"หม่อมราชวงศ์สดศรีสุริยา จักรพันธุ์"},{"instruction":"ใครเป็นบุคคลแรกที่จดบันทึกรูปลักษณ์ของแถบมืดในสเปกตรัมดวงอาทิตย์","input":"","output":"วิลเลียม ไฮด์ วอลลาสตัน"},{"instruction":"รัชฎาภรณ์ แก้วสนิท จัดตั้งในพรรคอะไร","input":"","output":"พรรคคอมมิวนิสต์แห่งประเทศไทย (พคท.)"},{"instruction":"จำนวนสิ้นสุดเหตุการณ์ที่เกิดขึ้นมีรหัสประเภทเหตุการณ์ 'NOISE'? แยกตามวันในสัปดาห์และแสดงแผนภูมิแท่ง และเรียงลำดับจากน้อยไปมากตามแกน y","input":"CREATE TABLE Behavior_Incident (\n incident_id INTEGER,\n incident_type_code VARCHAR(10),\n student_id INTEGER,\n date_incident_start DATETIME,\n date_incident_end DATETIME,\n incident_summary VARCHAR(255),\n recommendations VARCHAR(255),\n other_details VARCHAR(255)\n)\n\n","output":"SELECT date_incident_start, COUNT(date_incident_start) FROM Behavior_Incident WHERE incident_type_code = \"NOISE\" ORDER BY COUNT(date_incident_start)"},{"instruction":"มีชั้นเรียนเรื่องวิจัยองค์รวมเชิงปริญญาโทด้านสรีรวิทยาหรือไม่","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)\n\n","output":"SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Physiology Masters Research Capstone%' OR name LIKE '%Physiology Masters Research Capstone%') AND department = 'EECS'"},{"instruction":"ตัวอย่างโค้ดที่ดีและไม่ดี","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*) FROM Posts WHERE Body LIKE '%%' AND ParentId IN (1109022, 151777, 541966, 1016896, 6343166, 477572, 2591036, 3145089, 2201917, 5033012, 600207, 3035692, 1560788, 2091465, 531427, 2139134, 6495898, 3166501, 4605527, 2736389, 2150078, 6200533, 867518, 2471935, 3624280, 2459916, 1667278, 2795833, 2317428, 3495890, 1397361, 2169649, 2403632, 2644134, 2695746, 4946295, 7723964, 8500283, 3331527, 11444238, 5105354, 2130932, 2617266, 2160619, 454315, 3226495, 1556987, 2322234, 5832368, 1101380, 5694933, 2973270, 419184, 6330260, 2271131, 3349121, 4165414, 2780102, 6290531, 574195, 1851633, 5357455, 2217753, 3647993, 3611457, 11281010, 8181828, 3916330, 5763304, 11321129, 660151, 6520718, 6176391, 4617898, 3996938, 6070805, 4894885, 1724937, 5495225, 16143562, 13739785)"},{"instruction":"สร้างโดยไซมอน ฟูลเลอร์, ไนเจล ลิธโกว์, อัลเลน ชาพิโร และใคร ?","input":"","output":"แบร์รี่ อเดลแมน"},{"instruction":"ตั้งแต่ 4 ปีที่ผ่านมา เวลาสุดท้ายที่เข้าห้องพักฟื้นของคนไข้ 028-23341 คือเมื่อไหร่ครับ","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '028-23341' AND patient.hospitaladmitsource = 'recovery room' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"จำนวนคำถามตามคะแนน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, COUNT(Id) FROM Posts WHERE PostTypeId = 2 AND OwnerUserId = 6309 GROUP BY Score ORDER BY Score DESC"},{"instruction":"อาร์ดวาร์ก มีชื่อภาษาแอฟริคาน แปลว่าอะไร","input":"","output":"หมูดิน"},{"instruction":"ไอโซโพรพานอลเป็นตัวทำลายสารชนิดใด","input":"","output":"เอทิลเซลลูโลส โพลิไวนิลบิวทิรัล น้ำมัน อัลคาลอยด์ และยางไม้ได้"},{"instruction":"ผู้ป่วยหมายเลข 012-68650 รายแรก เข้ารับการรักษาในช่วงปีที่ผ่านมาเพราะอะไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '012-68650' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"จำนวนบัญชีผู้ใช้ที่ถูกสร��างต่อสัปดาห์","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT (TIME_TO_STR(CreationDate, '%y') + (TIME_TO_STR(CreationDate, '%W') - 1) \/ 52.0) AS YR_WK, COUNT(*) AS c FROM Users GROUP BY (TIME_TO_STR(CreationDate, '%y') + (TIME_TO_STR(CreationDate, '%W') - 1) \/ 52.0) ORDER BY (TIME_TO_STR(CreationDate, '%y') + (TIME_TO_STR(CreationDate, '%W') - 1) \/ 52.0)"},{"instruction":"เจ้ากอง หรืออีกชื่อหนึ่งคือ ?","input":"","output":"ขุนหลวงพระเสด็จกอน"},{"instruction":"คุณได้ลอง comment อะไร","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT Id FROM Comments WHERE Text = 'http:\/\/whathaveyoutried.com'"},{"instruction":"ต้นมะคำดีควายมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Sapindus emarginatus Wall."},{"instruction":"พังก์โกส์อะคูสติก 2 ออกจำหน่ายเมื่อปีอะไร","input":"","output":"พ.ศ. 2546"},{"instruction":"มีอาณาเขตติดต่อกับอะไร ?","input":"","output":"เทศบาลตูบูรัน, ตีโป-ตีโป, อีซาเบลา และช่องแคบบาซีลัน"},{"instruction":"เทอร์โบ คืออะไร","input":"","output":"เครื่องอัดอากาศเข้าสู่ห้องเผาไหม้"},{"instruction":"พระเจ้าบรมวงศ์เธอ พระองค์เจ้างอนรถ ประสูติเมื่อไร","input":"","output":"วันพฤหัสบดี เดือนยี่ ขึ้น 5 ค่ำ ปีกุน สัปตศก จ.ศ. 1177"},{"instruction":"ครั้งก่อนของปีที่แล้วผู้ป่วย 7476 มาโรงพยาบาลโดยการ admit ผ่านห้องฉุกเฉินเมื่อใด","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 7476 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ปลากะรังลายจุดมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Epinephelus malabaricus"},{"instruction":"ในครอบครัวชนชั้นกลางในชื่อ ออง บุนหัวในหมู่บ้านริมทะเลเมือง ?","input":"","output":"ซิเตียวัน"},{"instruction":"รหัสและชื่อสินค้าใด ที่ราคาขายต่ำกว่า 600 หรือสูงกว่า 900","input":"CREATE TABLE products (\n product_id number,\n product_type_code text,\n product_name text,\n product_price number\n)\n\n","output":"SELECT product_id, product_name FROM products WHERE product_price < 600 OR product_price > 900"},{"instruction":"คนไข้หมายเลข 14397 เข้ารับการรักษาในโรงพยาบาลล่าสุดอย่างไร","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 14397 ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"ตัวเลขการจ่ายยา adefovir dipivoxil จนถึงปี 2557 เป็นเท่าไร","input":"CREATE TABLE prescriptions (\n row_id number,\n subject_id number,\n hadm_id number,\n startdate time,\n enddate time,\n drug text,\n dose_val_rx text,\n dose_unit_rx text,\n route text\n)\n\n","output":"SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'adefovir dipivoxil' AND STRFTIME('%y', prescriptions.startdate) <= '2104'"},{"instruction":"สาธารณรัฐโปรตุเกส เข้าร่วมการแข่งขันอะไร","input":"","output":"กีฬาโอลิม"},{"instruction":"ผู้ป่วยหมายเลข 017-20711 เข้ารับการรักษาตัวในโรงพยาบาลได้ตั้งแต่ปี 2105 เป็นคนแรกได้อย่างไร","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '017-20711' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"มีขนาดของสินค้าอยู่เท่าไร","input":"","output":"ขนาด 6 mm. ขนาดตามสั่ง หนา 6 มิลลิเมตร"},{"instruction":"แสดงผลราคาเฉลี่ยของแต่ละประเภทสินค้าโดยใช้แผนภูมิแท่ง พร้อมแสดงรายการราคาเฉลี่ยของสินค้าจากมากไปน้อย","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)\n\n","output":"SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY AVG(product_price) DESC"},{"instruction":"กุกบุยโป้วมีสีอะไร","input":"","output":"สีแดงอมน้ำตาล"},{"instruction":"ปัจจุบันรถรุ่นนี้ถูกเรียกรวมๆว่าอะไร","input":"","output":"แลนด์โรเวอร์ ซีรีส์"},{"instruction":"ผู้ใช้ที่อายุยังไม่ถึง 18 ปี","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Views AS Age, Reputation FROM Users WHERE Age < 18 AND Reputation >= 200 ORDER BY Age"},{"instruction":"แสดงจำนวนบัญชีที่เปิดในแต่ละวัน Bin วันที่เปิดบัญชีตามวันในสัปดาห์และแบ่งกลุ่มตามรายละเอียดบัญชีอื่นๆ ในแผนภูมิแท่งแบบซ้อน และเรียงลำดับแบบเรียงจากน้อยไปมากตามจำนวนทั้งหมด","input":"CREATE TABLE Accounts (\n account_id INTEGER,\n customer_id INTEGER,\n date_account_opened DATETIME,\n account_name VARCHAR(50),\n other_account_details VARCHAR(255)\n)\n\n","output":"SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts GROUP BY other_account_details ORDER BY COUNT(date_account_opened)"},{"instruction":"นายยิ่งพันธ์ มนะสิการ เกิดวันที่เท่าไร","input":"","output":"23 พฤศจิกายน พ.ศ. 2480"},{"instruction":"สร้างแผนภาพเส้นแสดงจำนวนวันที่สั่งซื้อตามวันที่สั่งซื้อ","input":"CREATE TABLE Bookings (\n Booking_ID INTEGER,\n Customer_ID INTEGER,\n Workshop_Group_ID VARCHAR(100),\n Status_Code CHAR(15),\n Store_ID INTEGER,\n Order_Date DATETIME,\n Planned_Delivery_Date DATETIME,\n Actual_Delivery_Date DATETIME,\n Other_Order_Details VARCHAR(255)\n)\n\n","output":"SELECT Order_Date, COUNT(Order_Date) FROM Bookings"},{"instruction":"ทำซ้ำเป้าหมายของโพสต์ที่ให้","input":"CREATE TABLE PostLinks (\n Id number,\n CreationDate time,\n PostId number,\n RelatedPostId number,\n LinkTypeId number\n)\n\n","output":"SELECT RelatedPostId AS \"post_link\" FROM PostLinks WHERE (PostId = '##id?1331325##') AND (LinkTypeId = 3)"},{"instruction":"ตำน��นแห่งซิลมาริล แต่งโดยใคร","input":"","output":" เจ. อาร์. อาร์. โทลคีน"},{"instruction":"คำนวณระยะเวลาการนอนพักรักษาตัวของผู้ป่วย 035-22706 ครั้งหลังที่เข้าพัก","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '035-22706' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"สโมสรช้าง เป็นสโมสรเกี่ยวกับอะไร","input":"","output":"สโมสรวอลเลย์บอลหญิง"},{"instruction":"บอกเพศของผู้ป่วย 006-195541","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '006-195541'"},{"instruction":"น้ำหนักของผู้ป่วย 016-8658 ครั้งสุดท้ายที่มีการวัด ในการเข้ารักษาครั้งแรกที่โรงพยาบาล ต่างกับค่าครั้งแรกที่วัด ในการเข้ารักษาครั้งแรกที่โรงพยาบาล เท่าไหร่","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-8658' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-8658' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)"},{"instruction":"ปรากฏการณ์เกาะความร้อน มีอีกชื่อหนึ่งว่าอะไร","input":"","output":"เกาะความร้อนเมือง"},{"instruction":"ใครคือคนแรกที่ลาออกจากโอเอซิส","input":"","output":"โทนี แม็คคารอล"},{"instruction":"ผู้ใช้งาน 150 อันดับจากบัลแกเรีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Bulgaria%' OR Location LIKE '%sofia%' ORDER BY Reputation DESC LIMIT 150"},{"instruction":"อย่างไรก็ตาม ชาวยุโรปเริ่มทำของหวานทานเป็นครั้งแรกในช่วงยุคใด ?","input":"","output":"ยุคกลาง"},{"instruction":"ซิมอน โบลิบาร์ เรียกอีกชื่อหนึ่งว่าอะไร","input":"","output":"สงครามโบลิบาร์"},{"instruction":"นระหว่างช่วงเหตุการณ์ กบฏทหารนอกราชการ หรือ กบฏ 9 กันยา เกิดอะไรขึ้นกับประพันธ์ ธูปะเตมีย์","input":"","output":"พลอากาศเอก ประพันธ์ เป็น 1 ในบุคคลที่ถูกคณะผู้ก่อการจับกุมตัว"},{"instruction":"รับคำตอบที่มีการโหวตสูงขึ้น ซึ่งคำถามไม่มีแท็ก","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"Bronze Satin Transparent"},{"instruction":"แยชือ ดูแด็ก เกิดวันที่เท่าไร","input":"","output":"23 มีนาคม ค.ศ. 1973"},{"instruction":"การโหวตติชมแบบไม่ระบุชื่อผ่านกาลเวลา","input":"CREATE TABLE PostFeedback (\n Id number,\n PostId number,\n IsAnonymous boolean,\n VoteTypeId number,\n CreationDate time\n)\n\n","output":"SELECT COUNT(*) FROM PostFeedback"},{"instruction":"5 อันดับประเทศที่มีจำนวนบิลมากที่สุดแต่ละประเทศมีกี่บิล แสดงข้อมูลเป็นแผนภูมิแท่ง","input":"CREATE TABLE invoices (\n id INTEGER,\n customer_id INTEGER,\n invoice_date TIMESTAMP,\n billing_address VARCHAR(70),\n billing_city VARCHAR(40),\n billing_state VARCHAR(40),\n billing_country VARCHAR(40),\n billing_postal_code VARCHAR(10),\n total NUMERIC(10,2)\n)\n\n","output":"SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5"},{"instruction":"จำนวนโพสต์ตามช่วงอายุในหน่วยวัน","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"WITH PostAge AS (SELECT Id, DATEDIFF(day, CreationDate, @LastVote) AS Age FROM Posts WHERE PostTypeId = '##PostTypeId:int?2##'), PostsByAge AS (SELECT Age, COUNT(*) AS Count FROM PostAge GROUP BY Age) SELECT Age, Count, SUM(Count) OVER (ORDER BY Age DESC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RollingCount FROM PostsByAge ORDER BY Age"},{"instruction":"ราคาต่อหน่วยของเพลง 'Fast As a Shark' คือเท่าไร","input":"CREATE TABLE tracks (\n id number,\n name text,\n album_id number,\n media_type_id number,\n genre_id number,\n composer text,\n milliseconds number,\n bytes number,\n unit_price number\n)\n\n","output":"SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\""},{"instruction":"หม่อมหลวงขาบ กุญชร เป็นบุตรคนที่เท่าไร","input":"","output":"30"},{"instruction":"เคโรโระเกิดเมื่อไหร่","input":"","output":"9 ธันวาคม"},{"instruction":"บริษัท กัลฟ์ เอ็นเนอร์จี ดีเวลลอปเมนท์ จำกัด (มหาชน) หรือเรียก ย่อย่อว่า ?","input":"","output":"GULF"},{"instruction":"สร้างโดยใคร","input":"","output":"แฟรงก์ ดาราบอนต์"},{"instruction":"โพสต์ล่าสุดที่มีคะแนนติดลบ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT 'id' AS \"post_link\", 'score', 'creationdate', 'closeddate', 'body' FROM Posts WHERE Score < -10 ORDER BY CreationDate DESC LIMIT 50"},{"instruction":"ไอดีและตำแหน่งของวงจรทั้งหมดในฝรั่งเศสหรือเบลเยียม คืออะไร แสดงแผนภูมิแท่ง คุณสามารถจัดลำดับแกน X จากมากไปหาน้อยได้หรือไม่","input":"CREATE TABLE circuits (\n circuitId INTEGER,\n circuitRef TEXT,\n name TEXT,\n location TEXT,\n country TEXT,\n lat REAL,\n lng REAL,\n alt TEXT,\n url TEXT\n)","output":"SELECT location, circuitId FROM circuits WHERE country = \"France\" OR country = \"Belgium\" ORDER BY location DESC"},{"instruction":"คำนวณความยาวของการพักรักษาทั้งหมดของผู้ป่วยหมายเลข 013-12480 ในหอผู้ป่วยวิกฤตครั้งที่ 1","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"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"},{"instruction":"คำตอบที่มีคะแนนสูงที่สุดโดยมีอย่างน้อยหนึ่งภาพ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\", Score, CreationDate, LENGTH(Body) FROM Posts WHERE PostTypeId = 2 AND Body LIKE '%= '2104' ORDER BY admissions.dischtime DESC LIMIT 1"},{"instruction":"ประเทศไทยมีขนาดใหญ่เป็นอันดับที่เท่าไหร่ของโลก","input":"","output":"อันดับที่ 50 ของโลก"},{"instruction":"คุณรู้มั้ยว่า 800 มีแล็บมั้ย","input":"CREATE TABLE course (\n course_id int,\n name varchar,\n department varchar,\n number varchar,\n credits varchar,\n advisory_requirement varchar,\n enforced_requirement varchar,\n description varchar,\n num_semesters int,\n num_enrolled int,\n has_discussion varchar,\n has_lab varchar,\n has_projects varchar,\n has_exams varchar,\n num_reviews int,\n clarity_score int,\n easiness_score int,\n helpfulness_score int\n)","output":"SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 800"},{"instruction":"รูปแบบการจัดการข้อมูล Stack Exchange http:\/\/meta.stackexchange.com\/questions\/287120\/schema-of-stack-exchange-data-dump","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT * FROM Posts WHERE PostTypeId = 6 AND CreationDate BETWEEN '2014-02-10' AND '2014-02-25'"},{"instruction":"โดยเฉลี่ยแล้วฉันควรตอบกลับใคร","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(1) AS nbe_answers, Questions.OwnerUserId AS \"user_link\", AVG(Answers.Score) AS A_score, AVG(Questions.Score) AS Q_score FROM Posts AS Questions, Posts AS Answers WHERE Questions.PostTypeId = 1 AND Answers.PostTypeId = 2 AND Answers.ParentId = Questions.Id AND Answers.OwnerUserId = '##UserId1##' GROUP BY Questions.OwnerUserId ORDER BY nbe_answers DESC"},{"instruction":"เมื่อไหร่เป็นครั้งแรกที่ผู้ป่วย หมายเลข 028-7951 เข้ารับการรักษาในโรงพยาบาลจนถึงปี 2104","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '028-7951' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"จอห์น เลนนอนเสียชีวิตด้วยสาเหตุใด","input":"","output":"ถูกยิงในเดือนธันวาคม 1980"},{"instruction":"ปลาถ้ำมีชื่อสามัญว่าอะไร","input":"","output":"Cave fish"},{"instruction":"รับผู้ใช้ทั้งหมดจากคิวบา","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Reputation, DisplayName, Location FROM Users ORDER BY Reputation DESC"},{"instruction":"ปลาช่อนงูเห่าเป็นปลาน้ำจืดชนิดหนึ่งที่จัดอยู่ในวงศ์อะไร","input":"","output":"วงศ์ปลาช่อน (Channidae)"},{"instruction":"เอ็กมาอินเต��ร์เนชันแนล ดำเนินงานเกี่ยวกับอะไร","input":"","output":"ระบบสารสนเทศและการสื่อสาร"},{"instruction":"คำว่า บัลร็อก เป็นภาษาอะไร","input":"","output":"ซินดาริน"},{"instruction":"รัฐลูเซิร์น ตั้งอยู่ทางตะวันออกของรัฐโดยอยู่ติดกับทะเลสาบอะไร","input":"","output":"บลูเซิร์น"},{"instruction":"อิวามิซาวะ มีที่มาจากศัพท์ภาษาญี่ปุ่นว่าอะไร","input":"","output":"โยวามิซาวะ"},{"instruction":"ต้นมณฑามีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์: Magnolia liliifera"},{"instruction":"ผู้ใช้ 50 อันดับแรกจากตุรกี","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%turkey' ORDER BY Reputation DESC LIMIT 50"},{"instruction":"ประมุขที่มาใหม่มาแทนลอร์ดแห่งไอร์แลนด์ที่เป็นตำแหน่งที่มีมาตั้งแต่ปีอะไร","input":"","output":"ค.ศ. 1171"},{"instruction":"มงคลกิตติ์ สุขสินธารานนท์ มีชื่อเล่นว่าอะไร","input":"","output":"เต้"},{"instruction":"ผู้ใช้งานสูงสุด 1000 คน ในประเทศไทย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Rank, Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Thailand%' LIMIT 1000"},{"instruction":"ศาสตราจารย์ประจำบ้านเรเวนคลอคือใคร","input":"","output":"ศาสตราจารย์ฟลิตวิก"},{"instruction":"รายการสมาชิกในสถานที่ที่กำหนด โดยคัดแยกตามสถานที่ คำสั่งนี้จะแสดง list สมาชิกทั้งหมดในสถานที่ที่กำหนด","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\", Location, Reputation FROM Users WHERE UPPER(LEFT(Location, 5)) = 'INDIA' AND Reputation >= '##minimumReputation##' ORDER BY Location"},{"instruction":"ผลงานเพลงอัลบั้มชุดแรกคืออะไร","input":"","output":"บ้าหอบฟาง"},{"instruction":"ประเทศไทยมีชื่ออย่างเป็นทางราชการว่าอย่างไร","input":"","output":"ราชอาณาจักรไทย"},{"instruction":"จำนวน Q และ A","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT COUNT(*), PostTypeId FROM Posts WHERE PostTypeId = 1 OR PostTypeId = 2 GROUP BY PostTypeId"},{"instruction":"รีการ์ดู ปึไรรา ชื่อเต็มว่าอะไร","input":"","output":"รีการ์ดู อาลึชังดรึ มาร์ติงส์ ซูวารึช ปึไรรา"},{"instruction":"ภาคต่อในละครเรื่องนี้มีชื่อว่าอะไร ?","input":"","output":"อุบัติรักข้ามขอบฟ้า 2"},{"instruction":"หมู่บ้านอิวามิซาวะยกฐานะเป็นตำบลอิวามิซาวะ เมื่อปีอะไร","input":"","output":"ค.ศ.1906"},{"instruction":"นกเปล้าใหญ่ มีอีกชื่อหนึ่งว่าอะไร","input":"","output":"นกพิราบเขียวใหญ่"},{"instruction":"ยอดผู้ป่วยออกจากโรงพยาบาลปี 2564 จำนวนเท่าใด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2101'"},{"instruction":"เคโรโระดำรงตำแหน่งอะไร","input":"","output":"หัวหน้าหน่วยจู่โจมพิเศษสังกัดการรุกรานจักรวาลระดับสิบโท"},{"instruction":"การท่องเที่ยวในประเทศรัสเซียมีการเติบโตอย่างรวดเร็วนับตั้งแต่เมื่อใด","input":"","output":"ช่วงปลายยุคโซเวียต"},{"instruction":"ผลงานของเอริก ดับเบิลยู. ไวส์สไตน์คืออะไร","input":"","output":"สร้างและดูแลแมทเวิลด์และไซนส์เวิลด์"},{"instruction":"ชื่อทางวิทยาศาสตร์ของกุกบุยโป้วคืออะไร","input":"","output":"Drynaria roosii"},{"instruction":"คำนวณระยะเวลาการนอนของคนไข้ 027-82318 ใน ICU ครั้งที่ 1","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"ลฺหวี่ ปู้เหวย์ ทำอาชีพอะไร","input":"","output":"นักการเมืองแห่งรัฐฉิน"},{"instruction":"เม่นในไทยมีกีสายพันธ์","input":"","output":"2 ชนิด คือ เม่นใหญ่แผงคอยาว (Hystrix brachyura) และเม่นหางพวง (Atherurus macrourus) "},{"instruction":"ทะเลสาบฮิลเลียร์ เป็นเกาะขนาดเท่าไร","input":"","output":"เกาะขนาดใหญ่"},{"instruction":"HNQ (คำถามจากเน็ตเวิร์กยอดนิยม) ล่าสุด 100 ข้อ","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", CreationDate AS \"entering_the_list_on\" FROM PostHistory WHERE PostHistoryTypeId = 52 ORDER BY CreationDate DESC LIMIT 100"},{"instruction":"ต้นมะนาวมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Citrus aurantifolia Swing."},{"instruction":"กราฟแท่ง แกน x รหัสประเภทสินค้า แกน y ราคาสินค้าสูงสุด","input":"CREATE TABLE Products (\n product_id INTEGER,\n product_type_code VARCHAR(10),\n product_name VARCHAR(80),\n product_price DECIMAL(19,4)\n)","output":"SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code"},{"instruction":"ยาคท์ทีเกอร์ สร้างขึ้นในช่วงอะไร","input":"","output":"ช่วงระหว่างสงครามโลกครั้งที่สอง"},{"instruction":"อุทยานแห่งชาติโยเซมิตีติดกับทะเลทรายใด","input":"","output":"ทะเลทรายเนวาดา"},{"instruction":"คำนวณระยะเวลาในการรักษาตัวในโรงพยาบาลครั้งสุดท้ายที่เกิดขึ้นของผู้ป่วยหมายเลข 93104","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)","output":"SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 93104 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"เจ้าชายอาดัลแบร์ทแห่งปรัสเซีย เป็นคนประเทศอะไร","input":"","output":"แห่งปรัสเซีย"},{"instruction":"ริค มีนิสัยอย่างไร","input":"","output":"ละอ่อนจอมซุ่มซ่าม"},{"instruction":"ในสมัยก่อนภาษาฝรั่งเศส มีความสำคัญอย่างไร","input":"","output":"เป็นภาษาสากลที่แพร่หลายที่สุด"},{"instruction":" Shusaku opening หรือเรียกว่า ?","input":"","output":"การเปิดหมากแบบชูซะกุ"},{"instruction":"วีอาร์เนเวอร์เอเวอร์เกตติงแบ็กทูเกเตอร์ เป็นเพลงของใคร","input":"","output":"เทย์เลอร์ สวิฟต์"},{"instruction":"เเล้วน้ำหนักแรกของผู้ป่วยหมายเลข 002-59265 เท่าไหร่เมื่อ 36 เดือนที่แล้ว","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-59265') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-36 month') ORDER BY patient.unitadmittime LIMIT 1"},{"instruction":"จำนวนหมู่บ้านของอำเภอสองพี่น้อง?","input":"","output":"140"},{"instruction":"โรแลนด์ ทีบี-303ผลิตในปีอะไร","input":"","output":"1981"},{"instruction":"ถาวร วิรัฒน์จันทร์ ใครเป็นผู้ดูแลเบื้องหลังในการเล่นกอล์ฟอาชีพ","input":"","output":"บุญชู เรืองกิจ"},{"instruction":"การขยายตัวของสมาคมประชาชาติแห่งเอเชียตะวันออกเฉียงใต้ ลงนามที่ไหน","input":"","output":"กรุงเทพ"},{"instruction":"สาธารณรัฐเอลซัลวาดอร์ เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูร้อนครั้งที่ 20 ประเทศอะไร","input":"","output":"ประเทศเยอรมันตะวันตก"},{"instruction":"เส้นเมริเดียนที่ 22 องศาตะวันออก เป็นรูปแบบเส้นวงกลมใหญ่ของเส้นเมริเดียนกี่องศา","input":"","output":"158 องศาตะวันตก"},{"instruction":"ความคิดเห็นที่มีโหวตมากที่สุดบน SFF","input":"CREATE TABLE Comments (\n Id number,\n PostId number,\n Score number,\n Text text,\n CreationDate time,\n UserDisplayName text,\n UserId number,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Score, Text FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250"},{"instruction":"เส้นฟรอนโฮเฟอร์ตั้งชื่อตามนักฟิสิกส์คนใด","input":"","output":"โยเซฟ ฟอน เฟราน์โฮเฟอร์"},{"instruction":"พระธรรมมหาวีรานุวัตร ท่านอยู่ที่ใด","input":"","output":"จังหวัดอุตรดิตถ์"},{"instruction":"Get ข้อความที่เริ่มต้นด้วย '-1'","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\" FROM Posts WHERE 'body' LIKE '

-1 %'"},{"instruction":"กรุงเทพมหานครเป็นเมืองที่มีตึกระฟ้ามากที่สุดเป็นอันดับที่เท่าไหร่ของโลก","input":"","output":"อันดับที่ 7 ของโลก"},{"instruction":"สะพานมิตรภาพเวียดนาม–ญี่ปุ่น ถูกออกแบบและสร้างให้เป็นสัญลักษณ์ใหม่ของเมืองใดในประเทศเวียดนาม","input":"","output":"ฮานอย"},{"instruction":"วันพ่อแห่งชาติเป็นวันคลายวันพระราชสมภพของพระเจ้าอยู่พระองค์ใด","input":"","output":"พระบาทสมเด็จพระบรมชนกาธิเบศร มหาภูมิพลอดุลยเดชมหาราช บรมนาถบพิตร"},{"instruction":"เมื่อไหร่ที่ผู้ป่วย 016-35266 เข้ารับการรักษาที่โรงพยาบาลอื่นครั้งล่าสุด","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '016-35266' AND patient.hospitaladmitsource = 'other hospital' ORDER BY patient.hospitaladmittime DESC LIMIT 1"},{"instruction":"เปอร์เซ็นไทล์ของผู้ใช้ที่ระบุตำแหน่ง","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT (SELECT COUNT(Id) FROM Users WHERE NOT Location IS NULL) * 100.0 \/ (SELECT COUNT(Id) FROM Users)"},{"instruction":"รัฐแทสเมเนียมีประชากรเท่าไหร่","input":"","output":"ราว 456,652 คน"},{"instruction":"คนไข้ 22517 มาโรงพยาบาลกี่ครั้งในช่วง 2 ปีที่ผ่านมา","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 22517 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-2 year')"},{"instruction":"ซาวน่าหรรษา เป็นรายการของประเทศอะไร","input":"","output":"เกาหลีใต้ "},{"instruction":"คำถามที่มีหัวเรื่องที่ประกอบด้วย $$.","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Id AS \"post_link\" FROM Posts WHERE PostTypeId = 1 AND Title LIKE '%$$%' ORDER BY CreationDate"},{"instruction":"มิสซูปราเนชันแนลไทยแลนด์ 2017 การประกวดรอบตัดสินจัดขึ้นในวันไหน","input":"","output":"2 กันยายน พ.ศ. 2560"},{"instruction":"ธนญชัย ศรศรีวิชัยได้รับรางวัลอะไรที่ทำให้มีชื่อเสียง","input":"","output":"Gold Lions"},{"instruction":"สโมสรฟุตบอลมหาวิทยาลัยเกษตรศาสตร์ อยู่ในลีกอะไร","input":"","output":"ไทยลีก 2"},{"instruction":"แนวคิดของการกำเนิดเอกภพรู้จักกันในชื่อใด","input":"","output":"ทฤษฎีบิกแบง"},{"instruction":"สกายอังกอร์แอร์ไลน์ บริการในชื่ออะไร","input":"","output":"สกายวิงส์เอเชียแอร์ไลน์"},{"instruction":"จำนวนผู้ป่วยทั้งหมดในหอผู้ป่วย 508 ตั้งแต่ปี 2102","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 508 AND STRFTIME('%y', patient.unitadmittime) >= '2102'"},{"instruction":"จำนวนแท็กที่ประกอบด้วย 'java'","input":"CREATE TABLE Tags (\n Id number,\n TagName text,\n Count number,\n ExcerptPostId number,\n WikiPostId number\n)\n\n","output":"SELECT COUNT(*) FROM Tags WHERE TagName LIKE '%java%'"},{"instruction":"เจ้าอู่เมือง ณ เชียงตุง ประสูติราวปีอะไร","input":"","output":"พ.ศ. 2489"},{"instruction":"ตัวเศษหมายถึงอะไร","input":"","output":"จำนวนชิ้นส่วนของวัตถุที่มี"},{"instruction":"รหัส 7524 เกิดเมื่อไหร่คะ","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 7524"},{"instruction":"ผู้ป่วย 027-149724 นอนรักษาในโรงพยาบาล ครั้งนี้ในหอผู้ป่วย 957 มาแล้วกี่วัน","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-149724' AND patient.wardid = 957 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1"},{"instruction":"วันมาฆบูชา เกิดเหตุการ์สำคัญอะไร","input":"","output":"พระโคตมพุทธเจ้าทรงแสดงโอวาทปาติโมกข์ท่ามกลางที่ประชุมมหาสังฆสันนิบาตครั้งใหญ่ในพระพุทธศาสนา"},{"instruction":"คำนวณจำนวนครั้งของผู้ป่วยหมายเลข 72647 ที่เข้ารับการรักษาที่โรงพยาบาตั้งแต่ปี 2102","input":"CREATE TABLE admissions (\n row_id number,\n subject_id number,\n hadm_id number,\n admittime time,\n dischtime time,\n admission_type text,\n admission_location text,\n discharge_location text,\n insurance text,\n language text,\n marital_status text,\n ethnicity text,\n age number\n)\n\n","output":"SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 72647 AND STRFTIME('%y', admissions.admittime) >= '2102'"},{"instruction":"พระหม่อมแก้ว รัชกาลของพระองค์มีเหตุวุ่นวายมากมาย และเกิดอะไรขึ้น","input":"","output":"กบฏขึ้นถึงสองครั้ง"},{"instruction":"ฮิปโปโปเตมัส กินพืชหรือสัตว์","input":"","output":"กินพืช"},{"instruction":"กองพลนี้ได้แสดงให้เห็นเป็นครั้งแรกในการออกปฏิบัติเมื่อวันที่เท่าไร","input":"","output":"7 มิถุนายน ค.ศ. 1944"},{"instruction":"ทาร์ทัน ปัจจุบันมาจากวัสดุหลายชนิดที่มีความเกี่ยวข้องโดยเฉพาะกับอะไร","input":"","output":"สกอตแลนด์"},{"instruction":"ผู้ใช้งานหลัก ที่ไม่มีคะแนนการตอบ","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT p.OwnerUserId AS \"user_link\", SUM(p.Score * (1 - ABS(SIGN(p.PostTypeId - 1)))) AS \"question_score\", SUM(p.Score * (1 - ABS(SIGN(p.PostTypeId - 2)))) AS \"answer_score\" FROM Posts AS p GROUP BY p.OwnerUserId HAVING SUM(p.Score * (1 - ABS(SIGN(p.PostTypeId - 2)))) < 10000 ORDER BY 'question_score' DESC LIMIT 100"},{"instruction":"จามจุรี เชิดโฉม ชื่อเล่นว่าอะไร","input":"","output":"จอย"},{"instruction":"ส่งคืนแผนภูมิแท่งเกี่ยวกับวิธีที่ลูกค้าใช้แต่ละวิธีชำระเงิน, คุณแสดงตามจำนวนทั้งหมดแบบเรียงลำดับจากมากไปน้อยได้ไหม","input":"CREATE TABLE Customers (\n customer_id INTEGER,\n payment_method_code VARCHAR(10),\n customer_code VARCHAR(20),\n customer_name VARCHAR(80),\n customer_address VARCHAR(255),\n customer_phone VARCHAR(80),\n customer_email VARCHAR(80)\n)\n\n","output":"SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY COUNT(*) DESC"},{"instruction":"รัชพล นาวันโน มีอาชีพอะไร","input":"","output":"นักฟุตบอลอาชีพ"},{"instruction":"#SOreadytohelp ผู้โชคดีสัปดาห์ที่ 1","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT Id AS \"user_link\" FROM Users WHERE DisplayName LIKE '%tehran%' LIMIT 1000"},{"instruction":"ปลาฉลามขาวเป็นสิ่งมีชีวิตสปีชี่ส์เดียวที่อยู่ในสกุลอะไร ","input":"","output":"สกุล Carcharodon"},{"instruction":"สโมสรฟุตบอลมหาวิทยาลัยเกษตรศาสตร์ ฤดูกาลนี้เกษตรศาสตร์ได้เข้าร่วมการแข่งขันอะไร","input":"","output":"ไทยลีก 2"},{"instruction":"เมื่อไหร่ คนไข้หมายเลข 006-10390 เข้ารับการรักษาใน รพ. ครั้งแรกของปี","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-10390' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1"},{"instruction":"ถนนอินทรพิทักษ์ มีจุดเริ่มต้นที่ไหน","input":"","output":"วงเวียนใหญ่ซึ่งเป็นที่ตั้งพระบรมราชานุสาวรีย์สมเด็จพระเจ้าตากสินมหาราช"},{"instruction":"เอฟเอคอมมิวนิตีชีลด์ 2015 ผลทีมไหนเป็นผู้ชนะ","input":"","output":"อาร์เซนอล"},{"instruction":"สุภรภ์เพ็ญ หลวงเทพนิมิต มีตำแหน่งอะไร","input":"","output":"รองราชเลขานุการ"},{"instruction":"คำรณ สัมบุญณานนท์ เกิดที่วัดอะไร","input":"","output":"วัดเกาะสัมพันธวงศ์"},{"instruction":"รายการแก้ไขที่ข้อความสรุปการแก้ไขมีคำหลักที่กำหนด","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT PostId AS \"post_link\", Comment, UserId AS \"user_link\", CreationDate FROM PostHistory WHERE UserId = '##userid##' AND Comment LIKE '%##keyword##%' ORDER BY CreationDate"},{"instruction":"ผู้ใช้ SO ยอดนิยมจากแอลจีเรีย","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%bangla%' OR UPPER(Location) LIKE '%BANGLA%' ORDER BY Reputation DESC"},{"instruction":"มาซาฮิโกะ ฮาราดะเสียแชมป์ให้ใคร","input":"","output":"ลีโอเนล โรเซ่"},{"instruction":"จันทน์ขาว ใช้เป็นอะไร","input":"","output":"สมุนไพรบำรุงประสาท แก้ร้อนใน กระหายน้ำ"},{"instruction":"โพสต์ที่มีคะแนนโหวต 9","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT Score, Id AS \"post_link\" FROM Posts WHERE Score = 9 AND TIME_TO_STR(CreationDate, '%YEAR') = 2016 ORDER BY CreationDate DESC"},{"instruction":"ชิมูระ ทาเอะเป็นใครในเรื่องกินทามะ","input":"","output":"บุตรสาวคนโตของเจ้าของโรงฝึกดาบโกโต้คัง"},{"instruction":"ผู้ใช้ 100 อันดับแรกในประเทศอินเดียและปากีสถาน","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation, LOWER(Location) AS CNTRY FROM Users WHERE LOWER(Location) IN ('india', 'pakistan') ORDER BY Reputation DESC LIMIT 10000"},{"instruction":"โรบิน ชาลส์ ธิกเกิดวันที่เท่าไหร่ ?","input":"","output":"วันที่ 10 มีนาคม ค.ศ. 1977"},{"instruction":"แท็กการแก้ไขที่มีการเปลี่ยนแปลงที่ว่างเปล่า","input":"CREATE TABLE PostHistory (\n Id number,\n PostHistoryTypeId number,\n PostId number,\n RevisionGUID other,\n CreationDate time,\n UserId number,\n UserDisplayName text,\n Comment text,\n Text text,\n ContentLicense text\n)\n\n","output":"SELECT 'site:\/\/posts\/' + CAST(ph.PostId AS TEXT) + '\/revisions' AS \"revision_history\" FROM PostHistory AS ph WHERE (ph.PostHistoryTypeId IN (6, 9)) AND (ph.Text = '')"},{"instruction":"จนเมื่อ 4 ปีที่ผ่านมา ได้ไปตรวจที่แผนก ER","input":"CREATE TABLE patient (\n uniquepid text,\n patienthealthsystemstayid number,\n patientunitstayid number,\n gender text,\n age text,\n ethnicity text,\n hospitalid number,\n wardid number,\n admissionheight number,\n admissionweight number,\n dischargeweight number,\n hospitaladmittime time,\n hospitaladmitsource text,\n unitadmittime time,\n unitdischargetime time,\n hospitaldischargetime time,\n hospitaldischargestatus text\n)\n\n","output":"SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-53836' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-4 year')"},{"instruction":"ผู้ใช้ 5 อันดับแรกจากสุราษฎร์ธานี","input":"CREATE TABLE Users (\n Id number,\n Reputation number,\n CreationDate time,\n DisplayName text,\n LastAccessDate time,\n WebsiteUrl text,\n Location text,\n AboutMe text,\n Views number,\n UpVotes number,\n DownVotes number,\n ProfileImageUrl text,\n EmailHash text,\n AccountId number\n)\n\n","output":"SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS \"#\", Id AS \"user_link\", Reputation FROM Users WHERE LOWER(Location) LIKE '%surat%' OR UPPER(Location) LIKE '%SURAT' ORDER BY Reputation DESC LIMIT 5"},{"instruction":"ปลาใบขนุนมีขนาดโดยเฉลี่ยประมาณกี่เซนติเมตร","input":"","output":"โดยเฉลี่ยทั่วไป คือ 15-30 เซนติเมตร"},{"instruction":"บอกวันเดือนปีเกิดของผู้ป่วย 366?","input":"CREATE TABLE patients (\n row_id number,\n subject_id number,\n gender text,\n dob time,\n dod time\n)\n\n","output":"SELECT patients.dob FROM patients WHERE patients.subject_id = 366"},{"instruction":"มีขนาดของสินค้าอยู่เท่าไร","input":"","output":"ขนาด 6 mm. ขนาดตามสั่ง หนา 6 มิลลิเมตร"},{"instruction":"เทนนิสมีประเภทอะไรบ้าง","input":"","output":"ประเภทเดี่ยวฝ่ายละ 1 คน และผู้เล่นในประเภทคู่ฝ่ายละ 2 คน"},{"instruction":"ผู้ใช้ ที่มีเอกลักษณ์เฉพาะที่มีโพสต์ที่ประกอบด้วย {mhchem}","input":"CREATE TABLE Posts (\n Id number,\n PostTypeId number,\n AcceptedAnswerId number,\n ParentId number,\n CreationDate time,\n DeletionDate time,\n Score number,\n ViewCount number,\n Body text,\n OwnerUserId number,\n OwnerDisplayName text,\n LastEditorUserId number,\n LastEditorDisplayName text,\n LastEditDate time,\n LastActivityDate time,\n Title text,\n Tags text,\n AnswerCount number,\n CommentCount number,\n FavoriteCount number,\n ClosedDate time,\n CommunityOwnedDate time,\n ContentLicense text\n)\n\n","output":"SELECT DISTINCT OwnerUserId FROM Posts WHERE 'body' LIKE '%{mhchem}%'"},{"instruction":"บักเลียว เป็นเมืองขนาดอะไร","input":"","output":"เมืองขนาดกลาง"},{"instruction":"จตุพร รัตนวราหะ ชื่อเล่นว่าอะไร","input":"","output":"ต้อย"}] \ No newline at end of file