query-835d8c1f43fca0de3400bb3bcea92c8c

rq turtle/ttl

check for RTC ratings with the same rating ID SELECT ?item1 ?item2 WHERE { ?item1 p:P3834 [ pq:P2676 ?r ] . ?item2 p:P3834 [ pq:P2676 ?r ] . FILTER ( ?item1 != ?item2 ) }

Use at

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#check for RTC ratings with the same rating ID
SELECT ?item1 ?item2
WHERE {
  ?item1 p:P3834 [ pq:P2676 ?r ] .
  ?item2 p:P3834 [ pq:P2676 ?r ] .
  FILTER ( ?item1 != ?item2 )
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item1"):::projected v2("?item2"):::projected v3("?r") a1((" ")) a2((" ")) f0[["?item1 != ?item2"]] f0 --> v1 f0 --> v2 a1 --"p:qualifier/P2676"--> v3 v1 --"p:P3834"--> a1 a2 --"p:qualifier/P2676"--> v3 v2 --"p:P3834"--> a2