I have configured a webapp in AGOL and includes the Query widget: Query widget—Web AppBuilder for ArcGIS | ArcGIS.
I query an MapServer and the calculated Max-Min gives a incorrect result.
It works for some object - but not all.
A workaround would be to let the user disable some of the results in the widget.