I wrote a blog post a while back about reading these dumps: https://search.feep.dev/blog/post/2021-09-04-stackexchange
Presumably they have a script that does something similar to that process, and then writes the resulting data into a predefined table structure.