anchor.diff:          "CREATE TABLE table1("
           "a TIMESTAMP NOT NULL, "
           "b SINT64 NOT NULL, "
  -        "PRIMARY KEY ((a),a,b))"),
  +        "PRIMARY KEY ((a),a))"),
       {ok, Q} = get_query(
           "SELECT * FROM table1 "
           "WHERE a = 5 AND b >= 10 AND b >= 11"),
  
positive.code:         S?SQL_SELECT.'WHERE'
      ).
  
  %% if the pk is (a) and lk is (a,b,c) then b AND c must have filters for c
  %% to be added to the key. If b does not have a filter but c does, then neither
  %% is added.
  
negative.code:         "CREATE TABLE table1("
          "a TIMESTAMP NOT NULL, "
          "b SINT64 NOT NULL, "
          "PRIMARY KEY ((a),a))"),
      {ok, Q} = get_query(
          "SELECT * FROM table1 "
          "WHERE a = 5 AND b >= 10 AND b > 10"),
  