Using the matches table, compute how many league points each team earned in the matches it hosted, awarding 3 points for a home win, 1 for a draw, and 0 for a home loss. Return host_team_id and a computed column home_points that is the total of those per-match points. Sort by home_points from highest to lowest, breaking ties by host_team_id ascending.
Database schema
primary keyforeign keyarrow points to the referenced columndrag to pan