Is there any way to extract the data by querying it?

Hey, is there any way to extract the data by querying it?
Example:
• We would like to retrieve only data from MacDonalds from Los Angeles