query-2b5865e9567b9fc4a9e185abf40ee560
Query timing outHello, how to improve this query ? (trying to list all humans not having a french label)
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 ?itemLabel ?pr_nom ?pr_nomLabel ?nom_de_famille ?nom_de_familleLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P31 wd:Q5.
MINUS {
?item rdfs:label ?label_fr.
FILTER((LANG(?label_fr)) = "fr")
}
?item wdt:P735 ?pr_nom.
?item wdt:P734 ?nom_de_famille.
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?label_fr")
v4("?nom_de_famille"):::projected
v3("?pr_nom"):::projected
c2(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> c6
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?label_fr = 'fr'"]]
f1 --> v2
v1 --"rdfs:label"--> v2
end
v1 --"wdt:P735"--> v3
v1 --"wdt:P734"--> v4