I've recently read the following reasoning in a paper:
the mapping $x\mapsto \sup_{s\in[a,b]} f(sx)$, $\mathbb{R} \to \mathbb{R}$, is Borel-measurable, since the supremum over $s\in[a,b]$ equals the supremum over $s\in[a,b]\cap\mathbb{Q}$ due to the continuity of $f$ and the fact that the supremum of a countable collection of measurable functions is itself measurable.
While I understand the last part concerning the measurability of a countable supremum, I was not able to find resources that prove that
$$
\sup_{s\in[a,b]} f(s) = \sup_{s\in[a,b]\cap\mathbb{Q}} f(s)
$$
for a continuous function $f$, which was probably used in the first part.
Can anyone help me out with that?