# b algebraic of what degree?

With $a$ and $b$ as in your post take $f(x) \in \mathbb{Q} (ab)[x]$ with $f(x)= abx^2 + (ab)^2x +1$. Notice that $f(b)=0$.