(new ActiveQuery())
->select('sum(`value`)/count(*)')
->from('assessment')
->where('video_id = video.id')
->andWhere(['type' => 1])
$video->truth
public function getTruth(){
...
}