instruction
stringlengths
53
549
output
stringlengths
30
2.33k
### Instruction: Find the team names of the universities whose enrollments are smaller than the average enrollment size. ### Response:
SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT AVG(enrollment) FROM university)
### Instruction: is capella 's current magnitude more than vega 's current magnitude ? ### Response:
SELECT (SELECT "current\nmagnitude" FROM table_203_56 WHERE "star" = 'capella') > (SELECT "current\nmagnitude" FROM table_203_56 WHERE "star" = 'vega')
### Instruction: What is the number of matches when the wins are less than 8, and losses of 7, in 2011? ### Response:
SELECT SUM("Matches") FROM table_43567 WHERE "Wins" < '8' AND "Losses" = '7' AND "Year" = '2011'
### Instruction: What are the works numbers where the year is 1929 and the driver diameter is 60'/1520mm? ### Response:
SELECT "Works No." FROM table_31321 WHERE "Year" = '1929' AND "Driver Diameter" = '60"/1520mm'
### Instruction: Percentage of SO users who can't downvote.. ### Response:
SELECT (((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation < 125) / (SELECT CAST(COUNT(*) AS FLOAT) FROM Users)) * 100) AS "% of users with < 125 rep."
### Instruction: Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q? ### Response:
SELECT "Leading scorer 1" FROM table_63114 WHERE "LeagueContested" = 'northern premier league premier division' AND "FA Cup" = '2q'
### Instruction: Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9? ### Response:
SELECT "Result" FROM table_44616 WHERE "Game" < '37' AND "Streak" = 'lost 1' AND "Record" = '4-9'
### Instruction: When turquoise is the map colour how many avg. trips per mile ( 1000) are there? ### Response:
SELECT COUNT(avg_trips_per_mile__) AS ร—1000_ FROM table_17839_1 WHERE map_colour = "Turquoise"
### Instruction: How many averages have recs smaller than 26, and a Player of reggie brown, and a Long smaller than 40? ### Response:
SELECT COUNT("Avg.") FROM table_5800 WHERE "Rec." < '26' AND "Player" = 'reggie brown' AND "Long" < '40'
### Instruction: Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3? ### Response:
SELECT AVG("Labour Panel") FROM table_40217 WHERE "Industrial and Commercial Panel" = '9' AND "University of Dublin" < '3'
### Instruction: What is the number of Population 2001 Census that has 476,815 in Population 1991 Census? ### Response:
SELECT SUM("Population 2001 Census") FROM table_37837 WHERE "Population 1991 Census" = '476,815'
### Instruction: Find the number of professors with a PhD degree in each department Show bar chart, and could you display X from low to high order? ### Response:
SELECT DEPT_CODE, COUNT(*) FROM PROFESSOR WHERE PROF_HIGH_DEGREE = 'Ph.D.' GROUP BY DEPT_CODE ORDER BY DEPT_CODE
### Instruction: What was the draw for 'Feel The Pain' which placed in 2nd and had more than 79 points? ### Response:
SELECT AVG("Draw") FROM table_50797 WHERE "Place" = '2nd' AND "Song" = 'feel the pain' AND "Points" > '79'
### Instruction: What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament? ### Response:
SELECT "2008" FROM table_50388 WHERE "2009" = '0' AND "Tournament" = 'atp tournaments won'
### Instruction: What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5? ### Response:
SELECT SUM("Swing to gain") FROM table_10838 WHERE "Winning party 2007" = 'conservative' AND "Rank" < '5'
### Instruction: what is discharge time and diagnoses short title of subject name cynthia robinson? ### Response:
SELECT demographic.dischtime, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Cynthia Robinson"
### Instruction: Avg/G that has a Att-Cmp-Int of 1 1 0, and an Effic larger than 394 is what total? ### Response:
SELECT COUNT(avg_g) FROM table_name_62 WHERE att_cmp_int = "1โ€“1โ€“0" AND effic > 394
### Instruction: What tournament or series was played in England, when games played was 4, points for were 121? ### Response:
SELECT tournament_or_series FROM table_name_15 WHERE played_in = "england" AND games_played___tests__ = "4" AND points_for___tests__ = "121"
### Instruction: What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576? ### Response:
SELECT MAX(kneel) FROM table_name_59 WHERE stand < 187 AND prone = 197 AND qual > 576
### Instruction: what is the total number of reasons for change where the date the successor was seated is june 8, 1876? ### Response:
SELECT COUNT(reason_for_change) FROM table_2192067_4 WHERE date_successor_seated = "June 8, 1876"
### Instruction: can i have a RENTAL CAR in HOUSTON ### Response:
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'HOUSTON' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'RENTAL CAR'
### Instruction: What is the release price for a processor with part number cy80632007227ab? ### Response:
SELECT release_price___usd__ FROM table_16729930_18 WHERE part_number_s_ = "CY80632007227AB"
### Instruction: What is the highest rebound Dennis Rodman obtained within the 20 rebounds category given two of the following:points, rebounds, assists, steals, and blocked shots (points) greater equal to 5 ### Response:
SELECT MAX("20 rebounds") FROM table_3384 WHERE "Double double" = '5'
### Instruction: Of the upper-level classes , which ones are 8 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 = 8 AND program_course.category LIKE 'ULCS'
### Instruction: how many patients have gotten discharged from the hospital since 6 years ago? ### Response:
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-6 year')
### Instruction: What is the average rank of the movie from Paramount Studios that grossed $200,512,643? ### Response:
SELECT AVG("Rank") FROM table_44121 WHERE "Studio" = 'paramount' AND "Gross" = '$200,512,643'
### Instruction: had patient 028-40370 been admitted since 2104 in hospital? ### Response:
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '028-40370' AND STRFTIME('%y', patient.hospitaladmittime) >= '2104'
### Instruction: what is primary disease and diagnoses short title of subject id 25543? ### Response:
SELECT demographic.diagnosis, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "25543"
### Instruction: What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76.18? ### Response:
SELECT "Clean & jerk" FROM table_53481 WHERE "Snatch" < '150' AND "Bodyweight" = '76.18'
### Instruction: How many coaches does each club has? List the club id, name and the number of coaches. ### Response:
SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id
### Instruction: Show the authors who have submissions to more than one workshop. ### Response:
SELECT T2.author FROM acceptance AS T1 JOIN submission AS T2 ON T1.submission_id = T2.submission_id GROUP BY T2.author HAVING COUNT(DISTINCT T1.workshop_id) > 1
### Instruction: give me the number of patients whose admission type is elective and admission year is less than 2146? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2146"
### Instruction: Find the name of students who took some course offered by Statistics department. ### Response:
SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'
### Instruction: what is the date for when the georgian name is ? ### Response:
SELECT "Date" FROM table_25012 WHERE "Georgian name" = 'แƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ แƒ“แƒ แƒฃแƒฌแƒงแƒ”แƒ‘แƒ แƒ‘แƒแƒ’แƒ แƒแƒขแƒแƒœแƒ˜แƒแƒœแƒ—แƒ'
### Instruction: What zone was the Semifinal game played against Israel with Anna Smashnova as the opponent? ### Response:
SELECT "Zone" FROM table_57661 WHERE "Round" = 'semifinal' AND "Against" = 'israel' AND "Opponent" = 'anna smashnova'
### Instruction: provide the number of patients whose discharge location is short term hospital and age is less than 68? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.age < "68"
### Instruction: What was the position for mauro at the world championships in 1985 during the foil individual event? ### Response:
SELECT "Position" FROM table_39108 WHERE "Event" = 'foil individual' AND "Competition" = 'world championships' AND "Year" = '1985'
### Instruction: Name the winner for adriano baffi and integiro classification of j n svorada for stage of 13 ### Response:
SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "jรกn svorada" AND stage = "13"
### Instruction: Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4? ### Response:
SELECT "Performer 2" FROM table_36537 WHERE "Performer 4" = 'josie lawrence' AND "Date" = '9 april 1993'
### Instruction: where are some good arabic -s in mountain view ? ### Response:
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
### Instruction: Display a bar chart for what is the name of each aircraft and how many flights does each one complete?, and could you sort by the x axis in desc? ### Response:
SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name DESC
### Instruction: there are the same number of centers as what other position on the team ? ### Response:
SELECT "position" FROM table_204_140 WHERE "position" <> 'center' GROUP BY "position" HAVING COUNT(*) = (SELECT COUNT(*) FROM table_204_140 WHERE "position" = 'center')
### Instruction: tell me the long title of procedure and discharge location of patient with patient id 813. ### Response:
SELECT demographic.discharge_location, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "813"
### Instruction: For the transaction dates if share count is smaller than 10, bin the dates into the year interval, and count them using a line chart, order X from low to high order. ### Response:
SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count < 10 ORDER BY date_of_transaction
### Instruction: What is the 2006 population of the area with vehicle registration code of G and population density of 1,432.0? ### Response:
SELECT population__2006_ FROM table_name_7 WHERE vehicle_registration_code = "g" AND population_density = "1,432.0"
### Instruction: What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy? ### Response:
SELECT catalogue FROM table_name_83 WHERE track < 16 AND recorded = "2/3/56" AND song_title = "lawdy miss clawdy"
### Instruction: What Rider had a Speed of 108.347mph and Time of 1:02.40.93? ### Response:
SELECT rider FROM table_name_12 WHERE speed = "108.347mph" AND time = "1:02.40.93"
### Instruction: Comments on my answers with fixed score. How many comments do I have for each score. ### Response:
SELECT p.Id AS "post_link", c.Text FROM Posts AS p JOIN Comments AS c ON c.PostId = p.Id WHERE p.OwnerUserId = @UserId AND NOT c.UserId = @UserId
### Instruction: what is the date when the surface is clay and the result is 6 7 (4 7) , 1 6? ### Response:
SELECT "Date" FROM table_50813 WHERE "Surface" = 'clay' AND "Result" = '6โ€“7 (4โ€“7) , 1โ€“6'
### Instruction: Draw a bar chart about the distribution of ACC_Road and the sum of Team_ID , and group by attribute ACC_Road, sort in descending by the X. ### Response:
SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC
### Instruction: how many patients had been discharged from the hospital since 3 years ago. ### Response:
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime) >= DATETIME(CURRENT_TIME(), '-3 year')
### Instruction: Longest Post for Amal Murali. ### Response:
SELECT Id AS "post_link", LENGTH(Body) - (PATINDEX('%</code></pre>%', Body) - PATINDEX('%<pre><code>%', Body)) AS lenwithoutcode FROM Posts ORDER BY 2 DESC LIMIT 20
### Instruction: What year has the vehicle of open wheel and a racing series of formula one with a Nation of citizenship in Germany. ### Response:
SELECT year FROM table_name_90 WHERE type_of_vehicle = "open wheel" AND racing_series = "formula one" AND nation_of_citizenship = "germany"
### Instruction: For those records from the products and each product's manufacturer, return a scatter chart about the correlation between code and price , and group by attribute name. ### Response:
SELECT T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name
### Instruction: For those records from the products and each product's manufacturer, what is the relationship between code and revenue , and group by attribute founder? ### Response:
SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder
### Instruction: Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii ### Response:
SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = "yuvan shankar raja" AND film = "billa ii"
### Instruction: What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network? ### Response:
SELECT weight FROM table_name_33 WHERE internal_storage = "16-64 gb" AND wireless_network = "wi-fi, 3g"
### Instruction: how many patients admitted before 2111 have been discharged to home health care facility? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.admityear < "2111"
### Instruction: Who is the rider who has a rank lower than 10, and a time of 1:26.31.20? ### Response:
SELECT "Rider" FROM table_53245 WHERE "Rank" < '10' AND "Time" = '1:26.31.20'
### Instruction: Find the number of courses that have two prerequisites for each title in a bar chart, and rank y-axis in asc order. ### Response:
SELECT title, COUNT(title) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title ORDER BY COUNT(title)
### Instruction: WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE? ### Response:
SELECT MIN("Money ( $ )") FROM table_60626 WHERE "Score" = '74-74-76-74=298'
### Instruction: Your accepted answers sorted by score. ### Response:
SELECT * FROM Posts AS Answers WHERE OwnerUserId = '##UserId##' AND PostTypeId = 2 AND EXISTS(SELECT Id FROM Posts AS Questions WHERE PostTypeId = 1 AND Questions.AcceptedAnswerId = Answers.Id) ORDER BY Score DESC
### Instruction: What is the name of the home team on April 13, 2008 when Itabuna was the away team? ### Response:
SELECT "Home team" FROM table_75944 WHERE "Date" = 'april 13, 2008' AND "Away team" = 'itabuna'
### Instruction: Total DTD (Range) 'google-classroom' Tag. ### Response:
SELECT Id AS "post_link", CreationDate, Tags, Score, AnswerCount, CommentCount FROM Posts WHERE Posts.Tags LIKE '%google-classroom%' AND CreationDate BETWEEN @StartDate AND @EndDate ORDER BY CreationDate
### Instruction: Which average Against has Drawn of 3, and Points larger than 9, and a Team of portuguesa? ### Response:
SELECT AVG("Against") FROM table_38951 WHERE "Drawn" = '3' AND "Points" > '9' AND "Team" = 'portuguesa'
### Instruction: Top users: Any country having atleast 100 reputation. ### Response:
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%##CountryName##%' AND Reputation >= 100 ORDER BY Reputation DESC
### Instruction: What's the sum of A Score that also has a score lower than 7.3 and an E Score larger than 7.1? ### Response:
SELECT SUM("A Score") FROM table_75200 WHERE "T Score" < '7.3' AND "E Score" > '7.1'
### Instruction: find the number of emergency hospital admission patients who were admitted via emergency hospital room. ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.admission_location = "EMERGENCY ROOM ADMIT"
### Instruction: For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team? ### Response:
SELECT "Home team" FROM table_45777 WHERE "Date" = '7 january 1956' AND "Away team" = 'accrington stanley'
### Instruction: Show the official names of the cities that have hosted more than one competition. ### Response:
SELECT T1.official_name FROM city AS T1 JOIN farm_competition AS T2 ON T1.city_id = T2.host_city_id GROUP BY T2.host_city_id HAVING COUNT(*) > 1
### Instruction: Top Indonesian users in StackOverFlow. ### Response:
SELECT *, ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation AS "tes" FROM Users WHERE LOWER(Location) LIKE '%indonesia%' AND Reputation > 200 ORDER BY LastAccessDate DESC
### Instruction: Which Red Cards has a Season of 1998/1999, and a Games larger than 41? ### Response:
SELECT MIN("Red Cards") FROM table_44063 WHERE "Season" = '1998/1999' AND "Games" > '41'
### Instruction: Can you tell me the Total that has the A Score larger than 6.4, and the B Score smaller than 9.025? ### Response:
SELECT "Total" FROM table_13918 WHERE "A Score" > '6.4' AND "B Score" < '9.025'
### Instruction: what is minimum age of patients whose admission location is trsf within this facility and primary disease is ruq pain? ### Response:
SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "RUQ PAIN"
### Instruction: List the positions of players whose average number of points scored by that position is larger than 20, compare the number of positions, and I want to rank in asc by the the number of position. ### Response:
SELECT Position, COUNT(Position) FROM player GROUP BY Position HAVING AVG(Points) >= 20 ORDER BY COUNT(Position)
### Instruction: Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year? ### Response:
SELECT SUM("Year") FROM table_69471 WHERE "Round 1" = '66' AND "Money ($)" > '400,000'
### Instruction: Which Player had a Date of 31 jan. 2008, and a Transfer fee of 3.87m? ### Response:
SELECT "Player" FROM table_6759 WHERE "Date" = '31 jan. 2008' AND "Transfer fee" = 'ยฃ3.87m'
### Instruction: Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? ### Response:
SELECT "Chassis" FROM table_80101 WHERE "Year" < '1956' AND "Engine" = 'gordini straight-4' AND "Points" = '3'
### Instruction: What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930? ### Response:
SELECT status FROM table_name_21 WHERE population > 930 AND census_ranking = "1,769 of 5,008"
### Instruction: For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($) ### Response:
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_71 WHERE score = "207 (-9)" AND tournament = "gte northwest classic"
### Instruction: what's the estimated deaths with operational period of 17 march 1942 end of june 1943 ### Response:
SELECT "Estimated deaths" FROM table_16055 WHERE "Operational" = '17 March 1942 โ€“ end of June 1943'
### Instruction: Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year? ### Response:
SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around"
### Instruction: 14-17 was published in 1836 . when was the previous one published ? ### Response:
SELECT "published" FROM table_204_549 WHERE id = (SELECT id FROM table_204_549 WHERE "series\nnumber" = '14-17') - 1
### Instruction: What is the level name of the cheapest catalog (in USD)? ### Response:
SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1
### Instruction: how many patients were prescribed glucagon (human recombinant)? ### Response:
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'glucagon (human recombinant)')
### Instruction: What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999? ### Response:
SELECT "Name" FROM table_37191 WHERE "Location" = 'gulf of mexico' AND "Type" = 'ship' AND "Entered service" = '1999'
### Instruction: how many patients whose insurance is medicare and primary disease is guillain barre syndrome? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.diagnosis = "GUILLAIN BARRE SYNDROME"
### Instruction: Which Result has a Score of 2 0, and a Competition of 2006 fifa world cup qualification? ### Response:
SELECT "Result" FROM table_10044 WHERE "Score" = '2 โ€“ 0' AND "Competition" = '2006 fifa world cup qualification'
### Instruction: Which Score has an Opponent of washington capitals, and a Record of 24-34-17? ### Response:
SELECT "Score" FROM table_48713 WHERE "Opponent" = 'washington capitals' AND "Record" = '24-34-17'
### Instruction: what is maximum age of patients whose admission type is emergency and admission year is greater than or equal to 2174? ### Response:
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.admityear >= "2174"
### Instruction: What is the first name and last name of the student who have most number of sports? ### Response:
SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: Return the average number of weeks on top for volumes by artists that are at most 25 years old. ### Response:
SELECT AVG(T2.weeks_on_top) FROM artist AS T1 JOIN volume AS T2 ON T1.artist_id = T2.artist_id WHERE T1.age <= 25
### Instruction: What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971? ### Response:
SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12"
### Instruction: what is the mountain peak when the location is 53.1370 n 119.2667 w? ### Response:
SELECT "Mountain Peak" FROM table_47377 WHERE "Location" = '53.1370ยฐn 119.2667ยฐw'
### Instruction: What is Opponent In The Final, when Date is before 1991, and when Outcome is 'Runner-Up'? ### Response:
SELECT "Opponent in the final" FROM table_76312 WHERE "Date" < '1991' AND "Outcome" = 'runner-up'
### Instruction: how many patients have been prescribed the drug with code pred1? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "PRED1"
### Instruction: Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal? ### Response:
SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal"
### Instruction: Let me know the age and short title of diagnoses for patient with patient id 2560. ### Response:
SELECT demographic.age, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "2560"
### Instruction: since 2101, what were the admission times of patient 13841 at the hospital? ### Response:
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 13841 AND STRFTIME('%y', admissions.admittime) >= '2101'
### Instruction: Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver? ### Response:
SELECT "Venue" FROM table_33309 WHERE "Year" > '1991' AND "Bronze" = 'czech republic' AND "Silver" = 'russia'