In Web AppBuilder, selections are not reflected in an attribute table when selecting features through the Query widget.
Last Published: June 28, 2016ArcGIS Online
Bug ID Number
February 10, 2015
September 22, 2022
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
There are two ways to select features.
1. Select features from the layer and update the selection
2. Select features from the layer and don't update the selection
Per discussion, only Select widget can update the selection when select features. Query should not update the selection when select features.
So, this issue will not be addressed.