title: How to query all task which are having relatedto(whatId) as Account or Contact
body: <p>I am using an soql query to get tasks.  My requirement is to get all tasks which are related account or contact object.  Also few other fields inside Account or contact object whichever the  object related. Is there a simple way instead of writing multiple queries.</p>