I was under the impression that it was possible to access data from a sub-node of a linked list or similar structure by using the arrow and dot operators together like so:
sample->left and sample->right are also pointers, so you want:
sample->left
sample->right
if (sample->left->num > sample->right->num) { // do something }