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 count(page_title) from page inner join page_props on pp_page = page_id where page_id not in (select arwiki_p.categorylinks.cl_from from arwiki_p.categorylinks where arwiki_p.categorylinks.cl_from = arwiki_p.page.page_id and arwiki_p.categorylinks.cl_to like "%كومنز%") and pp_propname like "%wikibase_item%" and TRIM(LEADING 'Q' FROM pp_value) in (select wikidatawiki_p.wb_items_per_site.ips_item_id from wikidatawiki_p.wb_items_per_site where wikidatawiki_p.wb_items_per_site.ips_item_id = TRIM(LEADING 'Q' FROM pp_value) and wikidatawiki_p.wb_items_per_site.ips_site_id like "%arwiki%" ) and TRIM(LEADING 'Q' FROM pp_value) in (select wikidatawiki_p.wb_items_per_site.ips_item_id from wikidatawiki_p.wb_items_per_site where wikidatawiki_p.wb_items_per_site.ips_item_id = TRIM(LEADING 'Q' FROM pp_value) and wikidatawiki_p.wb_items_per_site.ips_site_id in ("%commonswiki%", "%arwikinews%", "%arwikisource%", "%arwikibooks%", "%arwikitionary%", "%arwikiquote%") ) and page_id not in (select tl_from from templatelinks where tl_from = page_id and tl_from_namespace = 14 and tl_title like "%تصانيف_كومنز_متعددة%") and page_id not in (select tl_from from templatelinks where tl_from = page_id and tl_from_namespace = 14 and tl_title like "%كومنز_مضمن%") and page_id not in (select cl_from from categorylinks where cl_to like "%صفحات_توضيح%" and cl_from = page_id) and page_namespace =14 and page_is_redirect = 0 ;
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...