Timeshift in Grafana solely based on InfluxDB Query

Is there a way to achieve timeshift concept( plotting values of a metric in same panel of graph for different time ranges) without using any plugin and just based on the query to influxdb