minor er query code update to exclude RA from list in from selection clause