I created a fiddle http://sqlfiddle.com/#!17/f882b/23.
It has table \'scots\' with name, age, country, weight.
select name, weight, country, avg(weight) ov