query-9b2edc49100ecfc42f05509245442fc2

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?musician1 ?musician2 ?musician1Label ?musician2Label
WHERE 
{
  ?musician1 wdt:P31 wd:Q639669.
  ?musician2 wdt:P31 wd:Q639669.
  FILTER(EXISTS{
    ?musician1 ?prop ?hhlink.
    ?musician2 ?prop2 ?hhlink.})
  FILTER(?musician1 != ?musician2)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?hhlink") v1("?musician1"):::projected v2("?musician2"):::projected v3("?prop") v5("?prop2") c4(["bd:serviceParam"]):::iri c2(["wd:Q639669"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?musician1 != ?musician2"]] f0 --> v1 f0 --> v2 f1[[" "]] subgraph f1e0["Exists Clause"] e0v1 -->e0v2--> e0v3 e0v4 -->e0v5--> e0v3 e0v3("?hhlink"):::projected e0v1("?musician1"):::projected e0v4("?musician2"):::projected e0v2("?prop"):::projected e0v5("?prop2"):::projected end f1--EXISTS--> f1e0 f1 --> v1 f1 --> v3 f1 --> v4 f1 --> v2 f1 --> v5 v1 -->v3--> v4 v2 -->v5--> v4 v1 --"wdt:P31"--> c2 v2 --"wdt:P31"--> c2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end