Can someone help me correct these phrases?

Avant que j'ai choisi qu'école a laquelle...

I wanted to say 'Before I chose the school where....'

OR "Avant de choisir l'école à laquelle..."

Sra (aka Mme)