Search for specific resources

I would like to know how to get data in referenced resources. for example, I searched for encounter resources over last 1 year and the outcome was 100 encounter resources in a search-set bundle. And each of the resources refers patient and practitioner resource. However, I want to know patient and practitioner’s name while querying encounter resources. In this case, which query is able to get 100 encounter resources with the name of patient and practitioner ?

Have a look at _include & _revinclude parameters: http://build.fhir.org/search.html#include