query-d38cb882b7da8decf227dcf7a1cfafa0

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (GROUP_CONCAT(DISTINCT(?bhl); SEPARATOR = ' / ') AS ?bhl_list) WHERE {
   ?item wdt:P4081 ?bhl .
   ?item wdt:P4081 ?bhl2 .
   FILTER (?bhl != ?bhl2) .
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?item ?itemLabel
ORDER BY xsd:integer(STRAFTER(str(?item), 'Q'))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?bhl"):::projected v3("?bhl2") v4("?bhl_list") v1("?item"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?bhl != ?bhl2"]] f0 --> v2 f0 --> v3 v1 --"wdt:P4081"--> v2 v1 --"wdt:P4081"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind2[/"?bhl"/] v2 --o bind2 bind2 --as--o v4