select * from table where col1 = ? and ( col2 >= ? and col3 <= ? )