Based on the previously mentioned tables and fields, you can execute a SQL statement in the following manner: SELECT users.username, SUM(activities.points) AS total_points FROM users INNER JOIN activities ON users.id = activities.user_id GROUP BY users.username ORDER BY total_points DESC; This query utilizes the INNER JOIN operation to merge each 'users' row with its corresponding 'activities' row where the 'user_id' matches the 'id'. The SUM function calculates the total 'points' for each user, categorized by 'username'. Additionally, the ORDER BY clause, along with DESC, sorts the users based on their total points in a descending order.