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
Myst
.
Toggle Highlighting
SQL
USE commonswiki_p; #SELECT * FROM globalimagelinks LIMIT 25; SET @hereami = POINT(44.3409996,8.55650043); SELECT *,ROUND(ST_Distance(@hereami, POINT(gt.gt_lat,gt.gt_lon)), 5) AS distance FROM page AS p JOIN geo_tags AS gt ON p.page_id=gt.gt_page_id WHERE p.page_namespace=6 AND gt.gt_globe='earth' AND gt.gt_lat!=0 AND gt.gt_lon!=0 AND ST_Distance(@hereami, POINT(gt.gt_lat,gt.gt_lon))<1 LIMIT 50;
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...