Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.38 KB | None | 0 0
  1. SELECT DISTINCT ?city ?cityLabel ?countryLabel  (SAMPLE(?location) AS ?location) (MAX(?population) AS ?population)
  2. WHERE
  3. {
  4.   ?city wdt:P31/wdt:P279* wd:Q515;
  5.         wdt:P625  ?location;
  6.         wdt:P1082 ?population;
  7.         wdt:P17   ?country.
  8.   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  9. }
  10. GROUP BY ?city ?cityLabel ?countryLabel
  11. LIMIT 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement