

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.
There’s an Australian Canadian co-production that goes into some of the atrocities the British got into:
https://en.m.wikipedia.org/wiki/Stuff_the_British_Stole