How can I use COQL

How can I use COQL

Hello,

I want today, to use COQL, but I don't understand how I can use this.
Where I put the code ?
I see the documentation, and I understand how it work, but I don't understand where the code must be placed.

Thanks;
RB