+-------------+-------+
| Column Name | Type |
+-------------+-------+
| player\_id | int |
| group\_id | int |
+-------------+-------+
player\_id is the primary key of this table.
Each row of this table indicates the group of each player.
Table: Matches
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| match\_id | int |
| first\_player | int |
| second\_player | int |
| first\_score | int |
| second\_score | int |
+---------------+---------+
match\_id is the primary key of this table.
Each row is a record of a match, first\_player and second\_player contain the player\_id of each match.
first\_score and second\_score contain the number of points of the first\_player and second\_player respectively.
You may assume that, in each match, players belongs to the same group.
The winner in each group is the player who scored the maximum total points within the group. In the case of a tie, the lowest player_id wins.
Write an SQL query to find the winner in each group.
The query result format is in the following example: