create table tst(val int);
insert into tst values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
select val from tst where (val=2) and (mod(val,2)=0) or (val >= 6);
| 2| | 6| | 7| | 8| | 9| | 10|
select val from tst where (val=2 and mod(val,2)=0) or (val >= 6);
| 2| | 6| | 7| | 8| | 9| | 10| (6 rows)
select val from tst where (val=2) and (mod(val,2)=0 or val >= 6);
| 2 | (1 row)