A ratio is the quantitative relation between two amounts showing the number of times one value contains or is contained within the other. Therefore, the correct answer to the question "A ratio is defined as:" is "a comparison between two sets" (option B).