This dataset is an instance of Ape210K dataset, converted to a simple HTML-like language that can be easily parsed (e.g. by BeautifulSoup). The data contains 3 types of tags:
gadget: A tag whose content is intended to be evaluated by calling an external tool (sympy-based calculator in this case)
output: An output of the external tool
result: The final answer to the mathematical problem (a number)