shift query conversion to Libertree::Query class