List all the tasks with given ids in single query

Can we get the list of all the tasks in a single query using TaskService If I have the list of task ids?