chained query path optimization

rather than take a performance hit to initialize filteredrows[], we will
do it on the fly, with custom logic to handle first chained operation.