query-af9e3d5689e37cf234e92d2463afcf9e
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item (COUNT(DISTINCT ?p) as ?ct)
{
{ SELECT ?item { ?item wikibase:statements 2 ; wdt:P31 [] ; wdt:P106 [] } LIMIT 1000 }
?item ?wdt [] .
?p wikibase:directClaim ?wdt .
}
GROUP BY ?item
HAVING (?ct = 2)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ct")
v2("?item"):::projected
v4("?p"):::projected
v3("?wdt")
a1((" "))
a2((" "))
a3((" "))
c1(["2^^xsd:integer"]):::literal
f0[["?ct = '2^^xsd:integer'"]]
f0 --> v5
v2 --"wikibase:statements"--> c1
v2 --"wdt:P31"--> a1
v2 --"wdt:P106"--> a2
v2 -->v3--> a3
v4 --"wikibase:directClaim"--> v3
bind2[/"count(?p)"/]
v4 --o bind2
bind2 --as--o v5