query-a3929c0840edb3a77efd77cbfbcf35d4
Yes. 4.8M items.: Thanks! I tried to simplify the query since I just want the relevant QIDs and don't need labels: Tagishsimon@
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/>
SELECT ?item
WHERE
{
?item wdt:P31 wd:Q4167836.
?item ?ppp ?qqq.
?property wikibase:directClaim ?ppp .
filter (?property not in (wd:P31, wd:P4224, wd:P971) )
} limit 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?ppp")
v1("?property")
v4("?qqq")
c5(["wd:Q4167836"]):::iri
f0[["?property != 'wd:P31'?property != 'wd:P4224'?property != 'wd:P971'"]]
f0 --> v1
v2 --"wdt:P31"--> c5
v2 -->v3--> v4
v1 --"wikibase:directClaim"--> v3