Use a hash instead of sql fragment.