Four friends, A, B, C, and D, have different pets: a dog, a cat, a bird, and a fish. A does not have a dog or a fish. B has a pet that is not a bird. C has a pet that is not a cat. What pet does D have?
In a race, there are four competitors: Alex, Brian, Charlie, and Derek. Alex finished before Brian but after Charlie. Derek finished last. Who finished first?