Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
600
###HUMAN: what is the variation of patient 006-181433's weight second measured on the current hospital visit compared to the first value measured on the current hospital visit?, ###ASSISTANT: SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-181433' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) - (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-181433' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1)
601
###HUMAN: how many patients with death status 0 had procedure icd9 code as 5011?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.icd9_code = "5011"
602
###HUMAN: For those records from the products and each product's manufacturer, find headquarter and the amount of headquarter , and group by attribute headquarter, and visualize them by a bar chart, and I want to display x axis in descending order please., ###ASSISTANT: SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC
603
###HUMAN: What is To Par, when Place is 3?, ###ASSISTANT: SELECT to_par FROM table_name_43 WHERE place = "3"
604
###HUMAN: what age does patient 71192 have on the last hospital encounter?, ###ASSISTANT: SELECT admissions.age FROM admissions WHERE admissions.subject_id = 71192 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
605
###HUMAN: On what date was god & guns released?, ###ASSISTANT: SELECT date_of_release FROM table_name_15 WHERE title = "god & guns"
606
###HUMAN: From 11:00 to 4:00 , are there ECON 442 sections ?, ###ASSISTANT: SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '4:00' AND course_offering.start_time >= '11:00' AND course.course_id = course_offering.course_id AND course.department = 'ECON' AND course.number = 442 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
607
###HUMAN: What's the 2nd leg result in the round where team #1 is Iraklis?, ###ASSISTANT: SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis"
608
###HUMAN: what number of publications are indicated as being in print ?, ###ASSISTANT: SELECT COUNT("publication") FROM table_204_692 WHERE "review" = 'print'
609
###HUMAN: had patient 005-80291 been prescribed 30 ml cup : alum & mag hydroxide-simeth 200-200-20 mg/5ml po susp, potassium chloride 2 meq/ml iv soln or ondansetron hcl 4 mg/2ml ij soln since 2105?, ###ASSISTANT: SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-80291')) AND medication.drugname IN ('30 ml cup : alum & mag hydroxide-simeth 200-200-20 mg/5ml po susp', 'potassium chloride 2 meq/ml iv soln', 'ondansetron hcl 4 mg/2ml ij soln') AND STRFTIME('%y', medication.drugstarttime) >= '2105'
610
###HUMAN: Give me the comparison about School_ID over the ACC_Road , and group by attribute All_Home, and sort from low to high by the y axis., ###ASSISTANT: SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID
611
###HUMAN: When 228 is the lap and chip ganassi racing is the team what is the race time?, ###ASSISTANT: SELECT "Race Time" FROM table_21885 WHERE "Team" = 'Chip Ganassi Racing' AND "Laps" = '228'
612
###HUMAN: Which song was picked that was originally performed by Marisa Monte?, ###ASSISTANT: SELECT "Song Choice" FROM table_29668 WHERE "Original Artist" = 'Marisa Monte'
613
###HUMAN: Scores of users in specific tag., ###ASSISTANT: WITH scorestags_cte AS (SELECT pt.TagId AS TagId, p.OwnerUserId AS uid, p.OwnerDisplayName AS udn, SUM(p.Score) AS sco, COUNT(p.Id) AS num FROM Posts AS p INNER JOIN Posts AS q ON q.Id = p.ParentId INNER JOIN PostTags AS pt ON q.Id = pt.PostId WHERE (p.CommunityOwnedDate IS NULL) GROUP BY pt.TagId, p.OwnerUserId, p.OwnerDisplayName) SELECT CAST('##MinScore##' AS INT), t.TagName, s.uid AS "user_link", s.udn, s.sco AS "score", s.num AS "count" FROM scorestags_cte AS s INNER JOIN Tags AS t ON s.TagId = t.Id WHERE t.TagName = '##TagName##' AND s.sco >= CAST('##MinScore##' AS INT) ORDER BY s.sco DESC
614
###HUMAN: What is the population where the median household income is $87,832 and there are fewer than 64,886 households?, ###ASSISTANT: SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886
615
###HUMAN: provide the number of patients whose procedure icd9 code is 5771 and drug type is main?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5771" AND prescriptions.drug_type = "MAIN"
616
###HUMAN: What is the rank of the player who got 58179 in yardage?, ###ASSISTANT: SELECT rank FROM table_18686317_1 WHERE yardage = 58179
617
###HUMAN: What is the name of the course that has the most student enrollment?, ###ASSISTANT: SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1
618
###HUMAN: What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?, ###ASSISTANT: SELECT MAX("Wins") FROM table_39196 WHERE "Season" < '2007' AND "Team" = 'silverstone motorsport academy'
619
###HUMAN: What away team has 7 as the tie no.?, ###ASSISTANT: SELECT away_team FROM table_name_38 WHERE tie_no = "7"
620
###HUMAN: male or female ages >= 3.5 years and <= 18 years on day of sepsis recognition, ###ASSISTANT: SELECT * FROM table_train_71 WHERE (gender = 'male' OR gender = 'female') AND (age >= 3.5 AND age <= 18) AND sepsis = 1
621
###HUMAN: Which year has a Round of 17?, ###ASSISTANT: SELECT "Year" FROM table_67049 WHERE "Round" = '17'
622
###HUMAN: how many license plates were issued before 1960 ?, ###ASSISTANT: SELECT COUNT(*) FROM table_203_379 WHERE "first issued" < 1960
623
###HUMAN: when was patient 035-24054's ventric #1 output for the last time on the current intensive care unit visit?, ###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 = '035-24054') AND patient.unitdischargetime IS NULL) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'ventric #1' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1
624
###HUMAN: Which runner-up placed in a year prior to 2006 and whose Champion was Elon?, ###ASSISTANT: SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon"
625
###HUMAN: Which Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0?, ###ASSISTANT: SELECT MIN(touchdowns) FROM table_name_81 WHERE points = 5 AND field_goals > 0
626
###HUMAN: give me the number of patients whose admission location is transfer from hosp/extram and procedure icd9 code is 5781?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.icd9_code = "5781"
627
###HUMAN: i'm interested in a flight from DALLAS to WASHINGTON and i'm also interested in going to BALTIMORE, ###ASSISTANT: SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight WHERE ((flight.to_airport = AIRPORT_SERVICE_1.airport_code AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON') OR (flight.to_airport = AIRPORT_SERVICE_2.airport_code AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'BALTIMORE')) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
628
###HUMAN: what is religion of subject id 26746?, ###ASSISTANT: SELECT demographic.religion FROM demographic WHERE demographic.subject_id = "26746"
629
###HUMAN: who is the constructor when the laps is more than 72 and the driver is eddie irvine?, ###ASSISTANT: SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine"
630
###HUMAN: What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold?, ###ASSISTANT: SELECT AVG(total) FROM table_name_88 WHERE bronze < 34 AND gold < 14 AND silver < 0
631
###HUMAN: What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954?, ###ASSISTANT: SELECT MAX("Points") FROM table_15405 WHERE "Chassis" = 'gordini t16' AND "Year" < '1954'
632
###HUMAN: Who wrote the episodes with 7.70 u.s. viewers (million) ?, ###ASSISTANT: SELECT "Written by" FROM table_29318 WHERE "U.S. viewers (million)" = '7.70'
633
###HUMAN: calculate the total number of patients diagnosed with other b-complex deficiencies, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Other B-complex deficiencies"
634
###HUMAN: What super g was before 1998, had 2 giant slaloms and 24 downhills?, ###ASSISTANT: SELECT "Super G" FROM table_68185 WHERE "Season" < '1998' AND "Giant Slalom" = '2' AND "Downhill" = '24'
635
###HUMAN: Which pick's round was 5 when Kellen Davis was a player?, ###ASSISTANT: SELECT pick FROM table_name_40 WHERE round = "5" AND player = "kellen davis"
636
###HUMAN: What is the name of the episode that was written by Michael Rauch?, ###ASSISTANT: SELECT title FROM table_23117208_5 WHERE written_by = "Michael Rauch"
637
###HUMAN: What was the away team score when the home team was Carlton?, ###ASSISTANT: SELECT "Away team score" FROM table_32413 WHERE "Home team" = 'carlton'
638
###HUMAN: What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?, ###ASSISTANT: SELECT "5-year peak" FROM table_21323 WHERE "10-year peak" = 'Emanuel Lasker, 2847'
639
###HUMAN: List people who signed up during private beta., ###ASSISTANT: SELECT u.Id AS "user_link", u.Id, u.CreationDate FROM Users AS u WHERE u.CreationDate < '2011-08-30 00:00:00.00'
640
###HUMAN: how old is each student and how many students are each age?, ###ASSISTANT: SELECT Age, COUNT(*) FROM Student GROUP BY Age
641
###HUMAN: 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, show me the trend about department_id over hire_date with a line chart, show by the x-axis in desc., ###ASSISTANT: SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE DESC
642
###HUMAN: What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?, ###ASSISTANT: SELECT COUNT("Games") FROM table_40605 WHERE "Rank" < '4' AND "Rebounds" < '102'
643
###HUMAN: Which Pictorials has a 20 Questions of eva longoria?, ###ASSISTANT: SELECT "Pictorials" FROM table_39930 WHERE "20 Questions" = 'eva longoria'
644
###HUMAN: What is the nomination title used for the original film, Monsieur Hawarden?, ###ASSISTANT: SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = "monsieur hawarden"
645
###HUMAN: What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4?, ###ASSISTANT: SELECT net_capacity FROM table_name_74 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4"
646
###HUMAN: Name the 10:30 for 8:00 of charmed, ###ASSISTANT: SELECT "10:30" FROM table_5084 WHERE "8:00" = 'charmed'
647
###HUMAN: what was the last winner 's album name ?, ###ASSISTANT: SELECT "album" FROM table_204_655 ORDER BY "year" DESC LIMIT 1
648
###HUMAN: How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?, ###ASSISTANT: SELECT SUM("Silver") FROM table_80452 WHERE "Bronze" > '3' AND "Gold" = '16'
649
###HUMAN: Name the memory for frequency of 1.6 ghz, ###ASSISTANT: SELECT "Memory" FROM table_21021 WHERE "Frequency" = '1.6 GHz'
650
###HUMAN: what is the name of procedure patient 51200 has been given two times last month?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51200) AND DATETIME(procedures_icd.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2)
651
###HUMAN: What is the Competition for Season 2002 03, and the Opponent was zenit st. petersburg?, ###ASSISTANT: SELECT competition FROM table_name_86 WHERE season = "2002–03" AND opponent = "zenit st. petersburg"
652
###HUMAN: Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?, ###ASSISTANT: SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s"
653
###HUMAN: What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?, ###ASSISTANT: SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = "http://krishna.nic.in/"
654
###HUMAN: Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?, ###ASSISTANT: SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = "rick mirer" AND ties < 1
655
###HUMAN: What is the long-term capital gain rate when the long-term gain on commercial buildings is 25% and long term gain on collectibles is 28% while short-term capital gain rate is 33%?, ###ASSISTANT: SELECT "Long-term capital gain rate" FROM table_55784 WHERE "Long-term gain on commercial buildings*" = '25%' AND "Long-term gain on collectibles" = '28%' AND "Short-term capital gain rate" = '33%'
656
###HUMAN: What is the number of the player who attended Delta State?, ###ASSISTANT: SELECT MAX("No.") FROM table_20200 WHERE "School/Club Team" = 'Delta State'
657
###HUMAN: What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278?, ###ASSISTANT: SELECT "To par" FROM table_48568 WHERE "Money ( $ )" > '4,100' AND "Score" = '69-67-72-70=278'
658
###HUMAN: Show name and distance for all aircrafts by a bar chart, list by the y axis in ascending please., ###ASSISTANT: SELECT name, distance FROM aircraft ORDER BY distance
659
###HUMAN: Name the regions for usf45, ###ASSISTANT: SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45"
660
###HUMAN: How many laps for robin montgomerie-charrington, and a Grid smaller than 15?, ###ASSISTANT: SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15
661
###HUMAN: show me all flights on WN from SAN DIEGO to SAN FRANCISCO, ###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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'WN'
662
###HUMAN: who is the driver with the engine era 1.5 l6 s and the chassis is era b?, ###ASSISTANT: SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b"
663
###HUMAN: What is the average crowd size for games with hawthorn as the home side?, ###ASSISTANT: SELECT AVG(crowd) FROM table_name_8 WHERE home_team = "hawthorn"
664
###HUMAN: who is the opponent when the method is tko (punches) at 4:26 of round 1?, ###ASSISTANT: SELECT "Opponent" FROM table_43573 WHERE "Method" = 'tko (punches) at 4:26 of round 1'
665
###HUMAN: What's the sum of draw for artist hari mata hari with less than 70 points?, ###ASSISTANT: SELECT SUM("Draw") FROM table_11271 WHERE "Artist" = 'hari mata hari' AND "Points" < '70'
666
###HUMAN: A bar chart about the name and age for all male people who don't have a wedding, could you display by the x axis in ascending?, ###ASSISTANT: SELECT Name, Age FROM people WHERE Is_Male = 'T' AND NOT People_ID IN (SELECT Male_ID FROM wedding) ORDER BY Name
667
###HUMAN: What number pick was the player for the Oakland Athletics who plays the 1B position?, ###ASSISTANT: SELECT "Pick" FROM table_15226 WHERE "Position" = '1b' AND "Team" = 'oakland athletics'
668
###HUMAN: ground transportation in WESTCHESTER COUNTY, ###ASSISTANT: SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'WESTCHESTER COUNTY' AND ground_service.city_code = city.city_code
669
###HUMAN: What was the high amount of assists before game 60?, ###ASSISTANT: SELECT "High assists" FROM table_50265 WHERE "Game" < '60'
670
###HUMAN: What stamp design has a denomination of $1.18?, ###ASSISTANT: SELECT "Design" FROM table_58443 WHERE "Denomination" = '$1.18'
671
###HUMAN: What are the nationalities and ages of journalists?, ###ASSISTANT: SELECT nationality, age FROM journalist
672
###HUMAN: Where did Jack Badcock play?, ###ASSISTANT: SELECT "Venue" FROM table_34003 WHERE "Player" = 'jack badcock'
673
###HUMAN: what is the player who's college is listed as direct to nba, school is st. vincent st. mary high school and the year is 2001-2002?, ###ASSISTANT: SELECT "Player" FROM table_17100 WHERE "College" = 'Direct to NBA' AND "School" = 'St. Vincent – St. Mary High School' AND "Year" = '2001-2002'
674
###HUMAN: What was the highest amount of laps when the class was v8 and the entrant was diet-coke racing?, ###ASSISTANT: SELECT MAX(laps) FROM table_name_13 WHERE class = "v8" AND entrant = "diet-coke racing"
675
###HUMAN: What is the oder part number for the model with 10x mult. 1?, ###ASSISTANT: SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x"
676
###HUMAN: What is the score of the home team that played at brunswick street oval with a crowd larger than 12,000?, ###ASSISTANT: SELECT "Home team score" FROM table_57262 WHERE "Crowd" > '12,000' AND "Venue" = 'brunswick street oval'
677
###HUMAN: What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?, ###ASSISTANT: SELECT "Location #sites (global/local)" FROM table_46736 WHERE "Software" = 'bind' AND "IPv6 address" = '2001:503:c27::2:30'
678
###HUMAN: How many grids have a Time/Retired of gearbox, and Laps smaller than 3?, ###ASSISTANT: SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3
679
###HUMAN: What is Joe Jonas' result at the Kids' Choice Awards Mexico?, ###ASSISTANT: SELECT "Result" FROM table_15555 WHERE "Recipient(s)" = 'joe jonas' AND "Award" = 'kids'' choice awards mexico'
680
###HUMAN: What is the date for the episode performed by Sue Manchester?, ###ASSISTANT: SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
681
###HUMAN: What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?, ###ASSISTANT: SELECT COUNT("Evening Gown") FROM table_11829 WHERE "Preliminaries" < '8.647' AND "State" = 'district of columbia'
682
###HUMAN: List the location and number of fans in attendance for game 7/, ###ASSISTANT: SELECT COUNT("Location Attendance") FROM table_25367 WHERE "Game" = '7'
683
###HUMAN: what's the name of the procedure that patient 25814 was given two times since 154 months ago?, ###ASSISTANT: SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25814) AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-154 month') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2)
684
###HUMAN: Show the most common nationality for journalists., ###ASSISTANT: SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
685
###HUMAN: What Country scored 72-65-73=210?, ###ASSISTANT: SELECT "Country" FROM table_8815 WHERE "Score" = '72-65-73=210'
686
###HUMAN: What was the Result of the game after Week 9 with an Attendance of 69,714?, ###ASSISTANT: SELECT "Result" FROM table_48615 WHERE "Week" > '9' AND "Attendance" = '69,714'
687
###HUMAN: What was the genre of Queen (an artist from the United Kingdom)?, ###ASSISTANT: SELECT "Genre" FROM table_15675 WHERE "Country of origin" = 'united kingdom' AND "Artist" = 'queen'
688
###HUMAN: previous to the tippeligaen , what was the league called ?, ###ASSISTANT: SELECT "league" FROM table_203_683 WHERE "season" < (SELECT "season" FROM table_203_683 WHERE "league" = 'tippeligaen') ORDER BY "season" DESC LIMIT 1
689
###HUMAN: What was the attendance during the week 1 match?, ###ASSISTANT: SELECT "Attendance" FROM table_32927 WHERE "Week" = '1'
690
###HUMAN: what is the name of drug that patient 63676 was prescribed for within 2 days after having been diagnosed with gstr/ddnts nos w hmrhg in 03/2105?, ###ASSISTANT: SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 63676 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr/ddnts nos w hmrhg') AND STRFTIME('%y-%m', diagnoses_icd.charttime) = '2105-03') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 63676 AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-03') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 day')
691
###HUMAN: A bar chart shows the distribution of personal_name and gender_mf ., ###ASSISTANT: SELECT personal_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name
692
###HUMAN: What was the highest number of wins for any team?, ###ASSISTANT: SELECT MAX(wins) FROM table_18018214_3
693
###HUMAN: Distribution of Flagged Posts by Time (Hours) to close., ###ASSISTANT: SELECT diff1 AS hoursToClose, COUNT(*) FROM (SELECT CAST((JULIANDAY(ClosedDate) - JULIANDAY(d.CreationDate)) * 24.0 AS INT) AS "diff1", TIME_TO_STR(d.CreationDate, '%y-%m') AS "date1", TIME_TO_STR(d.ClosedDate, '%y-%m') AS "date2", (d.Id) AS id FROM Posts AS d LEFT JOIN PostHistory AS ph ON ph.PostId = d.Id LEFT JOIN PostLinks AS pl ON pl.PostId = d.Id LEFT JOIN Posts AS o ON o.Id = pl.RelatedPostId WHERE (d.PostTypeId = 1 OR d.PostTypeId = 2) AND ph.PostHistoryTypeId = 10) AS t1 GROUP BY diff1 ORDER BY diff1
694
###HUMAN: count the number of patients whose marital status is single and lab test name is hyaline casts?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "Hyaline Casts"
695
###HUMAN: What is the largest numbered?, ###ASSISTANT: SELECT MAX(division) FROM table_14723382_1
696
###HUMAN: How many Laps were there in 2010?, ###ASSISTANT: SELECT SUM(laps) FROM table_name_46 WHERE year = 2010
697
###HUMAN: Who was the husband date that was married in 1858?, ###ASSISTANT: SELECT husband_dates FROM table_name_54 WHERE date_married = "1858"
698
###HUMAN: Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?, ###ASSISTANT: SELECT MAX("FA Cup Goals") FROM table_65892 WHERE "League Cup Apps" > '0' AND "Name" = 'trevor cherry'
699
###HUMAN: Get Posts and Upvotes for Last X days. This query takes in a given integer X and returns all posts from the last X days as well as the votes on each of those posts., ###ASSISTANT: SELECT COUNT(DISTINCT Posts.Id) FROM Posts WHERE Posts.CreationDate >= CURRENT_TIMESTAMP() - @numDays