historic task OR query now also working for variables