Infosys interview question

Sql related query is average