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 common_schema.replace_all(pp_value,'Q','') 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 = common_schema.replace_all(pp_value,'Q','') and wikidatawiki_p.wb_items_per_site.ips_site_id like "%arwiki%" ) and common_schema.replace_all(pp_value,'Q','') not 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 = common_schema.replace_all(pp_value,'Q','') and wikidatawiki_p.wb_items_per_site.ips_site_id like "%commonswiki%" );
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...