query-104170f153d16de0dd1a5cc68b3d402d
title:Excluding items having only a specific qualifier-value SELECT DISTINCT ?item WHERE { ?item p:P4223 ?ei . ?ei pq:P50 ?author . FILTER (?author != wd:Q3772798 ) }
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#title:Excluding items having only a specific qualifier-value
SELECT DISTINCT ?item
WHERE {
?item p:P4223 ?ei .
?ei pq:P50 ?author .
FILTER (?author != wd:Q3772798 )
}
Query found at
- https://www.wikidata.org/wiki/User:Ep%C3%ACdosis/Queries
- https://www.wikidata.org/wiki/User:Ep%C3%ACdosis/sandbox
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?author")
v3("?ei")
v2("?item"):::projected
f0[["?author != 'wd:Q3772798'"]]
f0 --> v1
v2 --"p:P4223"--> v3
v3 --"p:qualifier/P50"--> v1