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
Listenupagent
.
Toggle Highlighting
SQL
SET @sin_lat = SIN(42.34716111 * PI() / 180), @cos_lat = COS(42.34716111 * PI() / 180), @lon = -71.08252222 * PI() / 180; SELECT page_id, gt_lat, gt_lon, page_title, pp1.pp_value, pp2.pp_value, pp3.pp_value, ACOS(@sin_lat * SIN(gt_lat * PI() / 180) + @cos_lat * COS(gt_lat * PI() / 180) * COS(gt_lon * PI() / 180 - @lon)) * 6371 as dist FROM geo_tags JOIN page ON gt_page_id = page_id AND page_namespace = 0 LEFT JOIN page_props pp1 ON page_id = pp1.pp_page AND pp1.pp_propname = 'wikibase-shortdesc' LEFT JOIN page_props pp2 ON page_id = pp2.pp_page AND pp2.pp_propname = 'page_image_free' LEFT JOIN page_props pp3 ON page_id = pp3.pp_page AND pp3.pp_propname = 'page_image' AND pp2.pp_value IS NULL WHERE gt_primary = 1 AND pp2.pp_value NOT LIKE "%logo%" ORDER BY dist LIMIT 100
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...