who was the president at the time when both james speed and edward bates held a position in us political framework ?
SELECT DISTINCT var_uri where brack_open dbr_James_Speed dbp_president var_uri sep_dot dbr_Edward_Bates dbp_president var_uri brack_close