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

SQL

x
 
USE arwiki_p;
  select page_title,rev_user_text, rev_page, MAX(rev_timestamp) AS ts, (SELECT COUNT(*) from revision where rev_page=page_id)
  from revision
  join page
  on rev_page = page_id
  where  page_namespace = 0 AND page_is_redirect = 0 AND page_title NOT LIKE "%(توضيح)%"
  AND rev_timestamp < (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'))    
 
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.

Checking query status...