query-ff27633376f95d1854ab314438d0238c
And the complete query seems to follow the pattern of this, which works Thoughts on what's going on here?I had a vague understanding that every non-redirected and not-deleted item will have 1 wikibase:statements triple, and 1 schema:dateModified triple. But if WDQS is asked, it gives 99,005,930 & 102,817,482 as answers. What's going on?
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
SELECT ?dateCount ?statementCount
WHERE
{
{
SELECT (count(*) as ?statementCount)
WHERE
{
?item wikibase:statements [] .
} } {
SELECT (count(*) as ?dateCount)
WHERE
{
?item schema:dateModified [] .
} }}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2022/08
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2022/09
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dateCount"):::projected
v1("?item")
v2("?statementCount"):::projected
a1((" "))
a2((" "))
v1 --"wikibase:statements"--> a1
bind1[/"count(*)"/]
bind1 --as--o v2
v1 --"schema:dateModified"--> a2
bind3[/"count(*)"/]
bind3 --as--o v3