SQL
AخA
SELECT
concat("[[user:", user_name, "]]"),
page_len,
page_id,
(SELECT COUNT(*) FROM externallinks WHERE el_from = page_id) as ecount
FROM
user
JOIN page
ON page_title = REPLACE(user_name, ' ', '_')
AND page_namespace = 2
WHERE (
SELECT
COUNT(*)
FROM
revision_userindex
JOIN page ON rev_page = page_id
WHERE
page_namespace = 2
AND page_title = REPLACE(user_name, ' ', '_')
) = 1
AND (
SELECT
actor_name
FROM
revision_userindex
JOIN page
ON rev_page = page_id
JOIN actor
ON rev_actor = actor_id
WHERE
page_namespace = 2
AND page_title = REPLACE(user_name, ' ', '_')
) = user_name
AND (
SELECT COUNT(*) FROM externallinks WHERE el_from = page_id
) > 0
AND user_editcount = 1
AND page_id < 25000000
AND page_len > 500
LIMIT 1000;
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.