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
XXN
.
Toggle Highlighting
SQL
USE wikidatawiki_p; SELECT CONCAT('*\\',w1.ips_site_page,' \\ [[Q',w1.ips_item_id,']]'), CONCAT('\\',w1.ips_site_page,' \\ [[Q',w2.ips_item_id,']]') #count(wsr.ips_site_page) FROM (SELECT ips_item_id, ips_site_page FROM wb_items_per_site WHERE ips_site_id = "svwiki" and ips_site_page like "%(olika betydelser)") AS w1 JOIN (SELECT ips_item_id, ips_site_page FROM wb_items_per_site WHERE ips_site_id = "svwiki" and ips_site_page not like "%(olika betydelser)") AS w2 ON REPLACE(w1.ips_site_page, ' (olika betydelser)', '') = w2.ips_site_page JOIN (SELECT * FROM pagelinks JOIN wb_entity_per_page ON epp_page_id = pl_from WHERE pl_namespace = 0 and pl_title = "Q4167410") as pl1 ON w1.ips_item_id = pl1.epp_entity_id JOIN (SELECT * FROM pagelinks JOIN wb_entity_per_page ON epp_page_id = pl_from WHERE pl_namespace = 0 and pl_title = "Q4167410") as pl2 on w2.ips_item_id = pl2.epp_entity_id
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...