You will find help about queries and views of the contact database on the following pages:
Version MetaDirectory_3.5