$ mysql --defaults-file=$HOME/replica.my.cnf -h enwiki.analytics.db.svc.eqiad.wmflabs enwiki_p
SELECT
DISTINCT p.page_title
FROM
revision_userindex AS ru
JOIN actor AS a ON ru.rev_actor = a.actor_id
JOIN page AS p ON ru.rev_page = p.page_id
WHERE
a.actor_name = 'Normchou'
AND p.page_namespace = 0
ORDER BY
p.page_title;
To find out all users that edited at least one common article by a given user, sorted by the number of common articles edited:
SELECT
a.actor_name,
COUNT(DISTINCT ru.rev_page) AS cnt
FROM
revision_userindex AS ru
JOIN (
SELECT
DISTINCT ru.rev_page
FROM
revision_userindex AS ru
JOIN actor AS a ON ru.rev_actor = a.actor_id
JOIN page AS p ON ru.rev_page = p.page_id
WHERE
a.actor_name = 'Normchou'
AND p.page_namespace = 0
) AS s on ru.rev_page = s.rev_page
JOIN actor AS a ON ru.rev_actor = a.actor_id
GROUP BY
a.actor_name
ORDER BY
cnt DESC;