The problem is as follows:
Let $f: \mathbb{Q} \to \mathbb{Q}$ and consider the differential equation $f' = f$, with the standard definition of differentiation. Do there exist any nontrivial solutions?
(Note that of course $f \equiv 0$ is a solution - by "nontrivial solutions", I mean anything else).
Observations:
Differentiation and continuity are much weaker concepts on the rationals. For example, $H(x-\sqrt{2}) : \mathbb{Q} \to \mathbb{Q}$ is continuous and everywhere differentiable, where $H$ is the Heaviside step function.
If there exists a nontrivial solution $f_0$, then there are uncountably many solutions. For example, $H(x-\alpha)f_0$ is also a solution for any irrational $\alpha$ (which already gives uncountably many solutions), and thus any* linear combination $k_0 f_0 + \sum_{\alpha \in A} H(x-\alpha)k_\alpha f_0$ (with $A \subset \mathbb{R}\setminus\mathbb{Q}$) is also a solution, by linearity of the DE.
We can answer in the negative if there is a way to show that any such solution could be extended to a solution to $f' = f$ on $\mathbb{R}$, because those solutions are simply $ke^x$, which takes irrational values over the rationals unless $k = 0$. Unfortunately, the solutions $f : \mathbb{Q} \to \mathbb{Q}$ for the a differential equation $\mathcal{L}y = 0$ are not, in general, a subset of the real solutions. e.g. $y' = 0$ has solution $H(x-\sqrt{2})$ but every solution on $\mathbb{R}$ must be constant.
If the answer is "yes", maybe we'd hope to be able to construct a solution via some iterative method, but since Cauchy sequences are not in general convergent, we'd need some sort of machinery to guarantee rational limits.
*you can either insert the word "finite" here, or stipulate that the $k_\alpha$ are such that the quantity $\sum_{\alpha<q} k_\alpha$ is finite and rational for all $q \in \mathbb{Q}$, but the point is that we can construct a bunch of "different looking" solutions.
More generally, for any function $g:\mathbb Q\rightarrow\mathbb Q$ and any point $(x_0,y_0)\in\mathbb Q^2$, there exists $f:\mathbb Q\rightarrow\mathbb Q$ such that $f'(x_0)=y_0$ and $f'(x)=g(f(x))$.
Choose an enumeration $x_0,x_1,\ldots$ of $\mathbb Q$ starting with $x_0$. Let $Q_n=\{x_0,\ldots,x_n\}$, so $\mathbb Q=\bigcup_n Q_n$. We will inductively construct continuous functions $a_n,b_n:\mathbb Q\rightarrow\mathbb Q$ with the properties
We'll use the parabolic functions $c(s,t)$ and $d(s,t)$ defined by $$ c(s,t)(x)=t+g(t)(x-s)-(x-s)^2, $$ $$ d(s,t)(x)=t+g(t)(x-s)+(x-s)^2. $$ Note that $c(s,t)(x)<d(s,t)(x)$ for $x\neq s$ and both functions pass through $(s,t)$ with derivative $g(t)$. We can take $a_0=c(x_0,y_0)$ and $b_0=d(x_0,y_0)$.
Suppose $n>0$ and $a_{n-1},b_{n-1}$ are constructed. Then $a_{n-1}(x_n)<b_{n-1}(x_n)$, so choose $y_n$ strictly between these. Choose an open interval $I$ containing $x_n$ such that $c(x_n,y_n)>a_{n-1}$ and $d(x_n,y_n)<b_{n-1}$ on $I$. Shrink $I$ so that its closure doesn't intersect $Q_{n-1}$. Let $J$ be an open interval containing $x_n$ whose closure is inside $I$. We define $a_n$ to equal $a_{n-1}$ outside $I$, $c(x_n,y_n)$ inside $J$, and interpolate linearly between $I$ and $J$ so that the result is still continuous. Define $b_n$ similarly.
Since $\bigcup_n Q_n=\mathbb Q$, both $a_n$ and $b_n$ converge pointwise to a function $f$ as $n\rightarrow\infty$. For any $x\in\mathbb Q$ we have $x=x_n$ for some $n$, and $a_n\leq f\leq b_n$, so property 2 and the squeeze theorem imply that $f$ satisfies the required equation.