{
  "dataset": "argentina",
  "description": "Monthly oil and gas well production for Argentina (2006–present).",
  "tables": {
    "wells": {
      "description": "Static well master. One row per `idpozo` (~85,418 wells, including ~113 orphans from `capitulo-iv` flagged with `has_production = false`).",
      "columns": [
        {
          "name": "idpozo",
          "type": "BIGINT",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "sigla",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "formprod",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "codigopropio",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "nombrepropio",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "area",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "cod_area",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "yacimiento",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "cod_yacimiento",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "cuenca",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "provincia",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "idcuenca",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "idprovincia",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "formacion",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "cota",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "profundidad",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "clasificacion",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "subclasificacion",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "tipo_recurso",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "sub_tipo_recurso",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "gasplus",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "proyecto",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "empresa",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "coordenadax",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "coordenaday",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "geom",
          "type": "BLOB",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_inicio_perf",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_fin_perf",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_inicio_term",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_fin_term",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_inicio",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_fin",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_fecha_abandono",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_equipo_utilizar",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "adjiv_capacidad_perf",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "pet_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "gas_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "agua_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_agua_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_gas_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_otros_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_co2_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "vida_util_inicial",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "has_production",
          "type": "BOOLEAN",
          "not_null": false,
          "primary_key": false
        }
      ],
      "primary_key": [
        "idpozo"
      ],
      "foreign_keys": []
    },
    "well_operator_history": {
      "description": "Operator history per well (slowly-changing dimension). One row per contiguous run of `idempresa` per `idpozo`. Runs with a NULL `idempresa` are preserved as-is: the absence of an operator is information carried by the source.",
      "columns": [
        {
          "name": "idpozo",
          "type": "BIGINT",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "idempresa",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "empresa",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "valid_from",
          "type": "DATE",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "valid_to",
          "type": "DATE",
          "not_null": false,
          "primary_key": false
        }
      ],
      "primary_key": [
        "idpozo",
        "valid_from"
      ],
      "foreign_keys": [
        {
          "column": "idpozo",
          "references_table": "wells",
          "references_column": "idpozo"
        }
      ]
    },
    "well_events": {
      "description": "Operational state events. One row per month in which any of `(tipoestado, tipoextraccion, tipopozo)` changed. The first row of every well is included as the transition into its starting state; single-month flips are not smoothed.",
      "columns": [
        {
          "name": "idpozo",
          "type": "BIGINT",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "event_date",
          "type": "DATE",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "tipoestado",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "tipoextraccion",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "tipopozo",
          "type": "VARCHAR",
          "not_null": false,
          "primary_key": false
        }
      ],
      "primary_key": [
        "idpozo",
        "event_date"
      ],
      "foreign_keys": [
        {
          "column": "idpozo",
          "references_table": "wells",
          "references_column": "idpozo"
        }
      ]
    },
    "monthly_production": {
      "description": "Monthly time series of numeric measurements. One row per `(idpozo, fecha)` for every month in `[first_row, last_row]` per well (gaps are filled with NULL measurements). Hive-partitioned by `anio` (`monthly_production/anio=YYYY/data.parquet`) and internally sorted by `(idpozo, fecha)` so row-group statistics let single-well queries over `httpfs` prune.",
      "columns": [
        {
          "name": "idpozo",
          "type": "BIGINT",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "fecha",
          "type": "DATE",
          "not_null": true,
          "primary_key": true
        },
        {
          "name": "prod_pet",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "prod_gas",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "prod_agua",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_agua",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_gas",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_co2",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "iny_otro",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "tef",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        },
        {
          "name": "vida_util",
          "type": "DOUBLE",
          "not_null": false,
          "primary_key": false
        }
      ],
      "primary_key": [
        "idpozo",
        "fecha"
      ],
      "foreign_keys": [
        {
          "column": "idpozo",
          "references_table": "wells",
          "references_column": "idpozo"
        }
      ]
    }
  }
}
