Only one I ever got was during a sunset, and the rest of the frame was under-exposed:
As others said, a graduated neutral density filter will let you separate the scene, but if it's not a clear cut line (like the one with the building), you will need to take multiple shots to get the full exposure range.