query-67ba3fb065cb206414c758b6c8a99b5c
GROUP BY
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 ?profession ?professionLabel (GROUP_CONCAT(?female_form_of_label; separator=', ') AS ?ffl) WHERE {
?profession wdt:P31 wd:Q28640.
OPTIONAL { ?profession wdt:P2521 ?female_form_of_label . FILTER(LANG(?female_form_of_label) = 'de') }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,[AUTO_LANGUAGE]". }
}
GROUP BY ?profession ?professionLabel
ORDER BY ?profession ?professionLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?female_form_of_label"):::projected
v4("?ffl")
v1("?profession"):::projected
v2("?professionLabel"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q28640"]):::iri
c8(["de,#91;AUTO_LANGUAGE#93;"]):::literal
v1 --"wdt:P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2521".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"?female_form_of_label"/]
v3 --o bind1
bind1 --as--o v4