Add endpoint for forking a shared query