Neural IT interview question

Fetching data from database using group by command and sum() function