In the line:
"So you think you can write a song?"
The normal word order would be "Do you think you can write a song?". Queen flips the structure to create emphasis and a more dramatic tone.
This type of anastrophe is quite common in song lyrics, especially in rock and pop music where it's used to create a more forceful or impactful statement.