The Position Holder History tool generates a nice timeline table of everyone who has had a position held (P39) relationship with a particular position, and points out possible errors in the data.
In order to use the this tool, you might add, for example, the template:
{{PositionHolderHistory|id=Q14211}}
... to a page, and click the 'Refresh now' button to update the page.
The source code for the prompter tool can be found in these two repositories:
This tool was originally developed as part of the Wikimedia / mySociety / EveryPolitician grant, and is now maintained independently.