Querying on predicate by UID

Not sure I understand the question. But, let me take a guess. You want to find all the other people in the same class as this person? If so, you need a reverse edge on Class, and you can run:

{
	person(id: <0x3e8efeb24ba23885>) {
		Name
		Description
		Class {
                  ~Class { Name, Description } # This would give you all people in the class.
                }
	}
}