SQL
AخA
USE arwiki_p;
SELECT
mp.page_title AS t,
TIMESTAMP((SELECT rev_timestamp FROM revision WHERE rev_id = mp.page_latest)) AS ts,
(SELECT COUNT(*) from revision where rev_page=mp.page_id) AS ec
FROM page AS mp
WHERE mp.page_is_redirect = 0
AND mp.page_namespace = 0
AND mp.page_title NOT LIKE "%(توضيح)%"
AND mp.page_latest < (SELECT rev_id FROM revision WHERE rev_timestamp > DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 2 YEAR)
AND rev_user NOT IN (SELECT user_id FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot')
AND rev_user_text NOT IN (SELECT pl_title FROM pagelinks WHERE pl_from LIKE "3002292")
LIMIT 1)
ORDER BY ts ASC LIMIT 100;
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.