Q&A for professional and enthusiast programmers
select * from posts id join posts parentid on id.score = parentid.score where id.creationdate between '2022-01-01 00:00:00' and '2022-12-31 23:59:59' and id.score > parentid.score