Time Series Graph $__timeFilter using my own data

Hey everyone,
New to Grafana and SQL,
I am using Grafana v8.1.2 and MySQL database

I have a database that shows me different values and each value has an execution time
I want to show the results with a time series graph and the timeline to be from the lowest-value time execution of the specific day to the latest execution time, i.e:
from “MIN(execution_time) WHERE execution_time > now() - INTERVAL 1 DAY”
to "MAX(executon_time)
I couldn’t manage to make it work with $__timeFilter to filter it, it only shows the filter using the time range above the graph.

Thank you in advance