query-5e335ad6792f3b9bf12317091013dacd

rq turtle/ttl

Ancient or medieval Greek speaking persons with first name which isn't in Greek alphabet

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 ?prenomLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  VALUES ?grec {wd:Q35497 wd:Q36387 } .
  ?item wdt:P1412 ?grec ;
        wdt:P735 ?prenom .
  FILTER NOT EXISTS { ?item wdt:P31 wd:Q1747829 . }
  FILTER NOT EXISTS { ?prenom wdt:P282 wd:Q8216 . }
  MINUS { ?item wdt:P1412 wd:Q150 } #français
  MINUS { ?item wdt:P1412 wd:Q188 } #allemand
  MINUS { ?item wdt:P1412 wd:Q652 } #italien
  MINUS { ?item wdt:P1412 wd:Q809 } #polonais
  MINUS { ?item wdt:P1412 wd:Q1321 } #espagnol
  MINUS { ?item wdt:P1412 wd:Q1860 } #anglais
  MINUS { ?item wdt:P1412 wd:Q5146 } #portugais
  MINUS { ?item wdt:P1412 wd:Q7737 } #russe
  MINUS { ?item wdt:P1412 wd:Q8798 } #ukrainien
  MINUS { ?item wdt:P1412 wd:Q9035 } #danois
  MINUS { ?item wdt:P1412 wd:Q9056 } #tchèque
  MINUS { ?item wdt:P1412 wd:Q9067 } #hongrois
}

ORDER BY ?prenomLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?grec") v3("?item"):::projected v2("?prenom") v1("?prenomLabel"):::projected c14(["wd:Q809"]):::iri c20(["wd:Q9035"]):::iri c4(["wd:Q1747829"]):::iri c6(["bd:serviceParam"]):::iri c13(["wd:Q652"]):::iri c21(["wd:Q9056"]):::iri c22(["wd:Q9067"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c11(["wd:Q150"]):::iri c17(["wd:Q5146"]):::iri c18(["wd:Q7737"]):::iri c12(["wd:Q188"]):::iri c15(["wd:Q1321"]):::iri c16(["wd:Q1860"]):::iri c19(["wd:Q8798"]):::iri c2(["wd:Q8216"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P282"--> e0c2 e0v1("?prenom"):::projected e0c2(["wd:Q8216"]):::iri end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> c2 v2 --"wdt:P282"--> c2 f1[["not "]] subgraph f1e1["Exists Clause"] e1v1 --"wdt:P31"--> e1c2 e1v1("?item"):::projected e1c2(["wd:Q1747829"]):::iri end f1--EXISTS--> f1e1 f1 --> v3 f1 --> c3 f1 --> c4 v3 --"wdt:P31"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/VALUES ?grec/] bind2-->v4 bind20(["wd:Q35497"]) bind20 --> bind2 bind21(["wd:Q36387"]) bind21 --> bind2 v3 --"wdt:P1412"--> v4 v3 --"wdt:P735"--> v2 subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c11 end subgraph minus4["MINUS"] style minus4 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c12 end subgraph minus5["MINUS"] style minus5 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c13 end subgraph minus6["MINUS"] style minus6 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c14 end subgraph minus7["MINUS"] style minus7 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c15 end subgraph minus8["MINUS"] style minus8 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c16 end subgraph minus9["MINUS"] style minus9 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c17 end subgraph minus10["MINUS"] style minus10 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c18 end subgraph minus11["MINUS"] style minus11 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c19 end subgraph minus12["MINUS"] style minus12 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c20 end subgraph minus13["MINUS"] style minus13 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c21 end subgraph minus14["MINUS"] style minus14 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P1412"--> c22 end