query-26c4e24b8cb92d3547049d0a88b3f214

rq turtle/ttl

Query Count in TableHi, 12:33, 12 April 2024 (UTC)) talk (Wallacegromit1Kindly requesting, How to add an auto-updating 'count' (number of items) in a table on a project page? I am trying to add the following query value into a table;

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(*) AS ?count)

WHERE {

?item wdt:P31 wd:Q5 .

?item wdt:P27 wd:Q408 .

?item wdt:P106 wd:Q60461966 .

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?count") v1("?item") c2(["wd:Q5"]):::iri c4(["wd:Q408"]):::iri c6(["wd:Q60461966"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P27"--> c4 v1 --"wdt:P106"--> c6 bind1[/"count(*)"/] bind1 --as--o v2