https://en.wikipedia.org/wiki/Knights_and_Knaves
Maybe you need num_guards-1 questions?
I doubt you could solve for 50 guards with 1 question.