bug1010442 - Implement before query API for past events