The entitySelection.queryPath property contains a detailed description of the query as it was actually performed by 4D. This property is available for entitySelection objects generated through queries if the "queryPath":true property was passed in the querySettings parameter of the query() method.
For more information, refer to the querySettings parameter paragraph.