Guest User

Untitled

a guest
Sep 15th, 2021
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "pg" (27 ms)
  2. (
  3.     SELECT
  4.         'match_players.kills' AS what,
  5.         match_players.kills AS amount,
  6.         match_teams.result,
  7.         matches.id,
  8.         matches.DATE,
  9.         matches.gamemode,
  10.         match_players.champion_id
  11.     FROM
  12.         match_players
  13.         INNER JOIN matches ON matches.id = match_players.match_id
  14.         INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  15.         AND match_players.team = match_teams.color
  16.     WHERE
  17.         match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  18.         AND match_teams.result != 'Remake'
  19.         AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  20.     ORDER BY
  21.         match_players.kills DESC,
  22.         matches.id
  23.     LIMIT
  24.         1
  25. )
  26. UNION ALL
  27.     (
  28.         SELECT
  29.             'match_players.deaths' AS what,
  30.             match_players.deaths AS amount,
  31.             match_teams.result,
  32.             matches.id,
  33.             matches.DATE,
  34.             matches.gamemode,
  35.             match_players.champion_id
  36.         FROM
  37.             match_players
  38.             INNER JOIN matches ON matches.id = match_players.match_id
  39.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  40.             AND match_players.team = match_teams.color
  41.         WHERE
  42.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  43.             AND match_teams.result != 'Remake'
  44.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  45.         ORDER BY
  46.             match_players.deaths DESC,
  47.             matches.id
  48.         LIMIT
  49.             1
  50.     )
  51. UNION ALL
  52.     (
  53.         SELECT
  54.             'match_players.assists' AS what,
  55.             match_players.assists AS amount,
  56.             match_teams.result,
  57.             matches.id,
  58.             matches.DATE,
  59.             matches.gamemode,
  60.             match_players.champion_id
  61.         FROM
  62.             match_players
  63.             INNER JOIN matches ON matches.id = match_players.match_id
  64.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  65.             AND match_players.team = match_teams.color
  66.         WHERE
  67.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  68.             AND match_teams.result != 'Remake'
  69.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  70.         ORDER BY
  71.             match_players.assists DESC,
  72.             matches.id
  73.         LIMIT
  74.             1
  75.     )
  76. UNION ALL
  77.     (
  78.         SELECT
  79.             'match_players.gold' AS what,
  80.             match_players.gold AS amount,
  81.             match_teams.result,
  82.             matches.id,
  83.             matches.DATE,
  84.             matches.gamemode,
  85.             match_players.champion_id
  86.         FROM
  87.             match_players
  88.             INNER JOIN matches ON matches.id = match_players.match_id
  89.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  90.             AND match_players.team = match_teams.color
  91.         WHERE
  92.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  93.             AND match_teams.result != 'Remake'
  94.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  95.         ORDER BY
  96.             match_players.gold DESC,
  97.             matches.id
  98.         LIMIT
  99.             1
  100.     )
  101. UNION ALL
  102.     (
  103.         SELECT
  104.             'matches.game_duration' AS what,
  105.             matches.game_duration AS amount,
  106.             match_teams.result,
  107.             matches.id,
  108.             matches.DATE,
  109.             matches.gamemode,
  110.             match_players.champion_id
  111.         FROM
  112.             match_players
  113.             INNER JOIN matches ON matches.id = match_players.match_id
  114.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  115.             AND match_players.team = match_teams.color
  116.         WHERE
  117.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  118.             AND match_teams.result != 'Remake'
  119.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  120.         ORDER BY
  121.             matches.game_duration DESC,
  122.             matches.id
  123.         LIMIT
  124.             1
  125.     )
  126. UNION ALL
  127.     (
  128.         SELECT
  129.             'match_players.minions' AS what,
  130.             match_players.minions AS amount,
  131.             match_teams.result,
  132.             matches.id,
  133.             matches.DATE,
  134.             matches.gamemode,
  135.             match_players.champion_id
  136.         FROM
  137.             match_players
  138.             INNER JOIN matches ON matches.id = match_players.match_id
  139.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  140.             AND match_players.team = match_teams.color
  141.         WHERE
  142.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  143.             AND match_teams.result != 'Remake'
  144.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  145.         ORDER BY
  146.             match_players.minions DESC,
  147.             matches.id
  148.         LIMIT
  149.             1
  150.     )
  151. UNION ALL
  152.     (
  153.         SELECT
  154.             'match_players.kda' AS what,
  155.             match_players.kda AS amount,
  156.             match_teams.result,
  157.             matches.id,
  158.             matches.DATE,
  159.             matches.gamemode,
  160.             match_players.champion_id
  161.         FROM
  162.             match_players
  163.             INNER JOIN matches ON matches.id = match_players.match_id
  164.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  165.             AND match_players.team = match_teams.color
  166.         WHERE
  167.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  168.             AND match_teams.result != 'Remake'
  169.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  170.         ORDER BY
  171.             match_players.kda DESC,
  172.             matches.id
  173.         LIMIT
  174.             1
  175.     )
  176. UNION ALL
  177.     (
  178.         SELECT
  179.             'match_players.damage_taken' AS what,
  180.             match_players.damage_taken AS amount,
  181.             match_teams.result,
  182.             matches.id,
  183.             matches.DATE,
  184.             matches.gamemode,
  185.             match_players.champion_id
  186.         FROM
  187.             match_players
  188.             INNER JOIN matches ON matches.id = match_players.match_id
  189.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  190.             AND match_players.team = match_teams.color
  191.         WHERE
  192.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  193.             AND match_teams.result != 'Remake'
  194.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  195.         ORDER BY
  196.             match_players.damage_taken DESC,
  197.             matches.id
  198.         LIMIT
  199.             1
  200.     )
  201. UNION ALL
  202.     (
  203.         SELECT
  204.             'match_players.damage_dealt_champions' AS what,
  205.             match_players.damage_dealt_champions AS amount,
  206.             match_teams.result,
  207.             matches.id,
  208.             matches.DATE,
  209.             matches.gamemode,
  210.             match_players.champion_id
  211.         FROM
  212.             match_players
  213.             INNER JOIN matches ON matches.id = match_players.match_id
  214.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  215.             AND match_players.team = match_teams.color
  216.         WHERE
  217.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  218.             AND match_teams.result != 'Remake'
  219.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  220.         ORDER BY
  221.             match_players.damage_dealt_champions DESC,
  222.             matches.id
  223.         LIMIT
  224.             1
  225.     )
  226. UNION ALL
  227.     (
  228.         SELECT
  229.             'match_players.damage_dealt_objectives' AS what,
  230.             match_players.damage_dealt_objectives AS amount,
  231.             match_teams.result,
  232.             matches.id,
  233.             matches.DATE,
  234.             matches.gamemode,
  235.             match_players.champion_id
  236.         FROM
  237.             match_players
  238.             INNER JOIN matches ON matches.id = match_players.match_id
  239.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  240.             AND match_players.team = match_teams.color
  241.         WHERE
  242.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  243.             AND match_teams.result != 'Remake'
  244.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  245.         ORDER BY
  246.             match_players.damage_dealt_objectives DESC,
  247.             matches.id
  248.         LIMIT
  249.             1
  250.     )
  251. UNION ALL
  252.     (
  253.         SELECT
  254.             'match_players.kp' AS what,
  255.             match_players.kp AS amount,
  256.             match_teams.result,
  257.             matches.id,
  258.             matches.DATE,
  259.             matches.gamemode,
  260.             match_players.champion_id
  261.         FROM
  262.             match_players
  263.             INNER JOIN matches ON matches.id = match_players.match_id
  264.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  265.             AND match_players.team = match_teams.color
  266.         WHERE
  267.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  268.             AND match_teams.result != 'Remake'
  269.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  270.         ORDER BY
  271.             match_players.kp DESC,
  272.             matches.id
  273.         LIMIT
  274.             1
  275.     )
  276. UNION ALL
  277.     (
  278.         SELECT
  279.             'match_players.vision_score' AS what,
  280.             match_players.vision_score AS amount,
  281.             match_teams.result,
  282.             matches.id,
  283.             matches.DATE,
  284.             matches.gamemode,
  285.             match_players.champion_id
  286.         FROM
  287.             match_players
  288.             INNER JOIN matches ON matches.id = match_players.match_id
  289.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  290.             AND match_players.team = match_teams.color
  291.         WHERE
  292.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  293.             AND match_teams.result != 'Remake'
  294.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  295.         ORDER BY
  296.             match_players.vision_score DESC,
  297.             matches.id
  298.         LIMIT
  299.             1
  300.     )
  301. UNION ALL
  302.     (
  303.         SELECT
  304.             'match_players.critical_strike' AS what,
  305.             match_players.critical_strike AS amount,
  306.             match_teams.result,
  307.             matches.id,
  308.             matches.DATE,
  309.             matches.gamemode,
  310.             match_players.champion_id
  311.         FROM
  312.             match_players
  313.             INNER JOIN matches ON matches.id = match_players.match_id
  314.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  315.             AND match_players.team = match_teams.color
  316.         WHERE
  317.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  318.             AND match_teams.result != 'Remake'
  319.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  320.         ORDER BY
  321.             match_players.critical_strike DESC,
  322.             matches.id
  323.         LIMIT
  324.             1
  325.     )
  326. UNION ALL
  327.     (
  328.         SELECT
  329.             'match_players.time_spent_living' AS what,
  330.             match_players.time_spent_living AS amount,
  331.             match_teams.result,
  332.             matches.id,
  333.             matches.DATE,
  334.             matches.gamemode,
  335.             match_players.champion_id
  336.         FROM
  337.             match_players
  338.             INNER JOIN matches ON matches.id = match_players.match_id
  339.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  340.             AND match_players.team = match_teams.color
  341.         WHERE
  342.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  343.             AND match_teams.result != 'Remake'
  344.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  345.         ORDER BY
  346.             match_players.time_spent_living DESC,
  347.             matches.id
  348.         LIMIT
  349.             1
  350.     )
  351. UNION ALL
  352.     (
  353.         SELECT
  354.             'match_players.heal' AS what,
  355.             match_players.heal AS amount,
  356.             match_teams.result,
  357.             matches.id,
  358.             matches.DATE,
  359.             matches.gamemode,
  360.             match_players.champion_id
  361.         FROM
  362.             match_players
  363.             INNER JOIN matches ON matches.id = match_players.match_id
  364.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  365.             AND match_players.team = match_teams.color
  366.         WHERE
  367.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  368.             AND match_teams.result != 'Remake'
  369.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  370.         ORDER BY
  371.             match_players.heal DESC,
  372.             matches.id
  373.         LIMIT
  374.             1
  375.     )
  376. UNION ALL
  377.     (
  378.         SELECT
  379.             'match_players.turret_kills' AS what,
  380.             match_players.turret_kills AS amount,
  381.             match_teams.result,
  382.             matches.id,
  383.             matches.DATE,
  384.             matches.gamemode,
  385.             match_players.champion_id
  386.         FROM
  387.             match_players
  388.             INNER JOIN matches ON matches.id = match_players.match_id
  389.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  390.             AND match_players.team = match_teams.color
  391.         WHERE
  392.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  393.             AND match_teams.result != 'Remake'
  394.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  395.         ORDER BY
  396.             match_players.turret_kills DESC,
  397.             matches.id
  398.         LIMIT
  399.             1
  400.     )
  401. UNION ALL
  402.     (
  403.         SELECT
  404.             'match_players.killing_spree' AS what,
  405.             match_players.killing_spree AS amount,
  406.             match_teams.result,
  407.             matches.id,
  408.             matches.DATE,
  409.             matches.gamemode,
  410.             match_players.champion_id
  411.         FROM
  412.             match_players
  413.             INNER JOIN matches ON matches.id = match_players.match_id
  414.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  415.             AND match_players.team = match_teams.color
  416.         WHERE
  417.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  418.             AND match_teams.result != 'Remake'
  419.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  420.         ORDER BY
  421.             match_players.killing_spree DESC,
  422.             matches.id
  423.         LIMIT
  424.             1
  425.     )
  426. UNION ALL
  427.     (
  428.         SELECT
  429.             'match_players.double_kills' AS what,
  430.             match_players.double_kills AS amount,
  431.             match_teams.result,
  432.             matches.id,
  433.             matches.DATE,
  434.             matches.gamemode,
  435.             match_players.champion_id
  436.         FROM
  437.             match_players
  438.             INNER JOIN matches ON matches.id = match_players.match_id
  439.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  440.             AND match_players.team = match_teams.color
  441.         WHERE
  442.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  443.             AND match_teams.result != 'Remake'
  444.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  445.         ORDER BY
  446.             match_players.double_kills DESC,
  447.             matches.id
  448.         LIMIT
  449.             1
  450.     )
  451. UNION ALL
  452.     (
  453.         SELECT
  454.             'match_players.triple_kills' AS what,
  455.             match_players.triple_kills AS amount,
  456.             match_teams.result,
  457.             matches.id,
  458.             matches.DATE,
  459.             matches.gamemode,
  460.             match_players.champion_id
  461.         FROM
  462.             match_players
  463.             INNER JOIN matches ON matches.id = match_players.match_id
  464.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  465.             AND match_players.team = match_teams.color
  466.         WHERE
  467.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  468.             AND match_teams.result != 'Remake'
  469.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  470.         ORDER BY
  471.             match_players.triple_kills DESC,
  472.             matches.id
  473.         LIMIT
  474.             1
  475.     )
  476. UNION ALL
  477.     (
  478.         SELECT
  479.             'match_players.quadra_kills' AS what,
  480.             match_players.quadra_kills AS amount,
  481.             match_teams.result,
  482.             matches.id,
  483.             matches.DATE,
  484.             matches.gamemode,
  485.             match_players.champion_id
  486.         FROM
  487.             match_players
  488.             INNER JOIN matches ON matches.id = match_players.match_id
  489.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  490.             AND match_players.team = match_teams.color
  491.         WHERE
  492.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  493.             AND match_teams.result != 'Remake'
  494.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  495.         ORDER BY
  496.             match_players.quadra_kills DESC,
  497.             matches.id
  498.         LIMIT
  499.             1
  500.     )
  501. UNION ALL
  502.     (
  503.         SELECT
  504.             'match_players.penta_kills' AS what,
  505.             match_players.penta_kills AS amount,
  506.             match_teams.result,
  507.             matches.id,
  508.             matches.DATE,
  509.             matches.gamemode,
  510.             match_players.champion_id
  511.         FROM
  512.             match_players
  513.             INNER JOIN matches ON matches.id = match_players.match_id
  514.             INNER JOIN match_teams ON match_players.match_id = match_teams.match_id
  515.             AND match_players.team = match_teams.color
  516.         WHERE
  517.             match_players.summoner_puuid = 'EdlDRRAPVUAYf9iDPF9iKNyF-6rkpnXXBLiF4VUfcPYZXV9xaiQsgGKiaIz4IgBX3JCiL_oS5fmXAQ'
  518.             AND match_teams.result != 'Remake'
  519.             AND matches.gamemode NOT IN (800, 810, 820, 830, 840, 850, 2000, 2010, 2020)
  520.         ORDER BY
  521.             match_players.penta_kills DESC,
  522.             matches.id
  523.         LIMIT
  524.             1
  525.     )
Advertisement
Add Comment
Please, Sign In to add comment