This query is marked as a draft This query has been published by Balajijagadesh.

SQL

x
 
SELECT p.page_title
FROM page AS p
JOIN page_props AS pp ON pp.pp_page = p.page_id AND pp.pp_propname = 'wikibase_item'
JOIN wb_items_per_site AS wbs ON wbs.wb_item_id = pp.pp_value
WHERE p.page_namespace = 0  -- Main namespace
  AND p.page_is_redirect = 0  -- Exclude redirects
  AND p.page_title NOT LIKE '%/%'  -- Exclude subpages
GROUP BY p.page_title
HAVING COUNT(wbs.wb_site_id) = 1  -- Exactly one sitelink
ORDER BY p.page_title;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...