Generate FetchXML and QueryExpression queries for Dynamics 365 with filters, relationships, and aggregates.