How would a therom prover like z3 handle this, out of interest? Isn't it the ideal domain for it?
At this point, if the query is syntactically solvable, we are done. Often queries are not, so the solver uses a symbolic decision procedure. The specific decision procedure depends on the formula. For example, Linear Integer Arithmetic (which allows addition of variables and multiplication by only constants) can be solved using Simplex.
With that said, the author of this article seems to be interested in some sort of other question entirely.