A white dog is running on a rocky beach.
A dog is on the beach.
Rocky beach is a type of beach where a dog can run
"A dog is on the beach" is a way of saying "a dog is running on a rocky beach."
White dog is a type of dog, and rocky beach is a type of beach.