query-272f39610ad26b08ad0c21825bb307b2

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 ?item ?itemLabel
WHERE
{
    {
        SELECT DISTINCT ?item {
            ?item wdt:P1566 ?value1 .
            ?item wdt:P1566 ?value2 .
            ?item wdt:P17 wd:Q159
            FILTER( ?value1 != ?value2 ) .
        }
    } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,en" } .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?value1") v2("?value2") c3(["wd:Q159"]):::iri c5(["bd:serviceParam"]):::iri c7(["ru,en"]):::literal f0[["?value1 != ?value2"]] f0 --> v1 f0 --> v2 v3 --"wdt:P1566"--> v1 v3 --"wdt:P1566"--> v2 v3 --"wdt:P17"--> c3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end