added the class AndAlso to de query api