Mundial-local
mundial
{
  "__inputs": [
    {
      "name": "DS_MYSQL",
      "label": "MySQL",
      "description": "",
      "type": "datasource",
      "pluginId": "mysql",
      "pluginName": "MySQL"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.3.0"
    },
    {
      "type": "datasource",
      "id": "mysql",
      "name": "MySQL",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 24,
      "panels": [],
      "title": "Jugabilidad",
      "type": "row"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "yellow",
            "mode": "fixed"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 0,
        "y": 1
      },
      "id": 18,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": true
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT cards_red, cards_yellow FROM mundial_2022.team_misc WHERE team = '$CountryTeam' LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "cards_red",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "cards_yellow",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "99889aa9-4567-489a-bcde-f1850c799d89",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "ab9ba88b-89ab-4cde-b012-31850c69094b",
              "type": "group"
            },
            "whereString": "team = '$CountryTeam'"
          },
          "table": "team_misc"
        }
      ],
      "title": "Tarjetas",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "cards_red"
              },
              {
                "destinationType": "number",
                "targetField": "cards_yellow"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "cards_red": "Tarjetas rojas",
              "cards_yellow": "Tarjetas amarillas"
            }
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "yellow",
            "mode": "fixed"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 18,
        "x": 5,
        "y": 1
      },
      "id": 28,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT player, interceptions, ball_recoveries, offsides FROM mundial_2022.player_misc WHERE team = '$CountryTeam' LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "interceptions",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "ball_recoveries",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "offsides",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "orderBy": {
              "property": {
                "type": "string"
              },
              "type": "property"
            },
            "whereJsonTree": {
              "children1": [
                {
                  "id": "889999ba-cdef-4012-b456-71850c80fc55",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "a8ab9bb8-cdef-4012-b456-71850e17160d",
                  "properties": {
                    "value": [],
                    "valueSrc": []
                  },
                  "type": "rule"
                }
              ],
              "id": "ab9ba88b-89ab-4cde-b012-31850c69094b",
              "type": "group"
            },
            "whereString": "team = '$CountryTeam'"
          },
          "table": "player_misc"
        }
      ],
      "title": "Total",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "offsides"
              },
              {
                "destinationType": "number",
                "targetField": "interceptions"
              },
              {
                "destinationType": "number",
                "targetField": "tackles_won"
              },
              {
                "destinationType": "number",
                "targetField": "ball_recoveries"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 6,
        "x": 5,
        "y": 6
      },
      "id": 20,
      "options": {
        "displayMode": "gradient",
        "minVizHeight": 10,
        "minVizWidth": 0,
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": true
        },
        "showUnfilled": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT player, interceptions FROM mundial_2022.player_misc WHERE (team = '$CountryTeam' AND interceptions <> '0') ORDER BY interceptions DESC LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "interceptions",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "orderBy": {
              "property": {
                "name": [
                  "interceptions"
                ],
                "type": "string"
              },
              "type": "property"
            },
            "orderByDirection": "DESC",
            "whereJsonTree": {
              "children1": [
                {
                  "id": "889999ba-cdef-4012-b456-71850c80fc55",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "aa9ab8bb-89ab-4cde-b012-31850c8c68a5",
                  "properties": {
                    "field": "interceptions",
                    "operator": "not_equal",
                    "value": [
                      "0"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "ab9ba88b-89ab-4cde-b012-31850c69094b",
              "type": "group"
            },
            "whereString": "(team = '$CountryTeam' AND interceptions <> '0')"
          },
          "table": "player_misc"
        }
      ],
      "title": "Intercepciones",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "offsides"
              },
              {
                "destinationType": "number",
                "targetField": "interceptions"
              },
              {
                "destinationType": "number",
                "targetField": "tackles_won"
              },
              {
                "destinationType": "number",
                "targetField": "ball_recoveries"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "bargauge"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 6,
        "x": 11,
        "y": 6
      },
      "id": 27,
      "options": {
        "displayMode": "gradient",
        "minVizHeight": 10,
        "minVizWidth": 0,
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": true
        },
        "showUnfilled": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT player, ball_recoveries FROM mundial_2022.player_misc WHERE (team = '$CountryTeam' AND ball_recoveries <> '0') ORDER BY ball_recoveries DESC LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "ball_recoveries",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "orderBy": {
              "property": {
                "name": [
                  "ball_recoveries"
                ],
                "type": "string"
              },
              "type": "property"
            },
            "orderByDirection": "DESC",
            "whereJsonTree": {
              "children1": [
                {
                  "id": "889999ba-cdef-4012-b456-71850c80fc55",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "aa9ab8bb-89ab-4cde-b012-31850c8c68a5",
                  "properties": {
                    "field": "ball_recoveries",
                    "operator": "not_equal",
                    "value": [
                      "0"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "ab9ba88b-89ab-4cde-b012-31850c69094b",
              "type": "group"
            },
            "whereString": "(team = '$CountryTeam' AND ball_recoveries <> '0')"
          },
          "table": "player_misc"
        }
      ],
      "title": "Recuperación de balón",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "offsides"
              },
              {
                "destinationType": "number",
                "targetField": "interceptions"
              },
              {
                "destinationType": "number",
                "targetField": "tackles_won"
              },
              {
                "destinationType": "number",
                "targetField": "ball_recoveries"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "bargauge"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 6,
        "x": 17,
        "y": 6
      },
      "id": 26,
      "options": {
        "displayMode": "gradient",
        "minVizHeight": 10,
        "minVizWidth": 0,
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": true
        },
        "showUnfilled": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT player, offsides FROM mundial_2022.player_misc WHERE (team = '$CountryTeam' AND offsides <> '0') ORDER BY offsides DESC LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "offsides",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "orderBy": {
              "property": {
                "name": [
                  "offsides"
                ],
                "type": "string"
              },
              "type": "property"
            },
            "orderByDirection": "DESC",
            "whereJsonTree": {
              "children1": [
                {
                  "id": "889999ba-cdef-4012-b456-71850c80fc55",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "aa9ab8bb-89ab-4cde-b012-31850c8c68a5",
                  "properties": {
                    "field": "offsides",
                    "operator": "not_equal",
                    "value": [
                      "0"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "ab9ba88b-89ab-4cde-b012-31850c69094b",
              "type": "group"
            },
            "whereString": "(team = '$CountryTeam' AND offsides <> '0')"
          },
          "table": "player_misc"
        }
      ],
      "title": "Offsides",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "offsides"
              },
              {
                "destinationType": "number",
                "targetField": "interceptions"
              },
              {
                "destinationType": "number",
                "targetField": "tackles_won"
              },
              {
                "destinationType": "number",
                "targetField": "ball_recoveries"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "bargauge"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 22,
      "panels": [],
      "title": "Jugadores",
      "type": "row"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto",
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 9,
        "x": 0,
        "y": 18
      },
      "id": 8,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "frameIndex": 0,
        "showHeader": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT player, age, games FROM mundial_2022.player_playingtime WHERE team = '$CountryTeam' LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "age",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "games",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "88abb9b8-89ab-4cde-b012-31850c77e89c",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "ab9ba88b-89ab-4cde-b012-31850c69094b",
              "type": "group"
            },
            "whereString": "team = '$CountryTeam'"
          },
          "table": "player_playingtime"
        }
      ],
      "title": "Jugaodres",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "games"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "player"
            ]
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto",
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 9,
        "y": 18
      },
      "id": 10,
      "options": {
        "footer": {
          "enablePagination": false,
          "fields": [
            "Jugador"
          ],
          "reducer": [
            "count"
          ],
          "show": true
        },
        "showHeader": true
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT player FROM mundial_2022.player_playingtime WHERE (COALESCE(minutes, '') <> '' AND team = '$CountryTeam' AND games_complete = '4') LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "orderBy": {
              "property": {
                "type": "string"
              },
              "type": "property"
            },
            "whereJsonTree": {
              "children1": [
                {
                  "id": "888abab9-89ab-4cde-b012-318503409c07",
                  "properties": {
                    "field": "minutes",
                    "operator": "is_not_empty",
                    "value": [],
                    "valueSrc": [],
                    "valueType": []
                  },
                  "type": "rule"
                },
                {
                  "id": "89aa98aa-cdef-4012-b456-71850343e849",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                },
                {
                  "id": "9bbb898a-89ab-4cde-b012-31850346e41f",
                  "properties": {
                    "field": "games_complete",
                    "operator": "equal",
                    "value": [
                      "4"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "8a8aa8aa-89ab-4cde-b012-318503327468",
              "type": "group"
            },
            "whereString": "(COALESCE(minutes, '') <> '' AND team = '$CountryTeam' AND games_complete = '4')"
          },
          "table": "player_playingtime"
        }
      ],
      "title": "Participación 100%",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [],
            "fields": {}
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Jugador",
            "binary": {
              "left": "player",
              "reducer": "sum",
              "right": "player"
            },
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "player"
              ],
              "reducer": "lastNotNull"
            },
            "replaceFields": true
          }
        }
      ],
      "type": "table"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 26
      },
      "id": 16,
      "panels": [],
      "title": "Pases",
      "type": "row"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "short"
        },
        "overrides": [
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "touches"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": [
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": false,
                  "tooltip": false,
                  "viz": true
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 9,
        "x": 0,
        "y": 27
      },
      "id": 6,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT player, touches FROM mundial_2022.player_possession WHERE (COALESCE(touches, '') <> '' AND team = '$CountryTeam') ORDER BY touches DESC LIMIT 1000 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "player",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "touches",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [],
            "limit": 1000,
            "orderBy": {
              "property": {
                "name": [
                  "touches"
                ],
                "type": "string"
              },
              "type": "property"
            },
            "orderByDirection": "DESC",
            "whereJsonTree": {
              "children1": [
                {
                  "id": "b9b89aab-89ab-4cde-b012-3184feb469f6",
                  "properties": {
                    "field": "touches",
                    "operator": "is_not_empty",
                    "value": [],
                    "valueSrc": [],
                    "valueType": []
                  },
                  "type": "rule"
                },
                {
                  "id": "b8baaaaa-4567-489a-bcde-f18502f52014",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "b98baa8a-89ab-4cde-b012-3184feac9c45",
              "type": "group"
            },
            "whereString": "(COALESCE(touches, '') <> '' AND team = '$CountryTeam')"
          },
          "table": "player_possession"
        }
      ],
      "title": "Pases emitidos",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "touches"
              }
            ],
            "fields": {}
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": []
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 3,
        "x": 9,
        "y": 27
      },
      "id": 12,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT passes_long, passes_completed_long FROM mundial_2022.team_passing_2 WHERE team = '$CountryTeam' LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "passes_long",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "passes_completed_long",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "a8ab9aaa-cdef-4012-b456-71850c3d0a36",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "9bb988b9-89ab-4cde-b012-31850c26015f",
              "type": "group"
            },
            "whereString": "team = '$CountryTeam'"
          },
          "table": "team_passing_2"
        }
      ],
      "title": "Pases largos concretados",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "passes_completed_long"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "gk_passes_completed_launched": "Pases largos concretados",
              "gk_passes_launched": "Pases largos lanzados",
              "passes_completed_long": "Pases largos concretados",
              "passes_long": "Pases largos intentados"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Pases largos fallados",
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "Pases largos intentados",
                "Pases largos concretados"
              ],
              "reducer": "range"
            }
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": []
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 3,
        "x": 12,
        "y": 27
      },
      "id": 14,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT passes_medium, passes_completed_medium FROM mundial_2022.team_passing_2 WHERE team = '$CountryTeam' LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "passes_medium",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "passes_completed_medium",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "a8ab9aaa-cdef-4012-b456-71850c3d0a36",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "9bb988b9-89ab-4cde-b012-31850c26015f",
              "type": "group"
            },
            "whereString": "team = '$CountryTeam'"
          },
          "table": "team_passing_2"
        }
      ],
      "title": "Pases medios concretados",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "passes_completed_medium"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "gk_passes_completed_launched": "Pases largos concretados",
              "gk_passes_launched": "Pases largos lanzados",
              "passes_completed_long": "Pases largos concretados",
              "passes_completed_medium": "Pases medios concretados",
              "passes_long": "Pases largos intentados",
              "passes_medium": "Pases medios"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Pases medios fallados",
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "Pases medios",
                "Pases medios concretados"
              ],
              "reducer": "range"
            }
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_MYSQL}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": []
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 3,
        "x": 15,
        "y": 27
      },
      "id": 13,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.3.0",
      "targets": [
        {
          "dataset": "mundial_2022",
          "datasource": {
            "type": "mysql",
            "uid": "${DS_MYSQL}"
          },
          "editorMode": "builder",
          "format": "table",
          "rawSql": "SELECT passes_short, passes_completed_short FROM mundial_2022.team_passing_2 WHERE team = '$CountryTeam' LIMIT 50 ",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [
                  {
                    "name": "passes_short",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              },
              {
                "parameters": [
                  {
                    "name": "passes_completed_short",
                    "type": "functionParameter"
                  }
                ],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50,
            "whereJsonTree": {
              "children1": [
                {
                  "id": "a8ab9aaa-cdef-4012-b456-71850c3d0a36",
                  "properties": {
                    "field": "team",
                    "operator": "equal",
                    "value": [
                      "$CountryTeam"
                    ],
                    "valueSrc": [
                      "value"
                    ],
                    "valueType": [
                      "text"
                    ]
                  },
                  "type": "rule"
                }
              ],
              "id": "9bb988b9-89ab-4cde-b012-31850c26015f",
              "type": "group"
            },
            "whereString": "team = '$CountryTeam'"
          },
          "table": "team_passing_2"
        }
      ],
      "title": "Pases cortos concretados",
      "transformations": [
        {
          "id": "convertFieldType",
          "options": {
            "conversions": [
              {
                "destinationType": "number",
                "targetField": "passes_completed_short"
              }
            ],
            "fields": {}
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "gk_passes_completed_launched": "Pases largos concretados",
              "gk_passes_launched": "Pases largos lanzados",
              "passes_completed_long": "Pases largos concretados",
              "passes_completed_medium": "Pases medios concretados",
              "passes_completed_short": "Pases cortos concretados",
              "passes_long": "Pases largos intentados",
              "passes_medium": "Pases medios ",
              "passes_short": "Pases cortos"
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "alias": "Pases cortos fallados",
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "Pases cortos",
                "Pases cortos concretados"
              ],
              "reducer": "range"
            }
          }
        }
      ],
      "type": "piechart"
    }
  ],
  "refresh": false,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": "",
        "current": {
          "selected": true,
          "text": "Octavos",
          "value": "4"
        },
        "hide": 0,
        "includeAll": false,
        "multi": false,
        "name": "Fase",
        "options": [
          {
            "selected": false,
            "text": "Fase grupos",
            "value": "3"
          },
          {
            "selected": true,
            "text": "Octavos",
            "value": "4"
          },
          {
            "selected": false,
            "text": "Cuartos",
            "value": "5"
          },
          {
            "selected": false,
            "text": "Semifinal",
            "value": "6"
          },
          {
            "selected": false,
            "text": "Final",
            "value": "7"
          }
        ],
        "query": "Fase grupos : 3, Octavos : 4, Cuartos : 5, Semifinal : 6, Final : 7",
        "queryValue": "",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {},
        "datasource": {
          "type": "mysql",
          "uid": "${DS_MYSQL}"
        },
        "definition": "SELECT team FROM team_playingtime WHERE `games` >= $Fase",
        "hide": 0,
        "includeAll": false,
        "multi": false,
        "name": "CountryTeam",
        "options": [],
        "query": "SELECT team FROM team_playingtime WHERE `games` >= $Fase",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "2022-12-10T22:05:02.286Z",
    "to": "2022-12-11T22:05:02.286Z"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Mundial-local",
  "uid": "3MmmMm5Vz",
  "version": 29,
  "weekStart": "",
  "gnetId": 17611,
  "description": "mundial"
}