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
جار الله
.
Toggle Highlighting
SQL
use arwiki_p; select concat ("{{مس|",user_name,"}}") as "اسم المستخدم", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"bot"%' and log_params not like '%::oldgroups"%"sysop"%5::newgroups%' and log_params not like '%::oldgroups"%"bot"%5::newgroups%') as "+بوت", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"sysop"%' and log_params not like '%::oldgroups"%"sysop"%5::newgroups%') as "+إداري", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"interface-admin"%' and log_params not like '%::oldgroups"%"interface-admin"%5::newgroups%') as "+إداري الواجهة", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"interface-admin"%5::newgroups%' and log_params not like '%5::newgroups%"interface-admin"%' ) as "-إداري الواجهة", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"bureaucrat"%' and log_params not like '%::oldgroups"%"bureaucrat"%5::newgroups%') as "+بيروقراط", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"accountcreator"%' and log_params not like '%::oldgroups"%"accountcreator"%5::newgroups%') as "+منشئ حسابات", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"import"%' and log_params not like '%::oldgroups"%"import"%5::newgroups%') as "+مستورد", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"import"%5::newgroups%' and log_params not like '%5::newgroups%"import"%' ) as "-مستورد", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"accountcreator"%5::newgroups%' and log_params not like '%5::newgroups%"accountcreator"%') as "-منشئ حسابات", (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"bot"%5::newgroups%' and log_params not like '%::oldgroups"%"sysop"%5::newgroups%' and log_params not like '%5::newgroups%"bot"%') as "-بوت", (select count(*) from revision where rev_actor = user_id and rev_page = 213729 and rev_minor_edit = 0) as "وب:طصب", (select count(*) from revision where rev_actor = user_id and rev_page = 213729 and rev_minor_edit = 0) + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"bot"%5::newgroups%' and log_params not like '%::oldgroups"%"sysop"%5::newgroups%' and log_params not like '%5::newgroups%"bot"%') + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"accountcreator"%5::newgroups%' and log_params not like '%5::newgroups%"accountcreator"%') +(select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%::oldgroups"%"import"%5::newgroups%' and log_params not like '%5::newgroups%"import"%' ) + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"interface-admin"%' and log_params not like '%::oldgroups"%"interface-admin"%5::newgroups%') + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"import"%' and log_params not like '%::oldgroups"%"import"%5::newgroups%') + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"accountcreator"%' and log_params not like '%::oldgroups"%"accountcreator"%5::newgroups%') + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"bureaucrat"%' and log_params not like '%::oldgroups"%"bureaucrat"%5::newgroups%') + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"sysop"%' and log_params not like '%::oldgroups"%"sysop"%5::newgroups%') + (select count(*) from logging INNER JOIN actor ON log_actor = actor.actor_idwhere log_actor = user_id and log_type = "rights" and log_params like '%5::newgroups%"bot"%' and log_params not like '%::oldgroups"%"sysop"%5::newgroups%' and log_params not like '%::oldgroups"%"bot"%5::newgroups%') as "المجموع" from user inner join user_groups on ug_user = user_id where ug_group = "bureaucrat";
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...