query-45c0865f4f1e6880d056148549814e78

rq turtle/ttl

after the intervention of KrBot, use the following:

Use at

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item
WHERE {
  ?item p:P50 [ ps:P50 wd:Q54165911 ; pq:P1545 ?n1 ] .
  ?item p:P50 [ ps:P50 wd:Q54165911 ; pq:P1545 ?n2 ] .
  FILTER(?n1 != ?n2)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?n1") v2("?n2") a1((" ")) a2((" ")) c2(["wd:Q54165911"]):::iri f0[["?n1 != ?n2"]] f0 --> v1 f0 --> v2 a1 --"p:statement/P50"--> c2 a1 --"p:qualifier/P1545"--> v1 v3 --"p:P50"--> a1 a2 --"p:statement/P50"--> c2 a2 --"p:qualifier/P1545"--> v2 v3 --"p:P50"--> a2