Add method to generate time-bounded query strings for continuous queries.