add event query