add query category