SELECT 
  lang.name, 
  IF(
    cscart_ult_language_values.value IS NULL, 
    lang.value, cscart_ult_language_values.value
  ) as value 
FROM 
  cscart_language_values lang 
  LEFT JOIN cscart_ult_language_values ON cscart_ult_language_values.name = lang.name 
  AND company_id = 1 
  AND cscart_ult_language_values.lang_code = lang.lang_code 
WHERE 
  lang.lang_code = 'kk' 
  AND lang.name IN (
    'google_analytics.google_analytics_cookies_title', 
    'google_analytics.google_analytics_cookies_description', 
    'google_analytics.google_ads_cookies_title', 
    'google_analytics.google_ads_cookies_description', 
    'google_analytics.google_analytics_cookies_title', 
    'google_analytics.google_analytics_cookies_description', 
    'google_analytics.google_ads_cookies_title', 
    'google_analytics.google_ads_cookies_description'
  )

Query time 0.00052

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "4.21"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "lang",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "lang_code",
            "name"
          ],
          "key_length": "392",
          "rows_examined_per_scan": 4,
          "rows_produced_per_join": 4,
          "filtered": "100.00",
          "index_condition": "((`test_uchur_k`.`lang`.`lang_code` = 'kk') and (`test_uchur_k`.`lang`.`name` in ('google_analytics.google_analytics_cookies_title','google_analytics.google_analytics_cookies_description','google_analytics.google_ads_cookies_title','google_analytics.google_ads_cookies_description','google_analytics.google_analytics_cookies_title','google_analytics.google_analytics_cookies_description','google_analytics.google_ads_cookies_title','google_analytics.google_ads_cookies_description')))",
          "cost_info": {
            "read_cost": "2.41",
            "eval_cost": "0.40",
            "prefix_cost": "2.81",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "lang_code",
            "name",
            "value"
          ]
        }
      },
      {
        "table": {
          "table_name": "cscart_ult_language_values",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "lang_code",
            "name",
            "company_id"
          ],
          "key_length": "396",
          "ref": [
            "test_uchur_k.lang.lang_code",
            "test_uchur_k.lang.name",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 4,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "1.00",
            "eval_cost": "0.40",
            "prefix_cost": "4.21",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "lang_code",
            "name",
            "value",
            "company_id"
          ]
        }
      }
    ]
  }
}

Result

name value
google_analytics.google_ads_cookies_description Google Ads is a service that allows us to make personalized offers for you. This permission allows us to set cookies and send some of your data related to advertising to Google. Here is <a href="https://safety.google/privacy/ads-and-data/" target="_blank">how Google handles ad-related data</a>.
google_analytics.google_ads_cookies_title Google Ads
google_analytics.google_analytics_cookies_description Google Analytics is a service that provides us with website analytics: the number of unique visitors, the most and least popular pages, etc. Here is <a href="https://support.google.com/analytics/answer/6004245" target="_blank">Google Analytics statement on privacy</a>.
google_analytics.google_analytics_cookies_title Google Analytics