How effectively select data between 2 dates partitioned by year month day in presto?

There is a table with y (year), m month, d (day) column. How to select query between 2 date? Like: select * from my_table where y m d between '2018-12-01' and '2021-01-01' There are 2 problems her...