This query is marked as a draft This query has been published by ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ.

SQL

AخA
 
select CONCAT('[[User talk:', page_title, ']]') as user_talk
from page
join templatelinks on page_id = tl_from
join linktarget on tl_target_id = lt_id
join revision on rev_id = page_latest and rev_timestamp < '20170914'
join actor on actor_user is null and actor_name = page_title
where lt_title = '%Clear%'
and lt_namespace = 10
and tl_from_namespace = 3
/*and not exists (select 1 -- IP is not blocked
          from ipblocks
          where ipb_user = 0
          and HEX(INET6_ATON(page_title)) between ipb_range_start and ipb_range_end)*/
and not exists (select 1 -- IP has not edited in 5 years
          from revision_userindex
          where rev_actor = actor_id
          and rev_timestamp >= '20170914');
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.

Query status: complete

Executed in 0.05 seconds as of Sun, 25 Sep 2022 10:05:46 UTC.