'Win loss ratio for game match up SQL

I'm trying to work on a sql query that helps me calculate the win loss ratio of each team.

How would I go about doing this? For example, for team 1 it would be 100%.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source