SQL
AخA
USE commonswiki_p;
SELECT
DISTINCT CONCAT("{{#target:User_talk:", img_user_text, "}}") AS user
FROM page
JOIN categorylinks
ON cl_from = page_id
LEFT JOIN image
ON page_title = img_name
LEFT JOIN
(
SELECT
up_value AS gender,
up_user AS genderuser
FROM user_properties
WHERE up_property = "gender"
) AS gendertable
ON genderuser = img_user
WHERE cl_to = 'Images_from_Wiki_Loves_Monuments_2016_in_Germany'
GROUP BY img_user_text
;
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.