There are infinitely many. As you know, there are two non-isomorphic three-dimensional Lie algebras over $\mathbb R$ that coincide over $\mathbb C$: $\mathfrak {sl}_2(\mathbb R)$ and $\mathfrak {su}(2)$. To understand what happens over $\mathbb Q$, note that $\mathfrak {su}(2)$ is the derived subalgebra of the quaternion algebra over $\mathbb R$ (which is four-dimensional with a one-dimensional center).
So how many non-isomorphic quaternion algebras are there over $\mathbb Q$? There are infinitely many, though this is non-trivial. For every even set $S$ of absolute values of $\mathbb Q$ (which are the real one and the $p$-adic absolute values), there exists a unique quaternion algebra $D$ over $\mathbb Q$ such that for every $\nu\in S$, $D\otimes_\mathbb Q\mathbb Q_\nu$ is the unique quaternion algebra over $\mathbb Q_\nu$ (here $\mathbb Q_\nu$ denotes the completion of $\mathbb Q$ with respect to the absolute value $\nu$) and for every $\nu\not\in S$, $D\otimes_\mathbb Q\mathbb Q_\nu\simeq M_2(\mathbb Q_\nu)$, and all such quaternion algebras arise in this way. This is essentially an application of quadratic reciprocity (interpreted in terms of the Hilbert symbol).
Of course, the Lie algebra associated to $D$ is four-dimensional (and has a one-dimensional center), so take either the derived subalgebra of $D$ or, equivalently, take elements in $D$ with "reduced" trace zero to get a three-dimensional simple algebra. I can't quite rule out the existence of other algebras (the above are the "inner forms" of $\mathfrak{sl}_2(\mathbb Q)$, there might be non-isomorphic "outer forms", but this is well outside my competency)