Yes you can achieve the result you need by using JOIN as below,
SELECT
f.number as Number,
f.position as Position,
g.name as Name
FROM d
JOIN f IN d.pages
JOIN g IN f.games
JOIN p IN g.publishers
WHERE f.type = 'ads' and p.name ='Nintendo'
However I would highly recommend you to reconsider the data modelling in this scenario, while embedding is a common scenario, if you think your nested array is going to grow in the future, be mindful that Cosmos DB has a limitation on the document size (2 MB for NOSQL API) , so it is ok to duplicate the document for each type of game. https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/modeling-data
While choosing multiple containers is also another option, but you might need to issue two queries on certain cases. Please follow the above documentation on the best practices