I know this sounds easy but I don't think it's really possible to chain something like wolfram alpha together with chatgpt the way that you're describing. Context and output are coupled together inseparably.