add period to query tree