W3C home > Mailing lists > Public > public-sparql-dev@w3.org > October to December 2014

Aggregate with Group By

From: Dimitrianos Savva <dimis.savva@gmail.com>
Date: Wed, 19 Nov 2014 19:47:17 +0200
Message-ID: <CAP7LPunKUpoBVaOy6ocZ51uMoJg5YASY3zQNJ_H0nP=FNXnMfA@mail.gmail.com>
To: public-sparql-dev@w3.org
Hello,

What is the expected result set for the following query if we suppose that
the graph pattern in WHERE does not match any triple;

SELECT (sum(?c) as ?s)
WHERE{
   ?a ?b ?c .
   FILTER (str(?a) = "something_that_not_exists")
}
GROUP BY ?a

If I am not wrong, the same query without the GROUP BY, must return error
(null).

Regards,
Dimis
Received on Friday, 21 November 2014 23:16:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:52 UTC