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
Ankry
.
Toggle Highlighting
SQL
use pawikisource_p; /*select * from wbc_entity_usage;*/ SELECT eu_entity_id,page_title FROM wbc_entity_usage JOIN page ON eu_page_id=page_id WHERE page_namespace=0 AND eu_aspect='S'; SELECT COUNT(DISTINCT page_title) AS 'number of pages linked to Wikidata as sitelinks' FROM wbc_entity_usage JOIN page ON eu_page_id=page_id WHERE page_namespace=0 AND eu_aspect='S'; SELECT COUNT(DISTINCT page_title) AS 'number of pages not linked to Wikidata as sitelinks' FROM (SELECT page_title FROM page WHERE page_namespace=0 AND page_is_redirect=0 AND page_title NOT IN (SELECT page_title FROM wbc_entity_usage JOIN page ON eu_page_id=page_id WHERE page_namespace=0 AND eu_aspect='S')) AS B; ELECT page_title FROM page WHERE page_namespace=0 AND page_is_redirect=0;
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...