Convert this sentence into a question: 

Massachusetts was the first state to legalize same-sex marriage.
Was Massachusetts the first state to legalize same-sex marriage?
Complete the following task based on the instruction and optional input provided.### Instruction:
Convert this sentence into a question: 

Massachusetts was the first state to legalize same-sex marriage.

### Output:
Was Massachusetts the first state to legalize same-sex marriage?