query-1096bf08b4771d24aa70412906bbb47b
Indian cricket players without no labels in Malayalam SELECT ?item ?len ?den WHERE { ?item wdt:P31 wd:Q5; wdt:P106 wd:Q12299841; wdt:P1532 wd:Q668. OPTIONAL { ?item rdfs:label ?len; schema:description ?den. FILTER((LANG(?len)) = "en") FILTER((LANG(?den)) = "en") } FILTER(NOT EXISTS { ?item rdfs:label ?lml. FILTER((LANG(?lml)) = "ml") }) } ORDER BY ASC (?len)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Indian cricket players without no labels in Malayalam
SELECT ?item ?len ?den WHERE {
?item wdt:P31 wd:Q5;
wdt:P106 wd:Q12299841;
wdt:P1532 wd:Q668.
OPTIONAL {
?item rdfs:label ?len;
schema:description ?den.
FILTER((LANG(?len)) = "en")
FILTER((LANG(?den)) = "en")
}
FILTER(NOT EXISTS {
?item rdfs:label ?lml.
FILTER((LANG(?lml)) = "ml")
})
}
ORDER BY ASC (?len)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?den"):::projected
v3("?item"):::projected
v1("?len"):::projected
v2("?lml")
c7(["wd:Q12299841"]):::iri
c9(["wd:Q668"]):::iri
c5(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?lml = 'ml'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?lml"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?lml = 'ml'"]]
f1 --> v2
v3 --"rdfs:label"--> v2
v3 --"wdt:P31"--> c5
v3 --"wdt:P106"--> c7
v3 --"wdt:P1532"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
v3 --"schema:description"--> v4
end