I don't know how to prove the following:
Let
$K:=\lbrace G : G$ is a union of finitely many intervals with rational endpoints$\rbrace$.
Prove that $K$ is countably infinite.
Here is my approach:
The set of intervals with rational endpoints is countably infinite as there is a bijection between this set and $\mathbb{Q}\times \mathbb{Q}$. However, I don't know how to continue.
I really appreciate any help you can provide.