CREATE PROCEDURE marketReport() BEGIN SELECT DISTINCT country, COUNT(*) AS competitors FROM foreignCompetitors GROUP BY country UNION SELECT "Total:" AS country, COUNT(competitor) FROM foreignCompetitors; END