Give me a histogram for how old is each gender, on average?, rank in asc by the x-axis.
CREATE TABLE PersonFriend (
    name varchar(20),
    friend varchar(20),
    year INTEGER
)

CREATE TABLE Person (
    name varchar(20),
    age INTEGER,
    city TEXT,
    gender TEXT,
    job TEXT
)
SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Give me a histogram for how old is each gender, on average?, rank in asc by the x-axis. ### Input: CREATE TABLE PersonFriend (
    name varchar(20),
    friend varchar(20),
    year INTEGER
)

CREATE TABLE Person (
    name varchar(20),
    age INTEGER,
    city TEXT,
    gender TEXT,
    job TEXT
) ### Response: SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender