query-c4250b3dda9afcc8db1a6f1b1dcf2715
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel (group_concat(distinct ?her;separator=", ") as ?her_c) (group_concat(distinct ?herLabel;separator=" ,") as ?herLabel_c) WHERE {
?item (wdt:P1435/wdt:P279*) wd:Q55845509.
?item wdt:P1435 ?her.
optional {?her rdfs:label ?herLabel. filter(lang(?herLabel)="fi")}
} group by ?item ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?her"):::projected
v1("?herLabel"):::projected
v5("?herLabel_c")
v4("?her_c")
v2("?item"):::projected
a1((" "))
c4(["wd:Q55845509"]):::iri
v2 --"wdt:P1435"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P1435"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end
bind2[/"?her"/]
v3 --o bind2
bind2 --as--o v4
bind3[/"?herLabel"/]
v1 --o bind3
bind3 --as--o v5