Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Qual é o número total de jogos jogados no universo de jogos "Fantasy Realm" no último mês, dividido por plataforma (PC, console, mobile)?
 ###Tabelas: 
CREATE TABLE Games (GameID INT, Game VARCHAR(50), Universe VARCHAR(50)); INSERT INTO Games (GameID, Game, Universe) VALUES (1, 'Fantasy Realm: The Lost Kingdom', 'Fantasy Realm'); INSERT INTO Games (GameID, Game, Universe) VALUES (2, 'Fantasy Realm: Battle Royale', 'Fantasy Realm'); CREATE TABLE Platforms (PlatformID INT, Platform VARCHAR(50)); INSERT INTO Platforms (PlatformID, Platform) VALUES (1, 'PC'); INSERT INTO Platforms (PlatformID, Platform) VALUES (2, 'Console'); INSERT INTO Platforms (PlatformID, Platform) VALUES (3, 'Mobile'); CREATE TABLE PlayerGames (PlayerID INT, GameID INT, PlatformID INT, GameDate DATE, GamesPlayed INT); INSERT INTO PlayerGames (PlayerID, GameID, PlatformID, GameDate, GamesPlayed) VALUES (1, 1, 1, '2022-01-01', 3); INSERT INTO PlayerGames (PlayerID, GameID, PlatformID, GameDate, GamesPlayed) VALUES (1, 1, 2, '2022-01-02', 5); INSERT INTO PlayerGames (PlayerID, GameID, PlatformID, GameDate, GamesPlayed) VALUES (2, 2, 1, '2022-01-01', 2); INSERT INTO PlayerGames (PlayerID, GameID, PlatformID, GameDate, GamesPlayed) VALUES (2, 2, 3, '2022-01-03', 6);
SELECT Platform, SUM(GamesPlayed) FROM PlayerGames INNER JOIN Games ON PlayerGames.GameID = Games.GameID INNER JOIN Platforms ON PlayerGames.PlatformID = Platforms.PlatformID WHERE Games.Universe = 'Fantasy Realm' AND PlayerGames.GameDate >= DATEADD(month, -1, GETDATE()) GROUP BY Platform;