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
Valhallasw
.
Toggle Highlighting
SQL
/* Maak een lijst van doorverwijspagina's met de meeste inkomende links * 'paged' is de doorverwijspagina, deze moet altijd de property 'disambiguation' hebben * 'pagea' is het artikel, deze heeft nooit de property 'disambiguation' * Het kan zijn dat artikelen legitieme links hebben naar doorverwijspagina's (ziedp bovenaan), deze tellen hier ook mee */ USE nlwiki_p; SELECT CONCAT('* [[', paged.page_title, ']] - ', COUNT(paged.page_title), ' [{{fullurl:Speciaal:VerwijzingenNaarHier|namespace=0&target={{urlencode:', paged.page_title, '|PATH}} }} links]') FROM page as paged JOIN page_props AS paged_props ON paged.page_id=paged_props.pp_page AND paged_props.pp_propname='disambiguation' AND paged_props.pp_value='' AND paged_props.pp_sortkey IS NULL JOIN pagelinks AS pagedlinks ON paged.page_title=pagedlinks.pl_title AND pagedlinks.pl_namespace=0 AND pagedlinks.pl_from_namespace=0 JOIN page AS pagea ON pagedlinks.pl_from=pagea.page_id AND pagea.page_namespace=0 AND pagea.page_is_redirect=0 LEFT JOIN page_props AS pagea_props ON pagea.page_id=pagea_props.pp_page AND pagea_props.pp_propname='disambiguation' AND pagea_props.pp_value='' AND pagea_props.pp_sortkey IS NULL WHERE paged.page_namespace=0 AND paged.page_is_redirect=0 GROUP BY paged.page_title ORDER BY COUNT(paged.page_title) DESC LIMIT 250;
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...