Task query web service functions