I\'s like to run the following Pandas (Python) queries in SQL but no clue how to do:
df.resample("Min", on="timestamp").col1.sum() / df.re