question_text: William Pery served as Captain of the Yeomen of the Guard under the lord who served in what position from 1865 to 1868?
decomposition: return the  lord that William Pery served as Captain of the   Yeomen of  the Guard under ;return position that #1 served in  from  1865 to 1868