home / season_29_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 325 222 103 68.31% 1.95% 63.25%
EngineerMonkey 469 282 187 60.13% 2.81% 55.70%
BananaFarm 3727 2041 1686 54.76% 22.31% 53.16%
BombShooter 2212 1213 999 54.84% 13.24% 52.76%
SpikeFactory 1824 994 830 54.50% 10.92% 52.21%
DartMonkey 537 293 244 54.56% 3.21% 50.35%
MonkeySub 753 404 349 53.65% 4.51% 50.09%
MortarMonkey 285 157 128 55.09% 1.71% 49.31%
BoomerangMonkey 867 437 430 50.40% 5.19% 47.08%
DartlingGunner 403 190 213 47.15% 2.41% 42.27%
WizardMonkey 985 413 572 41.93% 5.90% 38.85%
NinjaMonkey 846 349 497 41.25% 5.06% 37.94%
SuperMonkey 343 148 195 43.15% 2.05% 37.91%
MonkeyVillage 557 225 332 40.39% 3.33% 36.32%
SniperMonkey 660 257 403 38.94% 3.95% 35.22%
GlueGunner 373 146 227 39.14% 2.23% 34.19%
Alchemist 235 95 140 40.43% 1.41% 34.15%
IceMonkey 281 109 172 38.79% 1.68% 33.09%
TackShooter 541 200 341 36.97% 3.24% 32.90%
Druid 243 94 149 38.68% 1.45% 32.56%
HeliPilot 198 68 130 34.34% 1.19% 27.73%
MonkeyBuccaneer 40 15 25 37.50% 0.24% 22.50%

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 2339.905ms