The entitySelection.queryPlan property contains a detailed description of the query just before it is executed (i.e., the planned query). This property is available for entitySelection objects generated through queries if the "queryPlan":true property was passed in the querySettings parameter of the query() method.
For more information, refer to the querySettings parameter paragraph.