thai_instruction
stringlengths
8
429
eng_instruction
stringlengths
16
503
table
stringlengths
11
2.09k
sql
stringlengths
9
2.37k
pandas
stringlengths
1
635
real_table
stringclasses
2 values
โดยมีจำนวนคำตอบน้อยที่สุดในช่วงเวลา N วัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
s with a minimal number of answers on a N days period.It is not neccessary to use all the tables.
Votes: Id [ number] PostId [ number] VoteTypeId [ number] UserId [ number] CreationDate [ time] BountyAmount [ number]
SELECT DATEADD(DAY, 0, DATEDIFF(DAY, 0, CreationDate) / @days * @days) AS FullDate, CAST(COUNT(*) AS FLOAT) AS "#Questions" FROM Posts AS q WHERE q.PostTypeId = 1 AND q.AnswerCount >= '##minAnswers##' GROUP BY (DATEDIFF(DAY, 0, CreationDate) / @days * @days) ORDER BY FullDate DESC
null
general
เลือกราคาเฉลี่ยของผลิตภัณฑ์ของผู้ผลิตแต่ละรายโดยแสดงชื่อผู้ผลิต ไม่จำเป็นต้องใช้ตารางทั้งหมด
Select the average price of each manufacturer's products, showing the manufacturer's name.It is not neccessary to use all the tables.
Manufacturers: name [ VARCHAR] code [ VARCHAR]
SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
null
general
ระบุประเภทและเส้นทางการบริหารยาดิจอกซินไม่จำเป็นต้องใช้ตารางทั้งหมด
specify the type and route of administration of drug digoxinIt is not neccessary to use all the tables.
lab: subject_id [ text] hadm_id [ text] itemid [ text] charttime [ text] flag [ text] value_unit [ text] label [ text] fluid [ text]
SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Digoxin"
null
general
ผลรวมของ core# ที่มี TDP น้อยกว่า 85.3 เป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the sum of core# with a TDP less than 85.3?It is not neccessary to use all the tables.
table_8119: "Model" [ real] "Package-Socket" [ text]
SELECT SUM("Core #") FROM table_8119 WHERE "TDP (W)" < '85.3'
null
general
เปรียบเทียบจำนวนชะตากรรมทั้งหมดด้วยแผนภูมิแท่ง คุณสามารถแสดงตามจำนวนชะตากรรมในรูปแบบรายละเอียดได้หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Compare the total number of each fate with a bar chart, could you show by the the number of fate in desc?It is not neccessary to use all the tables.
ship: Ship_ID [ int] Name [ text] Type [ text] Nationality [ text] Tonnage [ int]
SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY COUNT(Fate) DESC
null
general
หลังจากปี 1972 ทีม Marlboro Team Alfa Romeo มีคะแนนเท่าไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
After 1972, how many points did Marlboro Team Alfa Romeo have?It is not neccessary to use all the tables.
table_name_84: points [ VARCHAR] year [ VARCHAR] entrant [ VARCHAR]
SELECT points FROM table_name_84 WHERE year > 1972 AND entrant = "marlboro team alfa romeo"
null
general
สวิตเซอร์แลนด์มีทองต่ำกว่า 7 เหรียญทองและน้อยกว่า 3 เหรียญเงินกี่ครั้ง ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many times does Switzerland have under 7 golds and less than 3 silvers?It is not neccessary to use all the tables.
table_name_17: total [ VARCHAR] silver [ VARCHAR] country [ VARCHAR] gold [ VARCHAR]
SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3
null
general
ค้นหาชื่อ เมือง และประเทศของสนามบินที่มีละติจูดสูงสุด ไม่จำเป็นต้องใช้ตารางทั้งหมด
Find the name, city, and country of the airport that has the highest latitude.It is not neccessary to use all the tables.
airlines: alid [ number] name [ text] iata [ text] icao [ text] callsign [ text] country [ text] active [ text]
SELECT name, city, country FROM airports ORDER BY elevation DESC LIMIT 1
null
general
ชื่อ 27-29 มีนาคม โดยวันที่ 15-16 มกราคม คือ 15 มกราคม 2534 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name march 27-29 where january 15-16 is january 15, 1991It is not neccessary to use all the tables.
table_21287:
SELECT "March 27-29" FROM table_21287 WHERE "January 15-16" = 'January 15, 1991'
null
general
อายุขั้นต่ำของผู้ป่วยที่มีประกันสุขภาพและมีเชื้อชาติเป็นคนผิวขาวคือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is minimum age of patients whose insurance is medicaid and ethnicity is white?It is not neccessary to use all the tables.
procedures: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT MIN(demographic.age) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.ethnicity = "WHITE"
null
general
จำนวนผู้เข้าร่วมโดยเฉลี่ยและสูงสุดของกิจกรรมทั้งหมดคือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what are the average and maximum attendances of all events?It is not neccessary to use all the tables.
event: Event_Attendance [ INTEGER]
SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event
null
general
สำหรับทัวร์นาเมนต์ที่เล่นเมื่อวันที่ 25 กันยายน พ.ศ. 2538 ใครคือคู่ต่อสู้ในรอบชิงชนะเลิศ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
For the tournament played on September 25, 1995, who was the Finals opponent?It is not neccessary to use all the tables.
table_40201: "Date" [ text] "Tournament" [ text] "Surface" [ text] "Score" [ text]
SELECT "Opponent in the final" FROM table_40201 WHERE "Date" = 'september 25, 1995'
null
general
คะแนนรวมใดมีวิทยาลัยแห่งรัฐฟลอริดา และรอบที่ใหญ่กว่า 2 ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
Which Overall has a College of florida state, and a Round larger than 2?It is not neccessary to use all the tables.
table_name_76: overall [ INTEGER] college [ VARCHAR] round [ VARCHAR]
SELECT SUM(overall) FROM table_name_76 WHERE college = "florida state" AND round > 2
null
general
เกมที่แอร์โรว์เฮด สเตเดียม วันที่เท่าไหร่? ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What is the date of the game at Arrowhead Stadium?It is not neccessary to use all the tables.
table_39475: "Week" [ real] "Date" [ text] "Opponent" [ text] "Location" [ text] "Result" [ text] "Record" [ text]
SELECT "Date" FROM table_39475 WHERE "Location" = 'arrowhead stadium'
null
general
ทีมเยือนเมลเบิร์นเหนือมีฝูงชนหนาแน่นแค่ไหน?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What is the crowd for away team of north melbourne?It is not neccessary to use all the tables.
table_52958: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Crowd" FROM table_52958 WHERE "Away team" = 'north melbourne'
null
general
ประเทศใดที่มีการผลิตเหมืองแร่ของชนพื้นเมืองในปี 2549 เป็น 0?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which country has an Indigenous mining production 2006 of 0?It is not neccessary to use all the tables.
table_name_26: country [ VARCHAR] indigenous_mining_production_2006 [ VARCHAR]
SELECT country FROM table_name_26 WHERE indigenous_mining_production_2006 = "0"
null
general
คุณจะแนะนำให้ฉันเรียนหลักสูตรใดก่อนเข้าเรียน EHS 615 ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What courses would you suggest I take before taking EHS 615 ?It is not neccessary to use all the tables.
area: course_id [ int] area [ varchar]
SELECT DISTINCT advisory_requirement FROM course WHERE department = 'EHS' AND number = 615
null
general
ตั้งชื่อส่วนสูงเป็นฟุตสำหรับยามจากนอร์ธแคโรไลนา-ชาร์ล็อตต์ ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Name the height in feet for the guard from north carolina-charlotteIt is not neccessary to use all the tables.
table_name_35: height_in_ft [ VARCHAR] position [ VARCHAR] school_club_team_country [ VARCHAR]
SELECT height_in_ft FROM table_name_35 WHERE position = "guard" AND school_club_team_country = "north carolina-charlotte"
null
general
โปรดแสดงเที่ยวบินที่มีค่าใช้จ่ายน้อยกว่าหรือเท่ากับ 466 ดอลลาร์จากนิวยอร์กไปไมอามีซึ่งจะออกในวันอังคาร ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
please show me flights which cost less than or equal to 466 dollars from NEW YORK to MIAMI leaving on a TUESDAYIt is not neccessary to use all the tables.
compartment_class: compartment [ varchar] class_type [ varchar]
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((DAYS_0.day_name = 'TUESDAY' AND DAYS_1.day_name = 'TUESDAY' AND fare_basis.basis_days = DAYS_1.days_code AND fare.fare_basis_code = fare_basis.fare_basis_code AND fare.one_direction_cost <= 466 AND flight_fare.fare_id = fare.fare_id AND flight.flight_days = DAYS_0.days_code AND flight.flight_id = flight_fare.flight_id) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
null
general
การลงทะเบียนสำหรับมหาวิทยาลัย Ashland คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the enrollment for Ashland University?It is not neccessary to use all the tables.
table_261946_3: enrollment [ VARCHAR] location__all_in_ohio_ [ VARCHAR]
SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = "Ashland"
null
general
ขนาด (ขั้น) ของ 15 และเพียง (เซนต์) ที่ใหญ่กว่า 435.08 คือขนาดสูงสุด (เซนต์) คือเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?It is not neccessary to use all the tables.
table_name_26: size__cents_ [ INTEGER] size__steps_ [ VARCHAR] just__cents_ [ VARCHAR]
SELECT MAX(size__cents_) FROM table_name_26 WHERE size__steps_ = 15 AND just__cents_ > 435.08
null
general
สำหรับพนักงานที่มีเงินเดือนอยู่ในช่วง 8,000 และ 12,000 และค่าคอมมิชชันไม่เป็นค่าว่างหรือหมายเลขแผนกไม่เท่ากับ 40 ให้ค้นหา Hire_date และจำนวน Hire_date bin Hire_date ตามเวลา แล้วแสดงภาพด้วยแผนภูมิแท่ง คุณช่วยแสดง ในการขึ้นตามแกน y ไม่จำเป็นต้องใช้ตารางทั้งหมดหรือไม่
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the amount of hire_date bin hire_date by time, and visualize them by a bar chart, could you show in ascending by the y axis?It is not neccessary to use all the tables.
countries: COUNTRY_ID [ varchar(2)] COUNTRY_NAME [ varchar(40)] REGION_ID [ decimal(100)]
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY COUNT(HIRE_DATE)
null
general
อะไรคือสิ่งที่ Al Ahly ชนะน้อยที่สุดสำหรับ El Zamalek ที่ชนะ 0 และ 0 เสมอ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the fewest Al Ahly wins for El Zamalek wins of 0 and 0 draws?It is not neccessary to use all the tables.
table_name_29: al_ahly_wins [ INTEGER] draws [ VARCHAR] el_zamalek_wins [ VARCHAR]
SELECT MIN(al_ahly_wins) FROM table_name_29 WHERE draws = 0 AND el_zamalek_wins < 0
null
general
นับจำนวนผู้ป่วยที่ปีเสียชีวิตน้อยกว่าหรือเท่ากับ 2,115 และรหัสขั้นตอน icd9 คือ 4341 หรือไม่ไม่จำเป็นต้องใช้ตารางทั้งหมด
count the number of patients whose year of death is less than or equal to 2115 and procedure icd9 code is 4341?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2115.0" AND procedures.icd9_code = "4341"
null
general
ยิงได้กี่ประตูเมื่อวันที่ 22 พฤศจิกายน พ.ศ. 2537?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many goals were scored on November 22, 1994?It is not neccessary to use all the tables.
table_51219: "Goal" [ real] "Date" [ text] "Score" [ text] "Result" [ text] "Competition" [ text]
SELECT SUM("Goal") FROM table_51219 WHERE "Date" = 'november 22, 1994'
null
general
สถานที่จัดงานวันที่ 24/11/1979 อยู่ที่ไหน?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Where was the venue for 24/11/1979?It is not neccessary to use all the tables.
table_name_19: venue [ VARCHAR] date [ VARCHAR]
SELECT venue FROM table_name_19 WHERE date = "24/11/1979"
null
general
มีผู้สมัครอิสระกี่คนที่อยู่ในบัตรลงคะแนนของเทศมนตรีในปี พ.ศ. 2462 ?ไม่จำเป็นต้องใช้ตารางทั้งหมดเลย
how many independent candidates were on the ballot for alderman in 1919 ?It is not neccessary to use all the tables.
table_204_736: id [ number] "party" [ text] "candidate" [ text] "votes" [ number]
SELECT COUNT("candidate") FROM table_204_736 WHERE "party" = 'independent'
null
general
มีนักแข่งกี่คนที่มีจุดไคลแม็กซ์ของคูเปอร์เป็นตัวสร้าง ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many racers had cooper climax as their constructor ?It is not neccessary to use all the tables.
table_204_976: id [ number] "pos" [ text] "driver" [ text] "entrant" [ text] "constructor" [ text] "time/retired" [ text] "grid" [ number]
SELECT COUNT("driver") FROM table_204_976 WHERE "constructor" = 'cooper-climax'
null
general
การแข่งขันเมื่อปี 1992 เป็น A คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What's the tournament when 1992 is A?It is not neccessary to use all the tables.
table_name_6: tournament [ VARCHAR]
SELECT tournament FROM table_name_6 WHERE 1992 = "a"
null
general
บอกบันทึกเวลา 250 และวันที่ออก 6/6/77 ที่มีแทร็กมากกว่า 20 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the recorded for time of 250 and released date of 6/6/77 with track more than 20It is not neccessary to use all the tables.
table_78062: "Track" [ real] "Recorded" [ text] "Catalogue" [ text] "Time" [ text]
SELECT "Recorded" FROM table_78062 WHERE "Track" > '20' AND "Release Date" = '6/6/77' AND "Time" = '2:50'
null
general
สำหรับพนักงานที่ได้รับการว่าจ้างก่อนวันที่ 21-06-2545 ให้ค้นหา Hire_date และค่าเฉลี่ยของ Employee_id bin Hire_date ตามวันทำงาน และแสดงภาพด้วยแผนภูมิแท่ง ไม่จำเป็นต้องใช้ตารางทั้งหมด
For those employees who was hired before 2002-06-21, find hire_date and the average of employee_id bin hire_date by weekday, and visualize them by a bar chart.It is not neccessary to use all the tables.
departments: DEPARTMENT_ID [ decimal(40)] DEPARTMENT_NAME [ varchar(30)] MANAGER_ID [ decimal(60)] LOCATION_ID [ decimal(40)]
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21'
null
general
รายละเอียดสำหรับโครงการทั้งหมดที่ไม่ได้จ้างเจ้าหน้าที่มาทำหน้าที่วิจัยมีอะไรบ้าง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are the details for all projects that did not hire any staff in a research role?It is not neccessary to use all the tables.
organisations: organisation_id [ number] organisation_type [ text] organisation_details [ text]
SELECT project_details FROM projects WHERE NOT project_id IN (SELECT project_id FROM project_staff WHERE role_code = 'researcher')
null
general
ระยะเวลาฉายทั้งหมดที่มีผู้ชม 8.2 ล้านคนคือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are all the run times with 8.2 million viewers?It is not neccessary to use all the tables.
table_19219: "Episode" [ text] "Archive" [ text]
SELECT "Run time" FROM table_19219 WHERE "Viewers (in millions)" = '8.2'
null
general
คู่ต่อสู้มาเก๊ากี่ครั้ง ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how many times was macau the opponent ?It is not neccessary to use all the tables.
table_203_164: id [ number] "#" [ number] "date" [ text] "venue" [ text] "opponent" [ text] "score" [ text] "result" [ text] "competition" [ text]
SELECT COUNT(*) FROM table_203_164 WHERE "opponent" = 'macau'
null
general
สำนักงานใหญ่ของร้านแบล็กวิลล์คือเมืองใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What city is the headquarter of the store Blackville?It is not neccessary to use all the tables.
district: district_id [ number] district_name [ text] headquartered_city [ text] city_population [ number] city_area [ number]
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"
null
general
ผู้เข้าชมโดยเฉลี่ยในเกมที่จัดขึ้นที่ Firhill ในรอบ 5(r) เป็นเท่าใด? ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What is the average attendance at a game held at Firhill for the 5(r) round?It is not neccessary to use all the tables.
table_name_26: attendance [ INTEGER] venue [ VARCHAR] round [ VARCHAR]
SELECT AVG(attendance) FROM table_name_26 WHERE venue = "firhill" AND round = "5(r)"
null
general
บอกวันที่แสดง 6 วงดนตรีและปีที่มากกว่าปี 1981 สำหรับ Monsters of Rock ไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rockIt is not neccessary to use all the tables.
table_name_4: date [ VARCHAR] event [ VARCHAR] acts [ VARCHAR] year [ VARCHAR]
SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > 1981 AND event = "monsters of rock"
null
general
ทุกรายการสำหรับปี 1980-81 คืออะไรในปี 1983-84 คือ Caryn McKinney? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is every entry for 1980-81 when 1983-84 is Caryn McKinney?It is not neccessary to use all the tables.
table_25166: "Rank" [ real] "1980-81" [ text] "1981-82" [ text] "1982-83" [ text] "1983-84" [ text] "1984-85" [ text]
SELECT "1980-81" FROM table_25166 WHERE "1983-84" = 'Caryn McKinney'
null
general
ดีเซล 1.9 มีกำลังเท่าไหร่?ไม่จำเป็นต้องใช้ทุกตารางเลย
What is the power of 1.9 diesel?It is not neccessary to use all the tables.
table_36680: "Name" [ text] "Capacity" [ text] "Power" [ text] "Type" [ text] "Torque" [ text]
SELECT "Power" FROM table_36680 WHERE "Name" = '1.9 diesel'
null
general
คำนวณอายุเฉลี่ยของผู้ป่วยที่แต่งงานแล้วซึ่งมีเลือดออกในทางเดินอาหารเป็นโรคหลัก ไม่จำเป็นต้องใช้ตารางทั้งหมด
calculate the average age of married patients who had gastrointestinal bleed as a primary disease.It is not neccessary to use all the tables.
procedures: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.diagnosis = "GASTROINTESTINAL BLEED"
null
general
บอกตำแหน่งในการเลือก 146 ครับ ไม่จำเป็นต้องใช้ทุกตารางครับ
Tell me the position for pick of 146It is not neccessary to use all the tables.
table_name_7: position [ VARCHAR] pick [ VARCHAR]
SELECT position FROM table_name_7 WHERE pick = "146"
null
general
หลังจากปี 2010 มีภาพยนตร์ที่มอร์ริสันแสดงกี่เรื่อง ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many movies has morrison acted in after 2010 ?It is not neccessary to use all the tables.
table_202_279: id [ number] "year" [ number] "title" [ text] "role" [ text] "notes" [ text]
SELECT COUNT("title") FROM table_202_279 WHERE "year" > 2010
null
general
โปรเจ็กต์ที่มีจุดสูงสุดที่ 40 และอยู่ในสหรัฐอเมริกาชื่ออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the name of the project that peaked at 40 and was in the USA?It is not neccessary to use all the tables.
table_5931: "Country" [ text] "Operator" [ text] "Peak" [ text]
SELECT "Project Name" FROM table_5931 WHERE "Peak" = '40' AND "Country" = 'usa'
null
general
สถานะใดมีวันที่ 19/05/1981?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Status has a Date of 19/05/1981?It is not neccessary to use all the tables.
table_name_34: status [ VARCHAR] date [ VARCHAR]
SELECT status FROM table_name_34 WHERE date = "19/05/1981"
null
general
บันทึกเมื่อแวนคูเวอร์เป็นผู้มาเยือนคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the record when Vancouver was the visitor?It is not neccessary to use all the tables.
table_9867: "Date" [ text] "Visitor" [ text] "Score" [ text] "Home" [ text] "Record" [ text] "Points" [ real]
SELECT "Record" FROM table_9867 WHERE "Visitor" = 'vancouver'
null
general
หญิงตั้งครรภ์ที่มีภาวะความดันโลหิตสูงก่อนตั้งครรภ์_ไม่จำเป็นต้องใช้ทุกโต๊ะ
pregnant female with pre _ gestational hypertension.It is not neccessary to use all the tables.
table_train_253: "id" [ int] "pregnancy_or_lactation" [ bool] "pre_eclampsia" [ bool] "acute_ischemia" [ bool] "pre_gestational_hypertension" [ bool] "diabetic" [ string] "smoking" [ bool] "coronary_artery_disease_cad" [ bool] "NOUSE" [ float]
SELECT * FROM table_train_253 WHERE pregnancy_or_lactation = 1 AND pre_gestational_hypertension = 1
null
general
อะไรคือสถิติสรุปสูงสุดของอัลกอริทึมที่มีระยะห่างมากกว่า 2 และชุดข้อมูลจำลองของ aabbababaaabbababbab? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the highest summary statistic of the algorithm with a distance larger than 2 and simulated datasets of aabbababaaabbababbab?It is not neccessary to use all the tables.
table_56058: "\\theta_i" [ real]
SELECT MAX("Summary statistic \\omega_{S,i} (step 3)") FROM table_56058 WHERE "Distance \\rho(\\omega_{S,i}, \\omega_E) (step 4)" > '2' AND "Simulated datasets (step 2)" = 'aabbababaaabbababbab'
null
general
ใครคือนักแสดงคนที่ 2 ของตอนที่ 9 เมษายน พ.ศ. 2536 โดยมีโจซี่ ลอว์เรนซ์เป็นนักแสดงคนที่ 4? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4?It is not neccessary to use all the tables.
table_name_83: performer_2 [ VARCHAR] performer_4 [ VARCHAR] date [ VARCHAR]
SELECT performer_2 FROM table_name_83 WHERE performer_4 = "josie lawrence" AND date = "9 april 1993"
null
general
ทีมใดมีตัวเลือกมากกว่า 30 เมื่อวิทยาลัยอยู่ในรัฐ Saginaw Valley? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What team has a pick larger than 30, when the college is saginaw valley state?It is not neccessary to use all the tables.
table_name_74: team [ VARCHAR] pick [ VARCHAR] college [ VARCHAR]
SELECT team FROM table_name_74 WHERE pick > 30 AND college = "saginaw valley state"
null
general
ชนะมากกว่า 15 ครั้งและแพ้น้อยกว่า 10 คะแนนมีกี่แต้ม?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many points has more than 15 wins and less than 10 losses?It is not neccessary to use all the tables.
table_14831: "Position" [ real] "Club" [ text] "Played" [ real] "Points" [ text] "Wins" [ real] "Draws" [ real] "Losses" [ real]
SELECT "Points" FROM table_14831 WHERE "Wins" > '15' AND "Losses" < '10'
null
general
ผู้ผลิตรายใดคือกริด 11?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which manufacturer is grid 11?It is not neccessary to use all the tables.
table_45525: "Rider" [ text] "Manufacturer" [ text] "Laps" [ text] "Time/Retired" [ text] "Grid" [ text]
SELECT "Manufacturer" FROM table_45525 WHERE "Grid" = '11'
null
general
จำนวนผู้ป่วยอินพุต 21134 ได้รับเป็นจำนวนเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the amount of input patient 21134 has received?It is not neccessary to use all the tables.
prescriptions: row_id [ number] subject_id [ number] hadm_id [ number] startdate [ time] enddate [ time] drug [ text] dose_val_rx [ text] dose_unit_rx [ text] route [ text]
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 21134))
null
general
สิ่งที่ควรคำนึงถึงในญี่ปุ่นไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the to par for japanIt is not neccessary to use all the tables.
table_66292: "Place" [ text] "Player" [ text] "Country" [ text] "Score" [ text]
SELECT "To par" FROM table_66292 WHERE "Country" = 'japan'
null
general
สร้างแผนภูมิแท่งที่แสดงจำนวนรวมทั่วทั้งทีม ไม่จำเป็นต้องใช้ตารางทั้งหมด
Create a bar chart showing the total number across teamIt is not neccessary to use all the tables.
repair: repair_ID [ int] name [ text] Launch_Date [ text] Notes [ text]
SELECT Team, COUNT(*) FROM technician GROUP BY Team
null
general
สำหรับคนไข้อายุ 20 จนถึง 3 ปีที่แล้ว 4 อันดับการวินิจฉัยที่พบบ่อยที่สุดคืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
for the patients with age 20s until 3 years ago what are the top four most frequent diagnoses?It is not neccessary to use all the tables.
allergy: allergyid [ number] patientunitstayid [ number] drugname [ text] allergyname [ text] allergytime [ time]
SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 4
null
general
ค้นหาจำนวนผู้ป่วยที่เกิดก่อนปี 2126 ที่มีสถานะการตรวจแล็บผิดปกติ ไม่จำเป็นต้องใช้ทุกตาราง
find the number of patients born before 2126 who had abnormal lab test status.It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2126" AND lab.flag = "abnormal"
null
general
วันที่ อุณหภูมิเฉลี่ย และความชื้นเฉลี่ยในช่วง 3 วันสูงสุดที่มีความเร็วลมกระโชกสูงสุดสูงสุดคือวันที่เท่าไร ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?It is not neccessary to use all the tables.
weather: date [ VARCHAR] mean_temperature_f [ VARCHAR] mean_humidity [ VARCHAR] max_gust_speed_mph [ VARCHAR]
SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3
null
general
ปีล่าสุดที่มีความสูง 2,770 ม. และไต่ระดับ HC ก่อนปี 1992 คือปีใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed?It is not neccessary to use all the tables.
table_name_56: most_recent [ VARCHAR] height__m_ [ VARCHAR] first_time_as_hc_climb [ VARCHAR]
SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992
null
general
แสดงชื่อเครื่องบินและจำนวนเที่ยวบินของเครื่องบินแต่ละลำด้วยแผนภูมิแท่ง และเรียงลำดับจากน้อยไปหามากตามแกน y ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show aircraft names and number of flights for each aircraft with a bar chart, and sort in ascending by the y-axis.It is not neccessary to use all the tables.
employee: eid [ number(90)] name [ varchar2(30)] salary [ number(102)]
SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY COUNT(*)
null
general
Xi Wangri การถอดเสียงพินอินอยู่ที่ไหน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the place of the Pinyin transcription Xi Wangri?It is not neccessary to use all the tables.
table_22131:
SELECT MAX("Standard order") FROM table_22131 WHERE "Transcription (based on Pinyin)" = 'Xi Wangri'
null
general
โค้ชวอลเตอร์ มีนเวลล์ เป็นโค้ชในปีใดที่สถิติการประชุมคือ 63-9? ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
In what years, when the conference record was 63-9, was the coach Walter Meanwell?It is not neccessary to use all the tables.
table_33720: "Coach" [ text] "Years" [ text] "Record" [ text]
SELECT "Years" FROM table_33720 WHERE "Coach" = 'walter meanwell' AND "Conference Record" = '63-9'
null
general
ชื่อที่มีชื่อเปิด (วันที่ปิดหากหมดอายุ) ปี 1995 และมีความยาวไมล์ (m) ในรัฐอิลลินอยส์คืออะไร ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois?It is not neccessary to use all the tables.
table_name_9: name [ VARCHAR] state [ VARCHAR] opened__closing_date_if_defunct_ [ VARCHAR] length [ VARCHAR]
SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = "1995" AND length = "miles (m)" AND state = "illinois"
null
general
ระบุจำนวนผู้ป่วยที่สถานที่เข้ารับการรักษาคือการอ้างอิงคลินิก/ก่อนกำหนด และรหัสรายการคือ 50818 หรือไม่ไม่จำเป็นต้องใช้ตารางทั้งหมด
provide the number of patients whose admission location is clinic referral/premature and item id is 50818?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.itemid = "50818"
null
general
ช่องสัญญาณ KCAL-DT มีคุณภาพสัญญาณระดับใด?ไม่จำเป็นต้องใช้ทุกตาราง
What signal quality does the KCAL-DT channel have?It is not neccessary to use all the tables.
table_33346: "PSIP" [ text]
SELECT "Signal Quality" FROM table_33346 WHERE "Station Call Letters" = 'kcal-dt'
null
general
คะแนนเมื่อวันที่ 29 กันยายน พ.ศ. 2546 เป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the Score on September 29, 2003?It is not neccessary to use all the tables.
table_name_64: score [ VARCHAR] date [ VARCHAR]
SELECT score FROM table_name_64 WHERE date = "september 29, 2003"
null
general
David M. Blei ได้รับการตีพิมพ์ใน AISTATS กี่ฉบับ ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many papers has David M. Blei published in AISTATS ?It is not neccessary to use all the tables.
field: fieldid [ int]
SELECT DISTINCT COUNT(paper.paperid) FROM author, paper, venue, writes WHERE author.authorname = 'David M. Blei' AND venue.venueid = paper.venueid AND venue.venuename = 'AISTATS' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
null
general
Voltage Center (V) ใดที่มีหมายเลข S-Spec เป็น sk096?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Voltage Center (V) has an S-Spec Number of sk096?It is not neccessary to use all the tables.
table_name_76: voltage_center__v_ [ VARCHAR] s_spec_number [ VARCHAR]
SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk096"
null
general
สำหรับพนักงานทุกคนที่มีตัวอักษร D หรือ S ในชื่อ ให้ส่งคืนแผนภูมิแท่งเกี่ยวกับการแจกแจงของ Hire_date และผลรวมของถังเงินเดือน Hire_date ตามเวลา ไม่จำเป็นต้องใช้ตารางทั้งหมด
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by time.It is not neccessary to use all the tables.
regions: REGION_ID [ decimal(50)] REGION_NAME [ varchar(25)]
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
null
general
lab รวมอยู่ใน 451 ด้วยหรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Is lab also included in 451 ?It is not neccessary to use all the tables.
student: student_id [ int] lastname [ varchar] firstname [ varchar] program_id [ int] declare_major [ varchar] total_credit [ int] total_gpa [ float] entered_as [ varchar] admit_term [ int] predicted_graduation_semester [ int] degree [ varchar] minor [ varchar] internship [ varchar]
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 451
null
general
ผู้ป่วยที่วินิจฉัยรหัส icd9 คือ 2749 จำนวนเท่าใด และหมวดการทดสอบในห้องปฏิบัติการเป็นวิชาเคมีเป็นจำนวนเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the number of patients whose diagnoses icd9 code is 2749 and lab test category is chemistry?It is not neccessary to use all the tables.
procedures: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "2749" AND lab."CATEGORY" = "Chemistry"
null
general
ผู้เข้าร่วมในวันที่ 3 พฤศจิกายน พ.ศ. 2511 ซึ่งน้อยกว่า 8 สัปดาห์คือเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the attendance on November 3, 1968, that was a week smaller than 8?It is not neccessary to use all the tables.
table_name_81: attendance [ VARCHAR] date [ VARCHAR] week [ VARCHAR]
SELECT COUNT(attendance) FROM table_name_81 WHERE date = "november 3, 1968" AND week < 8
null
general
มีกี่ชาติที่ได้รับอย่างน้อย 10 เหรียญ ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many nations won at least 10 medals ?It is not neccessary to use all the tables.
table_203_70: id [ number] "rank" [ number] "nation" [ text] "gold" [ number] "silver" [ number] "bronze" [ number] "total" [ number]
SELECT COUNT("nation") FROM table_203_70 WHERE "total" >= 10
null
general
แสดงผู้เข้าชิงรางวัลละครเพลงพร้อมรางวัล 'Bob Fosse' หรือ 'Cleavant Derricks' ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Show the musical nominee with award 'Bob Fosse' or 'Cleavant Derricks'.It is not neccessary to use all the tables.
musical: Nominee [ VARCHAR] Award [ VARCHAR]
SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks"
null
general
ทอม แฮมมอนด์จะได้กี่แต้มถ้าเขามีมากกว่า 12 แต้ม?ไม่จำเป็นต้องใช้ทุกตาราง
How many points does Tom Hammond have if he has more than 12 points?It is not neccessary to use all the tables.
table_5810: "Player" [ text] "Touchdowns" [ real] "Points" [ real]
SELECT SUM("Points") FROM table_5810 WHERE "Player" = 'tom hammond' AND "Extra points" > '12'
null
general
วันที่ของเกมที่มีสถิติ 46-22 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Date of the Game with a Record of 46-22?It is not neccessary to use all the tables.
table_14215: "Game" [ text] "Date" [ text] "Opponent" [ text] "Score" [ text] "Record" [ text]
SELECT "Date" FROM table_14215 WHERE "Record" = '46-22'
null
general
ริชมอนด์เล่นเป็นเจ้าบ้านที่ไหน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Where did Richmond play as the home team?It is not neccessary to use all the tables.
table_name_43: venue [ VARCHAR] home_team [ VARCHAR]
SELECT venue FROM table_name_43 WHERE home_team = "richmond"
null
general
มีกี่เสมอกันที่มีไทเรนดาร์ราทางตะวันตกเฉียงใต้ของไทเรนดาร์รา และชนะน้อยกว่า 10 ครั้ง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many Draws have a South West DFL of tyrendarra, and less than 10 wins?It is not neccessary to use all the tables.
table_name_83: draws [ INTEGER] south_west_dfl [ VARCHAR] wins [ VARCHAR]
SELECT SUM(draws) FROM table_name_83 WHERE south_west_dfl = "tyrendarra" AND wins < 10
null
general
อนุมัติอัตราการแก้ไขของผู้ใช้ที่แนะนำ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Approve Rate on Suggested User's Edits.It is not neccessary to use all the tables.
SuggestedEditVotes: Id [ number] SuggestedEditId [ number] UserId [ number] VoteTypeId [ number] CreationDate [ time] TargetUserId [ number] TargetRepChange [ number]
SELECT CAST(COUNT(CASE WHEN NOT ApprovalDate IS NULL THEN 1 END) AS FLOAT) / COUNT(CASE WHEN NOT ApprovalDate IS NULL OR NOT RejectionDate IS NULL THEN 1 END) AS "Approval Rate", CAST(COUNT(CASE WHEN v.VoteTypeId = 2 THEN 1 END) AS FLOAT) / COUNT(DISTINCT v.Id) AS "Approval Vote Rate" FROM SuggestedEdits AS e LEFT JOIN SuggestedEditVotes AS v ON e.Id = v.SuggestedEditId WHERE e.OwnerUserId = @MyUserID
null
general
วันพักรักษาตัวในโรงพยาบาลและประเภทยาของวิชา id 52012 คือวันที่เท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the days of hospital stay and drug type of subject id 52012?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT demographic.days_stay, prescriptions.drug_type FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "52012"
null
general
ตำแหน่งใดมี 13 ชั้นและมีอันดับมากกว่า 12 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which location has 13 floors and a rank greater than 12?It is not neccessary to use all the tables.
table_8129: "Rank" [ real] "Building" [ text] "Location" [ text] "Height" [ text] "Floors" [ real]
SELECT "Location" FROM table_8129 WHERE "Rank" > '12' AND "Floors" = '13'
null
general
คำนวณอายุสูงสุดของผู้ป่วยที่เข้ารับการรักษาในโรงพยาบาลแบบเลือกที่เข้ารับการรักษาในโรงพยาบาลเป็นเวลา 17 วัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
calculate the maximum age of elective hospital admission patients who were hospitalized for 17 days.It is not neccessary to use all the tables.
procedures: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay = "17"
null
general
ฉันต้องการหมายเลขเที่ยวบินของเที่ยวบินที่ออกจากคลีฟแลนด์และมาถึงดัลลาซี ไม่จำเป็นต้องใช้ตารางทั้งหมด
i need the flight numbers of flights leaving from CLEVELAND and arriving at DALLASIt is not neccessary to use all the tables.
code_description: code [ varchar] description [ text]
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CLEVELAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
null
general
จำนวนผู้เข้าร่วมต่ำสุดในปี 2010 คือเท่าใดเมื่อมีผู้เข้าร่วม 0 คนในปี 2012?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the lowest number of participants in 2010 when there were 0 participants in 2012?It is not neccessary to use all the tables.
table_name_76: Id [ VARCHAR]
SELECT MIN(2010) FROM table_name_76 WHERE 2012 < 0
null
general
แต้มสูงสุดเมื่อเล่นเกิน 14 คืออะไร? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
what is the highest drawn when played is more than 14?It is not neccessary to use all the tables.
table_45413: "Position" [ real] "Name" [ text] "Played" [ real] "Drawn" [ real] "Lost" [ real] "Points" [ real]
SELECT MAX("Drawn") FROM table_45413 WHERE "Played" > '14'
null
general
ยี่ห้อใดมี Pos เท่ากับ 3?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Make has a Pos of 3?It is not neccessary to use all the tables.
table_name_58: make [ VARCHAR] pos [ VARCHAR]
SELECT make FROM table_name_58 WHERE pos = 3
null
general
สถานะการจองแต่ละสถานะมีการจองจำนวนเท่าใด ระบุรหัสสถานะการจองและจำนวนการจองที่เกี่ยวข้อง แสดงแผนภูมิวงกลม ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many bookings does each booking status have? List the booking status code and the number of corresponding bookings. Show a pie chart.It is not neccessary to use all the tables.
Apartments: apt_id [ INTEGER] building_id [ INTEGER] apt_type_code [ CHAR(15)] apt_number [ CHAR(10)] bathroom_count [ INTEGER] bedroom_count [ INTEGER] room_count [ CHAR(5)]
SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code
null
general
แสดงหมายเลขพนักงาน ชื่อ (ชื่อและนามสกุล) และเงินเดือนของพนักงานทุกคนที่มีรายได้มากกว่าเงินเดือนเฉลี่ย และผู้ที่ทำงานในแผนกที่มีพนักงานคนใดคนหนึ่งมีตัว 'J' อยู่ในชื่อ ไม่จำเป็นต้อง ใช้ตารางทั้งหมด
display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.It is not neccessary to use all the tables.
employees: employee_id [ VARCHAR] first_name [ VARCHAR] last_name [ VARCHAR] salary [ INTEGER] department_id [ VARCHAR]
SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%')
null
general
คนไข้ที่เข้ารับการรักษาแผลปิดล่าช้าในปี 2103 จำนวนเท่าใดในปี 2103?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the number of patients who had a delayed clos abd wound procedure in 2103?It is not neccessary to use all the tables.
transfers: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] eventtype [ text] careunit [ text] wardid [ number] intime [ time] outtime [ time]
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'delayed clos abd wound') AND STRFTIME('%y', procedures_icd.charttime) = '2103')
null
general
รอบที่ 5-6 ใช้เครื่องอะไรครับ?ไม่จำเป็นต้องใช้ทุกโต๊ะครับ
What's the engine used for rounds 5-6?It is not neccessary to use all the tables.
table_57352: "Constructor" [ text] "Chassis" [ text] "Engine" [ text] "Tyres" [ text] "Driver" [ text] "Rounds" [ text]
SELECT "Engine" FROM table_57352 WHERE "Rounds" = '5-6'
null
general
มีผู้ป่วยกี่รายที่มีสถานภาพสมรสและวินิจฉัยชื่อยาวว่าเป็นการผ่าตัดโดยใช้อุปกรณ์ภายในเทียม ทำให้เกิดปฏิกิริยาผิดปกติของผู้ป่วยหรือเกิดภาวะแทรกซ้อนในภายหลังโดยไม่กล่าวถึงเหตุร้ายในขณะทำการผ่าตัด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients whose marital status is married and diagnoses long title is surgical operation with implant of artificial internal device causing abnormal patient reaction, or later complication,without mention of misadventure at time of operation?It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.long_title = "Surgical operation with implant of artificial internal device causing abnormal patient reaction, or later complication,without mention of misadventure at time of operation"
null
general
สำหรับพนักงานที่ไม่ได้ทำงานในแผนกที่มีผู้จัดการที่มีรหัสระหว่าง 100 ถึง 200 ให้เปรียบเทียบเงินเดือนกับนามสกุลโดยใช้แผนภูมิแท่ง แถบรายการตามลำดับจากน้อยไปมาก โปรดใช้ตารางทั้งหมดไม่จำเป็นที่จะต้องใช้
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about salary over the last_name by a bar chart, list bar in ascending order please.It is not neccessary to use all the tables.
departments: DEPARTMENT_ID [ decimal(40)] DEPARTMENT_NAME [ varchar(30)] MANAGER_ID [ decimal(60)] LOCATION_ID [ decimal(40)]
SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME
null
general
ผู้ป่วยอายุต่ำกว่า 79 ปี มีเนบเป็นเส้นทางยากี่ราย ไม่จำเป็นต้องใช้ทุกตาราง
how many patients aged below 79 years had neb as the drug route?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "79" AND prescriptions.route = "NEB"
null
general
ต่อวันในปี 2554 ไม่จำเป็นต้องใช้ทุกตาราง
s per day in 2011It is not neccessary to use all the tables.
CloseReasonTypes: Id [ number] Name [ text] Description [ text]
SELECT YEAR(CreationDate) AS Year, MONTH(CreationDate) AS Month, COUNT(CreationDate) AS Count FROM Posts WHERE PostTypeId = 1 GROUP BY MONTH(CreationDate), YEAR(CreationDate) ORDER BY YEAR(CreationDate), MONTH(CreationDate)
null
general
วันที่ 1 กันยายน กี่โมง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the time on September 1?It is not neccessary to use all the tables.
table_14878: "Date" [ text] "Location" [ text] "Score" [ text] "Winner" [ text]
SELECT "Local Time" FROM table_14878 WHERE "Date" = 'september 1'
null
general
ฝ่ายตรงข้ามคนใดมีผู้เข้าร่วม 24,791 คน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Opponent has an Attendance of 24,791?It is not neccessary to use all the tables.
table_name_94: opponent [ VARCHAR] attendance [ VARCHAR]
SELECT opponent FROM table_name_94 WHERE attendance = "24,791"
null
general
เลกที่ 2 เมื่อซานเปโดรเป็นผู้ชนะคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the 2nd leg when San Pedro was the winner?It is not neccessary to use all the tables.
table_name_92: winner [ VARCHAR]
SELECT 2 AS nd_leg FROM table_name_92 WHERE winner = "san pedro"
null
general
ขนาดการลงทะเบียนเฉลี่ยของมหาวิทยาลัยที่ก่อตั้งก่อนปี 1850 คือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are the average enrollment size of the universities that are founded before 1850?It is not neccessary to use all the tables.
basketball_match: team_id [ number] school_id [ number] team_name [ text] acc_regular_season [ text] acc_percent [ text] acc_home [ text] acc_road [ text] all_games [ text] all_games_percent [ number] all_home [ text] all_road [ text] all_neutral [ text]
SELECT AVG(enrollment) FROM university WHERE founded < 1850
null
general
สถานที่ที่มีวันที่ 14 เมษายน 2545 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Venue with a Date with 14 april 2002?It is not neccessary to use all the tables.
table_77999: "Round" [ text] "Date" [ text] "Opponent" [ text] "Venue" [ text] "Result" [ text]
SELECT "Venue" FROM table_77999 WHERE "Date" = '14 april 2002'
null
general
มีผู้ป่วยกี่คนที่ต้องอยู่ในโรงพยาบาลนานกว่า 11 วันที่มีน้ำไขสันหลัง (csf) เป็นของเหลวทดสอบในห้องปฏิบัติการ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients who stayed in the hospital for more than 11 days had cerebrospinal fluid (csf) as their lab test fluid?It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "11" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
null
general
ส่งกลับแผนภูมิแท่งเกี่ยวกับการแจกแจง dept_name และค่าเฉลี่ยของเงินเดือน และจัดกลุ่มตามแอตทริบิวต์ dept_name ไม่จำเป็นต้องใช้ตารางทั้งหมด
Return a bar chart about the distribution of dept_name and the average of salary , and group by attribute dept_name.It is not neccessary to use all the tables.
instructor: ID [ varchar(5)] name [ varchar(20)] dept_name [ varchar(20)] salary [ numeric(82)]
SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY salary
null
general