

There’s a whole range of cli tools to extract and query structured data like that, but you might consider loading it into something like sqlite3 and treating it as a database because those formats are really not intended for queries, they’re designed for sharing data.
I would be extremely careful, since it failed for a reason and you were very lucky not to set the house on fire, which looks like it came pretty close to.