add query event