query-c52ce8e1f9e669d2b764e218a1c8a16f

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel (GROUP_CONCAT(?conditionlabel;SEPARATOR=', ') AS ?conditions) WHERE
{
  ?person wdt:P31 wd:Q5.
  ?person wdt:P1050 ?condition.
  ?condition wdt:P279+ wd:Q12198 .
  ?condition rdfs:label ?conditionlabel . FILTER(LANG(?conditionlabel)='en')
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?person ?personLabel
ORDER BY ?personLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?condition") v2("?conditionlabel"):::projected v5("?conditions") v3("?person"):::projected v1("?personLabel"):::projected c6(["wd:Q12198"]):::iri c9(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c1(["en"]):::literal f0[["?conditionlabel = 'en'"]] f0 --> v2 v3 --"wdt:P31"--> c3 v3 --"wdt:P1050"--> v4 v4 --"wdt:P279"--> c6 v4 --"rdfs:label"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c1 end bind2[/"?conditionlabel"/] v2 --o bind2 bind2 --as--o v5