determine if the sentence is simple, compound or complex.

Before the queen rode in the parade, she gave a speech.

This sentence is a complex sentence.