title: SUM function in SPARQL
body: <p>This SUM aggregate function is not working. It gives no result. </p>
  
  <pre><code>select  (SUM(?p) as ?prcc) ?sune
  
  where { 
  
  ?inl Sp:hasp ?p.
  
       ?inl Sp:hassuid ?supid.
  
  ?supid Sp:hassune ?sune.
  
  }
  GROUP BY ?sune
  </code></pre>
  
  <p>The data in "p" is in double format. So when i change my query to </p>
  
  <pre><code>select  (SUM(xsd:double(?p)) as ?prcc) ?sune
  
  or select  (SUM(xsd:integer(?p)) as ?prcc) ?sune
  </code></pre>
  
  <p>It does not perform SUM on values with decimal point.</p>