query-cd90469d830705742101b59073c4edcd

rq turtle/ttl

Jura1Hannes Röst(Q66903)Pont-en-Ogoz (Q70208)municipality of Switzerland (Q685309)former municipality of Switzerland (Q66152)Noflen (Q66721)Scherz

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE
{
  ?item p:P31 ?instancestatement .
  ?instancestatement ps:P31 wd:Q70208 .
  ?instancestatement a wikibase:BestRank .
  FILTER NOT EXISTS { ?instancestatement pq:P582 [] }
  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; v1("?instancestatement") v2("?item"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c6(["wikibase:BestRank"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q70208"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:qualifier/P582"--> e0a1 e0v1("?instancestatement"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"p:qualifier/P582"--> a1 v2 --"p:P31"--> v1 v1 --"p:statement/P31"--> c4 v1 --"a"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end