sub query task execution