I've been beavering away, working at WB for you, trying to include the functionality we discussed. Unfortunately, my VB install isn't, well, working, so I'm writing it fairly blindly (using old code I've used for other projects, and my knowledge of the language).
Once I have it in a state that should work, I'll send it on over. I'm quite confident that it will be fairly accurate, certainly the logic should be, it might only be compilation typos. But it should be all good. WB currently loads a lot of data that it doesn't actually use at the moment (for instance, everything to do with characters), so I'm trimming it back to what it needs. It would be quite extensible, though, and I think you'll see how it's done.
Anyway, I'm making progress, it means that most of the WB stuff should end up being query based, and there'll be good examples of that. Just thought I'd let you know where it's at, I'll have something for you in the next couple of hours, I think.