query result container refactor & tests
"condition at time" query class refactor & tests
reasoning tree refactor & tests