SQL
x
SELECT
A.actor_name,
COUNT(DISTINCT I.img_name) AS total_files
FROM commonswiki_p.image I
JOIN commonswiki_p.page P ON I.img_name = P.page_title
JOIN commonswiki_p.categorylinks CL ON P.page_id = CL.cl_from
JOIN commonswiki_p.actor A ON I.img_actor = A.actor_id
WHERE P.page_namespace = 6
AND CL.cl_to IN (
'Images_from_Wiki_Loves_Earth_2024_in_Bangladesh',
'Images_from_Wiki_Loves_Earth_2025_in_Bangladesh'
)
GROUP BY A.actor_name
HAVING COUNT(DISTINCT CL.cl_to) = 2
ORDER BY total_files DESC;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.