Map service's query operation with 'output statistics' returns incorrect result when a layer (off a file geodatabase) participates in an outer-join and there are few unmatched records in the right-table. It seems like records with null values in the right-table are ignored.