[task] [query] added match conditions to task query