query-5a89c551267cabe0e4dcbea0bddd9a6e
If you want only item with less than 5 statement:
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#>
SELECT ?item ?itemLabel ?statementCount
WHERE
{
?item wdt:P31 wd:Q5.
?item wdt:P21 wd:Q6581097.
?item wikibase:statements ?statementCount.
FILTER(?statementCount < 5)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?statementCount"):::projected
c8(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c5(["wd:Q6581097"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?statementCount < '5^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P21"--> c5
v2 --"wikibase:statements"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end