Q&A about the site for Joomla! administrators, users, developers and designers
select q.OwnerUserId as Asker_ID, a.OwnerUserId as Answerer_ID
from posts as q join posts as a on q.Id = a.ParentId
where q.CreationDate < '2021-09-01 00:00:00'
and q.CreationDate >= '2021-05-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%'
order by q.OwnerUserId