I have a query in Presto where I need to select some values based on date references of another table, structured like this:
ID | from | to ------