instruction
stringlengths 53
549
| output
stringlengths 30
2.33k
|
---|---|
### Instruction:
which of the following roller coasters is the oldest : star of lake tai , star of nanchang , melbourne star
### Response:
| SELECT "name" FROM table_201_2 WHERE "name" IN ('star of lake tai', 'star of nanchang', 'melbourne star') ORDER BY "completed" LIMIT 1 |
### Instruction:
What rank did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division?
### Response:
| SELECT COUNT("Rank") FROM table_70972 WHERE "Fastest time (s)" = '11.26' AND "Nation" = 'united states' |
### Instruction:
during this year did patient 3097 visit the hospital?
### Response:
| SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 3097 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') |
### Instruction:
What date was the crowd larger than 16,000 people and the away team scored 8.11 (59)?
### Response:
| SELECT "Date" FROM table_58137 WHERE "Crowd" > '16,000' AND "Away team score" = '8.11 (59)' |
### Instruction:
When Hapoel tel aviv was team 2 and 1st leg was 1 2, what was the 2nd leg?
### Response:
| SELECT "2nd leg" FROM table_45402 WHERE "1st leg" = '1–2' AND "Team 2" = 'hapoel tel aviv' |
### Instruction:
A Round larger than 1, a College of Oklahoma state, and a average Pick # that has a Position of tight end is what?
### Response:
| SELECT AVG("Pick #") FROM table_9315 WHERE "Position" = 'tight end' AND "College" = 'oklahoma state' AND "Round" > '1' |
### Instruction:
What amount of the university students and adults ehre the the senior high school is 26mm?
### Response:
| SELECT "University students and Adults (18yrs+)" FROM table_18811 WHERE "Senior High School (15\u201318 yrs)" = '26mm' |
### Instruction:
Return the name of each physician and the number of patients he or she treats, could you order by the Y-axis in ascending?
### Response:
| SELECT T1.Name, COUNT(*) FROM Physician AS T1 JOIN Patient AS T2 ON T1.EmployeeID = T2.PCP GROUP BY T1.EmployeeID ORDER BY COUNT(*) |
### Instruction:
in 2102, how many times patient 84286 visited hospital?
### Response:
| SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 84286 AND STRFTIME('%y', admissions.admittime) = '2102' |
### Instruction:
What is the position when the points were less than 34, draws of 7, and a Club of sd eibar?
### Response:
| SELECT AVG("Position") FROM table_47254 WHERE "Points" < '34' AND "Draws" = '7' AND "Club" = 'sd eibar' |
### Instruction:
Visualize a bar chart for what are the ids and names of the medicine that can interact with two or more enzymes?, display from high to low by the id.
### Response:
| SELECT name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id DESC |
### Instruction:
what is the number of patients whose marital status is divorced and ethnicity is black/haitian?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.ethnicity = "BLACK/HAITIAN" |
### Instruction:
What is the id and trade name of the medicines can interact with at least 3 enzymes, and could you show in desc by the total number?
### Response:
| SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id DESC |
### Instruction:
TOP 200 - Brazilian Users.
### Response:
| SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%brazil%' OR UPPER(Location) LIKE '%BRA' ORDER BY Reputation DESC LIMIT 200 |
### Instruction:
how many patients who are aged below 27 years had celo-vessicle fistula as the primary disease?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.age < "27" |
### Instruction:
What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?
### Response:
| SELECT MIN("Avg/G") FROM table_42479 WHERE "Effic" > '34.36' AND "Name" = 'wesley carroll' |
### Instruction:
Which Investing Dragon(s) requested 100,000 in money and has autosafe?
### Response:
| SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe" |
### Instruction:
provide the number of patients who died on or before 2155 and had hypoxia as primary disease.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "HYPOXIA" AND demographic.dod_year <= "2155.0" |
### Instruction:
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?
### Response:
| SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013 |
### Instruction:
What is the total of quantity rebuilt if the type is 1B N2T and the railway number is 88, 118?
### Response:
| SELECT COUNT(quantity_rebuilt) FROM table_name_4 WHERE type = "1b n2t" AND railway_number_s_ = "88, 118" |
### Instruction:
what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed
### Response:
| SELECT "District" FROM table_18581 WHERE "Result" = 'Re-elected' AND "Candidates" = 'Clarence F. Lea (D) Unopposed' |
### Instruction:
how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?
### Response:
| SELECT COUNT("Time") FROM table_64389 WHERE "Rank" > '29' AND "Athlete" = 'barbara pierre' AND "Heat" < '5' |
### Instruction:
the spartak , bobruisk venue is has a larger capacity than which other venues ?
### Response:
| SELECT "venue" FROM table_203_208 WHERE "capacity" < (SELECT "capacity" FROM table_203_208 WHERE "venue" = 'spartak, bobruisk') |
### Instruction:
What's the to par for the t1 place with a score of 70-72-73-72=287?
### Response:
| SELECT to_par FROM table_name_58 WHERE place = "t1" AND score = 70 - 72 - 73 - 72 = 287 |
### Instruction:
What are the titles and average ratings for all movies that have the lowest average rating?
### Response:
| SELECT T2.title, AVG(T1.stars) FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid GROUP BY T1.mid ORDER BY AVG(T1.stars) LIMIT 1 |
### Instruction:
what is the difference in the number of people sent home in episode one and two ?
### Response:
| SELECT ABS((SELECT "sent home" FROM table_204_945 WHERE "episode" = 1) - (SELECT "sent home" FROM table_204_945 WHERE "episode" = 2)) |
### Instruction:
did the team place higher in the 2002-03 season or the 2003-04 season ?
### Response:
| SELECT "season" FROM table_204_589 WHERE "season" IN ('2002-03', '2003-04') ORDER BY "pos." LIMIT 1 |
### Instruction:
what's a price of ferrous iron compound - iron sucrose?
### Response:
| SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'ferrous iron compound - iron sucrose') |
### Instruction:
what is maximum age of patients whose death status is 0 and discharge location is rehab/distinct part hosp?
### Response:
| SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP" |
### Instruction:
what is the difference in years between cry wolf and four christmases ?
### Response:
| SELECT ABS((SELECT "year" FROM table_204_228 WHERE "title" = 'cry_wolf') - (SELECT "year" FROM table_204_228 WHERE "title" = 'four christmases')) |
### Instruction:
For those records from the products and each product's manufacturer, a scatter chart shows the correlation between manufacturer and revenue , and group by attribute headquarter.
### Response:
| SELECT Manufacturer, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter |
### Instruction:
top 1000 users from india.
### Response:
| SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC LIMIT 1000 |
### Instruction:
Who is the player from the United States in T4 place with a score of 68-73-68=209?
### Response:
| SELECT player FROM table_name_77 WHERE country = "united states" AND place = "t4" AND score = 68 - 73 - 68 = 209 |
### Instruction:
Query to get number of posts per hour for a technology.
### Response:
| SELECT TIME_TO_STR(CreationDate, '%I') AS Hours, COUNT(*) AS Total FROM Posts WHERE Posts.Tags LIKE '%' + '##Tags:string##' + '%' GROUP BY TIME_TO_STR(CreationDate, '%I') |
### Instruction:
which schools are in the same town as bishop leblond ?
### Response:
| SELECT "school" FROM table_204_624 WHERE "school" <> 'bishop leblond high school' AND "town" = (SELECT "town" FROM table_204_624 WHERE "school" = 'bishop leblond high school') |
### Instruction:
Show me a pie chart for what is total number of show times per dat for each cinema?
### Response:
| SELECT Name, SUM(T1.Show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.Cinema_ID = T2.Cinema_ID GROUP BY T1.Cinema_ID |
### Instruction:
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?
### Response:
| SELECT "Production" FROM table_61779 WHERE "Result" = 'nominated' AND "Year" = '2009' AND "Award ceremony" = 'helpmann awards' |
### Instruction:
What are the ids and details of events that have more than one participants?
### Response:
| SELECT T1.event_id, T1.event_details FROM events AS T1 JOIN participants_in_events AS T2 ON T1.event_id = T2.event_id GROUP BY T1.event_id HAVING COUNT(*) > 1 |
### Instruction:
Average answer score for users with more than 5 answers.
### Response:
| SELECT OwnerUserId AS "user_link", AVG(Score) AS aAvg, COUNT(Id) AS aCount FROM Posts WHERE PostTypeId = 2 GROUP BY OwnerUserId HAVING COUNT(Id) > 5 ORDER BY aAvg DESC |
### Instruction:
What is natural change with a crude death rate of 8.7 and less than 472 live births?
### Response:
| SELECT "Natural change" FROM table_55211 WHERE "Crude death rate (per 1000)" = '8.7' AND "Live births" < '472' |
### Instruction:
Return a scatter chart on how many assets does each third party company supply? List the count and the company id.
### Response:
| SELECT COUNT(*), company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id |
### Instruction:
Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?
### Response:
| SELECT socialist_ticket FROM table_name_74 WHERE law_preservation_ticket = "(none)" AND socialist_labor_ticket = "belle j. rosen" |
### Instruction:
How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?
### Response:
| SELECT COUNT("Play-by-play") FROM table_21830 WHERE "Pregame analysts" = 'Darren Flutie, Eric Tillman and Greg Frers' |
### Instruction:
Name the averag scored for 2011 long teng cup and 2 october 2011
### Response:
| SELECT AVG("Scored") FROM table_68818 WHERE "Competition" = '2011 long teng cup' AND "Date" = '2 october 2011' |
### Instruction:
What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?
### Response:
| SELECT "Date" FROM table_67809 WHERE "Distance" = 'km (mi)' AND "Course" = 'roccaraso to san giorgio del sannio' |
### Instruction:
what was the soviet ship that did not sink on 11 may 1944 ?
### Response:
| SELECT "name" FROM table_203_148 WHERE "date" = '11 may 1944' AND "nationality" = 'soviet union' AND "fate" <> 'sunk' |
### Instruction:
All questions with a *single* tag and a *word* in Title.
### Response:
| SELECT Id AS "post_link" FROM Posts WHERE PostTypeId = 1 AND Tags = CONCAT('<', '##Tag:string##', '>') AND UPPER(Title) LIKE UPPER('%##word##%') ORDER BY CreationDate |
### Instruction:
Find those years for all exhibitions with ticket prices lower than 15, return a bar chart that groups by year and counts the total number of years, I want to list y axis from high to low order please.
### Response:
| SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Year ORDER BY COUNT(Year) DESC |
### Instruction:
In 1948-10-28, what were the lowest Goals in Tehran, Iran?
### Response:
| SELECT MIN("Goals") FROM table_52151 WHERE "Venue" = 'tehran, iran' AND "Date" = '1948-10-28' |
### Instruction:
Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School?
### Response:
| SELECT "Locality" FROM table_46853 WHERE "Ofsted" < '106478' AND "School" = 'meadowbank primary and nursery school' |
### Instruction:
What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?
### Response:
| SELECT MIN(cultural_and_educational_panel) FROM table_name_74 WHERE nominated_by_the_taoiseach < 5 AND total > 19 |
### Instruction:
count the number of patients whose days of hospital stay is greater than 26 and admission year is less than 2114?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "26" AND demographic.admityear < "2114" |
### Instruction:
what is the difference between the sales of think twice and back for good ?
### Response:
| SELECT ABS((SELECT "sales" FROM table_203_249 WHERE "song title" = 'think twice') - (SELECT "sales" FROM table_203_249 WHERE "song title" = 'back for good')) |
### Instruction:
What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?
### Response:
| SELECT COUNT("Bronze") FROM table_50300 WHERE "Gold" > '0' AND "Rank" = '4' AND "Total" > '4' |
### Instruction:
Which Title has a Length of 3:32, and a Producer(s) of hadise a kg z, yves jongen?
### Response:
| SELECT title FROM table_name_91 WHERE length = "3:32" AND producer_s_ = "hadise açıkgöz, yves jongen" |
### Instruction:
What is the Week when the kick off was at 4:05 pm, and the result was w 31 14?
### Response:
| SELECT "Week" FROM table_40921 WHERE "Kickoff ( ET )" = '4:05 pm' AND "Result" = 'w 31–14' |
### Instruction:
Name what was nominated in years before 2002 for most popular comedy performer at the national television awards
### Response:
| SELECT "Nominated For" FROM table_53436 WHERE "Year" < '2002' AND "Award" = 'national television awards' AND "Category" = 'most popular comedy performer' |
### Instruction:
What are the name and active date of the customers whose contact channel code is email?
### Response:
| SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' |
### Instruction:
When Rocco Mediate has a To par of +2 and a 69-73=142 score, what is the country listed?
### Response:
| SELECT country FROM table_name_36 WHERE to_par = "+2" AND score = 69 - 73 = 142 AND player = "rocco mediate" |
### Instruction:
Name the most point with population less than 144,444 and age of 1.0
### Response:
| SELECT "Highest point" FROM table_67742 WHERE "Population (as of 2010)" < '144,444' AND "Age ( Ma )" = '1.0' |
### Instruction:
what is the diagnosis icd9 code of bruce harris and is he still alive?
### Response:
| SELECT demographic.expire_flag, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Bruce Harris" |
### Instruction:
What is the Datacenter for the Fault Tolerant Memory Sync Feature that has Yes for Itanium and No for Standard?
### Response:
| SELECT "Datacenter" FROM table_76103 WHERE "Standard" = 'no' AND "Itanium" = 'yes' AND "Features" = 'fault tolerant memory sync' |
### Instruction:
What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?
### Response:
| SELECT "Winning score" FROM table_40223 WHERE "Tournament" = 'joburg open 1' AND "Date" = '17 jan 2010' |
### Instruction:
When hit by sam at 38,500 feet just after bomb release was the cause of loss what is the mission/target?
### Response:
| SELECT mission_target FROM table_18933037_3 WHERE cause_of_loss = "Hit by SAM at 38,500 feet just after bomb release" |
### Instruction:
During the Tournament of Torneo Fraternidad/UNCAF Club championship, what is the Role of the Platense Municipal Zacatecoluca Team?
### Response:
| SELECT role FROM table_name_65 WHERE team = "platense municipal zacatecoluca" AND tournament = "torneo fraternidad/uncaf club championship" |
### Instruction:
did john lee win before lord hugh seymor ?
### Response:
| SELECT (SELECT "date" FROM table_204_820 WHERE "winner" = 'john lee') < (SELECT "date" FROM table_204_820 WHERE "winner" = 'lord hugh seymour') |
### Instruction:
give me the number of patients whose drug code is ddav4i?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "DDAV4I" |
### Instruction:
What is the average assets in billions of the company Bank of America, which has less than 49.01 billions in sales?
### Response:
| SELECT AVG(assets__billion_) AS $_ FROM table_name_70 WHERE company = "bank of america" AND sales__billion_$_ < 49.01 |
### Instruction:
Do you know of any upper level classes that are 17 credits ?
### Response:
| SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 17 AND program_course.category LIKE 'ULCS' |
### Instruction:
What are the names and ids of the different categories? Show me the bar chart, and display Y-axis in ascending order.
### Response:
| SELECT T2.name, T1.category_id FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id ORDER BY T1.category_id |
### Instruction:
What are the names of the songs by the artist whose last name is 'Heilo'?
### Response:
| SELECT T3.title FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T2.lastname = "Heilo" |
### Instruction:
A dataset for expert finding.
### Response:
| SELECT Id, AcceptedAnswerId, AnswerCount, Title FROM Posts WHERE (Posts.CreationDate > '2015-01-01' AND Posts.CreationDate < '2015-06-01') AND Posts.PostTypeId = '1' |
### Instruction:
What year had Kim Gevaert as the female winner and Xavier de Baerdemaeker as the male talent?
### Response:
| SELECT "Year" FROM table_42475 WHERE "Winner (Female)" = 'kim gevaert' AND "Talent (Male)" = 'xavier de baerdemaeker' |
### Instruction:
Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?
### Response:
| SELECT SUM("Agricultural Panel") FROM table_40219 WHERE "Nominated by the Taoiseach" > '6' AND "Total" > '60' |
### Instruction:
count the number of patients whose days of hospital stay is greater than 29 and admission year is less than 2179?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "29" AND demographic.admityear < "2179" |
### Instruction:
What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?
### Response:
| SELECT "Runner(s)-up" FROM table_40228 WHERE "Margin of victory" = '1 stroke' AND "Tournament" = 'joburg open 1' |
### Instruction:
A bar chart for what are the number of the names of races held between 2009 and 2011?, I want to order from high to low by the x axis.
### Response:
| SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name ORDER BY name DESC |
### Instruction:
When the communities name is Balmoral and the area is over 43.51 kilometers squared, what's the total population amount?
### Response:
| SELECT COUNT("Population") FROM table_76570 WHERE "Official Name" = 'balmoral' AND "Area km 2" > '43.51' |
### Instruction:
What is To par, when Margin of Victory is '2 Strokes', and when Tournament is 'Women's British Open'?
### Response:
| SELECT "To par" FROM table_12749 WHERE "Margin of victory" = '2 strokes' AND "Tournament" = 'women''s british open' |
### Instruction:
Find the name of the project for which a scientist whose name contains Smith is assigned to.
### Response:
| SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%' |
### Instruction:
How many patients born before the year 1837 were admitted to trsf within this facility?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "1837" |
### Instruction:
What is the least amount of severe tropical cyclones for the 1992 93 season and the tropical Lows smaller than 6?
### Response:
| SELECT MIN(Severe) AS tropical_cyclones FROM table_name_61 WHERE season = "1992–93" AND tropical_lows < 6 |
### Instruction:
What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement?
### Response:
| SELECT "Conditions of access" FROM table_28210 WHERE "Access using a Croatian identity card" = 'Yes' AND "Length of stay permitted" = 'Freedom of movement' |
### Instruction:
Show the names of members and the location of the performances they attended.
### Response:
| SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID |
### Instruction:
List all the possible ways to get to attractions, together with the number of attractions accessible by these methods Visualize by bar chart, list in desc by the bars.
### Response:
| SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY How_to_Get_There DESC |
### Instruction:
Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round?
### Response:
| SELECT team FROM table_name_92 WHERE recopa_1994 = "n/a" AND conmebol_1994 = "1st round" |
### Instruction:
how many patients are diagnosed with primary disease pituitary bleed and born before 2056?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "PITUITARY BLEED" AND demographic.dob_year < "2056" |
### Instruction:
For those records from the products and each product's manufacturer, what is the relationship between code and manufacturer , and group by attribute founder?
### Response:
| SELECT T1.Code, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder |
### Instruction:
Name the total water resources m3 for rainfall being 650
### Response:
| SELECT COUNT(per_capita_average_annual_renewable_water_resources_m_3) FROM table_22854436_1 WHERE average_annual_rainfall__mm_ = "650" |
### Instruction:
Find the number of patients with the primary disease s/p fall who died on or before 2133.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P FALL" AND demographic.dod_year <= "2133.0" |
### Instruction:
What is the Qaxmu al village with a Fistiqli village ke qutan?
### Response:
| SELECT "Qaxmu\u011fal" FROM table_75413 WHERE "F\u0131st\u0131ql\u0131" = 'keşqutan' |
### Instruction:
the flight will originate from BOSTON
### Response:
| SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'BOSTON' AND flight.from_airport = airport_service.airport_code |
### Instruction:
What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of ?
### Response:
| SELECT subj_pres FROM table_name_78 WHERE plur_pret = "u" AND sing_pret = "ou" AND sing_pres = "û" |
### Instruction:
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?
### Response:
| SELECT SUM("Games") FROM table_52203 WHERE "Rank" < '4' AND "Rebounds" < '275' AND "Team" = 'bruesa gbc' |
### Instruction:
what are the hospital admission times until 1 year ago for patient 25754?
### Response:
| SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 25754 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-1 year') |
### Instruction:
who was the next appointed director after lee p. brown ?
### Response:
| SELECT "name" FROM table_203_376 WHERE "term of office" > (SELECT "term of office" FROM table_203_376 WHERE "name" = 'lee p. brown') ORDER BY "term of office" LIMIT 1 |
### Instruction:
How many podiums had a race higher than 14 in 1996 and a Flap lower than 9?
### Response:
| SELECT COUNT("Podium") FROM table_46258 WHERE "Race" > '14' AND "Season" = '1996' AND "FLap" < '9' |
### Instruction:
What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?
### Response:
| SELECT AVG("Capacity") FROM table_67527 WHERE "City" = 'london' AND "Enrollment" < '30,000' |
### Instruction:
provide the number of patients whose drug code is onda4i?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "ONDA4I" |
### Instruction:
For Saint-Paul parish, if it has an area of over 228.65 kilometers how many people live there?
### Response:
| SELECT COUNT("Population") FROM table_76723 WHERE "Official Name" = 'saint-paul' AND "Area km 2" > '228.65' |
Subsets and Splits