query-81581e2c9fd18b8adf1d100b1a4653d4

rq turtle/ttl

TODO in a language that is not Greek. So it must be in the results. (P1559)name in native language has (Q12881733)Nikitas Tsakiroglou . (Q8216)Greek alphabet -> (P282)writing system which is an item that have (Q39292409)Nikitas -> (P735)given name has (Q12881733)Nikitas Tsakiroglou in a language different that Greek. (for example they may have only one value with P1559 in English, or they may have two values with P1559: one in English and one in Greek). For example, (P1559)name in native language , and they have (Q8216)Greek alphabet -> (P282)writing system -> a value that have (P735)given name b) a query with all items that have

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 ?nativename (LANG(?nativename) AS ?language_code)
WHERE
{
  ?item wdt:P735 ?givenname .
  ?givenname wdt:P282 wd:Q8216 . # writing system is Greek alphabet
  ?item wdt:P1559 ?nativename .
  FILTER (LANG(?nativename) != "el")
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],el,en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?givenname") v2("?item"):::projected v4("?language_code") v1("?nativename"):::projected c9(["#91;AUTO_LANGUAGE#93;,el,en"]):::literal c7(["bd:serviceParam"]):::iri c4(["wd:Q8216"]):::iri f0[["?nativename != 'el'"]] f0 --> v1 v2 --"wdt:P735"--> v3 v3 --"wdt:P282"--> c4 v2 --"wdt:P1559"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"?nativename"/] v1 --o bind1 bind1 --as--o v4