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
Jack who built the house
.
ruwiki: Sort templates by number of spaces
Toggle Highlighting
SQL
use ruwiki_p; select page_title, page_namespace, page_is_redirect, LENGTH(page_title) - LENGTH(REPLACE(page_title, ' ', '')) as "Number of spaces" from page where page_namespace = 10 #and #LENGTH(page_title) - LENGTH(REPLACE(page_title, ' ', '')) > 0 limit 10 # order by LENGTH(page_title) - LENGTH(REPLACE(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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...