query-5595e05cd1bf003f7991ae024265d901

rq turtle/ttl

Proeksad

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
select ?item { 
   {
     select distinct ?item {
       ?item p:P10565  ?itemP10565stmt1, ?itemP10565stmt2
                        filter(?itemP10565stmt1 != ?itemP10565stmt2) .
       ?itemP10565stmt1 wikibase:rank ?itemP10565stmt1_rank 
              filter (?itemP10565stmt1_rank != wikibase:DeprecatedRank) .
              ?itemP10565stmt2 wikibase:rank ?itemP10565stmt2_rank 
              filter (?itemP10565stmt2_rank != wikibase:DeprecatedRank) .
     } 
   } }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?item"):::projected v3("?itemP10565stmt1") v2("?itemP10565stmt1_rank") v4("?itemP10565stmt2") v1("?itemP10565stmt2_rank") f0[["?itemP10565stmt2_rank != 'wikibase:DeprecatedRank'"]] f0 --> v1 f1[["?itemP10565stmt1_rank != 'wikibase:DeprecatedRank'"]] f1 --> v2 f2[["?itemP10565stmt1 != ?itemP10565stmt2"]] f2 --> v3 f2 --> v4 v5 --"p:P10565"--> v3 v5 --"p:P10565"--> v4 v3 --"wikibase:rank"--> v2 v4 --"wikibase:rank"--> v1