Good Evening:
Subject questions follow the same ( Subject - verb ) structure as statement.
Who rode the train to work? has the same structure as its statement form:
I rode the train to work.
We don't invert the subject and verb in subject questions.
Three students are studying in the library.
How many students are studying in the library.
Good Luck
Ola. M.