read the query parameter and determine which person to be the root