Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
ASammour
.
Toggle Highlighting
SQL
use arwiki_p; SELECT MONTH(rev_timestamp), COUNT(*) FROM revision r join page p on p.page_id=r.rev_page WHERE p.page_namespace=0 and p.page_is_redirect=0 and r.rev_timestamp between 20160101000000 and 20161231235959 and r.rev_parent_id=0 GROUP BY YEAR(rev_timestamp), MONTH(rev_timestamp) ORDER BY MONTH(rev_timestamp) ASC; select rev_user_text, count(rev_user_text) from revision where rev_timestamp between 20160101000000 AND 20161231235959 group by rev_user_text ORDER BY count(rev_user_text) desc limit 30; SELECT page_namespace, page_title, COUNT(*) FROM revision JOIN page ON page_id = rev_page WHERE rev_timestamp BETWEEN 20160101000000 AND 20161231235959 and page_namespace = 0 GROUP BY page_namespace, page_title ORDER BY COUNT(*) DESC, page_title desc LIMIT 10; SELECT CONCAT("[[مستخدم:",user_name,"|",user_name,"]]") AS user_name, SUM(CAST(rev.rev_len as signed)-CAST(parent.rev_len as signed)) AS byte_count, COUNT(rev.rev_id) as edit_count FROM user JOIN revision rev ON user_id = rev.rev_user JOIN revision parent ON rev.rev_parent_id = parent.rev_id JOIN page ON page_id = parent.rev_page WHERE page_namespace = 0 and rev.rev_comment not like "%رجوع%" and rev.rev_comment not like "%استرجاع%" AND rev.rev_timestamp BETWEEN 20160101000000 AND 20161231235959 AND parent.rev_timestamp BETWEEN 20160101000000 AND 20161231235959 GROUP BY user_name having byte_count > 0 ORDER BY byte_count DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ("move") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "block") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "protect") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "delete") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "rights") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "thank") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]"), COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action = "approve-i" and log_namespace = 0 group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]"), COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action = "approve" and log_namespace = 0 group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]"), COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_type in ("block", "protect", "delete", "rights") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...