can generate queries for streams