select * from competitions join games on games.id = competitions.game_id