This query is marked as a draft This query has been published by Elph.

SQL

AخA
 
USE arwiki_p;
SELECT  
page_title AS page_name,
TIMESTAMP((SELECT rev_timestamp FROM   revision WHERE  rev_id = page_latest AND rev_user_text NOT IN (SELECT user_name FROM user_groups 
INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot'))) AS Edit_User, Edit_Bot,
(SELECT COUNT(*) from revision where rev_page=page_id) as Edit_Count FROM page
WHERE  page_is_redirect = 0 
       AND page_namespace = 0
       AND page_title NOT LIKE "%(توضيح)%"
       AND page_latest < (SELECT rev_id 
                          FROM   revision 
                          WHERE  rev_timestamp > DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 2 YEAR) 
                          LIMIT  1) 
LEFT JOIN revision Edit_Bot
ON rev_id = page_latest
 order by Edit_User asc LIMIT 500;
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...