A compiler for a SQL dialect and mathematical meta-system with support for heterogeneous structured data