title: Yii2 : ActiveQuery Example and what is the reason to generate ActiveQuery class separately in Gii?
body: <p>Could you provide an example usage. Description will be highly appreciated. I can not find a good example for it.</p>
  
  <p><a href="https://i.stack.imgur.com/4J9Dx.jpg"><img src="https://i.stack.imgur.com/4J9Dx.jpg" alt="ActiveQuery in Gii"></a></p>