query-70ccbfe1cb182c27bd522dac06360f4b

rq turtle/ttl

Statements without a reference for a particular property without any references (Q10855212)Commander of the Legion of Honour = (P166)award received For example, statements of

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {

   ?item p:P166 ?award_statement .
   ?award_statement ps:P166 wd:Q10855212 .  # Commander of the Legion of Honour
   FILTER NOT EXISTS {
        ?award_statement prov:wasDerivedFrom ?ref
   }

   SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en"
   }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?award_statement") v3("?item"):::projected v2("?ref") c4(["wd:Q10855212"]):::iri c6(["bd:serviceParam"]):::iri c8(["en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"prov:wasDerivedFrom"--> e0v2 e0v1("?award_statement"):::projected e0v2("?ref"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"prov:wasDerivedFrom"--> v2 v3 --"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