The number of presidents with a J.D. or roughly equivalent but defunct LL.B. is short: Taft, Hayes, the Roosevelts, Nixon, Ford, Clinton, Obama, Biden. Note the recent partisan trend. Three had Master's Degrees in less relevant fields. Coolidge alone a PhD. But I'm considering timeframe as well...