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
Jura1
.
replaced by 2654
Toggle Highlighting
SQL
use wikidatawiki_p; SELECT ips_item_id, ips_site_id, site_language, ips_site_page, CONCAT('SELECT COUNT(*), "', site_language, '" AS Wiki FROM ', site_language, 'wiki_p.categorylinks WHERE cl_to="', TRIM(SUBSTRING_INDEX(CONCAT(ips_site_page, ' :'), ':', 1)) ,'"') AS test from wb_items_per_site, sites WHERE ips_item_id = '9722104' AND ips_site_id LIKE site_global_key AND site_group = "wikipedia" AND ips_site_page NOT LIKE '2015%'
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...