home / season_31_matches

building_site_scene_towers (view)

22 rows

✎ View and edit SQL

This data as json, CSV (advanced)

Tower Games Wins Losses Winrate Pickrate Winrate_LowerBound_95CI
WizardMonkey 872 479 393 54.93% 15.61% 51.63%
BananaFarm 1351 724 627 53.59% 24.19% 50.93%
TackShooter 953 514 439 53.93% 17.06% 50.77%
DartMonkey 336 173 163 51.49% 6.02% 46.14%
MortarMonkey 448 218 230 48.66% 8.02% 44.03%
HeliPilot 126 62 64 49.21% 2.26% 40.48%
BoomerangMonkey 132 63 69 47.73% 2.36% 39.21%
SniperMonkey 254 115 139 45.28% 4.55% 39.15%
SuperMonkey 97 47 50 48.45% 1.74% 38.51%
NinjaMonkey 158 70 88 44.30% 2.83% 36.56%
Alchemist 96 44 52 45.83% 1.72% 35.87%
EngineerMonkey 97 42 55 43.30% 1.74% 33.44%
MonkeySub 57 23 34 40.35% 1.02% 27.61%
DartlingGunner 74 28 46 37.84% 1.32% 26.79%
BombShooter 62 24 38 38.71% 1.11% 26.59%
GlueGunner 64 24 40 37.50% 1.15% 25.64%
MonkeyAce 88 31 57 35.23% 1.58% 25.25%
SpikeFactory 93 32 61 34.41% 1.66% 24.75%
IceMonkey 78 27 51 34.62% 1.40% 24.06%
MonkeyBuccaneer 42 16 26 38.10% 0.75% 23.41%
MonkeyVillage 77 26 51 33.77% 1.38% 23.20%
Druid 31 11 20 35.48% 0.55% 18.64%

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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