Support for simple OR queries in historic task instance query