Executing SQL group by queries on Elasticsearch datasources

In case of fields with multiple configuration, is there a way to address the not_analyzed (aka .keyword) one?