この SUM 集計関数は機能していません。結果は得られません。
select (SUM(?p) as ?prcc) ?sune
where {
?inl Sp:hasp ?p.
?inl Sp:hassuid ?supid.
?supid Sp:hassune ?sune.
}
GROUP BY ?sune
"p" のデータは double 形式です。したがって、クエリを次のように変更すると
select (SUM(xsd:double(?p)) as ?prcc) ?sune
or select (SUM(xsd:integer(?p)) as ?prcc) ?sune
小数点のある値に対して SUM を実行しません。