CREATE TABLE personfriend (name TEXT, friend TEXT, year DECIMAL)
CREATE TABLE person (name TEXT, age DECIMAL, city TEXT, gender TEXT, job TEXT)

How old is each gender, on average?
SELECT AVG(age), gender FROM person GROUP BY gender
SELECT AVG("age"), "gender" FROM "person" GROUP BY "gender"