SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'en' 
  AND gp.group_id IN (940, 947)

Query time 0.00149

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "50.81"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "rows_examined_per_scan": 16,
          "rows_produced_per_join": 16,
          "filtered": "100.00",
          "index_condition": "(`test2_gaseus`.`gp`.`group_id` in (940,947))",
          "cost_info": {
            "read_cost": "6.11",
            "eval_cost": "1.60",
            "prefix_cost": "7.71",
            "data_read_per_join": "256"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "ref": [
            "test2_gaseus.gp.product_id"
          ],
          "rows_examined_per_scan": 7,
          "rows_produced_per_join": 61,
          "filtered": "54.46",
          "using_index": true,
          "cost_info": {
            "read_cost": "10.55",
            "eval_cost": "6.10",
            "prefix_cost": "29.46",
            "data_read_per_join": "47K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ],
          "attached_condition": "(`test2_gaseus`.`pfv`.`lang_code` = 'en')"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "group_id"
          ],
          "key_length": "6",
          "ref": [
            "test2_gaseus.pfv.feature_id",
            "test2_gaseus.gp.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 61,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "15.25",
            "eval_cost": "6.10",
            "prefix_cost": "50.81",
            "data_read_per_join": "6K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
553 13212 1973 940
595 13212 1905 940
622 13212 2497 940
623 13212 2501 940
624 13212 1803 940
625 13212 2147 940
626 13212 1829 940
627 13212 1659 940
628 13212 1660 940
636 13212 2348 940
637 13212 2345 940
646 13212 2370 940
647 13212 2374 940
553 13213 1973 940
595 13213 1789 940
622 13213 2497 940
623 13213 2501 940
624 13213 1803 940
625 13213 2147 940
626 13213 1829 940
627 13213 1659 940
628 13213 1660 940
636 13213 2348 940
637 13213 2345 940
646 13213 2370 940
647 13213 2374 940
553 13214 1973 940
595 13214 2499 940
622 13214 2497 940
623 13214 2501 940
624 13214 1803 940
625 13214 2147 940
626 13214 1829 940
627 13214 1659 940
628 13214 1660 940
636 13214 2348 940
637 13214 2345 940
646 13214 2370 940
647 13214 2374 940
553 13215 1973 940
595 13215 1787 940
622 13215 2497 940
623 13215 2501 940
624 13215 1803 940
625 13215 2147 940
626 13215 1829 940
627 13215 1659 940
628 13215 1660 940
636 13215 2348 940
637 13215 2345 940
646 13215 2370 940
647 13215 2374 940
553 13216 1973 940
595 13216 1900 940
622 13216 2497 940
623 13216 2501 940
624 13216 1803 940
625 13216 2147 940
626 13216 1829 940
627 13216 1659 940
628 13216 1660 940
636 13216 2348 940
637 13216 2345 940
646 13216 2370 940
647 13216 2374 940
553 13217 1973 940
595 13217 1899 940
622 13217 2497 940
623 13217 2501 940
624 13217 1803 940
625 13217 2147 940
626 13217 1829 940
627 13217 1659 940
628 13217 1660 940
636 13217 2348 940
637 13217 2345 940
646 13217 2370 940
647 13217 2374 940
553 13211 1973 940
595 13211 1904 940
622 13211 2497 940
623 13211 2501 940
624 13211 1803 940
625 13211 2147 940
626 13211 1829 940
627 13211 1659 940
628 13211 1660 940
636 13211 2348 940
637 13211 2345 940
646 13211 2370 940
647 13211 2374 940
553 13253 1973 947
595 13253 1904 947
622 13253 2497 947
623 13253 2501 947
624 13253 1803 947
625 13253 2124 947
626 13253 1829 947
627 13253 1659 947
628 13253 1660 947
636 13253 2348 947
637 13253 2345 947
646 13253 2370 947
647 13253 2374 947
553 13254 1973 947
595 13254 1905 947
622 13254 2497 947
623 13254 2501 947
624 13254 1803 947
625 13254 2124 947
626 13254 1829 947
627 13254 1659 947
628 13254 1660 947
636 13254 2348 947
637 13254 2345 947
646 13254 2370 947
647 13254 2374 947
553 13255 1973 947
595 13255 1789 947
622 13255 2497 947
623 13255 2501 947
624 13255 1803 947
625 13255 2124 947
626 13255 1829 947
627 13255 1659 947
628 13255 1660 947
636 13255 2348 947
637 13255 2345 947
646 13255 2370 947
647 13255 2374 947
553 13256 1973 947
595 13256 2499 947
622 13256 2497 947
623 13256 2501 947
624 13256 1803 947
625 13256 2124 947
626 13256 1829 947
627 13256 1659 947
628 13256 1660 947
636 13256 2348 947
637 13256 2345 947
646 13256 2370 947
647 13256 2374 947
553 13257 1973 947
595 13257 1787 947
622 13257 2497 947
623 13257 2501 947
624 13257 1803 947
625 13257 2124 947
626 13257 1829 947
627 13257 1659 947
628 13257 1660 947
636 13257 2348 947
637 13257 2345 947
646 13257 2370 947
647 13257 2374 947
553 13258 1973 947
595 13258 1900 947
622 13258 2497 947
623 13258 2501 947
624 13258 1803 947
625 13258 2124 947
626 13258 1829 947
627 13258 1659 947
628 13258 1660 947
636 13258 2348 947
637 13258 2345 947
646 13258 2370 947
647 13258 2374 947
553 13259 1973 947
595 13259 1899 947
622 13259 2497 947
623 13259 2501 947
624 13259 1803 947
625 13259 2124 947
626 13259 1829 947
627 13259 1659 947
628 13259 1660 947
636 13259 2348 947
637 13259 2345 947
646 13259 2370 947
647 13259 2374 947