$\{f>\alpha\} = \{g>\alpha\}$ a.e. for each $\alpha \in \mathbb{Q}$, then $f=g$ a.e.
My argument:
Using the fact that:
$$\{f-g< \epsilon\} = \bigcup_{\alpha\in \mathbb{Q}} \{f\leq\alpha \} \cap \{\alpha < g+\epsilon\}$$ if we replace $\{f\leq\alpha \} $ by $\{g\leq\alpha \} $, this shows the set $\{f-g< \epsilon\} \stackrel{a.e.}{=} \{ g-g < \epsilon\}$ which has full measure.
The fact is easy to check but it is like a trick. Is there a maybe longer but more straight forward solution to this problem?
Here's maybe a slightly quicker answer:
We have $\{f \neq g \} = \bigcup_{\alpha\in \mathbb{Q}}\{ f \le \alpha\} \cap \{g > \alpha\}$, and then since the measure of the individual set $\{ f \le \alpha\} \cap \{g > \alpha\}$ is zero for each $\alpha \in \mathbb{Q}$, $$\mu\left(\bigcup_{\alpha\in \mathbb{Q}}\{ f \le \alpha\} \cap \{g > \alpha\}\right) \le \sum_{\alpha \in \mathbb{Q}} \mu(\{ f \le \alpha\} \cap \{g > \alpha\}) = \sum_{\alpha \in \mathbb{Q}}0 = 0$$