query-9c2776e5a734ce73c0d796d994dc7b67

rq turtle/ttl

Caves without coordinates and with more than 2 pages in wikipedia

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#>
PREFIX schema: <http://schema.org/>

SELECT DISTINCT ?item ?statements ?sitelinks ?itemLabel ?itemDescription WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q35509.
  ?item wikibase:statements ?statements.
  ?item wikibase:sitelinks ?sitelinks.
  MINUS { ?item wdt:P625 _:b1. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en, bg". }
  FILTER (?sitelinks>=1)
}
ORDER BY ?sitelinks

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?sitelinks"):::projected v3("?statements"):::projected a2((" ")) a1((" ")) c9(["bd:serviceParam"]):::iri c4(["wd:Q35509"]):::iri c11(["en, bg"]):::literal f0[["?sitelinks >= '1^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v2 --"wikibase:statements"--> v3 v2 --"wikibase:sitelinks"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P625"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end