How to reach SQL

hello

i want to reach to a contact using a company and i think that i need to do a “select contact from company” but i tried to use the examples on lotus domino help without success can some one help me or just put me in the correct way??

thank you all