The set of rational numbers includes all numbers that can be represented as where both p and q are integers. Irrational numbers cannot be represented this way, so they are not part of the rational set.