Fork of WLM-UA Photo Competition participants 2012-2017 not active in 2018 by Antanana
This query is marked as a draft This query has been published by Antanana.

SQL

x
 
SELECT CONCAT("# {{#target:User_talk:", rev_user_text, "|commons.wikimedia.org}}") as line
FROM commonswiki_p.revision r_prev
join commonswiki_p.categorylinks 
on rev_page = cl_from
WHERE rev_parent_id = 0
and cl_to IN (
   "Images_from_Wiki_Loves_Monuments_2012_in_Ukraine",
   "Images_from_Wiki_Loves_Monuments_2013_in_Ukraine",
   "Images_from_Wiki_Loves_Monuments_2014_in_Ukraine",
   "Images_from_Wiki_Loves_Monuments_2015_in_Ukraine",
   "Images_from_Wiki_Loves_Monuments_2016_in_Ukraine",
   "Images_from_Wiki_Loves_Monuments_2017_in_Ukraine",
   "Images_from_Wiki_Loves_Monuments_2018_in_Ukraine"
) and not exists (SELECT 1
FROM commonswiki_p.revision
join commonswiki_p.categorylinks
on rev_page = cl_from                  
WHERE rev_parent_id = 0
                  AND  rev_user_text = r_prev.rev_user_text
and cl_to IN ("Images_from_Wiki_Loves_Monuments_2019_in_Ukraine")  
)  
 GROUP BY rev_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.

Checking query status...