How would you implement an efficient interface for querying data within a specific time interval in Bloomberg's ML platform?