select on streams
query with functions as a source