diff --git "a/test_data.json" "b/test_data.json" new file mode 100644--- /dev/null +++ "b/test_data.json" @@ -0,0 +1 @@ +[{"instruction":"ใครเป็นหัวหน้าปกครองของอำเภอ","input":"","output":"นายอำเภอ"},{"instruction":"มนุษย์ ถือกำเนิดในแอฟริการาวกี่ปี","input":"","output":"200,000 ปีที่แล้ว"},{"instruction":"ปลาซิวข้างขวานใหญ่มีอัตตราการวางไข่อยู่ที่ทั้งหมดกี่ฟอง","input":"","output":"วางไข่ครั้งละ 90-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":"SELECT PostId AS \"post_link\", COUNT(PostId) AS RevisionCount FROM PostHistory WHERE 'comment' = 'edited tags' AND ('text' LIKE '%%' OR 'text' LIKE '%%') GROUP BY PostId HAVING COUNT(PostId) > 1 ORDER BY COUNT(PostId) DESC LIMIT 100"},{"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":"อาคารศาลหลวง (Reichsgericht; Imperial Court) ในเมืองไลพ์ซิจ (Leipzig)"},{"instruction":"พระนามอื่นของแอโฟรไดทีได้แก่อะไรบ้าง","input":"","output":"ไคธีเรีย (นายหญิงแห่งไคธีรา) และไซปริส (นายหญิงแห่งไซปรัส)"},{"instruction":"พระไชยบูลย์ ธมฺมชโยเป็นอดีตเจ้าอาวาสวัดอะไร","input":"","output":"ดพระธรรมกาย"},{"instruction":"เลือก TagName จาก Tags เรียงลำดับจากน้อยไปมาก","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 FROM Tags ORDER BY Count"},{"instruction":"พงศ์พัฒน์ ฉายาพันธุ์ เกิดปีอะไร","input":"","output":"22 เมษายน พ.ศ. 2499"},{"instruction":"ในครั้งสุดท้ายที่รับการตรวจที่โรงพยาบาล ผู้ป่วยรหัส 71192 อายุเท่าใด","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.age FROM admissions WHERE admissions.subject_id = 71192 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"สมเด็จพระราชินี คือผู้ใด","input":"","output":"พระอิสริยยศสำหรับพระอัครมเหสีของสมเด็จพระราชาธิบดีที่ยังครองราชสมบัติอยู่"},{"instruction":"สมาคมผู้จัดพิมพ์และผู้จำหน่ายหนังสือแห่งประเทศไทย หรือเรียกย่อว่า ?","input":"","output":"ส.พ.จ.ท. "},{"instruction":"แอนดรูว์ ฮอยเคยฝึกสอนขี่ม้าให้กับนักกีฬาไทยคนใด","input":"","output":"พรหมธร กิ่งวรรณ, จ.ส.อ.สุภาพ ขาวงาม และธนภรณ์ ชวตานนท์"},{"instruction":"อู่ ซง ชื่อในสำเนียงแต้จิ๋วว่าอะไร","input":"","output":"บู๊สง"},{"instruction":"หลักสูตรคุณภาพน้ำ 9 หน่วยกิตและ Great Lakes Basin มีอะไรบ้าง","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":"หลวงพี่แจ๊ส 4G เป็นภาพยนตร์ประเทศอะไร","input":"","output":"ภาพยนตร์ไทย"},{"instruction":"นับจำนวนผู้ป่วยที่อายุ 60 ปีขึ้นไปในปัจจุบัน","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 >= 60"},{"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 Id, Reputation, LastAccessDate FROM Users WHERE Reputation >= 3000 AND LastAccessDate >= DATEADD(dd, -30, GETDATE())"},{"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 Posts.PostTypeId = 5 AND 'Tag Name' LIKE '%sql%'"},{"instruction":"อะเกรตเดย์อินฮาร์เล็ม ถ่ายขึ้นปีอะไร","input":"","output":"ค.ศ. 1958"},{"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 Ranking = ROW_NUMBER() OVER (ORDER BY Reputation DESC), * FROM Users WHERE Location LIKE '%Dubai%' OR Location LIKE '%dubai%' ORDER BY Reputation 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 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":"วันที่ 29 มกราคม 2552"},{"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 name, number FROM course WHERE credits = 3 AND department = 'EECS'"},{"instruction":"ซ่งเซวีย ได้รับอวยยศในสมัยราชวงศ์สุยเป็นยศใด","input":"","output":"พระยาปราบทักษิณ"},{"instruction":"ผู้อำนวยการสร้างมิสิกวิดีโอเพลงนี้คือใคร","input":"","output":"Jean Beaudin"},{"instruction":"บอระเพ็ดเป็นพืชจัดอยู่ในวงศ์ของพรรณไม้ชนิดใด","input":"","output":"วงศ์ : Menisspermaceae"},{"instruction":"ครุย คืออะไร","input":"","output":"เป็นเสื้อคลุมประเภทหนึ่ง มีลักษณะหลวม ยาวถึงเข่าหรือทั้งตัว ใช้สวมหรือคลุมทับด้านนอก"},{"instruction":"น้ำหนักของผู้ป่วย 009-424 ในช่วงการเข้ารับการรักษาในโรงพยาบาลครั้งสุดท้ายที่วัดครั้งล่าสุดเมื่อเทียบกับค่าครั้งแรกที่วัดในช่วงการเข้ารับการรักษาในโรงพยาบาลครั้งสุดท้ายนั้นต่างกันอย่างไร","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 = '009-424' 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 = '009-424' 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":"จัดคอนเสริต Clash Awake Concert ในวันที่เท่าไร","input":"","output":"15 กันยายน พ.ศ. 2561"},{"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 '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":"","output":"แสงอรุณ วรรณจู"},{"instruction":"ผลผลิตอะซิทัลดีไฮด์ในปี 1932 คือเท่าใด?","input":"","output":"210 ตัน"},{"instruction":"คำอธิบายของภูมิภาคการตลาดของจีนคืออะไร","input":"CREATE TABLE marketing_regions (\n marketing_region_code text,\n marketing_region_name text,\n marketing_region_descriptrion text,\n other_details text\n)\n\n","output":"SELECT marketing_region_descriptrion FROM marketing_regions WHERE marketing_region_name = \"China\""},{"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 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":"","output":"19 พฤษภาคม ค.ศ. 1930"},{"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":"คนไข้หมายเลข 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":"มาร์ ตี นาตาเลกาวา ชื่อเต็มว่าอะไร","input":"","output":"ระเด่น มูฮัมหมัด มาร์ตี มูเลียนา นาตาเลเกวา"},{"instruction":"ขอทร���บชื่อสินค้าหน่อย","input":"","output":"Square Net"},{"instruction":"พรรคเพื่อไทยจัดตั้งวันที่","input":"","output":"20 กันยายน พ.ศ. 2551 "},{"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":"","output":"บริษัท บันเทิงของเกาหลีใต้"},{"instruction":"เข้าแข่งขันรายการไทยแลนด์วอลเลย์บอลแชมเปียนชิพ ซีรีย์เอ ซึ่งเริ่มขึ้นในปีอะไร","input":"","output":"พ.ศ. 2551"},{"instruction":"หญ้าหนวดแมวมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ : Orthosiphon grandiflorus Bolding"},{"instruction":"ไซราคูเซีย ถูกสร้างขึ้นเมื่อไหร่","input":"","output":"ราวปีที่ 240 ก่อนคริสตกาล"},{"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 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":"","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 SUM(LENGTH(Body) - LENGTH(REPLACE(Body, ' ', '')) + 1) AS NumbofWords FROM Posts AS p WHERE p.OwnerUserId = '##UserId##'"},{"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":"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":" พ.ศ. 2485"},{"instruction":"สมาชิกของภาษาในกลุ่มนี้มีเท่าไหร่","input":"","output":"30 ภาษา"},{"instruction":"มานซูร์ บิน ซาเยด อัล นาห์ยาน ทำอาชีพอะไร","input":"","output":"นักการเมือง"},{"instruction":"คำตอบสั้นๆ ล่าสุดที่มีเพียงลิงก์เท่านั้น โพสต์ที่มีเนื้อหาน้อยกว่า 8 ตัวอักษร","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 Id > 0 AND Id < 2000000 AND Body LIKE '%how can i%' AND NOT Body LIKE '%
%' AND NOT Body LIKE '%%' AND LENGTH(Body) < 1000 ORDER BY Id DESC"},{"instruction":"รายวิชาใดเป็นหลักสูตร SI 6 หน่วยกิต","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":"คุณเป็นเจ้าของสิ่งของได้จริงๆหรือ?","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, OwnerDisplayName, CommunityOwnedDate FROM Posts WHERE Id = '##PostId##'"},{"instruction":"ลุกวอตยูเมดมีดู ออกจำหน่ายเมื่อไร","input":"","output":" 25 สิงหาคม ค.ศ. 2017"},{"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 \/ 100 AS Hundred_Views, COUNT(*) AS Nquestions FROM Posts WHERE PostTypeId = 1 GROUP BY ViewCount \/ 100 ORDER BY ViewCount \/ 100"},{"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 COUNT(*) AS \"count\" FROM Badges AS b WHERE (b.Name = '##name?Caucus##') GROUP BY b.Name LIMIT 100"},{"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":"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":"","output":"งู"},{"instruction":"พระยาปริยัติธรรมธาดา เกิดวันที่เท่าไร","input":"","output":"31 ตุลาคม ปีจอ พ.ศ. 2405"},{"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(*) FROM Posts WHERE CreationDate > '2020-08-21' AND Body LIKE '%http%'"},{"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 a.Comment AS \"ridiculous_comment\", a.PostId AS \"id\" FROM PostHistory AS a WHERE a.PostHistoryTypeId IN (4, 5, 6) AND a.UserId = 85695 AND a.Comment LIKE '%tag%' GROUP BY a.Comment, a.PostId LIMIT 50"},{"instruction":"สโมสรช้าง ตั้งอยู่ที่ไหน","input":"","output":"กรุงเทพมหานคร"},{"instruction":"ผู้ใช้ Emacs ในเมือง Frederick, MD","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 Location LIKE '%Frederick, MD%' ORDER BY Reputation DESC"},{"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 TIME_TO_STR(CreationDate, '%j'), CAST(SUM(CASE WHEN AnswerCount > 0 THEN 1 ELSE 0 END) AS FLOAT) \/ COUNT(Posts.Id) AS Ratio FROM Posts WHERE (PostTypeId = 1 AND CreationDate >= '##Date1##' AND CreationDate <= '##Date2##') GROUP BY TIME_TO_STR(CreationDate, '%j') ORDER BY TIME_TO_STR(CreationDate, '%j')"},{"instruction":"ปลาตะโกกมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Cyclocheilichthys enoplos"},{"instruction":"แอนดรูว์ ฮอยเกิดวันที่เท่าไหร่","input":"","output":" 8 กุมภาพันธ์ ค.ศ. 1959 "},{"instruction":"พระธรรมมหาวีรานุวัตร โดยเป็นผู้ก่อตั้งสำนักเรียนอะไร","input":"","output":"สำนักเรียนพระปริยัติธรรมวัดคลองโพธิ์"},{"instruction":"คริส จอห์น มีชื่อเต็มว่าอะไร","input":"","output":"โยฮันเนส คริสเตียน จอห์น"},{"instruction":"ที่หยุดรถไฟทุ่งน้ำซึม ตั้งอยู่ตำบลอะไร","input":"","output":"ตำบลเขาทอง"},{"instruction":"กลุ่มย่อยที่สามของเอ็นซีทียูคืออะไร","input":"","output":"เอ็นซีทีดรีม"},{"instruction":"ถนนเสรีไทย อยู่จังหวัดอะไร","input":"","output":"กรุงเทพมหานคร"},{"instruction":"เอ็กมาอินเตอร์เนชันแนล ได้เปลี่ยนชื่อเพื่อให้มีชื่อที่สะท้อนถึงความเป็นอะไร","input":"","output":"สากลขององค์กร"},{"instruction":"พบได้มากที่สุดในบริเวณใด","input":"","output":"ในเขตที่มีความหนาแน่นต่ำ"},{"instruction":"44 21 4 เกม ผลิตโดยใคร","input":"","output":"บริษัท ซีวีดีอี โปรดักชั่น จำกัด"},{"instruction":"ครั้งล่าสุดที่คนไข้ 4758 มาโรงพยาบาลตั้งแต่ปี 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 = 4758 AND STRFTIME('%y', admissions.admittime) >= '2105' ORDER BY admissions.admittime DESC LIMIT 1"},{"instruction":"แซม ไรมี เกิดวันที่เท่าไร","input":"","output":"23 ตุลาคม ค.ศ. 1959"},{"instruction":"ปัจจุบันเซนต์ปีเตอร์สเบิร์กมีประชากรเท่าใด","input":"","output":"ตัวเมืองเริ่มสร้างด้วย"},{"instruction":"จาง จื้อหลิน โด่งดังในด้านเพลง ในปีอะไร","input":"","output":"1991"},{"instruction":"หญ้าคามีสรรพคุณทางยาช่วยด้านใดบ้าง ยกตัวอย่าง","input":"","output":"ใช้รากและเหง้าเป็นยาขับปัสสาวะ แก้อาการกระเพาะปัสสาวะอักเสบ ปัสสาวะแดง บำรุงไต ขับระดูขาว"},{"instruction":"เอ็มบีเคเอนเตอร์เทนเมนต์ ก่อตั้งโดยใคร","input":"","output":"คิม กวางซู"},{"instruction":"ประเทศสเปนในแอฟริกาเหนือ ตั้งอยู่ริมทะเลเมดิเตอร์เรเนียน ทางชายฝั่งทางใต้ของช่องแคบยิบรอลตาร์ ประเทศอะไร ?","input":"","output":"ประเทศโมร็อกโก"},{"instruction":"ทหารนำโดยพันโทบาร์เลียน เข้าควบคุมรัฐบาลท้องถิ่นในสุมาตราใต้เมื่อวันที่เท่าไร","input":"","output":"15 มกราคม พ.ศ. 2500"},{"instruction":"คณะกรรมาธิการสหประชาชาติว่าด้วยกฎหมายการค้าระหว่างประเทศถูกเเต่งตั้งเมื่อไหร่","input":"","output":"ค.ศ. 1966"},{"instruction":"ปีที่แล้ว 009-15 มีการ identify ชื่อผู้ป่วยครั้งแรกในวอร์ดไหน","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":"ตึกเอ็มไพร์สเตต ตั้งอยู่เกาะอะไร","input":"","output":"เกาะแมนฮัตตัน"},{"instruction":"ผู้แสดงประกอบชายยอดเยี่ยมจาก ตำนานกระสือ คือ ?","input":"","output":"ฉัตร มงคลชัย"},{"instruction":"ดู ID และคะแนนดาวของแต่ละโรงแรมและจัดเรียงตามลำดับราคาที่เพิ่มขึ้น","input":"CREATE TABLE hotels (\n hotel_id number,\n star_rating_code text,\n pets_allowed_yn text,\n price_range number,\n other_hotel_details text\n)\n\n","output":"SELECT hotel_id, star_rating_code FROM hotels ORDER BY price_range"},{"instruction":"ตั้งแต่ 5 ปีที่แล้ว ผู้ป่วย 035-10830 เคยพักในห้องฉุกเฉินหรือไม่?","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 = '035-10830' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-5 year')"},{"instruction":"สาเหตุของภาวะสมองตายคืออะไร","input":"","output":"ขาดเลือดและออกซิเจนหล่อเลี้ยง"},{"instruction":"มีขนาดของสินค้าอยู่เท่าไร","input":"","output":"ขนาด W1830 x H2440 หนา 5 mm."},{"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":"อัตราการบันทึก 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":"ภายในหมู่บ้านประกอบด้วยสิ่งก่อสร้างที่สร้างตามแบบสถาปัตยกรรมในสมัยใด ?","input":"","output":"สมัยราชวงศ์โชซ็อน"},{"instruction":"รัฐสตีเรีย มีพื้นที่เท่าไหร่","input":"","output":"16,392 ตร.กม."},{"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":"เกาะในทะเลติร์เรเนียน"},{"instruction":"ผู้ลี้ภัยส่วนใหญ่มาจากประเทศใด","input":"","output":"ประเทศซีเรีย อัฟกานิสถานและเอริเตรีย"},{"instruction":"ใครคือนักวิทยาศาสตร์ผู้เสนอแนวคิดของการกำเนิดเอกภพ","input":"","output":"ฌอร์ฌ เลอแม็ทร์"},{"instruction":"เพศของผู้ป่วยหมายเลข 12775 เป็นอะไร","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 = 12775"},{"instruction":"เกาะเกาะบอลส์พีระมิดมีความสูงเท่าไร","input":"","output":"1,100 เมตร"},{"instruction":"ผู้ใช้ที่มีชื่อเสียงถึง 100k มีสิทธิ์รับของขวัญ","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), ROW_NUMBER() OVER (ORDER BY CreationDate), * FROM Users WHERE Reputation >= 100000 ORDER BY Reputation DESC"},{"instruction":"สะพานเหญิตเดินมีความยาวกี่ไมล์","input":"","output":"5.2 ไมล์"},{"instruction":"ลูอิส กุสตาวู มีอาชีพอะไร","input":"","output":"นักฟุตบอล"},{"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":"มิสซูปราเนชันแนลไทยแลนด์ 2017 เก็บตัวประกวด ระหว่างวันที่เท่าไร","input":"","output":" 22สิงหาคม - 2 กันยายน พ.ศ. 2560"},{"instruction":"181 มีขนาดใหญ่แค่ไหน","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 = 181"},{"instruction":"ในการเล่นแร่แปรธาตุ เบริธเป็นธาตุที่ผสมเปลี่ยนโลหะเป็นสิ่งใด","input":"","output":"ทองคำ"},{"instruction":"ศรัณยู วินัยพานิช ชื่อเล่นว่าอะไร","input":"","output":"ไอซ์"},{"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":"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(Location), MAX(Reputation) FROM Users WHERE Location LIKE '%India%'"},{"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\", AnswerCount FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL AND OwnerUserId = '##UserId:int##'"},{"instruction":"ผู้ค้นพบสารแบเรียมเพอร์ออกไซด์คือใคร","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 department, name, number FROM course WHERE (description LIKE '%Thermodynamics and Kinetics%' OR name LIKE '%Thermodynamics and Kinetics%') AND credits = 9"},{"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":"","output":"วิทยาศาสตร์: Channa argus"},{"instruction":"กลุ่มภาษาวิซายันคืออะไร","input":"","output":"ป็นกลุ่มของภาษาในฟิลิปปินส์ ซึ่งเป็นส่วนหนึ่งของกลุ่มภาษาฟิลิปปินส์กลาง"},{"instruction":"มงคลกิตติ์ สุขสินธารานนท์ เป็นคนจังหวัดอะไร","input":"","output":"พิษณุโลก"},{"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":"คำถามที่มีการใช้งานล่าสุด และคำตอบ","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 COALESCE(p.ParentId, p.Id) AS \"post_link\", MAX(p.LastActivityDate) FROM Posts AS p GROUP BY COALESCE(p.ParentId, p.Id) ORDER BY MAX(p.LastActivityDate) DESC LIMIT 100"},{"instruction":"คอนเสิร์ตส่งท้าย Produce 101 season 2 จัดขึ้นที่ใด","input":"","output":"Olympic Hall ประเทศเกาหลีใต้"},{"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":"วงศ์ : Leguminosae"},{"instruction":"ไข้เด็งกีในประเทศไทยนิยมเรียกว่าอะไร","input":"","output":"ไข้เลือดออก"},{"instruction":"ภาพยนตร์เรื่อง Finding Vivian Maier ออกฉายในปีใด","input":"","output":"2013"},{"instruction":"อะไรคือชื่อและ id ของ customers ที่อยู่ของพวกเขามี 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%\" ORDER BY customer_id DESC"},{"instruction":"คาร์ล กุสตาฟ โมแซนเดอร์มีบุตรกี่คน","input":"","output":"มีบุตรด้วยกัน 4 คน"},{"instruction":"ซาวน่าหรรษา เป็นรายการเกี่ยวกับอะไร","input":"","output":"วาไรตี้โชว์"},{"instruction":"คำกริยามีองค์ประกอบใดบ้าง","input":"","output":"มีองค์ประกอบจากกาล การณ์ลักษณะ มาลา วาจก หรือรวมทั้งบุรุษ เพศ และพจน์ของสิ่งที่กล่าวถึงด้วย\n"},{"instruction":"เมื่อปีที่แล้ว คนไข้หมายเลข 51977 ออกจากโรงพยาบาลครั้งแรกวันที่เท่าไหร่","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.dischtime FROM admissions WHERE admissions.subject_id = 51977 AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.dischtime LIMIT 1"},{"instruction":"ไอโฟนคืออะไร","input":"","output":"โทรศัพท์มือถือที่มีความสามารถใช้งานอินเทอร์เน็ตและมัลติมีเดีย"},{"instruction":"ทำไมถึงต้องมี Dojo Toolkit","input":"","output":"ช่วยในการพัฒนาเอแจ็กซ์ในเว็บแอปพลิเคชัน"},{"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 Tags.TagName, Tags.Count FROM Tags WHERE Tags.TagName = 'angularjs' OR Tags.TagName = 'angular' OR Tags.TagName = 'reactjs' OR Tags.TagName = 'vue.js' OR Tags.TagName = 'vuejs2' OR Tags.TagName = 'ember.js' OR Tags.TagName = 'backbone.js' OR Tags.TagName = 'polymer'"},{"instruction":"มิสซูปราเนชันแนลไทยแลนด์ 2017 การประกวดรอบตัดสิน จัดขึ้นที่ไหน","input":"","output":"ณ โรงละครสยามนิรมิต, ภูเก็ต"},{"instruction":"พระราชวังเซนต์เจมส์สร้างโดยใคร","input":"","output":"สมเด็จพระเจ้าเฮนรีที่ 8"},{"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(c.Id) AS \"# comments\", c.UserId AS \"user_link\" FROM Comments AS c WHERE LENGTH(c.Text) = 600 GROUP BY c.UserId ORDER BY COUNT(c.Id) DESC"},{"instruction":"ทะเลสาบเลคลูอิส มีเเม่น้ำไหลออกเป็นแม่น้ำอะไร","input":"","output":"แม่น้ำโบว์"},{"instruction":"ในปีก่อนหน้าคนไข้ 12572 เข้าโรงพยาบาลไปกี่ครั้ง","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 = 12572 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"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":"การกระจายคะแนนคำตอบสำหรับผู้ใช้ ส่งคืนการกระจายของคะแนนสำหรับคำตอบของผู้ใช้ที่กำหนดโดย (บันทึก 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 Score, COUNT(*) FROM Posts WHERE OwnerUserId = '##UserId##' AND PostTypeId = 2 GROUP BY Score ORDER BY Score"},{"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":"ผู้ป่วยหมายเลข 57050 ในการเข้ารับการรักษาที่โรงพยาบาลนี้ ใช้สิทธิ์ประกันใด","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 = 57050 AND admissions.dischtime IS NULL"},{"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 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 (PostTypeId = 2) AND (OwnerUserId = '##UserId##') ORDER BY CreationDate DESC"},{"instruction":"กีฬาเยาวชนแห่งชาติ ครั้งที่เท่าไร","input":"","output":"30"},{"instruction":"พระอนุชาร่วมพระบิดาพระมารดาของเจ้าชายโบริสแห่งไลนิงเงินคือใคร","input":"","output":"เจ้าชายแฮร์มัน ฟรีดริชแห่งไลนิงเงิน"},{"instruction":"ฝ่ายใดเป็นผู้ชนะในสงครามโลกครั้งที่สอง","input":"","output":"ฝ่ายสัมพันธมิตร"},{"instruction":"ผู้ป่วย 029-16431 ปีนี้มาโรงพยาบาลครั้งสุดท้ายวันไหน","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 = '029-16431' 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":"ภาพเชิงวัฒนธรรมของควีนแมรีที่ 1 แห่งอังกฤษได้ถูกนำไปถ่ายทอดในเรื่องใดบ้าง","input":"","output":"วรรณกรรม ภาพยนตร์ และสื่อต่างๆ "},{"instruction":"เป้งดอย ดอกย่อยขนาดเล็กมีลักษณะอย่างไร","input":"","output":"สีขาวอมเหลือง ผลสุกสีแดง"},{"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":"ผู้ใช้ 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(Location) LIKE '%arak%' ORDER BY Reputation DESC"},{"instruction":"ในกลุ่มนี้ใครประสบความสำเร็จมากที่สุด","input":"","output":" เยอรมนีเป็นอดีตแชมป์ยุโรป"},{"instruction":"แผนประกันสำหรับผู้ป่วย 138 ในการรักษาครั้งแรกในโรงพยาบาลคืออะไร","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.insurance FROM admissions WHERE admissions.subject_id = 138 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"โนเวย์เอาท์ จัดที่ไหน","input":"","output":"นาม ไอโซด เซ็นเตอร์ ในเมือง เอ็สท์ รูเธอร์ฟอร์ด, รัฐนิวเจอร์ซีย์ สหรัฐอเมริกา"},{"instruction":"รงค์ วงษ์สวรรค์ มีอาชีพอะไร","input":"","output":"ศิลปินแห่งชาติ"},{"instruction":"จิ๊กซอว์เกิดวันที่เท่าไหร่","input":"","output":"เกิดวันที่ 16 ธันวาคม ค.ศ. 1983"},{"instruction":"พระจักรพรรดิมหาราชองค์แรกแห่งโคกูรยอมีนามว่าอะไร","input":"","output":"พระเจ้าควังแกโทมหาราช"},{"instruction":"ฮุลกี ชื่อเต็มว่าอะไร","input":"","output":"ฌีวานิลดู วีเยย์รา จี โซซา"},{"instruction":"ชาติที่ถูกรับเชิญมาเป็นครั้งคราวก็มาจากส่วนที่เหลือของทวีปอะไร","input":"","output":"ทวีปเอเชีย"},{"instruction":"ปลาแค้งูมีชื่อทางวิทยาศาสตร์ว่าอย่างไร","input":"","output":"ช��่อวิทยาศาสตร์: Bagarius suchus"},{"instruction":"แพทย์มือใหม่ หัวใจเกินร้อย เป็นรายการดราม่าโทรทัศน์ประเทศอะไร","input":"","output":"อเมริกัน"},{"instruction":"ผู้ใช้ที่หยุดโพสต์บน SE site ไปนานแล้ว? http:\/\/meta.stackexchange.com\/questions\/245972\/how-to-find-the-users-who-took-a-long-break-from-posting-on-an-se-site#245972","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 Users.Id, Users.EmailHash, Users.WebsiteUrl FROM Users WHERE Users.CreationDate >= '##year:int##' AND Users.Location LIKE '%##location##%'"},{"instruction":"เดอะไลต์นิงซีดส์ เป็นวงอะไร","input":"","output":"วงออลเทอร์นาทิฟร็อก"},{"instruction":"SO อันดับต้นใน South Carolina","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, Location FROM Users WHERE LOWER(Location) LIKE '%charleston, sc%' OR LOWER(Location) LIKE '%south carolina%' ORDER BY Reputation DESC"},{"instruction":"พุช โคตรคนเหนือมนุษย์เป็นหนังแนวใด","input":"","output":"นวนิยายวิทยาศาสตร์ แอ็กชั่น"},{"instruction":"เบื้องล่างของตรามีแพรแถบบรรจุอะไรไว้","input":"","output":"บรรจุคำขวัญประจำดินแดนเป็นภาษาละติน"},{"instruction":"กีฬายิมนาสติก แข่งขันที่ไหน","input":"","output":"มหกรรมกีฬา ซีเกมส์ 2017"},{"instruction":"ปกติ ผู้เล่นทรงคุณค่า จะได้กับตำแหน่งอะไร","input":"","output":"ตำแหน่งควอเตอร์แบ็คหรือตัวขว้าง"},{"instruction":"ชื่อที่มีตัวอักขระเฉพาะของ Unicode","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\", p.Score, LENGTH(p.Title) FROM Posts AS p WHERE p.Title LIKE '%' + NCHAR(128505) + '%' COLLATE Latin1_General_BIN"},{"instruction":"ริชาร์ด รอเจอส์ เกิดวันที่เท่าไร","input":"","output":"23 กรกฎาคม ค.ศ. 1933"},{"instruction":"โคเอ็กซ์อควาเรี่ยมตั้งอยู่ที่ใด","input":"","output":"ชั้นใต้ดินของห้างสรรพสินค้าโคเอ็กซ์ ในเขตคังนัม โซล"},{"instruction":"DBA - จำนวนโพสต์ทั้งหมดต่อเดือน","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 CONCAT(YEAR(P.CreationDate), '-', MONTH(P.CreationDate)) AS YearMonth, COUNT(*) AS PostCount FROM Posts AS P GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDate) ORDER BY YEAR(P.CreationDate) DESC, MONTH(P.CreationDate) DESC"},{"instruction":"เรือพระที่นั่งอเนกชาติภุชงค์ สร้างขึ้นใหม��ในรัชสมัยใด ?","input":"","output":"รัชสมัยพระบาทสมเด็จพระจอมเกล้าเจ้าอยู่หัว"},{"instruction":"บริษัทจดทะเบียนในตลาดทรัพย์เมื่อใด","input":"","output":"วันที่ 27 มกราคม พ.ศ. 2535"},{"instruction":"วันที่ในเดือนที่ถูกถามคำถามมากที่สุดคือเดือนตุลาคม","input":"CREATE TABLE PostTypes (\n Id number,\n Name text\n)\n\n","output":"SELECT Name FROM PostTypes"},{"instruction":"ท่าอากาศยานนานาชาติสุลต่านมะฮ์มุด บาดารูดินที่ 2 อยู่ประเทศอะไร","input":"","output":"ประเทศอินโดนีเซีย"},{"instruction":"การเน่าเปื่อย คืออะไร","input":"","output":"การเปลี่ยนแปลงหลังการตายตามธรรมชาติอย่างหนึ่งของร่างกายสิ่งมีชีวิต"},{"instruction":"เติงกูอานิส บินตีเติงกูอับดุลฮามิด ประสูติเมื่อไร","input":"","output":"พ.ศ. 2492"},{"instruction":"ตรวจสอบ ความแปรปรวนของ Post 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 low.Id AS \"post_link\", low.Id AS LowId, low.CreationDate AS LowDate, hi.Id AS \"high_link\", hi.CreationDate AS HighDate FROM Posts AS low, Posts AS hi WHERE low.Id > hi.Id AND low.CreationDate < hi.CreationDate AND low.CreationDate > '1 jan 2012' AND hi.CreationDate > '1 jan 2012'"},{"instruction":"ก็อดซิลลา ปะทะ สายพันธุ์ก็อดซิลลาต่างดาว เป็นภาคต่อจากเรื่องอะไร","input":"","output":"ก๊อตซิลล่า ปะทะ หุ่นยักษ์ทลายโลก 2"},{"instruction":"โคดี โรดส์ เป็นแชมป์อะไร","input":"","output":"แชมป์แท็กทีม WWE 1 สมัย"},{"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, Score FROM Posts WHERE PostTypeId = 2 AND (Body LIKE '%please help me%')"},{"instruction":"เมืองโอมาฮาใหญ่เป็นอันดับที่เท่าใดขแงประเทศสหรัฐอเมริกา","input":"","output":"เป็นเมืองใหญ่อันดับ 42 ของประเทศ"},{"instruction":"เมล บอชเนอร์ มีอาชีพอะไร","input":"","output":"ศิลปิน"},{"instruction":"ปลากระดี่มุกมีชื่อทางวิทยาศาสตร์ว่าอย่าง��ร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Trichopodus leerii"},{"instruction":"ยาคอฟ ดซูกัสวิลี เกิดมาจากภรรยาคนที่เท่าไร","input":"","output":"ภรรยาคนแรก"},{"instruction":"โทน สร้างเป็นละครโทรทัศน์ครั้งแรกในปีอะไร","input":"","output":"พ.ศ. 2535"},{"instruction":"ค้นหาการแก้ไขสรุปที่มี string","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.Comment AS \"ridiculous_comment\", a.PostId AS \"id\" FROM PostHistory AS a WHERE a.PostHistoryTypeId IN (4, 5, 6) AND a.UserId = 85695 AND a.Comment LIKE '%tag%' GROUP BY a.Comment, a.PostId LIMIT 50"},{"instruction":"ภาพยนตร์นี้ได้เข้าฉายในงานเทศกาลภาพยนตร์ใด","input":"","output":"เทศกาลภาพยนตร์นานาชาติมอสโกครั้งที่ 4"},{"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":"","output":" 1,600 - 1,800 ตัน"},{"instruction":"เบอร์นาร์ด ประเทศไทยเคยออกฉายทางช่องอะไร","input":"","output":"ไทยพีบีเอส"},{"instruction":"ปลานวลจันทร์ทะเลมีชื่อทางวิทยาศาสตร์ว่าอย่างไีร","input":"","output":"ชื่อวิทยาศาสตร์ว่า Chanos chanos "},{"instruction":"เทนนิสเป็นกีฬาที่เล่นที่ไหน","input":"","output":"ในร่มหรือกลางแจ้ง"},{"instruction":"แอ็สแอนเซแอ็ฟ ก่อตั้งขึ้นในปี พ.ศ.ใด","input":"","output":"2481"},{"instruction":"นายยิ่งพันธ์ มนะสิการ ในอดีตมีอาชีพรัฐมนตรีว่าการกระทรวงอะไร","input":"","output":"วิทยาศาสตร์ เทคโนโลยี และสิ่งแวดล้อม"},{"instruction":"นิวต์ กิงริช ชื่อเดิมว่าอะไร","input":"","output":"นิวตัน ลีรอย"},{"instruction":"กระบวนการระงับข้อพิพาทนอกศาล เลือกเจริญขึ้นในช่วงปีอะไร","input":"","output":"ค.ศ. 1970 - ค.ศ. 1980"},{"instruction":"พระราชวังเซนต์เจมส์คืออะไร","input":"","output":"เป็นพระราชวังที่เก่าแก่ที่สุดพระราชวังหนึ่งในกรุงลอนดอนในสหราชอาณาจักร"},{"instruction":"ขอทราบชื่อสินค้าหน่อย","input":"","output":"กระจก Washi Haruki White"},{"instruction":"เบ็ปปุ อยู่ประเทศอะไร","input":"","output":"ประเทศญี่ปุ่น"},{"instruction":"คำนวณระยะเวลาการนอนโรงพยาบาลของผู้ป่วย 82159 ในระหว่างการนอนโรงพยาบาลครั้งแรก","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 = 82159 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1"},{"instruction":"เหตุโจมตีในกาตาลุญญาเกิดขึ้นวันไหน","input":"","output":"วันที่ 17 สิงหาคม พ.ศ. 2560 "},{"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, CreationDate, LastAccessDate, Views FROM Users WHERE LOWER(Location) LIKE '%saudi%' ORDER BY Reputation DESC"},{"instruction":"ยู มย็อง-อูเป้นคนที่ไหน","input":"","output":"กรุงโซล ประเทศเกาหลีใต้ "},{"instruction":"ผู้ป่วยหมายเลข 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":"นับจำนวนลูกค้าที่อีเมลมี 'gmail.com' อยู่","input":"CREATE TABLE customer (\n customerid number,\n firstname text,\n lastname text,\n company text,\n address text,\n city text,\n state text,\n country text,\n postalcode text,\n phone text,\n fax text,\n email text,\n supportrepid number\n)\n\n","output":"SELECT COUNT(*) FROM customer WHERE email LIKE \"%gmail.com%\""},{"instruction":"สายการบินของ YX คืออะไร","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 = 'YX'"},{"instruction":"สนิมสร้อยพิมพ์ครั้งแรกที่ไหน","input":"","output":"สยามรัฐ"},{"instruction":"ซุเปอร์เฟอร์รีแอนิมัลส์ ก่อตั้งเมื่อไร","input":"","output":"1993"},{"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":"ค้นหาผู้ต้องสงสัยลบกระทู้","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":"คำนวณจำนวนผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลในปีนี้","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":"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 '%seoul%' OR UPPER(Location) LIKE '%SEOUL%' OR Location LIKE '%Seoul%' AND Reputation >= 1000 ORDER BY Reputation DESC"},{"instruction":"EECS 438 เรียนกี่หน่วยกิตคะ","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 = 438"},{"instruction":"ฤดูกาลที่ 5 นี้เริ่มออกอากาศเมื่อวันที่เท่าไหร่ ?","input":"","output":"วันที่ 21 พฤษภาคม 2009"},{"instruction":"กลุ่มนี้เป็นกลุ่มที่ต้องการเปลี่ยนแปลงโครงสร้างรัฐบาลอะไร","input":"","output":"จาการ์ตา"},{"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 COUNT(*) AS \"count\" FROM Badges AS b WHERE (b.Name = '##name?Caucus##') GROUP BY b.Name LIMIT 100"},{"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":"ผู้ป่วยหมายเลข 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":"เหตุใดพระเจ้าฮาโรลด์ แฮร์ฟุตจึงได้รับพระนามว่าแฮร์ฟุต","input":"","output":"เพราะทรงมีความว่องไว (ราวกระต่าย (Hare)) และความสามารถในการล่าสัตว์"},{"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":"ภาวะหัวใจห้องล่างซ้ายบีบตัวออกได้น้อยกว่าหรือเท่ากับ 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":"","output":"ค่าจริง (true) และค่าเท็จ (false)"},{"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)","output":"SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = 'M80'"},{"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":"จำนวนคำถามสำหรับ 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":"ภาพยนตร์เรื่อง Finding Vivian Maier ได้รับการเสนอชื่อเข้าชิงรางวัลออสการ์ สาขาภาพยนตร์สารคดียอดเยี่ยม ในงานประกาศผลรางวัลออสการ์ครั้งที่เท่าไหร","input":"","output":"ครั้งที่ 87"},{"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 DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')"},{"instruction":"แห่งราชวงศ์ใด","input":"","output":"ราชวงศ์เซี่ยตะวันตก"},{"instruction":"จิระนันท์ ประเสริฐกุล ได้รับรางวัลอะไร","input":"","output":"รางวัลซีไรต์ พ.ศ. 2532"},{"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 (SELECT COUNT(*) FROM Badges WHERE Class = 3) AS Bronze, (SELECT COUNT(*) FROM Badges WHERE Class = 2) AS Silver, (SELECT COUNT(*) FROM Badges WHERE Class = 1) AS Gold"},{"instruction":"ลักษณะของเบริธเป็นแบบใด","input":"","output":"ทหารชุดแดง ขี่ม้าสีแดง และสวมมงกุฎทองคำ"},{"instruction":"เรือโดยสารคลองภาษีเจริญมีอัตราค่าโดยสารเท่าไหร่","input":"","output":" 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)\n\n","output":"SELECT Id AS \"user_link\", Reputation, CreationDate, LastAccessDate FROM Users WHERE AboutMe LIKE '%##text##%'"},{"instruction":"ท่าอากาศยานนาฮะ ตั้งอยู่เมืองอะไร","input":"","output":"เมืองนาฮะ"},{"instruction":"โรลเลอร์โคสเตอร์ไทคูน ลงเครื่องเอกซ์บอกซ์ ในปีอะไร","input":"","output":"ปี 2003"}] \ No newline at end of file