anchor.diff:  %% one.
   boundary_quanta_test() ->
       DDL = get_standard_ddl(),
  -    Query = "select weather from GeoCheckin where time >= 14000 and time <= 15000 and user = 'user_1' and location = 'Scotland'",
  +    Query =
  +        "select weather from GeoCheckin"
  +        " where time >= 14000 and time <= 15000"
  +        " and user = 'user_1' and location = 'Scotland'",
       {ok, Q} = get_query(Query),
       true = is_query_valid(DDL, Q),
       %% get basic query
  
positive.code: 
  %%
  -spec infer_col_type(?DDL{}, riak_ql_ddl:selection(), Errors1::[any()]) ->
          {riak_ql_ddl:simple_field_type() | error, Errors2::[any()]}.
  infer_col_type(_, {Type, _}, Errors) when Type == sint64; Type == varchar;
                                            Type == boolean; Type == double ->
      {Type, Errors};
  
negative.code:       ).
  
  basic_select_window_agg_fn_test() ->
      SQL =
          "SELECT count(location), avg(mydouble), avg(mysint)"
          " from mytab WHERE myfamily = 'familyX'"
          " and myseries = 'seriesX' and time > 1 and time < 2",
      {ok, Rec} = get_query(SQL),
      {ok, Sel} = compile_select_clause(get_sel_ddl(), Rec),
      ?assertMatch(#riak_sel_clause_v1{calc_type        = aggregate,
  