2gQMnB9SaqBHeUlTO1AX - Module Project SQL
2gQMnB9SaqBHeUlTO1AX - Module Project SQL
Dataset Overview
The dataset provided consists of five CSV files: Goals, Matches, Players, Stadiums, and
Teams. These files contain comprehensive data on various aspects of UEFA
competitions, enabling detailed analysis and insights into football dynamics. The project
focuses on analyzing these datasets using SQL to answer specific questions about
teams, players, goals, matches, and stadiums.
Data Dictionary
Goals.csv
MATCH_ID String Identifier for the match in which the goal was
scored
PID String Identifier for the player who scored the goal
DURATION Integer Minute in the match when the goal was scored
ASSIST String Identifier for the player who assisted the goal
Players.csv
Teams.csv
Tasks -
Load up the 5 Tables in your Postgresql and try to solve the questions mentioned
below. The link containing the CSV file of the tables is attached below.
https://drive.google.com/drive/folders/1wo-LFBqkH-6MmwxTMoefVKv1HrLIL3Xi?
usp=sharing
18. Which players have the highest total goals scored (including assists)?
19. What is the average height and weight of players per position?
20. Which player has the most goals scored with their left foot?
21. What is the average age of players per team?
22. How many players are listed as playing for a each team in a season?
23. Which player has played in the most matches in the each season?
24. What is the most common position for players across all teams?
25. Which players have never scored a goal?
26. Which team has the largest home stadium in terms of capacity?
27. Which teams from a each country participated in the UEFA competition in a
season?
28. Which team scored the most goals across home and away matches in a given
season?
29. How many teams have home stadiums in a each city or country?
30. Which teams had the most home wins in the 2021-2022 season?
38. Which players scored the most goals in matches held at a specific stadium?
39. Which team won the most home matches in the season 2021-2022 (based on
match scores)?
40. Which players played for a team that scored the most goals in the 2021-2022
season?
41. How many goals were scored by home teams in matches where the attendance
was above 50,000?
42. Which players played in matches where the score difference (home team score -
away team score) was the highest?
43. How many goals did players score in matches that ended in penalty shootouts?
44. What is the distribution of home team wins vs away team wins by country for all
seasons?
45. Which team scored the most goals in the highest-attended matches?
46. Which players assisted the most goals in matches where their team lost(you can
include 3)?
47. What is the total number of goals scored by players who are positioned as
defenders?
48. Which players scored goals in matches that were held in stadiums with a capacity
over 60,000?
49. How many goals were scored in matches played in cities with specific stadiums in
a season?
50. Which players scored goals in matches with the highest attendance (over
100,000)?
51. What is the average number of goals scored by each team in the first 30 minutes
of a match?
52. Which stadium had the highest average score difference between home and away
teams?
53. How many players scored in every match they played during a given season?
54. Which teams won the most matches with a goal difference of 3 or more in the
2021-2022 season?
55. Which player from a specific country has the highest goals per match ratio?