Q&A about the site for operations research and analytics professionals, educators, and students
SELECT p.*, r.* FROM Posts p INNER JOIN PostTags pt ON p.id = pt.PostId INNER JOIN Tags t ON t.id = pt.TagId LEFT JOIN Posts r ON (r.ParentId = p.Id AND r.PostTypeId = 2 AND r.id = p.AcceptedAnswerId) WHERE t.TagName LIKE '%python%' AND p.AnswerCount >= 1 and p.Score >= 0 AND p.AcceptedAnswerId IS NOT NULL AND p.CreationDate BETWEEN '2009-01-01' AND '2012-12-31'