The SQLite AVG function returns the average value of the expression.
Syntax:
SELECT AVG(aggregate_expression) FROM tables [WHERE conditions];
SELECT AVG(aggregate_expression)
FROM tables
[WHERE conditions];