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
Aca
.
Toggle Highlighting
SQL
SELECT CONCAT('Šablon:', REPLACE(tpl.page_title, '_', ' ')) AS sablon, COUNT(DISTINCT tl.tl_from) AS broj_u_glavnom_imenskom_prostoru FROM page AS tpl JOIN categorylinks AS cl ON cl.cl_from = tpl.page_id JOIN linktarget AS clt ON clt.lt_id = cl.cl_target_id JOIN linktarget AS tlt ON tlt.lt_namespace = tpl.page_namespace AND tlt.lt_title = tpl.page_title JOIN templatelinks AS tl ON tl.tl_target_id = tlt.lt_id JOIN page AS p ON p.page_id = tl.tl_from WHERE tpl.page_namespace = 10 AND clt.lt_namespace = 14 AND clt.lt_title = 'Infokutije' AND p.page_namespace = 0 GROUP BY tpl.page_id, tpl.page_title HAVING COUNT(DISTINCT tl.tl_from) = 1 ORDER BY tpl.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...