1.C>O AND C>REF(C,1) AND V<REF(V,1) AND C>REF(C,1);
----------------------------------
2.C<O AND C>REF(O,1) AND V<REF(V,1) AND C>REF(C,1);
------------------------------------------
AA:=C>O AND C>REF(C,1) AND V<REF(V,1) AND C>REF(C,1);
BB:=C<O AND C>REF(O,1) AND V<REF(V,1) AND C>REF(C,1);
AA OR BB;