Q&A about the site for Joomla! administrators, users, developers and designers
select a.OwnerUserId as Answerer_ID, sum(a.score) as Sum_Answerer_Score
from posts as q join posts as a on q.Id = a.ParentId
where q.CreationDate < '2022-01-01 00:00:00'
and q.CreationDate >= '2021-01-01 00:00:00'
and q.PostTypeId = 1
and a.PostTypeId = 2
and q.OwnerUserId IS NOT NULL
and a.OwnerUserId IS NOT NULL
and a.Id = q.AcceptedAnswerId
and q.Tags LIKE '%python%'
group by a.OwnerUserId