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
Nettrom
.
Count the number of articles (and talk pages) in Portuguese Wikipedia that are tagged with the "Marca de projeto" template.
Toggle Highlighting
SQL
USE ptwiki_p; SELECT count(DISTINCT p.page_title) AS num_pages FROM templatelinks tl JOIN page p ON tl.tl_from=p.page_id WHERE p.page_namespace IN (0,1) AND tl_namespace=10 AND tl_title = 'Marca_de_projeto'; SELECT count(DISTINCT page_title) AS num_level4_articles FROM categorylinks JOIN page ON page_id=cl_from WHERE cl_to LIKE '!Artigos\_de\_qualidade\_4%' AND page_namespace IN (0,1); SELECT count(DISTINCT page_title) AS num_level3_articles FROM categorylinks JOIN page ON page_id=cl_from WHERE cl_to LIKE '!Artigos\_de\_qualidade\_3%' AND page_namespace IN (0,1); SELECT count(DISTINCT page_title) AS num_level2_articles FROM categorylinks JOIN page ON page_id=cl_from WHERE cl_to LIKE '!Artigos\_de\_qualidade\_2%' AND page_namespace IN (0,1); SELECT count(DISTINCT page_title) AS num_level1_articles FROM categorylinks JOIN page ON page_id=cl_from WHERE cl_to LIKE '!Artigos\_de\_qualidade\_1%' AND page_namespace IN (0,1);
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...