using both query approaches