add precompute topP in sql turnin