Revert "Apply filters to stream query SQL"

This reverts commit 062c6bff8daa9a3071b2e94085e8631f2a30adfd.