Sum of a query

Isn’t this the same question as Query using a sum ?