Q&A for linguists, teachers and students of the Ukrainian language
select A.Score + max(B.Score) as Score1 , A.Title from Posts A, Posts B
where A.Id = B.ParentId
and A.PostTypeId = 1 and B.PostTypeId = 2 and A.Title like '%bayes%'
group by A.Id, A.Score , A.Title having A.Score + sum(B.Score) > 0
order by A.Score + sum(B.Score) desc