The bay is the terminus of the San Joaquin and Sacramento River systems , which drain about half the area of California , provide drinking water for millions of people and irrigate nearly half the nation 's fruit and vegetable production .