parse where statement