implemented equivalent query when all properties are selected