anchor.diff:          "SELECT COUNT(mydouble) + COUNT(mydouble) FROM mytab "
           "WHERE myfamily = 'familyX' "
           "AND myseries = 'seriesX' AND time > 1 AND time < 2"),
  -    {ok, Select} = compile_select_clause(get_sel_ddl(), Rec),
  +    {ok, Select} = compile_select_clause(get_sel_ddl(), options(), Rec),
       ?assertMatch(
           #riak_sel_clause_v1{
               initial_state = [0,0],
  
positive.code:     {ok, Rec} = get_query(
                    "SELECT SUM(mydouble), SUM(mydouble) FROM mytab WHERE myfamily = 'familyX' "
                    "AND myseries = 'seriesX' AND time > 1 AND time < 2"),
      {ok, Select} = compile_select_clause(get_sel_ddl(), Rec),
      ?assertMatch(
         #riak_sel_clause_v1{ initial_state = [[], []] },
         Select
  
negative.code:         compile(DDL, Q)
      ).
  
  negate_an_aggregation_function_test() ->
      {ok, Rec} = get_query(
          "SELECT -COUNT(*) FROM mytab"),
      {ok, Select} = compile_select_clause(get_sel_ddl(), options(), Rec),
      ?assertMatch(
          [-3],
          finalise_aggregate(Select, [3])
  