Salesforce: How to create dynamic query to fetch data from custom setting?

Published --