instruction
stringlengths 53
549
| output
stringlengths 30
2.33k
|
---|---|
### Instruction:
What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633?
### Response:
| SELECT "Set 5" FROM table_75754 WHERE "Set 2" = '21-25' AND "Set 1" = '41633' |
### Instruction:
How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?
### Response:
| SELECT SUM(ends_won) FROM table_name_58 WHERE blank_ends < 14 AND locale = "manitoba" AND stolen_ends > 13 |
### Instruction:
What mintage for the royal canadian mint engravers before 2008 that has an issue price of $102.95?
### Response:
| SELECT mintage FROM table_name_98 WHERE artist = "royal canadian mint engravers" AND year < 2008 AND issue_price = "$102.95" |
### Instruction:
what was the difference in attendance between july 7 and july 8 ?
### Response:
| SELECT ABS((SELECT "attendance" FROM table_203_336 WHERE "date" = 'july 7') - (SELECT "attendance" FROM table_203_336 WHERE "date" = 'july 8')) |
### Instruction:
Which Opponents have Attendance larger than 10,346, and a Date of 25 november 2008?
### Response:
| SELECT "Opponents" FROM table_60361 WHERE "Attendance" > '10,346' AND "Date" = '25 november 2008' |
### Instruction:
What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?
### Response:
| SELECT MIN(year) FROM table_name_99 WHERE entrant = "rotary watches stanley brm" AND chassis = "brm p207" AND points > 0 |
### Instruction:
show me the number of government health insurance patients who were ordered to get blasts lab test.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Government" AND lab.label = "Blasts" |
### Instruction:
provide the number of patients whose admission location is emergency room admit and primary disease is liver transplant?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "LIVER TRANSPLANT" |
### Instruction:
What were the shots below par when the winning score was 67-64-63-71-66=331?
### Response:
| SELECT to_par FROM table_247955_2 WHERE winning_score = 67 - 64 - 63 - 71 - 66 = 331 |
### Instruction:
What was the maximum speed for straight-4, 1.466 cc Type r 150?
### Response:
| SELECT "Vmax" FROM table_45300 WHERE "Cylinder" = 'straight-4' AND "Capacity" = '1.466 cc' AND "Type" = 'r 150' |
### Instruction:
tell me the number of patients who were ordered platelet count lab test and had abnormal lab test status.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Platelet Count" |
### Instruction:
count the number of patients whose ethnicity is white - russian and admission year is less than 2150?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear < "2150" |
### Instruction:
Which programs require LATIN 195 ?
### Response:
| SELECT DISTINCT program.name FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN program ON program.program_id = program_course.program_id WHERE course.department = 'LATIN' AND course.number = 195 |
### Instruction:
how many female patients have been diagnosed with unspecified constipation?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Constipation NOS" |
### Instruction:
Which 2005 has a G zel aml s Lost Panther of the muse?
### Response:
| SELECT MAX("2005") FROM table_53536 WHERE "G\u00fczel\u00e7aml\u0131\u2019s Lost Panther" = 'the muse' |
### Instruction:
what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?
### Response:
| SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2 |
### Instruction:
List the names of aircrafts and the number of times it won matches by a bar chart, could you list in asc by the Aircraft?
### Response:
| SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY Aircraft |
### Instruction:
provide the number of patients whose age is less than 89 and lab test abnormal status is abnormal?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "89" AND lab.flag = "abnormal" |
### Instruction:
what is the number of patients whose religion is christian scientist and admission year is less than 2194?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "CHRISTIAN SCIENTIST" AND demographic.admityear < "2194" |
### Instruction:
Top 10 Stackoverflow Users in Saudi Arabia.
### Response:
| SELECT DisplayName, Location, 'https://stackoverflow.com/users/' + CAST(Id AS TEXT), Reputation FROM Users WHERE LOWER(Location) LIKE '%saudi%' OR LOWER(Location) LIKE '%saudi arabia%' ORDER BY 4 DESC LIMIT 10 |
### Instruction:
What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
### Response:
| SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4 |
### Instruction:
What's the score of the game with a Loss of Glavine (12-5) that more than 29,007 people attended?
### Response:
| SELECT "Score" FROM table_5226 WHERE "Attendance" > '29,007' AND "Loss" = 'glavine (12-5)' |
### Instruction:
What is minimum hours of the students playing in different position Plot them as bar chart, and display by the y-axis in asc.
### Response:
| SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos ORDER BY MIN(T2.HS) |
### Instruction:
Number of up votes on answers in past 30 days.
### Response:
| SELECT COUNT(*) FROM Votes JOIN Posts ON Votes.PostId = Posts.Id WHERE Votes.VoteTypeId IN (2) AND Votes.CreationDate >= DATEADD(DAY, -30, GETDATE()) AND Posts.PostTypeId IN (2) |
### Instruction:
Show the apartment numbers, start dates, and end dates of all the apartment bookings.
### Response:
| SELECT T2.apt_number, T1.booking_start_date, T1.booking_start_date FROM apartment_bookings AS T1 JOIN apartments AS T2 ON T1.apt_id = T2.apt_id |
### Instruction:
Average reputation for users asking questions with java tag.
### Response:
| SELECT AVG(usr.Reputation) FROM Posts AS post JOIN Users AS usr ON usr.Id = post.OwnerUserId JOIN PostTags AS pt ON pt.PostId = post.Id JOIN Tags AS tag ON tag.Id = pt.TagId WHERE tag.TagName = 'java' |
### Instruction:
Questions linked to JavaScript function expressions and function declarations.
### Response:
| SELECT Id, ViewCount, Title, Tags, AnswerCount, CommentCount, FavoriteCount FROM Posts WHERE Id IN (SELECT PostId FROM Posts JOIN PostLinks ON Posts.Id = PostLinks.RelatedPostId WHERE RelatedPostId = 336859) |
### Instruction:
What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06)
### Response:
| SELECT original_team FROM table_12286195_1 WHERE result = "08 Fired in week 10 (2008-03-06)" |
### Instruction:
What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY?
### Response:
| SELECT "FCC info" FROM table_70509 WHERE "Frequency MHz" < '91.9' AND "City of license" = 'dansville, ny' |
### Instruction:
What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%
### Response:
| SELECT "International tourist arrivals (2010)" FROM table_19568 WHERE "Change (2010 to 2011)" = '+15%' |
### Instruction:
What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?
### Response:
| SELECT "Type" FROM table_61180 WHERE "Ends" = '2013' AND "Transfer window" = 'summer' AND "Moving from" = 'kalmar ff' |
### Instruction:
What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939?
### Response:
| SELECT "Term end" FROM table_46080 WHERE "Political Party" = 'albanian fascist party' AND "Term start" = '12 april 1939' |
### Instruction:
What is the Name with a Year with freshman, and a Home Town with los angeles, ca, and a Height of 6 4?
### Response:
| SELECT "Name" FROM table_77515 WHERE "Year" = 'freshman' AND "Home Town" = 'los angeles, ca' AND "Height" = '6β4' |
### Instruction:
What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final?
### Response:
| SELECT "Method" FROM table_71630 WHERE "Round" > '1' AND "Event" = 'k-1 andy memorial 2001 japan gp final' |
### Instruction:
What is English Translation, when Lyricist(s) is 'Giorgos Moukidis', and when Original Album is 'Ena (New Edition)
### Response:
| SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)" |
### Instruction:
What is the start date and time of the walk that ends March 28, 2005, 11:31?
### Response:
| SELECT start___utc__ FROM table_22385461_6 WHERE end__utc_ = "March 28, 2005, 11:31" |
### Instruction:
how many patients were diagnosed with stomatits & mucosits nec?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Stomatits & mucosits NEC" |
### Instruction:
What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=
### Response:
| SELECT COUNT("Moment of inertia in torsion (J) (cm 4 )") FROM table_23836 WHERE "Beam height (mm)" = '120' |
### Instruction:
WHICH Corrected time d:hh:mm:ss has a Position smaller than 7, and a Yacht type of cookson 50
### Response:
| SELECT "Corrected time d:hh:mm:ss" FROM table_36478 WHERE "Position" < '7' AND "Yacht type" = 'cookson 50' |
### Instruction:
how many patients aged below 79 years had neb as the drug route?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "79" AND prescriptions.route = "NEB" |
### Instruction:
What is Year, when Competition Description is 'U.S. Championships', when Rank-Final is less than 3, and when Apparatus is 'All-Around'?
### Response:
| SELECT year FROM table_name_79 WHERE competition_description = "u.s. championships" AND rank_final < 3 AND apparatus = "all-around" |
### Instruction:
Show the id and builder of the railway that are associated with the most trains.
### Response:
| SELECT T2.Railway_ID, T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_ID ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
For each director, return the highest rating among all of movies and the value of that rating by a scatter chart. Ignore movies whose director is NULL.
### Response:
| SELECT stars, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" GROUP BY stars |
### Instruction:
return me the paper after 2000 in PVLDB with more than 200 citations .
### Response:
| SELECT publication.title FROM journal, publication WHERE journal.name = 'PVLDB' AND publication.citation_num > 200 AND publication.jid = journal.jid AND publication.year > 2000 |
### Instruction:
Who was the home team of the match on 21.10.07, which had bsc young boys (asl) as the geust?
### Response:
| SELECT "Home" FROM table_49427 WHERE "Date" = '21.10.07' AND "Geust" = 'bsc young boys (asl)' |
### Instruction:
what is average age of patients whose ethnicity is white - russian and admission year is greater than or equal to 2144?
### Response:
| SELECT AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear >= "2144" |
### Instruction:
The most valued answer by tag. Enter the tag which you are interested in
### Response:
| SELECT answer.Id AS "post_link", answer.Score FROM Posts AS p, Posts AS answer WHERE p.Tags LIKE '<' + '##tag:string##' + '>' AND answer.ParentId = p.Id ORDER BY answer.Score DESC LIMIT 50 |
### Instruction:
Which Surface has an Opponent of kerry melville reid, and a Score of 6 3, 2 6, 3 6?
### Response:
| SELECT surface FROM table_name_53 WHERE opponent = "kerry melville reid" AND score = "6β3, 2β6, 3β6" |
### Instruction:
How many Attendance has a Opponent of west bromwich albion, and a Result of 3 3, and a Match larger than 20?
### Response:
| SELECT SUM(attendance) FROM table_name_79 WHERE opponent = "west bromwich albion" AND result = "3 β 3" AND match > 20 |
### Instruction:
Find 2nd postdate of top 3 users.
### Response:
| SELECT ph2.UserId, MIN(ph2.CreationDate) AS SecondPostTime FROM PostHistory AS ph2 WHERE ph2.CreationDate > (SELECT MIN(ph1.CreationDate) FROM PostHistory AS ph1) GROUP BY ph2.UserId LIMIT 3 |
### Instruction:
Which Music has a Score of 30 (10, 10, 10), and a Style of cha-cha-cha?
### Response:
| SELECT "Music" FROM table_38759 WHERE "Score" = '30 (10, 10, 10)' AND "Style" = 'cha-cha-cha' |
### Instruction:
Show the name of the building that has the most company offices.
### Response:
| SELECT T2.name FROM office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
find the number of patients whose insurance is self pay and lab test name is platelet count.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Self Pay" AND lab.label = "Platelet Count" |
### Instruction:
What is the lowest 2009 value with a 2010 value of 141 and a 1985 value bigger than 165?
### Response:
| SELECT MIN(2009) FROM table_name_18 WHERE 2010 = 141 AND 1985 > 165 |
### Instruction:
Who was the U21 Mens winner when Mike Marsden was the mixed restricted winner and Claire Nelson was the U21 Womens winner?
### Response:
| SELECT "U21 Mens" FROM table_74250 WHERE "Mixed Restricted" = 'Mike Marsden' AND "U21 Womens" = 'Claire Nelson' |
### Instruction:
For those records from the products and each product's manufacturer, show me about the distribution of founder and the average of price , and group by attribute founder in a bar chart.
### Response:
| SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder |
### Instruction:
patient 035-14278 since 2 years ago has been admitted to the hospital?
### Response:
| SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '035-14278' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') |
### Instruction:
which 1965 film starred actors elizabeth taylor and richard burton ?
### Response:
| SELECT "title" FROM table_201_19 WHERE "actors" = 'elizabeth taylor' INTERSECT SELECT "title" FROM table_201_19 WHERE "actors" = 'richard burton' |
### Instruction:
Which building was built in 2015, has less than 40 floors and is larger than 509 feet?
### Response:
| SELECT MAX("Metres") FROM table_4648 WHERE "Finalized" = '2015' AND "Floors" < '40' AND "Feet" > '509' |
### Instruction:
Return a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road, display in asc by the total number of school id.
### Response:
| SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(School_ID) |
### Instruction:
Show the number of documents in different ending date Bin ending date by year interval and group by location code with a group line chart, show by the X from low to high.
### Response:
| SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Location_Code ORDER BY Date_in_Locaton_To |
### Instruction:
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
### Response:
| SELECT region_name FROM table_287659_2 WHERE regional_page__number = "1-3, 5-7, 9-11, 13-15" |
### Instruction:
For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up?
### Response:
| SELECT runner_s__up FROM table_name_67 WHERE margin_of_victory = "5 strokes" AND date = "nov 13, 1988" |
### Instruction:
Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?
### Response:
| SELECT "Entrant" FROM table_68738 WHERE "Pts." < '12' AND "Engine" = 'climax' AND "Chassis" = 'lotus 24' |
### Instruction:
High reputation users who've been inactive for at least 12 months.
### Response:
| SELECT Id AS "user_link", Reputation, CAST(LastAccessDate AS DATE) AS LastActive FROM Users WHERE Reputation > 25000 AND DATEDIFF(month, LastAccessDate, GETDATE()) > 12 ORDER BY LastAccessDate DESC |
### Instruction:
What was the position of the team that played in a venue in Dinamo, Minsk with a capacity larger than 3,550?
### Response:
| SELECT "Position in 1998" FROM table_37125 WHERE "Capacity" > '3,550' AND "Venue" = 'dinamo, minsk' |
### Instruction:
What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?
### Response:
| SELECT COUNT("Total Region") FROM table_68672 WHERE "Mirani" = '5,220' AND "Mackay" < '75,020' |
### Instruction:
What are the names of the songs without a lead vocal?
### Response:
| SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE type = "lead" |
### Instruction:
return me the number of keywords in PVLDB .
### Response:
| SELECT COUNT(DISTINCT (keyword.keyword)) FROM journal, keyword, publication, publication_keyword WHERE journal.name = 'PVLDB' AND publication_keyword.kid = keyword.kid AND publication.jid = journal.jid AND publication.pid = publication_keyword.pid |
### Instruction:
What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?
### Response:
| SELECT MIN("Last CF") FROM table_60296 WHERE "CF appearances" = '2' AND "Cup wins" = '0' AND "CF wins" < '0' |
### Instruction:
Draw a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road, I want to show by the Y in ascending.
### Response:
| SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(School_ID) |
### Instruction:
Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?
### Response:
| SELECT "Performer 1" FROM table_36738 WHERE "Performer 3" = 'paul merton' AND "Performer 4" = 'sandi toksvig' |
### Instruction:
How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?
### Response:
| SELECT COUNT("Draw") FROM table_33191 WHERE "Loss" < '8' AND "Point" > '30' AND "Goal Diff" > '26' |
### Instruction:
What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8
### Response:
| SELECT notation FROM table_101336_1 WHERE crystal_structure = "Tetragonal" AND formula = "Bi 2 Sr 2 CaCu 2 O 8" |
### Instruction:
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982?
### Response:
| SELECT gross_revenue__2011_ FROM table_name_6 WHERE gross_revenue__1982_ = "$156,315" |
### Instruction:
how many of the female patients had icd9 code 4610?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "4610" |
### Instruction:
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year larger than 1987?
### Response:
| SELECT SUM("Pts.") FROM table_59158 WHERE "Engine" = 'ferrari tipo 033 v6 tc' AND "Year" > '1987' |
### Instruction:
How many movies about Iraq war were produced in 2015 ?
### Response:
| SELECT COUNT(DISTINCT (movie.title)) FROM keyword, movie, tags WHERE keyword.keyword = 'Iraq war' AND movie.release_year = 2015 AND tags.kid = keyword.id AND tags.msid = movie.mid |
### Instruction:
What are my last five active tags?.
### Response:
| SELECT TagName, LastActivityDate FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId WHERE Posts.OwnerUserId = @UserId GROUP BY TagName, LastActivityDate ORDER BY LastActivityDate DESC LIMIT 5 |
### Instruction:
What is the 1st round with a 2nd round of 0 - 1, and team 1 sco angers (d1)?
### Response:
| SELECT "1st round" FROM table_48483 WHERE "2nd round" = '0 - 1' AND "Team 1" = 'sco angers (d1)' |
### Instruction:
What is the average 2007 value for a 2006 of 2.8 and 2009 under 20?
### Response:
| SELECT AVG("2007") FROM table_79288 WHERE "2009" < '20' AND "2006" = '2.8' |
### Instruction:
what counties had the least participants for the race ?
### Response:
| SELECT "nationality" FROM table_204_849 GROUP BY "nationality" HAVING COUNT("name") = (SELECT COUNT("name") FROM table_204_849 GROUP BY "nationality" ORDER BY COUNT("name") LIMIT 1) |
### Instruction:
which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
### Response:
| SELECT "Category" FROM table_64080 WHERE "Result" = 'nominated' AND "Lost to" = 'jennifer westfeldt ( kissing jessica stein )' |
### Instruction:
What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?
### Response:
| SELECT MIN("Gold") FROM table_35578 WHERE "Participants" < '14' AND "Rank" = '1' AND "Total" > '1' |
### Instruction:
What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
### Response:
| SELECT "Percentage Democrats" FROM table_52941 WHERE "Democratic seat plurality" = '-3' AND "Democratic/ Republican" = '2/5' |
### Instruction:
How much Latitude has a Water (sqmi) of 0.267, and an ANSI code larger than 1759605?
### Response:
| SELECT SUM(latitude) FROM table_name_9 WHERE water__sqmi_ = 0.267 AND ansi_code > 1759605 |
### Instruction:
systolic blood pressure > 180 mm hg or diastolic blood pressure > 100 mm hg
### Response:
| SELECT * FROM table_train_161 WHERE systolic_blood_pressure_sbp > 180 OR diastolic_blood_pressure_dbp > 100 |
### Instruction:
What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6 2, 2 6, 7 5?
### Response:
| SELECT outcome FROM table_name_63 WHERE opponent = "victoria azarenka" AND score = "6β2, 2β6, 7β5" |
### Instruction:
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?
### Response:
| SELECT AVG("Pass Def") FROM table_68108 WHERE "Team" = 'green bay packers' AND "Solo" = '62' AND "Sacks" < '2' |
### Instruction:
Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?
### Response:
| SELECT second_party FROM table_name_31 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy" |
### Instruction:
Can you return all detailed info of jobs which was done by any of the employees who is presently earning a salary on and above 12000?
### Response:
| SELECT * FROM job_history AS T1 JOIN employees AS T2 ON T1.employee_id = T2.employee_id WHERE T2.salary >= 12000 |
### Instruction:
Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?
### Response:
| SELECT "General classification" FROM table_30806 WHERE "Winner" = 'Sergio Luis Henao' AND "Points classification" = 'Sergio Luis Henao' |
### Instruction:
For those records from the products and each product's manufacturer, show me about the distribution of founder and the sum of price , and group by attribute founder in a bar chart.
### Response:
| SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder |
### Instruction:
What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?
### Response:
| SELECT MIN("Week") FROM table_41825 WHERE "Time (CST)" = '7:15 p.m.' AND "Game site" = 'fedexfield' |
### Instruction:
Which Silver is the lowest one that has a Gold larger than 0, and a Rank of total, and a Bronze smaller than 32?
### Response:
| SELECT MIN("Silver") FROM table_74949 WHERE "Gold" > '0' AND "Rank" = 'total' AND "Bronze" < '32' |
### Instruction:
What is the average Heat Points, when Result is 'Loss', when Game is greater than 72, and when Date is 'April 21'?
### Response:
| SELECT AVG(heat_points) FROM table_name_83 WHERE result = "loss" AND game > 72 AND date = "april 21" |
### Instruction:
give me the number of patients whose insurance is private and lab test name is ferritin?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Private" AND lab.label = "Ferritin" |
### Instruction:
How many years of nasl years did the accolades read 'captained england to victory at the 1966 world cup'?
### Response:
| SELECT COUNT("NASL years") FROM table_2931 WHERE "Accolades (Pre-NASL)" = 'Captained England to victory at the 1966 World Cup' |
### Instruction:
How many of the patients had left internal jugular vein thrombosis left arm edema as their primary disease?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" |
### Instruction:
What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen?
### Response:
| SELECT "TOTAL Time in Office:" FROM table_64675 WHERE "Rank:" < '18' AND "Premier:" = 'joh bjelke-petersen' |
Subsets and Splits