SQL
AخA
use arwiki_p;
SELECT p.page_title, el_index
FROM page p, externallinks enel, page_props, wikidatawiki_p.page wdp
LEFT JOIN wikidatawiki_p.pagelinks wdpl ON wdpl.pl_from = wdp.page_id AND (wdpl.pl_title = 'P625')
AND wdpl.pl_namespace = 120
WHERE p.page_namespace = 0 AND enel.el_index LIKE "%tools.wmflabs.org/geohack%" AND enel.el_from = p.page_id
AND pp_page = p.page_id AND pp_propname = 'wikibase_item' AND wdp.page_title = pp_value AND wdp.page_namespace = 0
and p.page_id not in (SELECT tl_from
FROM templatelinks
WHERE tl_namespace = 10 and tl_from_namespace=0
and tl_title="Coord")
#AND enel.el_from IS NULL
LIMIT 20;
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.