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
Teslaton
.
Toggle Highlighting
SQL
USE skwiki_p; select @lat := 49.198333, @lon := 19.51666, @radius := 10000; select page_title, geo_tags.* from geo_tags, page where page_id = gt_page_id and gt_lat between @lat - @radius/111000 and @lat + @radius/111000 and gt_lon between @lon - @radius/111000 and @lon + @radius/111000 order by gt_lon limit 100; -- ineffective (spatial index not available, GeoData is configured to use Elastic search on WMF instances), but still viable -- select page_title, geo_tags.* from geo_tags, page where page_id = gt_page_id and page_title in ('Veľké_Borové', 'Srňacie', 'Annina_dolina', 'Prosečné_(vrch)', 'Svorad_(plošina)'); select count(*) from geo_tags; select gt_primary, count(*) as count from geo_tags group by gt_primary order by count desc; select gt_type, count(*) as count from geo_tags group by gt_type order by count desc; select gt_country, count(*) as count from geo_tags group by gt_country order by count desc;
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...