To attach AOT query your use SRSReportqueryAttribute in contract class.
Below link will give you idea how to use that
https://community.dynamics.com/ax/b/faisalfareedaxlibrary/archive/2014/12/27/rdp-contract-ui-builder-and-controller-classes-for-ssrs-report-development