Create Agent Hierarchy SQL