support select with where condition added