Unnamed: 0
int64
0
3k
text
stringlengths
74
2.32k
2,400
###HUMAN: find the name of pilots who did not win the matches held in the country of Australia., ###ASSISTANT: SELECT name FROM pilot WHERE NOT pilot_id IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')
2,401
###HUMAN: What is the highest championship that has 1 as the league cup, and 17 as the total?, ###ASSISTANT: SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = "17"
2,402
###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 hire_date and the average of salary bin hire_date by weekday, display in ascending by the the average of salary., ###ASSISTANT: SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(SALARY)
2,403
###HUMAN: Name the verb meaning for half drosch, ###ASSISTANT: SELECT verb_meaning FROM table_1745843_9 WHERE part_2 = "half drosch"
2,404
###HUMAN: count the number of patients whose marital status is married and lab test name is albumin?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Albumin"
2,405
###HUMAN: How many patients admitted as clinic referral (premature) were diagnosed with percutaneous transluminal coronary angioplasty status?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.long_title = "Percutaneous transluminal coronary angioplasty status"
2,406
###HUMAN: What's the cores with the part number cl8064701477202?, ###ASSISTANT: SELECT "Cores" FROM table_13573 WHERE "Part number(s)" = 'cl8064701477202'
2,407
###HUMAN: how many countries have at least 10 gold medals in the asian youth games ?, ###ASSISTANT: SELECT COUNT("nation") FROM table_203_747 WHERE "gold" >= 10
2,408
###HUMAN: calculate the maximum age of patients with abdominal pain primary disease who were admitted to hospital for 43 days., ###ASSISTANT: SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL PAIN" AND demographic.days_stay = "43"
2,409
###HUMAN: What is the Chinese title with a premiere rating of 31?, ###ASSISTANT: SELECT chinese_title FROM table_name_91 WHERE premiere = 31
2,410
###HUMAN: Which mountain range includes Mount Hubbard?, ###ASSISTANT: SELECT "Mountain Range" FROM table_71991 WHERE "Mountain Peak" = 'mount hubbard'
2,411
###HUMAN: what flights are available friday from PHILADELPHIA to OAKLAND, ###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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name 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.from_airport = AIRPORT_SERVICE_0.airport_code
2,412
###HUMAN: Final that has a Date of january 10, 2004 had what opponent?, ###ASSISTANT: SELECT opponent_in_the_final FROM table_name_23 WHERE date = "january 10, 2004"
2,413
###HUMAN: What are the numbers of wines for different grapes Plot them as bar chart, sort by the bar in desc., ###ASSISTANT: SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape DESC
2,414
###HUMAN: Who was the visiting team at Lincoln Financial Field when the final score was 24-14?, ###ASSISTANT: SELECT "Visiting Team" FROM table_11235 WHERE "Stadium" = 'lincoln financial field' AND "Final Score" = '24-14'
2,415
###HUMAN: How many customers do we have?, ###ASSISTANT: SELECT COUNT(*) FROM customers
2,416
###HUMAN: What unit has an Avoirdupois value of 57.602 gr.?, ###ASSISTANT: SELECT "Unit" FROM table_37329 WHERE "Avoirdupois value" = '57.602 gr.'
2,417
###HUMAN: What date was the result 6 2, 4 6, 6 4?, ###ASSISTANT: SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4"
2,418
###HUMAN: How many teams scored exactly 38 points, ###ASSISTANT: SELECT COUNT("Team") FROM table_19215 WHERE "Points For" = '38'
2,419
###HUMAN: was hot love released before run to me ?, ###ASSISTANT: SELECT (SELECT "release date" FROM table_204_742 WHERE "single title" = '"hot love"') < (SELECT "release date" FROM table_204_742 WHERE "single title" = '"run to me"')
2,420
###HUMAN: the previous year, what were the five most common input events?, ###ASSISTANT: SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5
2,421
###HUMAN: When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?, ###ASSISTANT: SELECT COUNT("Division") FROM table_40634 WHERE "Regular Season" = '2nd, northeast' AND "Year" < '2008'
2,422
###HUMAN: Who was the away team in a tie no larger than 16 with forest green rovers at home?, ###ASSISTANT: SELECT "Away team" FROM table_78226 WHERE "Tie no" > '16' AND "Home team" = 'forest green rovers'
2,423
###HUMAN: What is the largest number of consecutive starts for jason gildon?, ###ASSISTANT: SELECT MAX("Consecutive starts") FROM table_30622 WHERE "Player" = 'Jason Gildon'
2,424
###HUMAN: What's the record when the attendance was 41,573?, ###ASSISTANT: SELECT "Record" FROM table_77731 WHERE "Attendance" = '41,573'
2,425
###HUMAN: sepsis induced immunosuppression, ###ASSISTANT: SELECT * FROM table_train_27 WHERE immune_suppression = 1
2,426
###HUMAN: what is the play when the company is cyprus theatre organisation?, ###ASSISTANT: SELECT "play" FROM table_79409 WHERE "company" = 'cyprus theatre organisation'
2,427
###HUMAN: Give me the number of unmarried patients who were ordered a transferrin lab test., ###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 = "Transferrin"
2,428
###HUMAN: Can you tell me the Opponent that has the Result of w 37-14?, ###ASSISTANT: SELECT opponent FROM table_name_25 WHERE result = "w 37-14"
2,429
###HUMAN: What is the Date with a Opponent with wimbledon, and a Result of won 2-0?, ###ASSISTANT: SELECT "Date" FROM table_77998 WHERE "Opponent" = 'wimbledon' AND "Result" = 'won 2-0'
2,430
###HUMAN: How many wrestlers were born in nara, and have a completed 'career and other notes' section?, ###ASSISTANT: SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = "Nara"
2,431
###HUMAN: What is the zodiac sign for the English March?, ###ASSISTANT: SELECT "Zodiac sign" FROM table_60473 WHERE "English name" = 'march'
2,432
###HUMAN: show me all the flights between OAKLAND and DENVER, ###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 = 'OAKLAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
2,433
###HUMAN: only opponent to defeat mocho cota in 1994, ###ASSISTANT: SELECT "winner" FROM table_204_373 WHERE "loser" = 'mocho cota' AND "date" = 1994
2,434
###HUMAN: When was the game where the home team score was 8.9 (57)?, ###ASSISTANT: SELECT "Date" FROM table_53070 WHERE "Home team score" = '8.9 (57)'
2,435
###HUMAN: Top 150 users from China. Top 150 SO users from China, ###ASSISTANT: SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%sweden%' OR UPPER(Location) LIKE '%SWEDEN%' OR Location LIKE '%SWEDEN%' AND Reputation >= 0 ORDER BY Reputation DESC LIMIT 150
2,436
###HUMAN: When was the successor who got his seat because of 'until august 2, 1813' seated?, ###ASSISTANT: SELECT "Date successor seated" FROM table_25067 WHERE "Reason for change" = 'Until August 2, 1813'
2,437
###HUMAN: Who was the team when the category is field goal percentage?, ###ASSISTANT: SELECT team FROM table_28628309_6 WHERE category = "Field goal percentage"
2,438
###HUMAN: how many points scored by sportivo luque o, ###ASSISTANT: SELECT COUNT("Points") FROM table_21068 WHERE "Team" = 'Sportivo Luqueño'
2,439
###HUMAN: What is the competition type of the event with a result of 3-2 and a score of 2-1?, ###ASSISTANT: SELECT "Competition" FROM table_68487 WHERE "Result" = '3-2' AND "Score" = '2-1'
2,440
###HUMAN: How many new entries started in the round where winners from the previous round is 32?, ###ASSISTANT: SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "32"
2,441
###HUMAN: which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday?, ###ASSISTANT: SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin"
2,442
###HUMAN: What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?, ###ASSISTANT: SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11
2,443
###HUMAN: bmi 25 to 35 inclusive, ###ASSISTANT: SELECT * FROM table_train_234 WHERE body_mass_index_bmi >= 25 AND body_mass_index_bmi <= 35
2,444
###HUMAN: What is the year the institution Tougaloo College joined?, ###ASSISTANT: SELECT "Joined" FROM table_16187 WHERE "Institution" = 'Tougaloo College'
2,445
###HUMAN: Who had Pole position for the French Grand Prix?, ###ASSISTANT: SELECT "Pole position" FROM table_11142 WHERE "Race" = 'french grand prix'
2,446
###HUMAN: show me the airlines that fly from DENVER to SAN FRANCISCO, ###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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
2,447
###HUMAN: Name the record for verizon center 20,173, ###ASSISTANT: SELECT "Record" FROM table_21460 WHERE "Location Attendance" = 'Verizon Center 20,173'
2,448
###HUMAN: what is the number of patients whose drug code is eryt250 and lab test fluid is cerebrospinal fliuid (csf)?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "ERYT250" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
2,449
###HUMAN: Name the total number of height for number 32, ###ASSISTANT: SELECT COUNT(height) FROM table_25360865_1 WHERE _number = 32
2,450
###HUMAN: Compare the total number of each fate with a bar chart, show from high to low by the x axis., ###ASSISTANT: SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY Fate DESC
2,451
###HUMAN: what were the new prescriptions of patient 97395 today compared to the prescription they received yesterday?, ###ASSISTANT: SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97395) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97395) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day')
2,452
###HUMAN: What is the best time for a team with a first-qualifying time of 59.448?, ###ASSISTANT: SELECT best FROM table_name_6 WHERE qual_1 = "59.448"
2,453
###HUMAN: who write the episode that have 14.39 million viewers, ###ASSISTANT: SELECT written_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.39"
2,454
###HUMAN: When Thomas Clayton had a gain less than 71, what was the highest long value?, ###ASSISTANT: SELECT MAX(long) FROM table_name_40 WHERE name = "thomas clayton" AND gain < 71
2,455
###HUMAN: Name the gdp per capita for haiti, ###ASSISTANT: SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = "Haiti"
2,456
###HUMAN: What is the total number of population in the land with an area of 149.32 km2?, ###ASSISTANT: SELECT COUNT("Population") FROM table_21283 WHERE "Area km 2" = '149.32'
2,457
###HUMAN: Proportion of users who've asked no questions. Counts the number of users with Rep>=1000 who've asked no questions, and the total number of users with Rep>=1000., ###ASSISTANT: SELECT (SELECT COUNT(u.DisplayName) FROM Users AS u WHERE u.Reputation >= 1000) AS "significant_users", (SELECT COUNT(u.DisplayName) FROM Users AS u WHERE u.Id NOT IN (SELECT DISTINCT OwnerUserId FROM Posts WHERE PostTypeId = 1 AND OwnerUserId != '') AND u.Reputation >= 94000) AS "with_no_questions"
2,458
###HUMAN: What is Player, when Money ( $ ) is less than 387, and when Score is '73-76-74-72=295'?, ###ASSISTANT: SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295
2,459
###HUMAN: What's the ijekavian translation of the ikavian word grijati?, ###ASSISTANT: SELECT "Ijekavian" FROM table_29854 WHERE "Ikavian" = 'grijati'
2,460
###HUMAN: What date did the T328 that entered service on 18 June 1956 re-enter service?, ###ASSISTANT: SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328"
2,461
###HUMAN: Name the country for sky primafila 7 hd, ###ASSISTANT: SELECT country FROM table_15887683_6 WHERE television_service = "Sky Primafila 7 HD"
2,462
###HUMAN: Which nominating festival nominated Iao Lethem's film?, ###ASSISTANT: SELECT "Nominating Festival" FROM table_15380 WHERE "Director(s)" = 'iao lethem'
2,463
###HUMAN: What is the largest number of Games Played with Losses of 3, and more Wins than 5?, ###ASSISTANT: SELECT MAX("Games Played") FROM table_11772 WHERE "Losses" = '3' AND "Wins" > '5'
2,464
###HUMAN: What county has an IHSAA Football Class of A, and a Mascot of royals?, ###ASSISTANT: SELECT "County" FROM table_63746 WHERE "IHSAA Football Class" = 'a' AND "Mascot" = 'royals'
2,465
###HUMAN: what is during the first hospital encounter maximum neutrophils value of patient 99647?, ###ASSISTANT: SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99647 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'neutrophils')
2,466
###HUMAN: Overlap between a given tag and related ones., ###ASSISTANT: SELECT *, CAST(100.0 * without_tag / (without_tag + with_tag) AS FLOAT(18, 2)) AS perc_not_tag FROM (SELECT COUNT(p.Id) AS post_count, t.TagName, SUM(CASE WHEN p.Tags LIKE '%<##Tag##>%' THEN 1 ELSE 0 END) AS with_tag, SUM(CASE WHEN NOT p.Tags LIKE '%<##Tag##>%' THEN 1 ELSE 0 END) AS without_tag FROM Posts AS p JOIN PostTags AS pTags ON pTags.PostId = p.Id JOIN Tags AS t ON t.Id = pTags.TagId WHERE t.TagName LIKE '%##Tag##%' GROUP BY t.TagName) AS a ORDER BY post_count DESC
2,467
###HUMAN: Give me a bar chart to show the revenue of the company that earns the highest revenue in each headquarter city., ###ASSISTANT: SELECT Headquarter, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter
2,468
###HUMAN: What is the lowest Grid, when Laps is 21, when Manufacturer is Yamaha, and when Time is +18.802?, ###ASSISTANT: SELECT MIN(grid) FROM table_name_10 WHERE laps = 21 AND manufacturer = "yamaha" AND time = "+18.802"
2,469
###HUMAN: What's the lowest grid with and entrant of fred saunders?, ###ASSISTANT: SELECT MIN("Grid") FROM table_62894 WHERE "Entrant" = 'fred saunders'
2,470
###HUMAN: What name was proposed on 12/30/1982 in rockingham county with a CERCLIS ID of nhd062004569?, ###ASSISTANT: SELECT "Name" FROM table_9427 WHERE "Proposed" = '12/30/1982' AND "County" = 'rockingham' AND "CERCLIS ID" = 'nhd062004569'
2,471
###HUMAN: Name the stock for colt model mt6601, ###ASSISTANT: SELECT stock FROM table_12834315_4 WHERE colt_model_no = "MT6601"
2,472
###HUMAN: What year was the West Coast League established than the championships are greater than 0?, ###ASSISTANT: SELECT "Established" FROM table_36871 WHERE "Championships" > '0' AND "League" = 'west coast league'
2,473
###HUMAN: Show the name of each party and the corresponding number of delegates from that party Plot them as bar chart, sort by the x axis from low to high please., ###ASSISTANT: SELECT T2.Party, SUM(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party
2,474
###HUMAN: Which Institutional authority has a Rocket launch of rehnuma-10?, ###ASSISTANT: SELECT "Institutional authority" FROM table_57777 WHERE "Rocket launch" = 'rehnuma-10'
2,475
###HUMAN: What are Utah's high points?, ###ASSISTANT: SELECT high_points FROM table_name_49 WHERE team = "utah"
2,476
###HUMAN: Give swimsuit scores of participants 8.847 in preliminary, ###ASSISTANT: SELECT "Swimsuit" FROM table_21281 WHERE "Preliminary" = '8.847'
2,477
###HUMAN: i want a flight on CO from BOSTON 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 = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'CO'
2,478
###HUMAN: The Catalog of ilps 9153 is from what region?, ###ASSISTANT: SELECT "Region" FROM table_8574 WHERE "Catalog" = 'ilps 9153'
2,479
###HUMAN: What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55?, ###ASSISTANT: SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55
2,480
###HUMAN: what was the name of the drug, which patient 52898 was last prescribed via right ear route since 02/2105?, ###ASSISTANT: SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52898) AND prescriptions.route = 'right ear' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-02' ORDER BY prescriptions.startdate DESC LIMIT 1
2,481
###HUMAN: What is the average rank of one who is at 76 laps?, ###ASSISTANT: SELECT AVG("Rank") FROM table_10504 WHERE "Laps" = '76'
2,482
###HUMAN: count the number of patients whose diagnoses short title is atrial fibrillation and drug route is tp?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Atrial fibrillation" AND prescriptions.route = "TP"
2,483
###HUMAN: What country is the film that has music of nino oliviero?, ###ASSISTANT: SELECT country FROM table_name_10 WHERE music = "nino oliviero"
2,484
###HUMAN: When can I take 421 ?, ###ASSISTANT: SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 421 AND course_offering.semester = semester.semester_id AND semester.semester_id > (SELECT SEMESTERalias1.semester_id FROM semester AS SEMESTERalias1 WHERE SEMESTERalias1.semester = 'WN' AND SEMESTERalias1.year = 2016) ORDER BY semester.semester_id LIMIT 1
2,485
###HUMAN: Show the relationship between the number of schools in each county and total enrollment in each county by a scatter plot., ###ASSISTANT: SELECT COUNT(*), SUM(Enrollment) FROM School GROUP BY County
2,486
###HUMAN: For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, I want to show by the X in desc., ###ASSISTANT: SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC
2,487
###HUMAN: Who played Richmond at home?, ###ASSISTANT: SELECT home_team FROM table_14312471_7 WHERE away_team = "Richmond"
2,488
###HUMAN: What label is after 2004?, ###ASSISTANT: SELECT "Label" FROM table_53217 WHERE "Year" > '2004'
2,489
###HUMAN: how many seats in a 734, ###ASSISTANT: SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = '734'
2,490
###HUMAN: what is the name when the constituency number is 150?, ###ASSISTANT: SELECT "Name" FROM table_63371 WHERE "Constituency number" = '150'
2,491
###HUMAN: WHAT PLACE WAS A SCORE 67-70=137?, ###ASSISTANT: SELECT place FROM table_name_48 WHERE score = 67 - 70 = 137
2,492
###HUMAN: mention the discharge time and diagnosis icd9 code of subject id 42820., ###ASSISTANT: SELECT demographic.dischtime, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "42820"
2,493
###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 department_id , and could you rank names from high to low order?, ###ASSISTANT: SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC
2,494
###HUMAN: provide the number of patients whose primary disease is ruq pain and year of birth is less than 2112?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.dob_year < "2112"
2,495
###HUMAN: How many patients are with discharge location short term hospital and below age 67?, ###ASSISTANT: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.age < "67"
2,496
###HUMAN: When was the church in Arnafjord built?, ###ASSISTANT: SELECT "Year Built" FROM table_59057 WHERE "Location of the Church" = 'arnafjord'
2,497
###HUMAN: What was the result of the game that had 56,500 in attendance?, ###ASSISTANT: SELECT "Result" FROM table_59320 WHERE "Attendance" = '56,500'
2,498
###HUMAN: How many rounds have School/club team of pan american?, ###ASSISTANT: SELECT SUM(round) FROM table_name_91 WHERE school_club_team = "pan american"
2,499
###HUMAN: What is the number of people in attendance when the time is 3:00?, ###ASSISTANT: SELECT "Attendance" FROM table_77393 WHERE "Time" = '3:00'