who was the president at the time when both thomas watt gregory and robert lansing held a position in us political framework ?
SELECT DISTINCT var_uri where brack_open dbr_Thomas_Watt_Gregory dbp_president var_uri sep_dot dbr_Robert_Lansing dbp_president var_uri brack_close