Q&A for scientists using computers to solve scientific problems
SELECT TOP(##num?500##) p.Id As [Post Link], p.Body, p.OwnerUserId AS [User Link], p.LastActivityDate, q.LastActivityDate, p.Score, CASE p.PostTypeId WHEN 1 THEN 'Question' WHEN 2 THEN 'Answer' END, q.Tags, q.Score, q.ViewCount, q.AnswerCount FROM Posts p INNER JOIN Posts q ON q.Id=COALESCE(p.ParentId,p.Id) WHERE (p.Body Like '%##word?http://dx.doi.org##%') ORDER BY q.LastActivityDate DESC