SELECT DISTINCT ?countryLabel ?child ?childLabel ?WikiTreeIDf
WHERE
{
?child wdt:P31 wd:Q5 . # Looking for real humans and not fictional ones
?child wdt:P39/wdt:P279* wd:Q83307 .
{
?child wdt:P22 ?parent .
?parent wdt:P39/wdt:P279* wd:Q83307 .
} UNION {
?child wdt:P25 ?parent .
?parent wdt:P39/wdt:P279* wd:Q83307 .
}
?child wdt:P27 ?country .
?country wdt:P901 ?cc .
OPTIONAL { ?child wdt:P2949 ?WikiTreeID }
BIND (URI(CONCAT("http://www.wikitree.com/wiki/",?WikiTreeID)) AS ?WikiTreeIDf)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
ORDER BY DESC(?WikiTreeID)
--------
Inga kommentarer:
Skicka en kommentar