Converting Positional advantage into Material Advantage

can you post the continuation of this. Im new to chess and I don't understand the advantage gained here, it seems that all that was accomplished was a trading of queens. Is it because of the passed pawn on a2?