Created
August 1, 2017 13:56
-
-
Save bekicot/477a1be149ebe1c260f4732d56a5041c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT ?item ?itemLabel ?administrativeLabel ?sitelink ?lang ?geoid WHERE { | |
?item wdt:P31/wdt:P279* wd:Q23442. | |
{ | |
{ | |
?wilayahDiIndonesia wdt:P279 wd:Q1434505. | |
?administrative wdt:P31/wdt:P279* ?wilayahDiIndonesia. | |
?item wdt:P131 ?administrative. | |
} UNION { | |
?item wdt:P17 wd:Q252 | |
} | |
} | |
?sitelink schema:about ?item . | |
?sitelink schema:inLanguage ?lang . | |
?item wdt:P1566 ?geoid | |
SERVICE wikibase:label { bd:serviceParam wikibase:language "id,en". } | |
} ORDER BY ?item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment