{
  "queryType": "timeseries",
  "dataSource": {
    "type": "join",
    "left": {
      "type": "table",
      "name": "datasource1"
    },
    "right": {
      "type": "query",
      "query": {
        "queryType": "groupBy",
        "dataSource": {
          "type": "table",
          "name": "datasource2"
        },
        "intervals": {
          "type": "intervals",
          "intervals": [
            "2024-12-01T00:00:00.000Z/2025-01-04T00:00:00.000Z"
          ]
        },
        "granularity": {
          "type": "all"
        },
        "dimensions": [
          {
            "type": "default",
            "dimension": "Id",
            "outputName": "d0",
            "outputType": "STRING"
          }
        ],
        "limitSpec": {
          "type": "NoopLimitSpec"
        },
        "context": {
          "maxSubqueryRows": 2000000,
          "queryId": "eaa8c20d-c532-46e2-bf0c-ae407a6f5859",
          "sqlOuterLimit": 1001,
          "sqlQueryId": "eaa8c20d-c532-46e2-bf0c-ae407a6f5859",
          "sqlStringifyArrays": false,
          "useNativeQueryExplain": true
        }
      }
    },
    "rightPrefix": "j0.",
    "condition": "(\"Id\" == \"j0.d0\")",
    "joinType": "LEFT"
  },
  "intervals": {
    "type": "intervals",
    "intervals": [
      "2024-12-01T00:00:00.000Z/2025-01-01T00:00:00.000Z"
    ]
  },
  "filter": {
    "type": "null",
    "column": "j0.d0"
  },
  "granularity": {
    "type": "all"
  },
  "aggregations": [
    {
      "type": "longSum",
      "name": "a0",
      "fieldName": "count"
    }
  ],
  "context": {
    "maxSubqueryRows": 2000000,
    "queryId": "eaa8c20d-c532-46e2-bf0c-ae407a6f5859",
    "sqlOuterLimit": 1001,
    "sqlQueryId": "eaa8c20d-c532-46e2-bf0c-ae407a6f5859",
    "sqlStringifyArrays": false,
    "useNativeQueryExplain": true
  }
}