difference between resources and capabilities

What is the difference between resources and capabilities? Explain using a specific example from a company that is of interest to you. How can you determine if a resource or capability can be the source of a competitive advantage?