Skip to content

Instantly share code, notes, and snippets.

@l1x
Created February 28, 2014 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l1x/9266991 to your computer and use it in GitHub Desktop.
Save l1x/9266991 to your computer and use it in GitHub Desktop.
SELECT DISTINCT *
WHERE {
?city rdf:type dbpedia-owl:City ;
rdfs:label ?label;
dbpedia-owl:abstract ?abstract ;
dbpedia-owl:populationTotal ?pop ;
dbpedia-owl:country ?country .
FILTER ( lang(?abstract) = 'en' && lang(?label) = 'en' && ?pop > 50000)
} ORDER BY ?pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment