Adding constraints in ranking question

Welcome to the community, @icayunda! Maybe you could follow the same method as outlined in the post discussed previously: