WIP: working on dedupe event query