Initial version of Sum Query (in progress)