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
Ghuron
.
Toggle Highlighting
SQL
SELECT d.ips_site_page, CONCAT('Q', d.ips_item_id),page_namespace FROM ruwiki_p.categorylinks c INNER JOIN ruwiki_p.page p ON c.cl_from = p.page_id INNER JOIN wikidatawiki_p.wb_items_per_site d ON d.ips_site_page = CONCAT(CASE page_namespace WHEN 10 THEN 'Шаблон:' ELSE '' END, REPLACE(p.page_title, '_', ' ')) AND d.ips_site_id = 'ruwiki' INNER JOIN wikidatawiki_p.wb_items_per_site s ON c.cl_to = REPLACE(REPLACE(s.ips_site_page, ' ', '_'), 'Категория:', '') WHERE s.ips_site_id = 'ruwiki' AND s.ips_item_id = 93506334 ORDER BY p.page_title
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...