trying to separate the QueryNode from the logical formula logic