$query1 = Product::find()->where(['id' => $id])->all();
$query2 = (new Query())->select('*')->from('products')->where(['id' => $id])->all();
ActiveRecord is the base class for classes representing relational data in terms of objects.
Query represents a SELECT SQL statement in a way that is independent of DBMS.