query-b4af18580e62a07cb3bfaa2c38fef826

rq turtle/ttl

Multiplication (abc); PRODUCT(?factor) instead of SUM(?factor)Task T196872PhabricatorTracked in

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?value
    # (SUM(?factor) as ?a) 
    (GROUP_CONCAT(?factor;separator="*") as ?product)
WHERE
{
    ?item wdt:P5236 / wdt:P1181 ?factor .
    ?item wdt:P1181 ?value 
}
GROUP BY ?item ?value

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?factor"):::projected v1("?item"):::projected v4("?product") v3("?value"):::projected a1((" ")) v1 --"wdt:P5236"--> a1 a1 --"wdt:P1181"--> v2 v1 --"wdt:P1181"--> v3 bind1[/"?factor"/] v2 --o bind1 bind1 --as--o v4