precise SQL hydration and aggregation