query-513c5bb0f687d7ae4ec5e9243fd3dcec

rq turtle/ttl

. It will be helpful if there is a column with P27 and a column with el label. (P735)given name that have no (Q15240466)British Cyprus or (Q41)Greece or (Q229)Cyprus -> (P27)country of citizenship c) a query with all items that TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?q ?label ?country WHERE {
  VALUES ?country { wd:Q229 wd:Q41 wd:Q15240466 }
  ?q wdt:P27 ?country ; rdfs:label ?label .
  FILTER (lang(?label) = "el"). 
  MINUS { ?q wdt:P735 [] }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?country"):::projected v1("?label"):::projected v3("?q"):::projected a1((" ")) f0[["?label = 'el'"]] f0 --> v1 bind1[/VALUES ?country/] bind1-->v2 bind10(["wd:Q229"]) bind10 --> bind1 bind11(["wd:Q41"]) bind11 --> bind1 bind12(["wd:Q15240466"]) bind12 --> bind1 v3 --"wdt:P27"--> v2 v3 --"rdfs:label"--> v1 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P735"--> a1 end