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
Larske
.
Antal sidor i artikelnamnrymden, i svwp och fiwp, som använder mallar som hämtar data från Wikidata uppdelat per mall.
Toggle Highlighting
SQL
USE svwiki_p; SELECT lt_title, COUNT(page_title) AS antal FROM page INNER JOIN templatelinks ON page_id=tl_from INNER JOIN linktarget ON tl_target_id = lt_id WHERE page_namespace = 0 AND lt_title IN (SELECT page_title FROM categorylinks INNER JOIN page on cl_from=page_id WHERE cl_to='Mallar_som_använder_data_från_Wikidata') GROUP BY lt_title; USE fiwiki_p; SELECT lt_title, COUNT(page_title) AS antal FROM page INNER JOIN templatelinks ON page_id=tl_from INNER JOIN linktarget ON tl_target_id = lt_id WHERE page_namespace = 0 AND lt_title IN (SELECT page_title FROM categorylinks INNER JOIN page on cl_from=page_id WHERE cl_to='Wikidataa_hyödyntävät_mallineet') GROUP BY lt_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...