select sum(x*x) from vector
