query-b88ed79004b6a834b4755d7fe967ed93
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
{
{VALUES ?occupation {wd:Q82955 wd:Q193391}
?item wdt:P106 ?occupation .}
UNION
{?item wdt:P108/wdt:P361* wd:Q1065 . }
?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;
v2("?item"):::projected
v1("?occupation")
v3("?sitelinks"):::projected
a1((" "))
c13(["en,nl"]):::literal
c6(["wd:Q6581072"]):::iri
c8(["wd:Q39"]):::iri
c11(["bd:serviceParam"]):::iri
c4(["wd:Q1065"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P108"--> a1
a1 --"wdt:P361"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind0[/VALUES ?occupation/]
bind0-->v1
bind00(["wd:Q82955"])
bind00 --> bind0
bind01(["wd:Q193391"])
bind01 --> bind0
v2 --"wdt:P106"--> v1
end
union0r <== or ==> union0l
end
v2 --"wdt:P21"--> c6
v2 --"wdt:P27"--> c8
v2 --"wikibase:sitelinks"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end