Skip to content

About

SQL case study on AEW events and match ratings (2019–2025) using MySQL window functions, subqueries and aggregations, with a PowerPoint presentation

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

🏆 AEW Events & Match Ratings — SQL Case Study

What 1,098 events and 4,125 rated matches reveal about All Elite Wrestling (2019 – 2025)

MySQL SQL PowerPoint Status


📑 Table of Contents


🎯 Project Overview

All Elite Wrestling (AEW) launched in 2019 and now runs weekly TV shows plus pay-per-view events. This project uses MySQL to answer 10 business questions about how the promotion grew, where it performs, and how well its matches are rated by fans and critics.

📅 Events 🤼 Matches 🗓️ Date Range ❓ Questions
1,098 4,125 May 2019 → Dec 2025 10

🗂️ Repository Structure

📦 aew-sql-case-study
 ┣ 📜 AEW_Dataset.sql             ← Creates the database, both tables and all data
 ┣ 📝 Questions.md                ← The 10 business questions (plain English)
 ┣ 🧠 Questions_and_answers.sql   ← The 10 questions with their SQL solutions
 ┣ 🎞️ AEW_Case_Study.pptx         ← Presentation: Title → Introduction → Case Study → Conclusion
 ┗ 📖 README.md                   ← You are here

🧬 Dataset

Two tables live in the aew_data database.

erDiagram
    aew_events {
        int event_id PK
        date event_date
        varchar promotion
        varchar event
        varchar event_name
        varchar event_type
        varchar location
        varchar city_town
        varchar state_province
        varchar country
    }
    aew_match_ratings {
        int match_id PK
        date match_date
        varchar promotion
        text match_description
        decimal cagematch_rating
        int cagematch_rating_votes
        decimal won_star_rating
        text opponent1
        text opponent2
    }
    aew_events }o--o{ aew_match_ratings : "event_date = match_date (logical link)"
Loading
Table Rows What it holds
aew_events 1,098 Every event: date, show, type (Televised / PLE-PPV / Non-Televised), venue and country
aew_match_ratings 4,125 Every match with its CageMatch rating (0–10), vote count and WON star rating

📌 There is no foreign key between the tables. They can only be joined logically on date.


❓ The 10 Business Questions

# 🏷️ Topic 🔍 Question 🧰 SQL Concept
Q1 Event Growth How many AEW events were held each year? GROUP BY, YEAR()
Q2 Top Locations Which 10 locations hosted the most events? ROW_NUMBER()
Q3 Countries Top 5 countries and their % of all events Scalar subquery
Q4 Yearly Performance Matches, average ratings and best rating per year AVG, MAX, COUNT
Q5 Best Match / Year Highest-rated match of every year Correlated subquery
Q6 Above Average Matches rated above the overall average Subquery in WHERE
Q7 Promotions Promotions with more than 50 matches HAVING
Q8 Yearly Ranking Rank matches inside each year by rating RANK() OVER (PARTITION BY …)
Q9 Above Yearly Avg Matches rated above their own year's average Correlated subquery
Q10 Rating Gap Top 5 gaps between CageMatch and WON ratings ABS, IS NOT NULL, LIMIT
🔎 Example — Q8 (window function)
SELECT
    YEAR(match_date) AS year,
    match_description,
    cagematch_rating,
    RANK() OVER (
        PARTITION BY YEAR(match_date)
        ORDER BY cagematch_rating DESC
    ) AS rating_rank
FROM aew_match_ratings
ORDER BY year, rating_rank;

📊 Key Results

📅 Q1 — Events per Year

xychart-beta
    title "AEW events per year (2019 starts in May)"
    x-axis [2019, 2020, 2021, 2022, 2023, 2024, 2025]
    y-axis "Events" 0 --> 250
    bar [35, 126, 193, 235, 195, 179, 135]
Loading

⭐ Q4 — Average CageMatch Rating per Year

xychart-beta
    title "Average CageMatch rating (rated matches only)"
    x-axis [2019, 2020, 2021, 2022, 2023, 2024, 2025]
    y-axis "Rating (0-10)" 5.5 --> 7
    line [6.34, 6.03, 6.10, 6.29, 6.40, 6.37, 6.74]
Loading

🌍 Q3 — Where AEW Holds Its Events

USA          ████████████████████████████████████████  1,032  (93.99%)
Canada       ██                                           42  ( 3.83%)
UK           ▌                                            14  ( 1.28%)
Deutschland  ▏                                             4  ( 0.36%)
Mexiko       ▏                                             3  ( 0.27%)

📍 Q2 — Top 10 Locations

# Location Events
🥇 Jacksonville, Florida, USA 194
🥈 Orlando, Florida, USA 68
🥉 Chicago, Illinois, USA 34
4 Hoffman Estates, Illinois, USA 29
5 USA (no city given) 25
6 Philadelphia, Pennsylvania, USA 22
7 Boston, Massachusetts, USA 19
8 Newark, New Jersey, USA 18
9 Garland, Texas, USA 18
10 Pittsburgh, Pennsylvania, USA 16

🏅 Q5 — Best Match of Each Year

Year Match Rating Votes
2019 Cody vs. Dustin Rhodes 9.39 970
2020 Adam Page & Kenny Omega vs. Matt Jackson & Nick Jackson 9.68 1,190
2021 Adam Page vs. Bryan Danielson 9.54 849
2022 Adam Page vs. Bryan Danielson 9.41 729
2023 Adam Page vs. Swerve Strickland 9.64 1,184
2024 Bryan Danielson vs. Will Ospreay 9.68 1,475
2025 Adam Page vs. Jon Moxley 9.64 1,156

🔢 Q6 – Q10 at a Glance

Q Result
Q6 1,877 of 3,710 rated matches beat the overall average of about 6.35
Q7 Only AEW passes the > 50 matches filter (4,125 matches, max rating 9.68)
Q8 Rank 1 in each year matches the Q5 winners, with no ties at the top
Q9 1,846 matches beat their own year's average
Q10 Top gaps are 4.66 – 4.76 points, but mostly caused by different rating scales (see below)

💡 Insights

🚀 Growth & activity
  • Events rose every year until the 2022 peak (235), then fell to 135 in 2025 — about 43% below the peak.
  • Match volume peaked later, at 753 matches in 2024.
🌎 Geography
  • 94% of all events were in the USA.
  • Jacksonville alone hosted 194 events (17.7%), nearly 3× Orlando in second place.
⭐ Match quality
  • Quality dipped to 6.03 in 2020 and recovered to a high of 6.74 in 2025.
  • Only 59 matches out of 4,125 are rated 9.0 or higher.
  • Adam Page appears in 5 of the 7 best-of-year matches; Bryan Danielson in 3.
  • Matches on PLE/PPV dates average 6.87, versus 6.29 on other dates (date-based comparison, approximate).
⚖️ The two rating systems
  • CageMatch is scored 0–10, WON uses stars (up to 6.5 in this data). The Q10 gaps therefore reflect scale, not true disagreement. Convert both to one scale first to measure real disagreement.

🧐 Why Did It Happen?

The dataset records what happened, not why. Some causes are visible in the data; the rest are reasonable explanations and not proven by it.

📈 Change ✅ Evidence in the data 💭 Likely reason (outside the data)
Events peaked in 2022, then fell Dynamite, Dark, Dark Elevation and Rampage all ran together in 2022; Dark Elevation ended in 2023 and no Rampage appears after Dec 2024 AEW cut back its number of shows
Jacksonville dominates 91 events in 2020 and 88 in 2021, then only 4 in 2022 COVID-19 period, with shows run from one venue
Ratings dipped in 2020 Lowest average votes (93) and 171 unrated matches Many low-attention matches in a reduced-touring year
Ratings rose by 2025 Matches per event rose from 2.95 to 4.56; PLE/PPV events grew from 3 to 10 Fewer minor shows and more big events lift the average
Page and Danielson keep topping the list Their matches carry the highest vote counts Long storylines gave them the biggest stages
Q10 gaps look huge Different scales (0–10 vs stars) Purely a measurement artifact

⚠️ Data Quality Notes

  • 🔸 415 matches have no CageMatch rating (171 in 2020, 205 in 2021, 33 in 2022, 6 in 2023), so early-year averages cover only rated matches.
  • 🔸 country has inconsistent labels: "Deutschland" and "Mexiko" should be Germany and Mexico.
  • 🔸 25 events list only USA as the location, with no city.
  • 🔸 2019 is a partial year — the data starts on 25 May 2019.
  • 🔸 Only one promotion exists, so Q7's filter returns just AEW.

🚀 How to Run

  1. Install MySQL 8.0 or later (MySQL Workbench works well).

  2. Load the data — this creates the aew_data database, both tables and all rows:

    mysql -u root -p < AEW_Dataset.sql
  3. Select the database:

    USE aew_data;
  4. Run the queries from Questions_and_answers.sql, one question at a time.

  5. Open AEW_Case_Study.pptx to see the results presented as slides.


🛠️ Skills Demonstrated

Aggregation Subqueries Window Data Quality Storytelling


👤 Author

Arfan
B.Sc. Information Technology · Aspiring Data Analyst

GitHub

⭐ If you found this project useful, consider giving it a star! ⭐

About

SQL case study on AEW events and match ratings (2019–2025) using MySQL window functions, subqueries and aggregations, with a PowerPoint presentation

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors