{
  "condition": "minecraft:all_of",
  "terms": [
    {
      "condition": "minecraft:entity_properties",
      "entity": "this",
      "predicate": {
        "equipment": {
          "head": {
            "items": "minecraft:carved_pumpkin"
          }
        }
      }
    },
    {
      "condition": "minecraft:inverted",
      "term": {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "equipment": {
            "head": {
              "predicates": {
                "minecraft:enchantments": [
                  {
                    "enchantments": "minecraft:binding_curse"
                  }
                ]
              }
            }
          }
        }
      }
    }
  ]
}