CATIAV5 Machining Process

Hello

I have a question
Tool Query definition question.
1. How to write List of Query contraints
2. How to write KnowledgeWare Package type
Hard to find in V5 Doc

I have another question.
Is there a way to automatically recognize features in the machining process?

Help me.
Thank you.