refactor stat on OrderQuery