query-1381689d12df4209aa3aec69723ba984

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item
WHERE
{
  VALUES ?name { wd:Q12308941 wd:Q202444 }
  ?item wdt:P31 ?name .
  ?item wdt:P1705 ?native_label .
  FILTER (LANG(?native_label) = "el")
  FILTER EXISTS
  {
    ?item wdt:P1705 ?other_native_label .
    FILTER (?other_native_label != ?native_label )
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v4("?name") v2("?native_label") v1("?other_native_label") f0[[" "]] subgraph f0e0["Exists Clause"] e0f0[["?other_native_label != ?native_label"]] e0f0 --> e0v1 e0f0 --> e0v2 e0v3 --"wdt:P1705"--> e0v1 e0v3("?item"):::projected e0v2("?native_label"):::projected e0v1("?other_native_label"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> v3 f0 --> c1 f1[["?other_native_label != ?native_label"]] f1 --> v1 f1 --> v2 v3 --"wdt:P1705"--> v1 f2[["?native_label = 'el'"]] f2 --> v2 bind3[/VALUES ?name/] bind3-->v4 bind30(["wd:Q12308941"]) bind30 --> bind3 bind31(["wd:Q202444"]) bind31 --> bind3 v3 --"wdt:P31"--> v4 v3 --"wdt:P1705"--> v2