task query in rest module