Q&A for professional and enthusiast programmers
SELECT p.Id FROM Posts p, Users u, Votes v WHERE p.PostTypeId = 2 AND v.UserId = u.Id AND v.VoteTypeID = 6