create where condition