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
Wurgl
.
Toggle Highlighting
SQL
USE dewiki_p; SELECT CONCAT("[[", REPLACE(page_title, "_", " "), "]]") AS "BKL-Seite", GROUP_CONCAT(Kandidaten.tl_title SEPARATOR ", ") AS "eingebundene Namespace-0-Vorlagen" FROM page as BKS, templatelinks AS BKL, templatelinks AS Kandidaten WHERE page_namespace = 0 AND Kandidaten.tl_from_namespace = 0 AND Kandidaten.tl_from = page_id AND Kandidaten.tl_namespace = 0 AND LOWER(REPLACE(Kandidaten.tl_title, "_(Begriffsklärung)", "")) NOT LIKE CONCAT("%\_", LOWER(RELACE(REPLACE(REPLACE(page_title, "_(Begriffsklärung)", ""), "_(Familienname)", "")), "_", "%") AND BKL.tl_from_namespace = 0 AND BKL.tl_from = page_id AND BKL.tl_namespace = 10 AND BKL.tl_title = "Begriffsklärung" AND EXISTS ( SELECT 1 FROM pagelinks, page as p, templatelinks as pd WHERE pl_from = BKS.page_id AND p.page_title = pl_title AND p.page_namespace = pl_namespace AND pd.tl_from_namespace = 0 AND pd.tl_from = p.page_id AND pd.tl_namespace = 10 AND pd.tl_title = "Personendaten" ) GROUP BY Kandidaten.tl_from
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...