The definitionExpression query can be set on annotation layers in MapImageLayer. If the layer is shown in the layers parameter of the export request, the definitionExpression query is present. If the layer is not in the request, the definitionExpression query is not in the request.
https://codepen.io/tj-esri/pen/JjpLQeM?editors=1000