query-8326ddacd97af369bda70e297bcbcb71

rq turtle/ttl

GROUP_CONCATHello, I'have a probleme with a requete when i write

Use at

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   ?personnes ?personnesLabel 
  (GROUP_CONCAT(DISTINCT(?occupation); separator=", ") as ?LeursoccupationsLabel)
  WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

  VALUES ?metier {
    wd:Q20814940
    wd:Q45748643
    wd:Q3542795
  }
  ?personnes wdt:P106 ?metier;
    wdt:P21 wd:Q6581072.
  OPTIONAL { ?personnes wdt:P106 ?occupation. }
}
GROUP BY  ?personnes ?personnesLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?LeursoccupationsLabel") v1("?metier") v3("?occupation"):::projected v2("?personnes"):::projected c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c7(["wd:Q6581072"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end bind0[/VALUES ?metier/] bind0-->v1 bind00(["wd:Q20814940"]) bind00 --> bind0 bind01(["wd:Q45748643"]) bind01 --> bind0 bind02(["wd:Q3542795"]) bind02 --> bind0 v2 --"wdt:P106"--> v1 v2 --"wdt:P21"--> c7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> v3 end bind2[/"?occupation"/] v3 --o bind2 bind2 --as--o v4