return num in Select when the rank is larger than oneNum or zeroNum