home / season_28_matches

cobra_command_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MonkeyAce 288 185 103 64.24% 1.62% 58.70%
MortarMonkey 341 213 128 62.46% 1.92% 57.32%
BombShooter 2311 1339 972 57.94% 13.04% 55.93%
BananaFarm 3730 2088 1642 55.98% 21.04% 54.39%
SpikeFactory 1948 1096 852 56.26% 10.99% 54.06%
EngineerMonkey 401 228 173 56.86% 2.26% 52.01%
MonkeySub 621 327 294 52.66% 3.50% 48.73%
BoomerangMonkey 965 496 469 51.40% 5.44% 48.25%
DartMonkey 602 308 294 51.16% 3.40% 47.17%
NinjaMonkey 815 350 465 42.94% 4.60% 39.55%
WizardMonkey 982 410 572 41.75% 5.54% 38.67%
GlueGunner 679 274 405 40.35% 3.83% 36.66%
MonkeyVillage 786 314 472 39.95% 4.43% 36.52%
IceMonkey 295 123 172 41.69% 1.66% 36.07%
Alchemist 297 122 175 41.08% 1.68% 35.48%
SniperMonkey 652 253 399 38.80% 3.68% 35.06%
Druid 243 98 145 40.33% 1.37% 34.16%
SuperMonkey 449 164 285 36.53% 2.53% 32.07%
HeliPilot 329 120 209 36.47% 1.86% 31.27%
TackShooter 600 210 390 35.00% 3.39% 31.18%
DartlingGunner 337 122 215 36.20% 1.90% 31.07%
MonkeyBuccaneer 53 22 31 41.51% 0.30% 28.24%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW cobra_command_towers AS 
WITH cobra_command AS
    (SELECT *
    FROM matches
    WHERE map = 'cobra_command')
SELECT Tower,
       Games,
       Wins,
       Losses,
       printf('%.2f%%', WR * 100)                                          AS Winrate,
       printf('%.2f%%', PR * 100)                                          AS Pickrate,
       printf('%.2f%%', (WR - 1.96 * SQRT((WR * (1 - WR)) / Games)) * 100) AS Winrate_LowerBound_95CI
FROM (SELECT Tower,
             Games,
             Wins,
             Losses,
             CAST(Wins AS REAL) / Games AS WR,
             CAST(Games AS REAL) / (
                 (SELECT COUNT(*)
                  FROM cobra_command) * 6)    AS PR
      FROM (SELECT Tower,
                   SUM(Win) + SUM(NOT Win) AS Games,
                   SUM(Win)                AS Wins,
                   SUM(NOT Win)            AS Losses
            FROM (SELECT lt1           AS Tower,
                         playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT lt2           AS Tower,
                         playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT lt3           AS Tower,
                         playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT rt1               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT rt2               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM cobra_command
                  UNION ALL
                  SELECT rt3               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM cobra_command)
            GROUP BY Tower))
WHERE Wins >= 10 AND Losses >= 10 AND LENGTH(Winrate_LowerBound_95CI) = 6
ORDER BY Winrate_LowerBound_95CI DESC;
Powered by Datasette · Queries took 1319.449ms