moving stream runtime to query input