The first sentence "of whom......" is a nonidentify clause. That modfies the sentence.
I am not sure the second is correct. I would use a semicolon or add a connector.
Twenty people were arrested during the demonstration; four of them were charged with obstruction.
Twenty people were arrested during the demonstration only four of them were charged with obstruction.