query-2e4e7f2c1a7f53c12e5f2bfe30911a0b
Statements without any qualifier for a given property any qualifiers without (Q10855212)Commander of the Legion of Honour = (P166)award received For example, statements for
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription WHERE {
?item p:P166 ?award_statement .
?award_statement ps:P166 wd:Q10855212 . # Commander of the Legion of Honour
FILTER NOT EXISTS {
?award_statement ?pq_pred ?pq_obj . # a triple involving the award statement ...
?prop wikibase:qualifier ?pq_pred . # ... with a predicate ?pq_pred that is a qualifier
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?award_statement")
v5("?item"):::projected
v3("?pq_obj")
v2("?pq_pred")
v4("?prop")
c4(["wd:Q10855212"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 -->e0v2--> e0v3
e0v4 --"wikibase:qualifier"--> e0v2
e0v1("?award_statement"):::projected
e0v3("?pq_obj"):::projected
e0v2("?pq_pred"):::projected
e0v4("?prop"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> v4
f0 --> c1
v1 -->v2--> v3
v4 --"wikibase:qualifier"--> v2
v5 --"p:P166"--> v1
v1 --"p:statement/P166"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end