(I made up this riddle myself, hope you enjoy it)
A criminal was using magic to flatten a building, while everyone, except 2 people, ran away being super scared. The police of magic came, and with further investigations, took the criminal and the two people to the prison. Here, each person, criminal or innocent, chose a curse to be given to him before calling an expert logician.
The first person chose the INFERFECIUDAX-VEDATUR curse, that meant he told the truth about the person on his right, only if he was a criminal, or else lied. If he was asked a question about anything else he will lie.
The second person thought the INFERFECIUDAX-VEDATUR curse wasn't so bad so he chose it too.
The third person chose the SILENTINPOSUISSET curse. That means he can't talk or answer your questions, but he could have been the criminal.
You can ask any of the persons a question, but you aren't allowed to ask him any question containing the word "criminal", "innocent" etc. You can ask 2 questions total, and then you'd have to chose the two innocents. If you chose the criminal, he will quickly run and flatten the prison, killing you. If you chose the right people, the criminal will get a life sentence.
How do you know who is the criminal? What questions do you ask?