query-bc288dbd8c5d631921eeeaf7dae59886

rq turtle/ttl

Olea con subselect y consejos lo resolvemos en un plis:

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 ?item { ?item wdt:P1435 wd:Q69873044  } }  ?item wdt:P131* wd:Q5783 . 
  FILTER NOT EXISTS { ?item wdt:P3318 ?P3318 }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?P3318") v1("?item"):::projected c7(["bd:serviceParam"]):::iri c3(["wd:Q69873044"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q5783"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P3318"--> e0v2 e0v2("?P3318"):::projected e0v1("?item"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"wdt:P3318"--> v2 v1 --"wdt:P1435"--> c3 v1 --"wdt:P131"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end