query-b62ec5e51f437ffab59259749c30e4fe

rq turtle/ttl

current navies

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 DISTINCT ?itemLabel ?item ?country WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul,fr,de,es,pt,pl,nl,cs". }
    ?item wdt:P31 wd:Q4508.
    ?item wdt:P17 ?country
    MINUS {?country wdt:P31 wd:Q3024240} # historical country
    MINUS {?item wdt:P576 ?end}
  } ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?country"):::projected v4("?end") v2("?item"):::projected v1("?itemLabel"):::projected c8(["wd:Q3024240"]):::iri c2(["bd:serviceParam"]):::iri c6(["wd:Q4508"]):::iri c4(["en-gb,en,mul,fr,de,es,pt,pl,nl,cs"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"wdt:P31"--> c6 v2 --"wdt:P17"--> v3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P31"--> c8 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P576"--> v4 end