There are two main benefits to doing the query engine work.
1. The query engine is an entangled and complicated multi-pass compiler, so seemingly easy/small changes in one place can break subsequent passes. This work will move us towards a simpler less entangled query engine, which should be easier for non-experts to work on.
2. The PuppetDB query engine has many places where SQL injection are a concern, this work will allow us to rely on honeysql and jdbc for more robust security guarantees by removing JSONB operator queries that we currently construct by hand.