anchor.diff:      DDL = get_long_ddl(),
       true = is_query_valid(DDL, Q),
       [[Start, End | _]] =
  -        test_data_where_clause(<<"Scotland">>, <<"user_1">>, [{3000, 5000}]),
  -    Where2 = [
  +        test_data_where_clause(<<"Scotland">>, <<"user_1">>, [{3001, 5000}]),
  +    ExpectedWhere = [
                 Start, End,
                 {filter,
                  {and_,
  
positive.code:     DDL = get_standard_ddl(),
      true = is_query_valid(DDL, Q),
      [[StartKey, EndKey |_]] =
          test_data_where_clause(<<"Scotland">>, <<"user_1">>, [{3000, 5000}]),
      PK = get_standard_pk(),
      LK = get_standard_lk(),
      Where = [
               StartKey,
               EndKey,
               {filter,
  
negative.code:                 "SELECT time_a FROM GeoCheckin "
                  "WHERE time_c > 2999 AND time_c < 5000 "
                  "AND time_a = 10 AND time_b = 15"),
      {ok, [?SQL_SELECT{ 'WHERE' = Where }]} = compile(DDL, Q, 5),
      ?assertEqual(
          [{startkey, [{<<"time_a">>,timestamp,10}, {<<"time_b">>,timestamp,15}, {<<"time_c">>,timestamp,3000} ]},
           {endkey,   [{<<"time_a">>,timestamp,10}, {<<"time_b">>,timestamp,15}, {<<"time_c">>,timestamp,5000} ]},
           {filter, []} ],
          Where
        ).
  
  duplicate_lower_bound_filter_not_allowed_test() ->
  