query-e861cb4116f6578e064c8117e32ccabd

rq turtle/ttl

05:44, 23 September 2023 (UTC) 121.99.219.62

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?labelen ?labelmi WHERE {
    ?item wdt:P17 wd:Q664; wdt:P31/wdt:P279* wd:Q58416391.
    optional{?item rdfs:label ?labelen. FILTER(LANG(?labelen) = "en")}
    # optional{?item rdfs:label ?labelmi. FILTER(LANG(?labelmi) = "mi")}
    filter not exists{?item rdfs:label ?labelmi. FILTER(LANG(?labelmi) = "mi")}
} limit 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?labelen"):::projected v1("?labelmi"):::projected a1((" ")) c8(["wd:Q58416391"]):::iri c5(["wd:Q664"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?labelmi = 'mi'"]] e0f0 --> e0v1 e0v2 --"rdfs:label"--> e0v1 e0v2("?item"):::projected e0v1("?labelmi"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f1[["?labelmi = 'mi'"]] f1 --> v1 v2 --"rdfs:label"--> v1 v2 --"wdt:P17"--> c5 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."rdfs:label".-> v3 end