Q&A about the site for science fiction and fantasy enthusiasts
SELECT us.*,tuser.Score, tuser.TagName FROM Users us JOIN (SELECT Answers.OwnerUserId AS UserId, SUM(Answers.Score) AS Score, Tags.TagName FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId JOIN Posts ON Posts.Id = PostTags.PostId JOIN Posts Answers ON Answers.ParentId = Posts.Id WHERE Tags.TagName IN ('low-latency','datascience','mathematica','hft','quantitative-finance','fix','quickfix','finance') GROUP BY Answers.OwnerUserId, Tags.TagName ) tuser ON tuser.UserId = us.Id WHERE lower(location) like '%new york%' or (lower(location) like '%new-york%') ORDER BY us.Id, tuser.TagName