I wrote 'Nem az ügyvéd, aki örül, hanem a bíró' and it said the correct one was 'nem az ügyvéd az aki örül...'
Where does this extra az come from? Is it like saying 'It's not the laywer who is the glad (one),...' ?
The first "az" is the definite article for "ügyvéd", the second "az" is "that" that points at the person. If you want to get the closest to it literally then it's "The lawyer is not the one who is glad..."