Hi Parv,
The below will help you curl https://yourInstance.salesforce.com/services/data/v20.0/query/?q=SELECT+name+from+Account -H “Authorization: Bearer token”
For more you can go through https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_query.htm