home / season_26_matches

precious_space_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
MonkeySub 1186 688 498 58.01% 8.51% 55.20%
BananaFarm 2207 1222 985 55.37% 15.83% 53.30%
MortarMonkey 337 191 146 56.68% 2.42% 51.39%
BombShooter 744 407 337 54.70% 5.34% 51.13%
BoomerangMonkey 646 353 293 54.64% 4.63% 50.80%
Druid 570 301 269 52.81% 4.09% 48.71%
DartMonkey 401 209 192 52.12% 2.88% 47.23%
SpikeFactory 1111 538 573 48.42% 7.97% 45.49%
DartlingGunner 978 472 506 48.26% 7.01% 45.13%
MonkeyVillage 512 246 266 48.05% 3.67% 43.72%
SuperMonkey 622 296 326 47.59% 4.46% 43.66%
Alchemist 580 276 304 47.59% 4.16% 43.52%
MonkeyBuccaneer 511 240 271 46.97% 3.66% 42.64%
WizardMonkey 675 307 368 45.48% 4.84% 41.72%
IceMonkey 160 78 82 48.75% 1.15% 41.00%
SniperMonkey 782 335 447 42.84% 5.61% 39.37%
GlueGunner 552 240 312 43.48% 3.96% 39.34%
TackShooter 432 185 247 42.82% 3.10% 38.16%
HeliPilot 278 122 156 43.88% 1.99% 38.05%
MonkeyAce 137 62 75 45.26% 0.98% 36.92%
NinjaMonkey 419 165 254 39.38% 3.00% 34.70%
EngineerMonkey 104 39 65 37.50% 0.75% 28.20%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW precious_space_towers AS 
WITH precious_space AS
    (SELECT *
    FROM matches
    WHERE map = 'precious_space')
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 precious_space) * 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 precious_space
                  UNION ALL
                  SELECT lt2           AS Tower,
                         playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT lt3           AS Tower,
                         playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT rt1               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT rt2               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM precious_space
                  UNION ALL
                  SELECT rt3               AS Tower,
                         NOT playerLeftWin AS Win
                  FROM precious_space)
            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 1257.831ms