the best solution is to use the dataSource files using the <customSQL>
tag , here is an example:
<operationBindings>
<operationBinding operationType="fetch">
<customSQL>
SELECT Name, Adress, Phone, Age
FROM tableName
where Age >20
</customSQL>
</operationBinding>
</operationBindings>