add query operation