Simplify timeframe queries