query-e9bf3564f842e842bdac7db35e6a1eaa
Authors with United States citizenship without a Goodreads identifier
authors with country of citizenship United States who do not have a Goodreads identifier
SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q5. #instance of (P31) human (Q5) ?item wdt:P27 wd:Q30. #country of citizenship (P27) is United States (Q30) ?item wdt:P106 wd:Q36180 . #occupation (P106) is writer (Q36180) MINUS { ?item wdt:P2963 [] } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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 bd: <http://www.bigdata.com/rdf#>
#Authors with United States citizenship without a Goodreads identifier
#authors with country of citizenship United States who do not have a Goodreads identifier
SELECT ?item ?itemLabel
WHERE
{
?item wdt:P31 wd:Q5. #instance of (P31) human (Q5)
?item wdt:P27 wd:Q30. #country of citizenship (P27) is United States (Q30)
?item wdt:P106 wd:Q36180 . #occupation (P106) is writer (Q36180)
MINUS { ?item wdt:P2963 [] } .
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("?item"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q30"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q36180"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P27"--> c4
v1 --"wdt:P106"--> c6
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P2963"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end