Unnamed: 0
int64 0
3k
| text
stringlengths 74
2.32k
|
---|---|
1,400 | ###HUMAN: What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?, ###ASSISTANT: SELECT "Size (MW)" FROM table_39540 WHERE "Turbines" > '19' AND "Turbine Vendor" = 'enercon' AND "County" = 'wexford' |
1,401 | ###HUMAN: What is the maximum 2006 census population of LGA name Opobo/Nkoro?, ###ASSISTANT: SELECT MAX("Census 2006 population") FROM table_23155 WHERE "LGA Name" = 'Opobo/Nkoro' |
1,402 | ###HUMAN: Which Jushin Liger has a Gran Hamada of kendo kashin?, ###ASSISTANT: SELECT jushin_liger FROM table_name_60 WHERE gran_hamada = "kendo kashin" |
1,403 | ###HUMAN: What engine has an output of ps (kw; hp) @4700 rpm?, ###ASSISTANT: SELECT "Engine" FROM table_60251 WHERE "Output" = 'ps (kw; hp) @4700 rpm' |
1,404 | ###HUMAN: Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson?, ###ASSISTANT: SELECT "HP Winning Team" FROM table_31014 WHERE "EP Winning Team" = 'Hans Zereis' AND "GM Winning Team" = 'Charles Gibson' |
1,405 | ###HUMAN: What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?, ###ASSISTANT: SELECT AVG(extra_points) FROM table_name_7 WHERE player = "james lawrence" AND touchdowns < 1 |
1,406 | ###HUMAN: who is the only player to have denmark listed as their nationality ?, ###ASSISTANT: SELECT "player" FROM table_203_305 WHERE "nationality" = 'denmark' |
1,407 | ###HUMAN: count the number of dead patients who were diagnosed with noninf gastroenterit nec., ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Noninf gastroenterit NEC" |
1,408 | ###HUMAN: What year and where was the tournament when fan ying won the womens singles?, ###ASSISTANT: SELECT year_location FROM table_28138035_26 WHERE womens_singles = "Fan Ying" |
1,409 | ###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of phone_number and employee_id , show X-axis in desc order please., ###ASSISTANT: SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC |
1,410 | ###HUMAN: What label shows an Album of cover version v?, ###ASSISTANT: SELECT label FROM table_name_24 WHERE album = "cover version v" |
1,411 | ###HUMAN: What genre was Music in the Air?, ###ASSISTANT: SELECT genre FROM table_name_7 WHERE title = "music in the air" |
1,412 | ###HUMAN: In how many counties di McCain win 41.62% of the vote?, ###ASSISTANT: SELECT COUNT("County") FROM table_23740 WHERE "McCain%" = '41.62%' |
1,413 | ###HUMAN: What is the date of appointment for outgoing manager Campbell Money, ###ASSISTANT: SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money" |
1,414 | ###HUMAN: What year was the winners vote 55.99%?, ###ASSISTANT: SELECT MIN("Year") FROM table_1808 WHERE "Winners % votes" = '55.99%' |
1,415 | ###HUMAN: What is the lowest number of points of the team with 2 losses and a lower than 1 position?, ###ASSISTANT: SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1 |
1,416 | ###HUMAN: What is the away team's score when the Home team score is 14.18 (102)?, ###ASSISTANT: SELECT "Away team score" FROM table_57966 WHERE "Home team score" = '14.18 (102)' |
1,417 | ###HUMAN: what label was italy on ?, ###ASSISTANT: SELECT "label" FROM table_204_966 WHERE "region" = 'italy' |
1,418 | ###HUMAN: What national has 4.45 for o and 4.55 for xo?, ###ASSISTANT: SELECT "Nationality" FROM table_65762 WHERE "4.45" = 'o' AND "4.55" = 'xo' |
1,419 | ###HUMAN: Return the average money requested across all entrepreneurs., ###ASSISTANT: SELECT AVG(money_requested) FROM entrepreneur |
1,420 | ###HUMAN: What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?, ###ASSISTANT: SELECT "Core clock ( MHz )" FROM table_28157 WHERE "Memory bandwidth ( GB/s )" = '21.3' |
1,421 | ###HUMAN: Who the GM winning team when the EP winning team was #37 Porsche?, ###ASSISTANT: SELECT "GM Winning Team" FROM table_31012 WHERE "EP Winning Team" = '#37 Porsche' |
1,422 | ###HUMAN: What is their position when the b score is more than 8.975 for Ekaterina Kramarenko ( rus )?, ###ASSISTANT: SELECT position FROM table_name_57 WHERE b_score > 8.975 AND gymnast = "ekaterina kramarenko ( rus )" |
1,423 | ###HUMAN: known renal disease with a baseline serum creatinine > 1.5 mg / dl, ###ASSISTANT: SELECT * FROM table_train_157 WHERE renal_disease = 1 AND serum_creatinine > 1.5 |
1,424 | ###HUMAN: List the dates and vote percents of elections., ###ASSISTANT: SELECT Date, Vote_Percent FROM election |
1,425 | ###HUMAN: which date had the least attendance ?, ###ASSISTANT: SELECT "date" FROM table_204_123 ORDER BY "attendance" LIMIT 1 |
1,426 | ###HUMAN: What enrollement would you expect if you were attending the university in St. Louis?, ###ASSISTANT: SELECT "Enrollment" FROM table_2319 WHERE "Location(s)" = 'St. Louis' |
1,427 | ###HUMAN: what is the total number of painters who scored 12 in composition ?, ###ASSISTANT: SELECT COUNT("painter") FROM table_203_186 WHERE "composition" = 12 |
1,428 | ###HUMAN: Who were the away teams when the competition was the 1st republic of srpska football day and the home team was u 14 republic of srpska?, ###ASSISTANT: SELECT away_team FROM table_29728596_2 WHERE competition = "1st ``Republic of Srpska Football Day``" AND home_team = "U 14 Republic of Srpska" |
1,429 | ###HUMAN: Which chassis did fondmetal f1 spa use after 1990?, ###ASSISTANT: SELECT chassis FROM table_name_32 WHERE year > 1990 AND entrant = "fondmetal f1 spa" |
1,430 | ###HUMAN: what is the number of patients who are in ward 650 until 2104?, ###ASSISTANT: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 650 AND STRFTIME('%y', patient.unitadmittime) <= '2104' |
1,431 | ###HUMAN: How far is the olbia to sassari route?, ###ASSISTANT: SELECT "Distance" FROM table_10194 WHERE "Course" = 'olbia to sassari' |
1,432 | ###HUMAN: What competition was held 1 March 1909?, ###ASSISTANT: SELECT "Competition" FROM table_4377 WHERE "Date" = '1 march 1909' |
1,433 | ###HUMAN: can you find the top entered service ?, ###ASSISTANT: SELECT "entered service" FROM table_204_882 WHERE id = 1 |
1,434 | ###HUMAN: provide the number of patients whose ethnicity is black/cape verdean and age is less than 68?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.age < "68" |
1,435 | ###HUMAN: Name the 2011 when 2010 is 2r, ###ASSISTANT: SELECT "2011" FROM table_80361 WHERE "2010" = '2r' |
1,436 | ###HUMAN: What was the title of series number 56?, ###ASSISTANT: SELECT title FROM table_2468961_4 WHERE no_in_series = 56 |
1,437 | ###HUMAN: What was the championship during the match with the opponent of richard fromberg?, ###ASSISTANT: SELECT "Championship" FROM table_9055 WHERE "Opponent" = 'richard fromberg' |
1,438 | ###HUMAN: Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0, ###ASSISTANT: SELECT MAX("Revenue ($M)") FROM table_68346 WHERE "Operating income ($m)" > '27' AND "Team" = 'hamburg' AND "Debt as % of value" < '0' |
1,439 | ###HUMAN: What is the result for game 5?, ###ASSISTANT: SELECT "Result" FROM table_9742 WHERE "Game" = 'game 5' |
1,440 | ###HUMAN: count the number of patients who were diagnosed with oth nonauto hem anemia and did not come back to the hospital within 2 months in 2103., ###ASSISTANT: SELECT (SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'oth nonauto hem anemia') AND STRFTIME('%y', diagnoses_icd.charttime) = '2103') AS t1) - (SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'oth nonauto hem anemia') AND STRFTIME('%y', diagnoses_icd.charttime) = '2103') AS t2 JOIN admissions ON t2.subject_id = admissions.subject_id WHERE t2.charttime < admissions.admittime AND STRFTIME('%y', admissions.admittime) = '2103' AND DATETIME(admissions.admittime) BETWEEN DATETIME(t2.charttime) AND DATETIME(t2.charttime, '+2 month')) |
1,441 | ###HUMAN: What school has the Lancers as their mascot?, ###ASSISTANT: SELECT "Location" FROM table_65693 WHERE "Mascot" = 'lancers' |
1,442 | ###HUMAN: What was the tie number for the game with an away team of Hartlepool United?, ###ASSISTANT: SELECT "Tie no" FROM table_60420 WHERE "Away team" = 'hartlepool united' |
1,443 | ###HUMAN: count the number of patients who had received vitamin k within 2 months after being diagnosed with bone fracture(s) - left lower extremity until 3 years ago., ###ASSISTANT: SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bone fracture(s) - left lower extremity' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vitamin k' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t2 WHERE t1.diagnosistime < t2.treatmenttime AND DATETIME(t2.treatmenttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month') |
1,444 | ###HUMAN: What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?, ###ASSISTANT: SELECT round FROM table_name_92 WHERE race = "int. adac-preis der tourenwagen von sachsen-anhalt" |
1,445 | ###HUMAN: total number of venues that hosted first and second round games ., ###ASSISTANT: SELECT COUNT("venue") FROM table_203_606 WHERE "rnd" = 1 OR "rnd" = 2 |
1,446 | ###HUMAN: Which constructor has laps less than 100 and a time/retired +10 laps?, ###ASSISTANT: SELECT "Constructor" FROM table_54219 WHERE "Laps" < '100' AND "Time/Retired" = '+10 laps' |
1,447 | ###HUMAN: what was the first time that patient 003-83 had an intake since 995 days ago?, ###ASSISTANT: SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-83')) AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-995 day') ORDER BY intakeoutput.intakeoutputtime LIMIT 1 |
1,448 | ###HUMAN: What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit?, ###ASSISTANT: SELECT winning_team FROM table_22083044_2 WHERE circuit = "Queensland Raceway" AND fastest_lap = "Tim Macrow" |
1,449 | ###HUMAN: since 3 years ago, count the number of drugs that patient 19428 had been prescribed., ###ASSISTANT: SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-3 year') |
1,450 | ###HUMAN: Tell me the cast for b. reeves eason and joseph kane, ###ASSISTANT: SELECT "Cast" FROM table_57614 WHERE "Director" = 'b. reeves eason and joseph kane' |
1,451 | ###HUMAN: Which Captain 2 has a Result of final?, ###ASSISTANT: SELECT "Captain 2" FROM table_76555 WHERE "Result" = 'final' |
1,452 | ###HUMAN: when was the last time patient 85895 was prescribed a drug the previous month?, ###ASSISTANT: SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85895) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY prescriptions.startdate DESC LIMIT 1 |
1,453 | ###HUMAN: What was the record on April 1?, ###ASSISTANT: SELECT "Record" FROM table_33986 WHERE "Date" = 'april 1' |
1,454 | ###HUMAN: What is the entered service date for serial number 85-1222?, ###ASSISTANT: SELECT entered_service FROM table_name_29 WHERE serial_no = "85-1222" |
1,455 | ###HUMAN: How many points does Swedish America's Cup Challenge have for rr1?, ###ASSISTANT: SELECT COUNT(rr1_pts) FROM table_21515673_2 WHERE team_name = "Swedish America's Cup Challenge" |
1,456 | ###HUMAN: Who is teaching PreMajor classes in the Winter term ?, ###ASSISTANT: SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE program_course.category LIKE '%PreMajor%' AND semester.semester = 'Winter' AND semester.year = 2017 |
1,457 | ###HUMAN: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and commission_pct , and list by the JOB_ID in asc., ###ASSISTANT: SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID |
1,458 | ###HUMAN: What is the lowest attendance for a stadium that has an average smaller than 307?, ###ASSISTANT: SELECT AVG(lowest) FROM table_name_24 WHERE average < 307 |
1,459 | ###HUMAN: How many people are under 40 for each gender Plot them as bar chart, list x axis in asc order., ###ASSISTANT: SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY gender |
1,460 | ###HUMAN: When 0-1 is the series who has the highest amount of assists?, ###ASSISTANT: SELECT high_assists FROM table_22883210_11 WHERE series = "0-1" |
1,461 | ###HUMAN: What are the first names of all students taking accoutning and Computer Information Systems classes?, ###ASSISTANT: SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN class AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN class AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' |
1,462 | ###HUMAN: how many months had more than 55 favor votes ?, ###ASSISTANT: SELECT COUNT("month") FROM table_203_43 WHERE "favor" > 55 |
1,463 | ###HUMAN: What was the score for south melbourne at home?, ###ASSISTANT: SELECT "Home team score" FROM table_78401 WHERE "Home team" = 'south melbourne' |
1,464 | ###HUMAN: Tell me the time of admission and primary disease for the patient with patient id 53707., ###ASSISTANT: SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.subject_id = "53707" |
1,465 | ###HUMAN: previous gastrointestinal bleeding within 6 months, bleeding diathesis, platelet count < 100000 / mm3 or hemoglobin < 10 g / dl, ###ASSISTANT: SELECT * FROM table_test_24 WHERE gastrointestinal_disease = 1 OR bleeding = 1 OR platelet_count < 100000 OR hemoglobin_a1c_hba1c < 10 |
1,466 | ###HUMAN: how many games were attended by at least 8,000 people ?, ###ASSISTANT: SELECT COUNT(*) FROM table_204_971 WHERE "attendance" >= 8000 |
1,467 | ###HUMAN: For all storms with at least 1 death, compare the total number of deaths by dates_active attribute, sort by the names from low to high., ###ASSISTANT: SELECT Dates_active, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Dates_active |
1,468 | ###HUMAN: Name the most time for katrin mei ner and rank less than 5, ###ASSISTANT: SELECT MAX("Time") FROM table_68512 WHERE "Name" = 'katrin meißner' AND "Rank" < '5' |
1,469 | ###HUMAN: In the year 2009 who was the under-13?, ###ASSISTANT: SELECT under_13 FROM table_26368963_1 WHERE year = 2009 |
1,470 | ###HUMAN: Name the highest Horizontal Bar which is in france and Rings smaller than 58.975?, ###ASSISTANT: SELECT MAX(horizontal_bar) FROM table_name_4 WHERE country = "france" AND rings < 58.975 |
1,471 | ###HUMAN: what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?, ###ASSISTANT: SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = 3801985060 |
1,472 | ###HUMAN: Recent bounties with a given tag., ###ASSISTANT: SELECT p.Id AS "post_link", p.Score AS "Score", p.AnswerCount AS "Answers", bs.BountyAmount AS "Amount", p.Tags, CAST(TIME_TO_STR(bs.CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(10)) AS "Bounty Start" FROM Posts AS p INNER JOIN Votes AS bs ON p.Id = bs.PostId AND bs.VoteTypeId = 8 AND p.Tags LIKE '%<##Tagname##>%' ORDER BY bs.CreationDate DESC LIMIT 100 |
1,473 | ###HUMAN: Show the names of climbers and the heights of mountains they climb Show bar chart, and display in desc by the bars please., ###ASSISTANT: SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Name DESC |
1,474 | ###HUMAN: How many strokes for arnold palmer with a to par of greater than 9?, ###ASSISTANT: SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer" |
1,475 | ###HUMAN: what is a flight that goes from BALTIMORE to SAN FRANCISCO and arrives at SAN FRANCISCO at 2000 on a FRIDAY, ###ASSISTANT: 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, flight WHERE ((((((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time) AND days.day_name = 'THURSDAY' AND flight.flight_days = days.days_code) OR (days.day_name = 'FRIDAY' AND flight.flight_days = days.days_code AND NOT ((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time))) AND flight.arrival_time = 2000) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code |
1,476 | ###HUMAN: What were the starts when the points dropped 18?, ###ASSISTANT: SELECT "Races (Starts)" FROM table_73703 WHERE "Points (Dropped points)" = '18' |
1,477 | ###HUMAN: Who was Henry Hyde's opponent in the race?, ###ASSISTANT: SELECT opponent FROM table_1341568_14 WHERE incumbent = "Henry Hyde" |
1,478 | ###HUMAN: Draw a bar chart about the distribution of All_Road and School_ID , order by the Y-axis from low to high please., ###ASSISTANT: SELECT All_Road, School_ID FROM basketball_match ORDER BY School_ID |
1,479 | ###HUMAN: which papers used NELL ?, ###ASSISTANT: SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname = 'NELL' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid |
1,480 | ###HUMAN: Which tournament has a Runner(s)-up of Gary McCord?, ###ASSISTANT: SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord" |
1,481 | ###HUMAN: when did patient 021-221706 come to the hospital for the last time until 4 years ago via an floor?, ###ASSISTANT: SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '021-221706' AND patient.hospitaladmitsource = 'floor' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 |
1,482 | ###HUMAN: What's the overall record of the team with 4-3 road record?, ###ASSISTANT: SELECT overall_record FROM table_22993636_2 WHERE road_record = "4-3" |
1,483 | ###HUMAN: Which person teaches the easiest course in regards to ULCS ?, ###ASSISTANT: SELECT DISTINCT instructor.name, program_course.workload FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%ULCS%' AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%ULCS%') |
1,484 | ###HUMAN: who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge?, ###ASSISTANT: SELECT "Constructor" FROM table_54042 WHERE "Tyre" = 'd' AND "Engine" = 'talbot 23cv 4.5 l6' AND "Chassis" = 'talbot-lago t26c' AND "Entrant" = 'ecurie belge' |
1,485 | ###HUMAN: What is Place, when To Par is '5', and when Score is '72-73=145'?, ###ASSISTANT: SELECT "Place" FROM table_47828 WHERE "To par" = '5' AND "Score" = '72-73=145' |
1,486 | ###HUMAN: When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?, ###ASSISTANT: SELECT "Term end" FROM table_67462 WHERE "Party" = 'national religious party' AND "Minister" = 'shlomo-yisrael ben-meir' |
1,487 | ###HUMAN: List the names of editors in ascending order of age., ###ASSISTANT: SELECT Name FROM editor ORDER BY Age |
1,488 | ###HUMAN: what was the last time that patient 009-13409 was prescribed for a drug until 48 months ago?, ###ASSISTANT: SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-13409')) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-48 month') ORDER BY medication.drugstarttime DESC LIMIT 1 |
1,489 | ###HUMAN: what's the minimum cost of a hospital that includes a cortisol lab test until 4 years ago?, ###ASSISTANT: SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'cortisol')) AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY cost.patienthealthsystemstayid) AS t1 |
1,490 | ###HUMAN: What are the different budget type codes, and how many documents are there for each. Show a pie chart., ###ASSISTANT: SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code |
1,491 | ###HUMAN: In heat rank 7, what is the sum of lanes?, ###ASSISTANT: SELECT SUM("Lane") FROM table_31969 WHERE "Heat Rank" = '7' |
1,492 | ###HUMAN: What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner?, ###ASSISTANT: SELECT "City / State" FROM table_51037 WHERE "Winner" = 'russell ingall larry perkins' |
1,493 | ###HUMAN: When did construction start on the Power station with a net MWE of 1190, ###ASSISTANT: SELECT MIN(construction_started) FROM table_143352_1 WHERE net_mwe = 1190 |
1,494 | ###HUMAN: Who are the directors of the episode in series # 54?, ###ASSISTANT: SELECT director FROM table_26866233_1 WHERE series__number = 54 |
1,495 | ###HUMAN: What is the Location, when the Score is 38-29?, ###ASSISTANT: SELECT "Location" FROM table_71546 WHERE "Score" = '38-29' |
1,496 | ###HUMAN: Which week did the Baltimore Ravens play at home ?, ###ASSISTANT: SELECT week FROM table_name_79 WHERE host_team = "baltimore ravens" |
1,497 | ###HUMAN: please show me all airlines with SUNDAY flights from PHILADELPHIA to DENVER, ###ASSISTANT: SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND days.day_name = 'SUNDAY' AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code |
1,498 | ###HUMAN: count of unique roles, ###ASSISTANT: SELECT COUNT("role") FROM table_203_756 |
1,499 | ###HUMAN: what is the number of patients whose primary disease is brain mass;intracranial hemorrhage and procedure icd9 code is 8856?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND procedures.icd9_code = "8856" |