SELECT 
  company_descriptions.*, 
  companies.*, 
  cscart_vendor_plan_descriptions.plan, 
  cscart_seo_names.name as seo_name, 
  cscart_seo_names.path as seo_path, 
  CAST(
    AVG(`prd`.`average_rating`) AS DECIMAL(10, 2)
  ) AS average_rating, 
  prd.reviews_count product_reviews_count 
FROM 
  cscart_companies AS companies 
  LEFT JOIN cscart_company_descriptions AS company_descriptions ON company_descriptions.company_id = companies.company_id 
  AND company_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_vendor_plan_descriptions ON companies.plan_id = cscart_vendor_plan_descriptions.plan_id 
  AND cscart_vendor_plan_descriptions.lang_code = 'en' 
  LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = 471 
  AND cscart_seo_names.type = 'm' 
  AND cscart_seo_names.dispatch = '' 
  AND cscart_seo_names.lang_code = 'en' 
  LEFT JOIN cscart_products p ON p.company_id = companies.company_id 
  LEFT JOIN cscart_product_review_prepared_data prd ON p.product_id = prd.product_id 
WHERE 
  companies.company_id = 471

Query time 0.03184

JSON explain

{
  "query_block": {
    "select_id": 1,
    "const_condition": "1",
    "nested_loop": [
      {
        "table": {
          "table_name": "companies",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["company_id"],
          "ref": ["const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "company_descriptions",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "10",
          "used_key_parts": ["company_id", "lang_code"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_vendor_plan_descriptions",
          "access_type": "const",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "10",
          "used_key_parts": ["plan_id", "lang_code"],
          "ref": ["const", "const"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "206",
          "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
          "ref": ["const", "const", "const", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_seo_names.`type` = 'm' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
        }
      },
      {
        "block-nl-join": {
          "table": {
            "table_name": "p",
            "access_type": "ALL",
            "rows": 25270,
            "filtered": 100,
            "attached_condition": "p.company_id = 471"
          },
          "buffer_type": "flat",
          "buffer_size": "18Kb",
          "join_type": "BNL",
          "attached_condition": "trigcond(p.company_id = 471)"
        }
      },
      {
        "table": {
          "table_name": "prd",
          "access_type": "ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["dev_db.p.product_id"],
          "rows": 562,
          "filtered": 100,
          "attached_condition": "trigcond(trigcond(p.product_id is not null))"
        }
      }
    ]
  }
}

Result

company_id lang_code company_description terms status company company_search address city city_id district_id ward_id state country zipcode email phone url storefront secure_storefront entry_page redirect_customer countries_list timestamp shippings logos request_user_id request_account_name request_account_data tax_number pre_moderation pre_moderation_edit pre_moderation_edit_vendors plan_id suspend_date grace_period_start last_time_suspended last_debt_notification_time paypal_commerce_platform_account_id stripe_connect_account_id stripe_connect_account_type sended_email_notify ghn_shop_id verify show_homepage messenger messenger_flag plan seo_name seo_path average_rating product_reviews_count
471 vi <p>Luu Gia Farm was born from the desire to preserve the traditional culture of the Luu family (Nung ethnic group) and the culture of the ancient Nung people in general. In addition, the brand also carries the dream of bringing the value of the tea plant to the next level when it understands the benefits and economic potential of this plant to local people.</p> <p>Thanks to the climatic and soil conditions, Thai Nguyen tea, and Luu Gia Farm's tea, in particular, have a unique and unforgettable taste. If you love Vietnamese tea with a mild acrid taste, sweet aftertaste, and green rice aroma, you cannot refuse the tea lines at Luu Gia Farm.</p> <p>All products of Luu Gia Farm are harvested on their own farms and produced at local business households and agricultural co-operatives. It ensures the quality of raw materials as well as creates jobs for local people.</p> <p>Luu Gia's farm has an area of ​​15ha located in Phu Luong district, Thai Nguyen province, Viet Nam. This place is developed according to the sustainable ecological agriculture model. In particular, besides the tea-growing area, Luu Gia Farm also grows crops, fruit trees, and flowers to both create landscapes and raise honey bees naturally. Therefore, Luu Gia Farm's honey is delicious and has a unique flavor that is hard to find anywhere else.</p> <p>In addition, the farm also has abundant vegetation so that farmers can grow wormwood, green beans in the lower vegetation layer, and wild bananas in the middle vegetation. This offers the potential to develop traditional specialties of the Tay - Nung people such as wormwood cakes or traditional-alcoholic beverages, etc.</p> <p>Moreover, Luu Gia Farm has noticed and tested the effects of fresh tea leaves on the skin. The women in Luu Gia used tea leaves daily and still retain their youthful look even though they have reached the age of sixty. Therefore, Luu Gia Farm wants to bring this "secret" of skin care closer to many people through a green tea powder mask.</p> <p>For more than 50 years of establishment and development, Luu Gia Farm has always been well received and trusted by customers. When using the products here, you not only have the best Thai Nguyen specialties containing the essence of nature but also feel the love and enthusiasm of the farmers who make them.</p> A Lưu Gia Farm Lưu Gia Farm 276 Trường Chinh, Phường 13, Q. Tân Bình, Tp.HCM, Việt Nam 79 766 26974 hoanganh@gilretail.com 0963202223 none Y 1661748031 6,4 0 N N N 1 0 0 0 0 0 4935570 N N A Y Standard luu-gia-farm-en 4.84 1