Input: Relationship: 'be president of', Argument/Subject 1: 'jame madison', Argument/Subject 2: 'unite state'

Answer: Before he became the 6th president of the United States , John Q . Adams was commissioned by President James Madison to serve as minister to Russia .