query log include or not by boolean