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
ⵓ
.
dewiki disambiguation count
Toggle Highlighting
SQL
use dewiki_p; SELECT count(*) FROM pagelinks as pl INNER JOIN page as p ON p.page_namespace=pl.pl_namespace and p.page_title=pl.pl_title INNER JOIN page_props as pp ON p.page_id=pp.pp_page WHERE pp.pp_propname='disambiguation' AND pl.pl_from_namespace=0 AND NOT EXISTS (SELECT 1 FROM page_props as pc WHERE pc.pp_propname='disambiguation' and pl.pl_from=pc.pp_page) AND NOT EXISTS (SELECT 1 FROM page as pr WHERE pr.page_is_redirect=1 and pl.pl_from=pr.page_id ) LIMIT 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...