{
  "type": "pipeline",
  "inputs": [
    "input_a",
    "input_b"
  ],
  "bins": {
    "adder": {
      "type": "add"
    },
    "extremes": {
      "type": "pipeline",
      "inputs": ["value"],
      "bins": {
        "max": {
          "type": "maximum"
        },
        "min": {
          "type": "minimum"
        }
      },
      "pipes": {
        "max": {
          "input": {
            "source": "value"
          }
        },
        "min": {
          "input": {
            "source": "value"
          }
        },
        "": {
          "max": {
            "bin": "max",
            "source": "output"
          },
          "min": {
            "bin": "min",
            "source": "output"
          }
        }
      }
    }
  },
  "pipes": {
    "adder": {
      "a": {
        "source": "input_a"
      },
      "b": {
        "source": "input_b"
      }
    },
    "extremes": {
      "value": {
        "source": "input_a"
      }
    },
    "": {
      "sum": {
        "bin": "adder",
        "source": "output"
      },
      "max": {
        "bin": "extremes",
        "source": "min"
      },
      "min": {
        "bin": "extremes",
        "source": "max"
      }
    }
  }
}
