How to use filters In native query when druid is used as Datasoruce

I am using Druid as a datasoruce to create dashboard in Metabase.
I generated a native druid query.
Please find the native query attached here with-

I added route_type & timestamp filters in metabase dashboard.
Now I want my native query to accept values of route_type & timestamp from the filter?
Screenshot (1174)
Is there a way to implement this?

Also, Is there a way we can use sql , when druid is a datasoruce of metabase dashboard, as hard to write druid native queries for nested sql queries & queries having many joins?