Im trying to adapt this query to sequelize code but I cannot find a way to replicate it.
Here is the query:
SELECT * FROM teams LEFT JOIN
(SELECT