SQL
AخA
USE enwiki_p;
SELECT COUNT(*)
FROM (
SELECT unspaced_page_title, COUNT(page_title) AS child_titles
FROM (
SELECT
page_title,
REPLACE(page_title, "_", "") AS unspaced_page_title
FROM page
WHERE
page_namespace = 10
AND LOCATE("_", page_title)
LIMIT 100000
) AS subquery1
GROUP BY unspaced_page_title
) AS subquery2
WHERE child_titles > 1
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.