subTableQuery argument for reports

Api: Graphql

Added new argument subTableQuery for reports, to control how sub-tables are queried. See Reports.