We know $p a^2+q b^2+r ab$ can be represented as square (trivially) when $$p,q\geq0$$ $$r^2=|4pq|$$ holds and as a sum of squares (again trivially) of form $(m a+n b)^2$ under readily explainable conditions on $p,q,r$.
Are there other non trivial sum of squares form with higher powers being cancelled off and leaving only $p a^2+q b^2+r ab$ in final sum for other regimes of $p,q,r$?