Yeah, I'm pretty sure that just about all of the other endpoints just call compile-term directly.  I'm not sure how this one ended up different, but I think we should be able to just call the original `compile-term` directly from report-query->sql, and that seems like the most consistent way to handle it.