Custom SQL on Influxdb,Telegraf

Hi…I am using Influxdb with gafana using telegraf agent.
Telegraf is capturing all the sql server metrices.I want to show last executed 5 queries on a db or some custom infromation.
How do i achieve it.?
Right now i cant query the measurements which is present in Influxdb and show it in grafana,but can i go beyond that and write a custom query to get a result.

Telegraf does not currently have support for sending custom queries to SQL Server, but we hope to add it soon.