Up to query in BBTree