Q&A for theoretical computer scientists and researchers in related fields
SELECT q.Id, q.CreationDate, q.Tags, q.Title, q.Body, a.Body, q.Score, a.Score FROM Posts q LEFT JOIN Posts a ON a.Id=q.AcceptedAnswerId AND a.PostTypeId=2 WHERE q.PostTypeId = 1 AND a.Score>-1 AND q.Tags LIKE '%##TagName1##%' AND a.Body IS NOT NULL AND q.Body IS NOT NULL ORDER BY q.CreationDate DESC