Edit Query.php Add function Sum