Added rank populate query