Your point is clear... but as to the example, unless I'm misunderstanding your notation, the premise is that
2 = (p/q)^2
which is not the same as 2 = p^2/q^2
as you have in (2).