which common prime minister did neil primrose and william weir serve ?
SELECT DISTINCT var_uri where brack_open dbr_Neil_Primrose_ attr_open politician attr_close dbo_primeMinister var_uri sep_dot dbr_William_Weir,_1st_Viscount_Weir dbo_primeMinister var_uri brack_close