query-90cbcadb3ab28a474bd48feb45a1e882
Items without Menon (Q36981039) family name statements family name statements in Malayalam. I tried this query based on Special church type "Spitalkirche" in Germany in Examples of WDQS, Issue is Query timeout limit reached. It's possible fix this query? (Q36981039)Menon Hi, I want a query for Items without
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?name
WHERE
{
?item wdt:P31 wd:Q5.
?item rdfs:label ?name
FILTER((LANG(?name)) = "ml")
FILTER(REGEX(STR(?name), "മേനോൻ")).
MINUS { ?item wdt:P734 wd:Q36981039 . } # I tried both MINUS and FILTER NOT EXISTS
SERVICE wikibase:label { bd:serviceParam wikibase:language "ml". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?name"):::projected
c9(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c7(["wd:Q36981039"]):::iri
c2(["ml"]):::literal
f0[["regex(str(?name),'മേനോൻ')"]]
f0 --> v1
f1[["?name = 'ml'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"rdfs:label"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P734"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c2
end