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 (874, 931, 944)

Query time 0.00681

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "139.09"
    },
    "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": 44,
          "rows_produced_per_join": 44,
          "filtered": "100.00",
          "index_condition": "(`test2_gaseus`.`gp`.`group_id` in (874,931,944))",
          "cost_info": {
            "read_cost": "16.16",
            "eval_cost": "4.40",
            "prefix_cost": "20.56",
            "data_read_per_join": "704"
          },
          "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": 167,
          "filtered": "54.46",
          "using_index": true,
          "cost_info": {
            "read_cost": "29.01",
            "eval_cost": "16.78",
            "prefix_cost": "80.37",
            "data_read_per_join": "129K"
          },
          "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": 167,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "41.94",
            "eval_cost": "16.78",
            "prefix_cost": "139.09",
            "data_read_per_join": "17K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
553 12725 1935 874
624 12725 1705 874
625 12725 2415 874
627 12725 1836 874
628 12725 1712 874
553 12726 1935 874
624 12726 1705 874
625 12726 2131 874
627 12726 1836 874
628 12726 1712 874
553 12727 1935 874
624 12727 1705 874
625 12727 2132 874
627 12727 1836 874
628 12727 1712 874
553 12728 1935 874
624 12728 1705 874
625 12728 2143 874
627 12728 1836 874
628 12728 1712 874
553 12729 1935 874
624 12729 1803 874
625 12729 2413 874
627 12729 1836 874
628 12729 1712 874
553 12730 1935 874
624 12730 1803 874
625 12730 2415 874
627 12730 1836 874
628 12730 1712 874
553 12731 1935 874
624 12731 1803 874
625 12731 2131 874
627 12731 1836 874
628 12731 1712 874
553 12732 1935 874
624 12732 1803 874
625 12732 2132 874
627 12732 1836 874
628 12732 1712 874
553 12733 1935 874
624 12733 1803 874
625 12733 2143 874
627 12733 1836 874
628 12733 1712 874
553 12734 1935 874
624 12734 1705 874
625 12734 2413 874
627 12734 1954 874
628 12734 1712 874
553 12735 1935 874
624 12735 1705 874
625 12735 2415 874
627 12735 1954 874
628 12735 1712 874
553 12736 1935 874
624 12736 1705 874
625 12736 2131 874
627 12736 1954 874
628 12736 1712 874
553 12737 1935 874
624 12737 1705 874
625 12737 2132 874
627 12737 1954 874
628 12737 1712 874
553 12738 1935 874
624 12738 1705 874
625 12738 2143 874
627 12738 1954 874
628 12738 1712 874
553 12739 1935 874
624 12739 1803 874
625 12739 2413 874
627 12739 1954 874
628 12739 1712 874
553 12740 1935 874
624 12740 1803 874
625 12740 2415 874
627 12740 1954 874
628 12740 1712 874
553 12741 1935 874
624 12741 1803 874
625 12741 2131 874
627 12741 1954 874
628 12741 1712 874
553 12742 1935 874
624 12742 1803 874
625 12742 2132 874
627 12742 1954 874
628 12742 1712 874
553 12743 1935 874
624 12743 1803 874
625 12743 2143 874
627 12743 1954 874
628 12743 1712 874
553 12724 1935 874
624 12724 1705 874
625 12724 2413 874
627 12724 1836 874
628 12724 1712 874
553 12723 1935 874
624 12723 1803 874
625 12723 2143 874
627 12723 2290 874
628 12723 1712 874
553 12722 1935 874
624 12722 1803 874
625 12722 2132 874
627 12722 2290 874
628 12722 1712 874
553 12721 1935 874
624 12721 1803 874
625 12721 2131 874
627 12721 2290 874
628 12721 1712 874
553 12720 1935 874
624 12720 1803 874
625 12720 2415 874
627 12720 2290 874
628 12720 1712 874
553 12719 1935 874
624 12719 1803 874
625 12719 2413 874
627 12719 2290 874
628 12719 1712 874
553 12718 1935 874
624 12718 1705 874
625 12718 2143 874
627 12718 2290 874
628 12718 1712 874
553 12717 1935 874
624 12717 1705 874
625 12717 2132 874
627 12717 2290 874
628 12717 1712 874
553 12716 1935 874
624 12716 1705 874
625 12716 2131 874
627 12716 2290 874
628 12716 1712 874
553 12715 1935 874
624 12715 1705 874
625 12715 2415 874
627 12715 2290 874
628 12715 1712 874
553 12714 1935 874
624 12714 1705 874
625 12714 2413 874
627 12714 2290 874
628 12714 1712 874
553 13267 1912 931
595 13267 1904 931
622 13267 2497 931
623 13267 2524 931
624 13267 1803 931
625 13267 2122 931
626 13267 2043 931
627 13267 2378 931
628 13267 1660 931
636 13267 2348 931
637 13267 2345 931
646 13267 2370 931
647 13267 2374 931
553 13268 1912 931
595 13268 1905 931
622 13268 2497 931
623 13268 2524 931
624 13268 1803 931
625 13268 2122 931
626 13268 2043 931
627 13268 2378 931
628 13268 1660 931
636 13268 2348 931
637 13268 2345 931
646 13268 2370 931
647 13268 2374 931
553 13269 1912 931
595 13269 1789 931
622 13269 2497 931
623 13269 2524 931
624 13269 1803 931
625 13269 2122 931
626 13269 2043 931
627 13269 2378 931
628 13269 1660 931
636 13269 2348 931
637 13269 2345 931
646 13269 2370 931
647 13269 2374 931
553 13270 1912 931
595 13270 2499 931
622 13270 2497 931
623 13270 2524 931
624 13270 1803 931
625 13270 2122 931
626 13270 2043 931
627 13270 2378 931
628 13270 1660 931
636 13270 2348 931
637 13270 2345 931
646 13270 2370 931
647 13270 2374 931
553 13271 1912 931
595 13271 1787 931
622 13271 2497 931
623 13271 2524 931
624 13271 1803 931
625 13271 2122 931
626 13271 2043 931
627 13271 2378 931
628 13271 1660 931
636 13271 2348 931
637 13271 2345 931
646 13271 2370 931
647 13271 2374 931
553 13272 1912 931
595 13272 1900 931
622 13272 2497 931
623 13272 2524 931
624 13272 1803 931
625 13272 2122 931
626 13272 2043 931
627 13272 2378 931
628 13272 1660 931
636 13272 2348 931
637 13272 2345 931
646 13272 2370 931
647 13272 2374 931
553 13273 1912 931
595 13273 1899 931
622 13273 2497 931
623 13273 2524 931
624 13273 1803 931
625 13273 2122 931
626 13273 2043 931
627 13273 2378 931
628 13273 1660 931
636 13273 2348 931
637 13273 2345 931
646 13273 2370 931
647 13273 2374 931
553 13232 1973 944
595 13232 1904 944
622 13232 2497 944
623 13232 2501 944
624 13232 1803 944
625 13232 2123 944
626 13232 1721 944
627 13232 1659 944
628 13232 1660 944
636 13232 2348 944
637 13232 2345 944
646 13232 2370 944
647 13232 2374 944
553 13233 1973 944
595 13233 1905 944
622 13233 2497 944
623 13233 2501 944
624 13233 1803 944
625 13233 2123 944
626 13233 1721 944
627 13233 1659 944
628 13233 1660 944
636 13233 2348 944
637 13233 2345 944
646 13233 2370 944
647 13233 2374 944
553 13234 1973 944
595 13234 1789 944
622 13234 2497 944
623 13234 2501 944
624 13234 1803 944
625 13234 2123 944
626 13234 1721 944
627 13234 1659 944
628 13234 1660 944
636 13234 2348 944
637 13234 2345 944
646 13234 2370 944
647 13234 2374 944
553 13235 1973 944
595 13235 2499 944
622 13235 2497 944
623 13235 2501 944
624 13235 1803 944
625 13235 2123 944
626 13235 1721 944
627 13235 1659 944
628 13235 1660 944
636 13235 2348 944
637 13235 2345 944
646 13235 2370 944
647 13235 2374 944
553 13236 1973 944
595 13236 1787 944
622 13236 2497 944
623 13236 2501 944
624 13236 1803 944
625 13236 2123 944
626 13236 1721 944
627 13236 1659 944
628 13236 1660 944
636 13236 2348 944
637 13236 2345 944
646 13236 2370 944
647 13236 2374 944
553 13237 1973 944
595 13237 1900 944
622 13237 2497 944
623 13237 2501 944
624 13237 1803 944
625 13237 2123 944
626 13237 1721 944
627 13237 1659 944
628 13237 1660 944
636 13237 2348 944
637 13237 2345 944
646 13237 2370 944
647 13237 2374 944
553 13238 1973 944
595 13238 1899 944
622 13238 2497 944
623 13238 2501 944
624 13238 1803 944
625 13238 2123 944
626 13238 1721 944
627 13238 1659 944
628 13238 1660 944
636 13238 2348 944
637 13238 2345 944
646 13238 2370 944
647 13238 2374 944