query-1861651b3480563c1cc9991f5becfc01
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?sitelinks
WHERE
{
?item wdt:P106 wd:Q82955 . # is a politician
{?item wdt:P106 wd:Q193391 .} # is also a diplomat
UNION
{?item wdt:P108/wdt:P361* wd:Q1065 . } # AND/OR employed by the UN
UNION
{?item wdt:P108/wdt:P31 wd:Q484652 . } # AND/OR by an international organisation
?item wdt:P21 wd:Q6581072.
?item wdt:P27 wd:Q39.
?item wikibase:sitelinks ?sitelinks.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,nl". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?sitelinks"):::projected
a1((" "))
a2((" "))
c17(["en,nl"]):::literal
c3(["wd:Q193391"]):::iri
c10(["wd:Q6581072"]):::iri
c2(["wd:Q82955"]):::iri
c12(["wd:Q39"]):::iri
c15(["bd:serviceParam"]):::iri
c8(["wd:Q484652"]):::iri
c6(["wd:Q1065"]):::iri
v1 --"wdt:P106"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P108"--> a2
a2 --"wdt:P31"--> c8
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P108"--> a1
a1 --"wdt:P361"--> c6
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P106"--> c3
end
union0r <== or ==> union0l
end
v1 --"wdt:P21"--> c10
v1 --"wdt:P27"--> c12
v1 --"wikibase:sitelinks"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end