You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ja...@apache.org on 2023/01/30 10:33:39 UTC

[doris] branch master updated: [test](pipeline) Run nereids cases in p1/p2 (#16130)

This is an automated email from the ASF dual-hosted git repository.

jakevin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b480db2e11 [test](pipeline) Run nereids cases in p1/p2 (#16130)
b480db2e11 is described below

commit b480db2e119ac0516e8621ea3d53c40f250c1d24
Author: AKIRA <33...@users.noreply.github.com>
AuthorDate: Mon Jan 30 18:33:31 2023 +0800

    [test](pipeline) Run nereids cases in p1/p2 (#16130)
---
 .../sql/nereids_CPUNetworkUtilization_order.out    |    12 +
 .../data/brown_p2/sql/nereids_averageMetrics.out   |   264 +
 .../data/brown_p2/sql/nereids_blockedIOServer.out  |    19 +
 .../data/brown_p2/sql/nereids_dailyUV.out          |   375 +
 .../data/brown_p2/sql/nereids_dataTransferRate.out |    10 +
 .../data/brown_p2/sql/nereids_doorOpen.out         |    29 +
 .../brown_p2/sql/nereids_excessiveRequests.out     |    17 +
 .../brown_p2/sql/nereids_hourlyNetworkTraffic.out  |    19 +
 .../data/brown_p2/sql/nereids_lowMemory.out        |    25 +
 .../data/brown_p2/sql/nereids_offlineMachine.out   |    27 +
 .../data/brown_p2/sql/nereids_passwordLeaked.out   |    11 +
 .../sql/nereids_powerConsumptionMetrics.out        |    37 +
 .../data/brown_p2/sql/nereids_serverError.out      |    11 +
 .../sql/nereids_temperatureReachFreezing.out       |    11 +
 .../sql/nereids_temperatureVariation_order.out     |    20 +
 .../sql/nereids_affinityByIssuesAndPRs1.out        |   109 +
 .../sql/nereids_affinityByIssuesAndPRs2.out        |   109 +
 .../sql/nereids_authorsWithTheMostPushes.out       |     7 +
 .../github_events_p2/sql/nereids_countingStar1.out |    13 +
 .../github_events_p2/sql/nereids_countingStar2.out |    13 +
 .../github_events_p2/sql/nereids_countingStar3.out |    13 +
 ...reids_distributionOfRepositoriesByStarCount.out |    23 +
 .../sql/nereids_githubRoulette.out                 |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears1.out |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears2.out |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears3.out |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears4.out |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears5.out |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears6.out |   111 +
 ...heListOfTopRepositoriesChangedOverTheYears7.out |     7 +
 ..._howHasTheTotalNumberOfStarsChangedOverTime.out |    31 +
 .../sql/nereids_issuesWithTheMostComments1.out     |    13 +
 .../sql/nereids_issuesWithTheMostComments2.out     |   111 +
 .../sql/nereids_issuesWithTheMostComments3.out     |   111 +
 .../sql/nereids_issuesWithTheMostComments4.out     |   111 +
 .../sql/nereids_issuesWithTheMostComments5.out     |   111 +
 .../sql/nereids_issuesWithTheMostComments6.out     |     7 +
 .../sql/nereids_issuesWithTheMostComments7.out     |   111 +
 .../sql/nereids_issuesWithTheMostComments8.out     |   111 +
 .../sql/nereids_mostForkedRepositories.out         |   111 +
 .../sql/nereids_mostPopularCommentsOnGithub.out    |     7 +
 ...eids_organizationsByTheNumberOfRepositories.out |   109 +
 .../nereids_organizationsByTheNumberOfStars.out    |   111 +
 .../nereids_organizationsByTheSizeOfCommunity.out  |     7 +
 .../nereids_proportionsBetweenStarsAndForks1.out   |   111 +
 .../nereids_proportionsBetweenStarsAndForks2.out   |   111 +
 .../nereids_proportionsBetweenStarsAndForks3.out   |   111 +
 .../nereids_proportionsBetweenStarsAndForks4.out   |    13 +
 .../nereids_proportionsBetweenStarsAndForks5.out   |    13 +
 .../nereids_repositoriesByAmountOfModifiedCode.out |   111 +
 .../nereids_repositoriesByTheNumberOfPushes.out    |   111 +
 ...epositoriesWithClickhouse_related_comments1.out |   109 +
 ...epositoriesWithClickhouse_related_comments2.out |   109 +
 ...ids_repositoriesWithDoris_related_comments1.out |   109 +
 ...ids_repositoriesWithDoris_related_comments2.out |   109 +
 ...nereids_repositoriesWithTheHighestGrowthYoY.out |   111 +
 ...s_repositoriesWithTheMaximumAmountOfIssues1.out |   111 +
 ...s_repositoriesWithTheMaximumAmountOfIssues2.out |   111 +
 ...s_repositoriesWithTheMaximumAmountOfIssues3.out |   111 +
 ...s_repositoriesWithTheMaximumAmountOfIssues4.out |   111 +
 ...sitoriesWithTheMaximumAmountOfPullRequests1.out |   111 +
 ...sitoriesWithTheMaximumAmountOfPullRequests2.out |   111 +
 ...esWithTheMaximumNumberOfAcceptedInvitations.out |   111 +
 ...sitoriesWithTheMostPeopleWhoHavePushAccess1.out |     7 +
 ...sitoriesWithTheMostPeopleWhoHavePushAccess2.out |     7 +
 ...sitoriesWithTheMostPeopleWhoHavePushAccess3.out |     7 +
 ...ids_repositoriesWithTheMostStarsOverOneDay1.out |     7 +
 ...ids_repositoriesWithTheMostStarsOverOneDay2.out |     7 +
 ...ids_repositoriesWithTheMostStarsOverOneDay3.out |     7 +
 ...repositoriesWithTheMostSteadyGrowthOverTime.out |     7 +
 ...ds_repositoriesWithTheWorstStagnation_order.out |   111 +
 .../sql/nereids_repositoryAffinityList1.out        |   111 +
 .../sql/nereids_repositoryAffinityList2.out        |     7 +
 .../sql/nereids_starsFromHeavyGithubUsers1.out     |   111 +
 .../sql/nereids_starsFromHeavyGithubUsers2.out     |   111 +
 .../sql/nereids_theLongestRepositoryNames1.out     |   111 +
 .../sql/nereids_theLongestRepositoryNames2.out     |   111 +
 .../sql/nereids_theMostToughCodeReviews.out        |   109 +
 ...ereids_theTotalNumberOfRepositoriesOnGithub.out |     7 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub1.out |    13 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub2.out |    13 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub3.out |    13 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub4.out |    13 +
 .../github_events_p2/sql/nereids_topLabels1.out    |     7 +
 .../github_events_p2/sql/nereids_topLabels2.out    |     7 +
 .../github_events_p2/sql/nereids_topLabels3.out    |     7 +
 .../sql/nereids_topRepositoriesByStars.out         |   111 +
 ...reids_whatIsTheBestDayOfTheWeekToCatchAStar.out |    25 +
 .../nereids_whoAreAllThosePeopleGivingStars1.out   |   111 +
 .../nereids_whoAreAllThosePeopleGivingStars2.out   |    13 +
 .../nereids_whoAreAllThosePeopleGivingStars3.out   |   111 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q1.1.out    |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q1.2.out    |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q1.3.out    |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q2.1.out    |   289 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q2.2.out    |    65 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q2.3.out    |    16 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q3.1.out    |   159 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q3.2.out    |   323 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q3.3.out    |    15 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q3.4.out    |     9 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q4.1.out    |    44 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q4.2.out    |   109 +
 .../data/ssb_sf0.1_p1/sql/nereids_flat_q4.3.out    |   211 +
 .../data/ssb_sf0.1_p1/sql/nereids_q1.1.out         |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_q1.2.out         |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_q1.3.out         |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_q2.1.out         |    49 +
 .../data/ssb_sf0.1_p1/sql/nereids_q2.2.out         |    17 +
 .../data/ssb_sf0.1_p1/sql/nereids_q2.3.out         |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_q3.1.out         |    34 +
 .../data/ssb_sf0.1_p1/sql/nereids_q3.2.out         |    57 +
 .../data/ssb_sf0.1_p1/sql/nereids_q3.3.out         |    10 +
 .../data/ssb_sf0.1_p1/sql/nereids_q3.4.out         |     9 +
 .../data/ssb_sf0.1_p1/sql/nereids_q4.1.out         |    14 +
 .../data/ssb_sf0.1_p1/sql/nereids_q4.2.out         |     9 +
 .../data/ssb_sf0.1_p1/sql/nereids_q4.3.out         |     9 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q1.1.out    |    13 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q1.2.out    |    13 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q1.3.out    |    13 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q2.1.out    |   569 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q2.2.out    |   121 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q2.3.out    |    25 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q3.1.out    |   311 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q3.2.out    |  1211 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q3.3.out    |    59 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q3.4.out    |    19 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q4.1.out    |    81 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q4.2.out    |   211 +
 .../data/ssb_sf100_p2/sql/nereids_flat_q4.3.out    |  1611 +
 .../data/ssb_sf100_p2/sql/nereids_q1.1.out         |    13 +
 .../data/ssb_sf100_p2/sql/nereids_q1.2.out         |    13 +
 .../data/ssb_sf100_p2/sql/nereids_q1.3.out         |    13 +
 .../data/ssb_sf100_p2/sql/nereids_q2.1.out         |   571 +
 .../data/ssb_sf100_p2/sql/nereids_q2.2.out         |   123 +
 .../data/ssb_sf100_p2/sql/nereids_q2.3.out         |    25 +
 .../data/ssb_sf100_p2/sql/nereids_q3.1.out         |   311 +
 .../data/ssb_sf100_p2/sql/nereids_q3.2.out         |  1211 +
 .../data/ssb_sf100_p2/sql/nereids_q3.3.out         |    59 +
 .../data/ssb_sf100_p2/sql/nereids_q3.4.out         |    19 +
 .../data/ssb_sf100_p2/sql/nereids_q4.1.out         |    81 +
 .../data/ssb_sf100_p2/sql/nereids_q4.2.out         |   211 +
 .../data/ssb_sf100_p2/sql/nereids_q4.3.out         |  1611 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q01.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q02.out   |  2522 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q03.out   |    98 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q04.out   |    17 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q05.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q06.out   |    54 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q07.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q08.out   |    14 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q09.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q10.out   |     7 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q11.out   |    97 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q12.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q13.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q14_1.out |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q14_2.out |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q15.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q16.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q17.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q18.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q19.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q20.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q21.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q22.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q23_1.out |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q23_2.out |    13 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q24_1.out |    16 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q24_2.out |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q25.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q26.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q27.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q28.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q29.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q30.out   |     7 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q31.out   |    60 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q32.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q33.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q34.out   |   460 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q35.out   |     7 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q36.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q37.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q38.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q39_1.out |   252 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q39_2.out |    23 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q40.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q41.out   |    13 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q42.out   |    19 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q43.out   |    15 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q44.out   |    19 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q45.out   |     7 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q46.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q47.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q48.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q49.out   |    41 +
 .../sql/nereids_q49_rewrite.out                    |    41 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q50.out   |    15 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q51.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q52.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q53.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q54.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q55.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q56.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q57.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q58.out   |    12 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q59.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q60.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q61.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q62.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q63.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q64.out   |    19 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q65.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q66.out   |    14 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q67.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q68.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q69.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q70.out   |    12 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q71.out   |  1027 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q72.out   |     7 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q73.out   |    14 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q74.out   |   101 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q75.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q76.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q77.out   |    53 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q78.out   |     7 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q79.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q80.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q81.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q82.out   |    11 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q83.out   |    30 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q84.out   |    34 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q85.out   |    15 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q86.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q87.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q88.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q89.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q90.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q91.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q92.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q93.out   |   109 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q94.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q95.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q96.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q97.out   |    10 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q98.out   |  2525 +
 .../data/tpcds_sf1_unique_p1/sql/nereids_q99.out   |    99 +
 .../tpcds_sf1_unique_p1/sql/nereids_sqlsmith01.out |     9 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q01.out  |    13 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q02.out  |    53 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q03.out  |    19 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q04.out  |    14 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q05.out  |    14 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q06.out  |    10 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q07.out  |    13 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q08.out  |    11 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q09.out  |   184 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q10.out  |    29 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q11.out  |  2550 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q12.out  |    11 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q13.out  |    46 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q14.out  |    10 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q15.out  |    10 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q16.out  |  2771 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q17.out  |    10 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q18.out  |    14 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q19.out  |    10 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q20.out  |    18 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q21.out  |    56 +
 .../data/tpch_sf0.1_unique_p1/sql/nereids_q22.out  |    16 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q01.out   |    17 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q02.out   |   209 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q03.out   |    29 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q04.out   |    19 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q05.out   |    19 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q06.out   |    11 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q07.out   |    17 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q08.out   |    13 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q09.out   |   359 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q10.out   |    49 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q11.out   |    13 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q12.out   |    13 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q13.out   |    99 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q14.out   |    11 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q15.out   |    11 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q16.out   | 55689 +++++++++++++++++++
 .../tpch_sf100_unique_sql_p2/sql/nereids_q17.out   |    11 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q18.out   |   209 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q19.out   |    11 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q20.out   | 35951 ++++++++++++
 .../tpch_sf100_unique_sql_p2/sql/nereids_q21.out   |   209 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q22.out   |    27 +
 .../sql/nereids_duplicateAggregationKeys.out       |   231 +
 .../data/yandex_metrica_p2/sql/nereids_like1.out   |    10 +
 .../data/yandex_metrica_p2/sql/nereids_like2.out   |    10 +
 .../data/yandex_metrica_p2/sql/nereids_like3.out   |    10 +
 .../data/yandex_metrica_p2/sql/nereids_like4.out   |    10 +
 .../data/yandex_metrica_p2/sql/nereids_loyalty.out |    21 +
 .../yandex_metrica_p2/sql/nereids_maxStringIf.out  |    29 +
 .../data/yandex_metrica_p2/sql/nereids_minMax.out  |    29 +
 .../sql/nereids_monotonicEvaluationSegfault.out    |    10 +
 .../sql/nereids_subqueryInWhere.out                |    10 +
 .../data/yandex_metrica_p2/sql/nereids_where01.out |     9 +
 .../data/yandex_metrica_p2/sql/nereids_where02.out |     9 +
 .../sql/nereids_CPUNetworkUtilization_order.sql    |    22 +
 .../suites/brown_p2/sql/nereids_averageMetrics.sql |    30 +
 .../brown_p2/sql/nereids_blockedIOServer.sql       |    12 +
 .../suites/brown_p2/sql/nereids_dailyUV.sql        |    11 +
 .../brown_p2/sql/nereids_dataTransferRate.sql      |    10 +
 .../suites/brown_p2/sql/nereids_doorOpen.sql       |    11 +
 .../brown_p2/sql/nereids_excessiveRequests.sql     |     9 +
 .../brown_p2/sql/nereids_hourlyNetworkTraffic.sql  |    23 +
 .../suites/brown_p2/sql/nereids_lowMemory.sql      |    18 +
 .../suites/brown_p2/sql/nereids_offlineMachine.sql |    11 +
 .../suites/brown_p2/sql/nereids_passwordLeaked.sql |     9 +
 .../sql/nereids_powerConsumptionMetrics.sql        |    42 +
 .../suites/brown_p2/sql/nereids_serverError.sql    |     7 +
 .../sql/nereids_temperatureReachFreezing.sql       |     7 +
 .../sql/nereids_temperatureVariation_order.sql     |    51 +
 .../sql/nereids_affinityByIssuesAndPRs1.sql        |    16 +
 .../sql/nereids_affinityByIssuesAndPRs2.sql        |    16 +
 .../sql/nereids_authorsWithTheMostPushes.sql       |    11 +
 .../github_events_p2/sql/nereids_countingStar1.sql |     3 +
 .../github_events_p2/sql/nereids_countingStar2.sql |     3 +
 .../github_events_p2/sql/nereids_countingStar3.sql |     3 +
 ...reids_distributionOfRepositoriesByStarCount.sql |    16 +
 .../sql/nereids_githubRoulette.sql                 |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears1.sql |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears2.sql |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears3.sql |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears4.sql |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears5.sql |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears6.sql |     3 +
 ...heListOfTopRepositoriesChangedOverTheYears7.sql |    30 +
 ..._howHasTheTotalNumberOfStarsChangedOverTime.sql |     3 +
 .../sql/nereids_issuesWithTheMostComments1.sql     |     3 +
 .../sql/nereids_issuesWithTheMostComments2.sql     |     3 +
 .../sql/nereids_issuesWithTheMostComments3.sql     |    19 +
 .../sql/nereids_issuesWithTheMostComments4.sql     |    11 +
 .../sql/nereids_issuesWithTheMostComments5.sql     |    11 +
 .../sql/nereids_issuesWithTheMostComments6.sql     |    13 +
 .../sql/nereids_issuesWithTheMostComments7.sql     |    11 +
 .../sql/nereids_issuesWithTheMostComments8.sql     |    14 +
 .../sql/nereids_mostForkedRepositories.sql         |     3 +
 .../sql/nereids_mostPopularCommentsOnGithub.sql    |     3 +
 ...eids_organizationsByTheNumberOfRepositories.sql |    16 +
 .../nereids_organizationsByTheNumberOfStars.sql    |    10 +
 .../nereids_organizationsByTheSizeOfCommunity.sql  |    25 +
 .../nereids_proportionsBetweenStarsAndForks1.sql   |    19 +
 .../nereids_proportionsBetweenStarsAndForks2.sql   |    20 +
 .../nereids_proportionsBetweenStarsAndForks3.sql   |    20 +
 .../nereids_proportionsBetweenStarsAndForks4.sql   |    15 +
 .../nereids_proportionsBetweenStarsAndForks5.sql   |    23 +
 .../nereids_repositoriesByAmountOfModifiedCode.sql |    14 +
 .../nereids_repositoriesByTheNumberOfPushes.sql    |    19 +
 ...epositoriesWithClickhouse_related_comments1.sql |     3 +
 ...epositoriesWithClickhouse_related_comments2.sql |    19 +
 ...ids_repositoriesWithDoris_related_comments1.sql |     3 +
 ...ids_repositoriesWithDoris_related_comments2.sql |    19 +
 ...nereids_repositoriesWithTheHighestGrowthYoY.sql |    22 +
 ...s_repositoriesWithTheMaximumAmountOfIssues1.sql |     3 +
 ...s_repositoriesWithTheMaximumAmountOfIssues2.sql |    20 +
 ...s_repositoriesWithTheMaximumAmountOfIssues3.sql |    21 +
 ...s_repositoriesWithTheMaximumAmountOfIssues4.sql |    20 +
 ...sitoriesWithTheMaximumAmountOfPullRequests1.sql |     3 +
 ...sitoriesWithTheMaximumAmountOfPullRequests2.sql |     3 +
 ...esWithTheMaximumNumberOfAcceptedInvitations.sql |    19 +
 ...sitoriesWithTheMostPeopleWhoHavePushAccess1.sql |    15 +
 ...sitoriesWithTheMostPeopleWhoHavePushAccess2.sql |    15 +
 ...sitoriesWithTheMostPeopleWhoHavePushAccess3.sql |    18 +
 ...ids_repositoriesWithTheMostStarsOverOneDay1.sql |    27 +
 ...ids_repositoriesWithTheMostStarsOverOneDay2.sql |    27 +
 ...ids_repositoriesWithTheMostStarsOverOneDay3.sql |     3 +
 ...repositoriesWithTheMostSteadyGrowthOverTime.sql |    22 +
 ...ds_repositoriesWithTheWorstStagnation_order.sql |    22 +
 .../sql/nereids_repositoryAffinityList1.sql        |    15 +
 .../sql/nereids_repositoryAffinityList2.sql        |    25 +
 .../sql/nereids_starsFromHeavyGithubUsers1.sql     |    15 +
 .../sql/nereids_starsFromHeavyGithubUsers2.sql     |    17 +
 .../sql/nereids_theLongestRepositoryNames1.sql     |     3 +
 .../sql/nereids_theLongestRepositoryNames2.sql     |     3 +
 .../sql/nereids_theMostToughCodeReviews.sql        |    12 +
 ...ereids_theTotalNumberOfRepositoriesOnGithub.sql |     3 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub1.sql |     3 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub2.sql |     3 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub3.sql |     3 +
 .../sql/nereids_theTotalNumberOfUsersOnGithub4.sql |     3 +
 .../github_events_p2/sql/nereids_topLabels1.sql    |    11 +
 .../github_events_p2/sql/nereids_topLabels2.sql    |    11 +
 .../github_events_p2/sql/nereids_topLabels3.sql    |    16 +
 .../sql/nereids_topRepositoriesByStars.sql         |     3 +
 ...reids_whatIsTheBestDayOfTheWeekToCatchAStar.sql |     3 +
 .../nereids_whoAreAllThosePeopleGivingStars1.sql   |     3 +
 .../nereids_whoAreAllThosePeopleGivingStars2.sql   |     3 +
 .../nereids_whoAreAllThosePeopleGivingStars3.sql   |    15 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q1.1.sql  |    26 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q1.2.sql  |    26 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q1.3.sql  |    27 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q2.1.sql  |    26 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q2.2.sql  |    29 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q2.3.sql  |    28 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q3.1.sql  |    31 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q3.2.sql  |    31 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q3.3.sql  |    31 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q3.4.sql  |    31 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q4.1.sql  |    29 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q4.2.sql  |    35 +
 .../suites/ssb_sf0.1_p1/sql/nereids_flat_q4.3.sql  |    31 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q1.1.sql       |    26 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q1.2.sql       |    26 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q1.3.sql       |    27 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q2.1.sql       |    28 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q2.2.sql       |    29 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q2.3.sql       |    28 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q3.1.sql       |    30 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q3.2.sql       |    30 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q3.3.sql       |    32 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q3.4.sql       |    32 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q4.1.sql       |    32 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q4.2.sql       |    33 +
 .../suites/ssb_sf0.1_p1/sql/nereids_q4.3.sql       |    31 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q1.1.sql  |    26 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q1.2.sql  |    26 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q1.3.sql  |    27 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q2.1.sql  |    26 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q2.2.sql  |    29 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q2.3.sql  |    28 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q3.1.sql  |    31 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q3.2.sql  |    31 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q3.3.sql  |    31 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q3.4.sql  |    31 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q4.1.sql  |    29 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q4.2.sql  |    35 +
 .../suites/ssb_sf100_p2/sql/nereids_flat_q4.3.sql  |    31 +
 .../suites/ssb_sf100_p2/sql/nereids_q1.1.sql       |    26 +
 .../suites/ssb_sf100_p2/sql/nereids_q1.2.sql       |    26 +
 .../suites/ssb_sf100_p2/sql/nereids_q1.3.sql       |    27 +
 .../suites/ssb_sf100_p2/sql/nereids_q2.1.sql       |    28 +
 .../suites/ssb_sf100_p2/sql/nereids_q2.2.sql       |    29 +
 .../suites/ssb_sf100_p2/sql/nereids_q2.3.sql       |    28 +
 .../suites/ssb_sf100_p2/sql/nereids_q3.1.sql       |    30 +
 .../suites/ssb_sf100_p2/sql/nereids_q3.2.sql       |    30 +
 .../suites/ssb_sf100_p2/sql/nereids_q3.3.sql       |    32 +
 .../suites/ssb_sf100_p2/sql/nereids_q3.4.sql       |    32 +
 .../suites/ssb_sf100_p2/sql/nereids_q4.1.sql       |    32 +
 .../suites/ssb_sf100_p2/sql/nereids_q4.2.sql       |    33 +
 .../suites/ssb_sf100_p2/sql/nereids_q4.3.sql       |    31 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q01.sql |    31 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q02.sql |    82 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q03.sql |    18 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q04.sql |    95 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q05.sql |   146 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q06.sql |    33 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q07.sql |    27 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q08.sql |   443 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q09.sql |    86 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q10.sql |    59 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q11.sql |    69 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q12.sql |    21 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q13.sql |    47 +
 .../tpcds_sf1_unique_p1/sql/nereids_q14_1.sql      |   167 +
 .../tpcds_sf1_unique_p1/sql/nereids_q14_2.sql      |   151 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q15.sql |    21 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q16.sql |    32 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q17.sql |    43 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q18.sql |    36 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q19.sql |    27 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q20.sql |    21 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q21.sql |    25 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q22.sql |    18 +
 .../tpcds_sf1_unique_p1/sql/nereids_q23_1.sql      |    90 +
 .../tpcds_sf1_unique_p1/sql/nereids_q23_2.sql      |   106 +
 .../tpcds_sf1_unique_p1/sql/nereids_q24_1.sql      |    48 +
 .../tpcds_sf1_unique_p1/sql/nereids_q24_2.sql      |    48 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q25.sql |    38 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q26.sql |    27 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q27.sql |    34 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q28.sql |    77 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q29.sql |    37 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q30.sql |    51 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q31.sql |    65 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q32.sql |    21 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q33.sql |    90 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q34.sql |    37 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q35.sql |    62 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q36.sql |    29 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q37.sql |    21 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q38.sql |    40 +
 .../tpcds_sf1_unique_p1/sql/nereids_q39_1.sql      |    53 +
 .../tpcds_sf1_unique_p1/sql/nereids_q39_2.sql      |    54 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q40.sql |    22 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q41.sql |    71 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q42.sql |    19 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q43.sql |    23 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q44.sql |    70 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q45.sql |    30 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q46.sql |    42 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q47.sql |    64 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q48.sql |    36 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q49.sql |   120 +
 .../sql/nereids_q49_rewrite.sql                    |   115 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q50.sql |    38 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q51.sql |    55 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q52.sql |    19 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q53.sql |    29 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q54.sql |    77 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q55.sql |    18 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q56.sql |    90 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q57.sql |    60 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q58.sql |    95 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q59.sql |    76 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q60.sql |    90 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q61.sql |    54 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q62.sql |    28 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q63.sql |    29 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q64.sql |   112 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q65.sql |    49 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q66.sql |   148 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q67.sql |    43 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q68.sql |    44 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q69.sql |    51 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q70.sql |    36 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q71.sql |    53 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q72.sql |    34 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q73.sql |    36 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q74.sql |    60 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q75.sql |    85 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q76.sql |    58 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q77.sql |   122 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q78.sql |    78 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q79.sql |    36 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q80.sql |   108 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q81.sql |    49 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q82.sql |    21 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q83.sql |    89 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q84.sql |    22 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q85.sql |    52 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q86.sql |    18 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q87.sql |    42 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q88.sql |   164 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q89.sql |    32 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q90.sql |    34 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q91.sql |    31 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q92.sql |    22 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q93.sql |    23 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q94.sql |    32 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q95.sql |    43 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q96.sql |    17 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q97.sql |    37 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q98.sql |    20 +
 .../suites/tpcds_sf1_unique_p1/sql/nereids_q99.sql |    28 +
 .../tpcds_sf1_unique_p1/sql/nereids_sqlsmith01.sql |     3 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q01.sql       |    24 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q02.sql       |    44 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q03.sql       |    26 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q04.sql       |    21 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q05.sql       |    27 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q06.sql       |    13 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q07.sql       |    41 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q08.sql       |    40 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q09.sql       |    34 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q10.sql       |    35 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q11.sql       |    30 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q12.sql       |    31 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q13.sql       |    23 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q14.sql       |    15 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q15.sql       |    21 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q16.sql       |    32 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q17.sql       |    18 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q18.sql       |    36 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q19.sql       |    37 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q20.sql       |    35 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q21.sql       |    41 +
 .../tpch_sf0.1_unique_p1/sql/nereids_q22.sql       |    37 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q01.sql   |    25 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q02.sql   |    44 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q03.sql   |    26 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q04.sql   |    21 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q05.sql   |    27 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q06.sql   |    13 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q07.sql   |    41 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q08.sql   |    40 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q09.sql   |    34 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q10.sql   |    35 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q11.sql   |    30 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q12.sql   |    31 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q13.sql   |    23 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q14.sql   |    15 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q15.sql   |    31 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q16.sql   |    32 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q17.sql   |    18 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q18.sql   |    36 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q19.sql   |    37 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q20.sql   |    35 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q21.sql   |    35 +
 .../tpch_sf100_unique_sql_p2/sql/nereids_q22.sql   |    37 +
 .../sql/nereids_duplicateAggregationKeys.sql       |     3 +
 .../suites/yandex_metrica_p2/sql/nereids_like1.sql |     3 +
 .../suites/yandex_metrica_p2/sql/nereids_like2.sql |     3 +
 .../suites/yandex_metrica_p2/sql/nereids_like3.sql |     3 +
 .../suites/yandex_metrica_p2/sql/nereids_like4.sql |     3 +
 .../yandex_metrica_p2/sql/nereids_loyalty.sql      |    15 +
 .../yandex_metrica_p2/sql/nereids_maxStringIf.sql  |     3 +
 .../yandex_metrica_p2/sql/nereids_minMax.sql       |     3 +
 .../sql/nereids_monotonicEvaluationSegfault.sql    |     3 +
 .../sql/nereids_subqueryInWhere.sql                |     3 +
 .../yandex_metrica_p2/sql/nereids_where01.sql      |     3 +
 .../yandex_metrica_p2/sql/nereids_where02.sql      |     3 +
 608 files changed, 138098 insertions(+)

diff --git a/regression-test/data/brown_p2/sql/nereids_CPUNetworkUtilization_order.out b/regression-test/data/brown_p2/sql/nereids_CPUNetworkUtilization_order.out
new file mode 100644
index 0000000000..1f898b257b
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_CPUNetworkUtilization_order.out
@@ -0,0 +1,12 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_CPUNetworkUtilization_order --
+0
+
+-- !nereids_CPUNetworkUtilization_order_2 --
+0
+
+-- !nereids_CPUNetworkUtilization_order_3 --
+anansi	0E-9	22.499999744	0.142686086	938.950000640	2355335.637499904	9177.160292675	216.880005120	2354536.236711936	13467.316295748
+aragog	0E-9	31.139999744	0.466084818	1318.689964032	27836488.351744000	328922.023920031	308.950007808	40642403.643686912	825490.561812005
+urd	0E-9	23.493332992	1.499065356	1168.349986816	368025.614155776	22100.285069203	220.950003712	108069.656723456	8129.441452354
+
diff --git a/regression-test/data/brown_p2/sql/nereids_averageMetrics.out b/regression-test/data/brown_p2/sql/nereids_averageMetrics.out
new file mode 100644
index 0000000000..4b16637573
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_averageMetrics.out
@@ -0,0 +1,264 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_averageMetrics --
+0
+
+-- !nereids_averageMetrics_2 --
+0
+
+-- !nereids_averageMetrics_3 --
+2017-01-01	0	0.12023027675847213	0.09362472227464119	0.0874438889300412	2170359.9625	8388604.0
+2017-01-01	1	0.06573361170788607	0.0625577774674942	0.056119999939498184	2170050.0541666667	8388604.0
+2017-01-01	2	0.0640669446438551	0.08363861156006654	0.07870277819068482	2170090.845833333	8388604.0
+2017-01-01	3	0.09865416679531336	0.10061388906712333	0.1035800002515316	2169553.683333333	8388604.0
+2017-01-01	4	0.09523666687309743	0.09710055502752463	0.0957255561351	2167171.0	8388604.0
+2017-01-01	5	0.07341333335886399	0.08771055564284325	0.09117277674959041	2169601.075	8388604.0
+2017-01-01	6	0.12499666611353556	0.12358194390932718	0.14162249937653543	2169959.2041666666	8388604.0
+2017-01-01	7	0.11430861018598079	0.09302722246696551	0.08682444394410899	2170149.683333333	8388604.0
+2017-01-01	8	0.10646722217400868	0.09895083370308082	0.10322805638425052	2167045.4833333334	8388604.0
+2017-01-01	9	0.12251555447777113	0.10479388938595852	0.11136138871467362	2162012.7875	8388604.0
+2017-01-01	10	0.11412361015876134	0.0965374997506539	0.09687638870964292	2161791.529166667	8388604.0
+2017-01-01	11	0.11665944419801236	0.1013836105975012	0.1008749992067654	2162073.875	8388604.0
+2017-01-01	12	0.13202694319188596	0.12223999947309494	0.1293141655837341	2161852.1416666666	8388604.0
+2017-01-01	13	0.13301833334068458	0.12085999964425961	0.12991249958674114	2161914.9833333334	8388604.0
+2017-01-01	14	0.13185360990464687	0.12042166665196419	0.12537749847009158	2161910.5083333333	8388604.0
+2017-01-01	15	0.12312361064056555	0.1071613892291983	0.11218249985928802	2161943.1625	8388604.0
+2017-01-01	16	0.12113694337507089	0.09912972232947746	0.10122527798327306	2162018.1166666667	8388604.0
+2017-01-01	17	0.11475583215554555	0.09416805543005466	0.07953444474066297	2161867.325	8388604.0
+2017-01-01	18	0.11836805505057175	0.09412694449226061	0.09295555571249375	2161808.3541666665	8388604.0
+2017-01-01	19	0.12196722105145455	0.09792555570602417	0.10160416682774667	2161681.9125	8388604.0
+2017-01-01	20	0.09463472279409567	0.09313277794669071	0.09773722252769707	2161829.683333333	8388604.0
+2017-01-01	21	0.10291055515408516	0.09544166680425406	0.09454444425258164	2161906.2	8388604.0
+2017-01-01	22	0.07539472244679928	0.06954305566226443	0.0663477773196064	2161942.8291666666	8388604.0
+2017-01-01	23	0.09157972224056721	0.09328861112395923	0.08586444450969187	2161994.05	8388604.0
+2017-01-02	0	0.11643944419920445	0.1134722225368023	0.11106166699707197	2161844.6416666666	8388604.0
+2017-01-02	1	0.11753805540502071	0.09894166635349393	0.0991397222969681	2161888.5208333335	8388604.0
+2017-01-02	2	0.10927694452305635	0.09175833308448395	0.09419027830590494	2161895.933333333	8388604.0
+2017-01-02	3	0.11750833193461101	0.10710861037174861	0.09911694461188744	2160943.004166667	8388604.0
+2017-01-02	4	0.16006777683893839	0.15108305470397074	0.15381611017025232	2159976.3375	8388604.0
+2017-01-02	5	0.12559138784805934	0.11111666653305292	0.1124097219047447	2160101.933333333	8388604.0
+2017-01-02	6	0.12220388799905776	0.09916305541992188	0.08808777770900633	2160372.5	8388604.0
+2017-01-02	7	0.09964111087222895	0.09401000011712313	0.0919058339476275	2160514.6	8388604.0
+2017-01-02	8	0.10217888851960501	0.08666555558641752	0.08541472238333275	2160668.1	8388604.0
+2017-01-02	9	0.08228083352247874	0.0942005558560292	0.1027352773885165	2160456.091666667	8388604.0
+2017-01-02	10	0.08421888947486877	0.09449861086905002	0.08481555470692305	2160655.85	8388604.0
+2017-01-02	11	0.12303055475155512	0.11588388836632173	0.12435083231733492	2160461.720833333	8388604.0
+2017-01-02	12	0.11161638864626487	0.1100330556742847	0.11490638894028962	2160493.2333333334	8388604.0
+2017-01-02	13	0.12921444289386272	0.11345722203453382	0.11001138850891341	2160430.4125	8388604.0
+2017-01-02	14	0.11105805598199367	0.09359888865922888	0.08493416655886298	2160381.591666667	8388604.0
+2017-01-02	15	0.11183222153534492	0.10292472159489989	0.0906275008067799	2160393.1333333333	8388604.0
+2017-01-02	16	0.08617916715641817	0.0910433333987991	0.10536333332420326	2160193.808333333	8388604.0
+2017-01-02	17	0.0878711111843586	0.08413500000412265	0.07315277799886341	2160329.4875	8388604.0
+2017-01-02	18	0.0967963883653283	0.09547444383303325	0.08687333262447888	2160225.154166667	8388604.0
+2017-01-02	19	0.06433361110587915	0.08074055571729938	0.06748694431929228	2160357.2416666667	8388604.0
+2017-01-02	20	0.08769361103574434	0.09626222280785442	0.09008638854041541	2160311.7875	8388604.0
+2017-01-02	21	0.11698249901334444	0.10602944449832043	0.105711667672828	2160373.0708333333	8388604.0
+2017-01-02	22	0.08861805585523447	0.080060277475665	0.09200138879241422	2160149.3833333333	8388604.0
+2017-01-02	23	0.09397055556376775	0.0953636114175121	0.08649277772832041	2160389.875	8388604.0
+2017-01-03	0	0.08480277775476376	0.0881111114906768	0.1002250003288888	2160202.345833333	8388604.0
+2017-01-03	1	0.08412027824670076	0.08960694453368584	0.08068527791086429	2160146.933333333	8388604.0
+2017-01-03	2	0.07765083350241184	0.09546111101905505	0.09552611066416526	2160108.6666666665	8388604.0
+2017-01-03	3	0.11927249878644944	0.09875499984870355	0.09649555630118509	2160172.004166667	8388604.0
+2017-01-03	4	0.1416475004206101	0.14051166692127784	0.1379869445692748	2158355.8854166665	8388604.0
+2017-01-03	5	0.11167611107230187	0.09206805570671955	0.10099944511118035	2160156.725	8388604.0
+2017-01-03	6	0.12186638774971167	0.11450888911883036	0.10943611183514197	2160072.970833333	8388604.0
+2017-01-03	7	0.12645916591087977	0.11633722229550282	0.12031111099446813	2159854.4541666666	8388604.0
+2017-01-03	8	0.12138416655361653	0.10111111116906008	0.10423249863088131	2159847.154166667	8388604.0
+2017-01-03	9	0.09084388942768176	0.09078694476435582	0.08977777708011368	2159932.2708333335	8388604.0
+2017-01-03	10	0.11166749981542429	0.0992622218405207	0.10057527786896875	2159912.379166667	8388604.0
+2017-01-03	11	0.10902583400408426	0.10831500006218751	0.10890444340184331	2159957.9375	8388604.0
+2017-01-03	12	0.11022166566302379	0.08308555521070957	0.07808333370679368	2159977.825	8388604.0
+2017-01-03	13	0.09131916643430789	0.10051250047981738	0.09484805539250374	2159764.154166667	8388604.0
+2017-01-03	14	0.10627000058690707	0.10664000002046427	0.12761138857846768	2159925.5791666666	8388604.0
+2017-01-03	15	0.1186027771482865	0.09735888863603274	0.09518999961825708	2160024.1708333334	8388604.0
+2017-01-03	16	0.09364305542161068	0.09928194458285967	0.10330888799314077	2159767.808333333	8388604.0
+2017-01-03	17	0.08179833373675743	0.07355138879890243	0.06907388894663503	2159958.6666666665	8388604.0
+2017-01-03	18	0.11627833272020022	0.11544333299001058	0.11665305566663543	2159795.4166666665	8388604.0
+2017-01-03	19	0.08969527818262577	0.0845941667134563	0.09310777739156037	2159725.275	8388604.0
+2017-01-03	20	0.11439222258826097	0.11282916689912478	0.11416083332927277	2159704.8125	8388604.0
+2017-01-03	21	0.11115861137708029	0.09447166634102662	0.10062500031975409	2159820.35	8388604.0
+2017-01-03	22	0.0789297226195534	0.09867638933161894	0.11645444434058543	2159670.7125	8388604.0
+2017-01-03	23	0.09039777809133133	0.07828999987492959	0.0749988882103935	2159820.475	8388604.0
+2017-01-04	0	0.09144805576652289	0.1059711108294626	0.09972944387312357	2159546.966666667	8388604.0
+2017-01-04	1	0.14011888777216275	0.1392694445947806	0.14483611073810607	2159838.1375	8388604.0
+2017-01-04	2	0.12267083252469699	0.09988777774075668	0.10562166729941964	2159638.3625	8388604.0
+2017-01-04	3	0.08219250037024418	0.08414944382384419	0.08401111128429571	2159485.908333333	8388604.0
+2017-01-04	4	0.10787166642645994	0.12027194499969482	0.11356499836159249	2158027.8208333333	8388604.0
+2017-01-04	5	0.1191363883515199	0.09875972252339124	0.10850583375043546	2159512.029166667	8388604.0
+2017-01-04	6	0.09163138878842195	0.09442500015720726	0.09266166568074065	2159091.2125	8388604.0
+2017-01-04	7	0.09982722153266271	0.08437194420645634	0.08015055571837972	2158777.3916666666	8388604.0
+2017-01-04	8	0.10133777769903342	0.09118944387882948	0.08264638890589898	2158855.4916666667	8388604.0
+2017-01-04	9	0.08981722226987282	0.10164055532465378	0.09779472219524905	2158757.125	8388604.0
+2017-01-04	10	0.11853444452087085	0.09684166616449753	0.0965783328594019	2158859.191666667	8388604.0
+2017-01-04	11	0.11727194388707479	0.09830833400289217	0.09789777753564219	2158554.4791666665	8388604.0
+2017-01-04	12	0.10132972213129203	0.09658222198486328	0.0999491670615195	2158896.575	8388604.0
+2017-01-04	13	0.11128361038863659	0.10659083351492882	0.10543388822115958	2158737.845833333	8388604.0
+2017-01-04	14	0.09594555577884117	0.08428166648373007	0.08276361142052338	2158608.025	8388604.0
+2017-01-04	15	0.10805555457870165	0.10575361143176755	0.10401194412067222	2158767.058333333	8388604.0
+2017-01-04	16	0.11955472143987815	0.11092999953155716	0.10593249983697509	2158746.0416666665	8388604.0
+2017-01-04	17	0.1199708325167497	0.10015722208966811	0.09378666628035717	2158559.3625	8388604.0
+2017-01-04	18	0.10466527709116538	0.11163638783618808	0.11287583271429563	2158610.966666667	8388604.0
+2017-01-04	19	0.1041152777771155	0.08298000056917469	0.07214083339107068	2158338.6083333334	8388604.0
+2017-01-04	20	0.08938333292802175	0.11257583300272624	0.1211222217263033	2158588.6666666665	8388604.0
+2017-01-04	21	0.08806083338956038	0.0801861109988143	0.06615805615001591	2158472.183333333	8388604.0
+2017-01-04	22	0.09270361165205637	0.09680277754863104	0.10423916654156831	2158592.875	8388604.0
+2017-01-04	23	0.08201500028371811	0.08325611098359029	0.08631694439439647	2158481.433333333	8388604.0
+2017-01-05	0	0.0717125004157424	0.08324749997506539	0.08501305555158373	2158695.9583333335	8388604.0
+2017-01-05	1	0.11306388825178146	0.1021972224737207	0.0872533325649177	2158628.3958333335	8388604.0
+2017-01-05	2	0.13312555551528932	0.12725722243388493	0.12862388936434097	2158665.6375	8388604.0
+2017-01-05	3	0.13934444412589073	0.1324788889537255	0.13653222215361893	2157396.7125	8388604.0
+2017-01-05	4	0.14370694421231747	0.12981777663032215	0.14072833293078776	2155651.216666667	8388604.0
+2017-01-05	5	0.1403319432089726	0.13922999979307255	0.14209944442845882	2156797.2875	8388604.0
+2017-01-05	6	0.12512749855717023	0.10534750067939361	0.10296472245778811	2157300.9375	8388604.0
+2017-01-05	7	0.13472472143669922	0.12085194494575262	0.11856944411896014	2157813.65	8388604.0
+2017-01-05	8	0.10596499977012476	0.08730222253749768	0.09061055544298142	2157630.7916666665	8388604.0
+2017-01-05	9	0.09839194479087988	0.08596749994903803	0.07934388877668729	2157551.466666667	8388604.0
+2017-01-05	10	0.09058222187062105	0.10841277812918028	0.11727638838735098	2157664.95	8388604.0
+2017-01-05	11	0.11202916651964187	0.09312694423521559	0.0871952785179019	2157377.9125	8388604.0
+2017-01-05	12	0.12679055494566757	0.11457722214981914	0.12212222265273644	2157558.1458333335	8388604.0
+2017-01-05	13	0.07202888894826173	0.07222666672120491	0.08037555555735404	2157626.95	8388604.0
+2017-01-05	14	0.10506222229450941	0.11781222249070804	0.12231833232751038	2157781.783333333	8388604.0
+2017-01-05	15	0.10378055541465679	0.09676000062997142	0.10480055537385245	2157442.65	8388604.0
+2017-01-05	16	0.1224249995003144	0.10287333379189173	0.1042575004665802	2157471.3375	8388604.0
+2017-01-05	17	0.11276777721941471	0.09595166662087043	0.09540694400202483	2157592.2083333335	8388604.0
+2017-01-05	18	0.10727083310484886	0.09358222257966796	0.09164000028201068	2157496.558333333	8388604.0
+2017-01-05	19	0.12457777708768844	0.11393722270925839	0.09907527711087218	2157470.220833333	8388604.0
+2017-01-05	20	0.12004749998450279	0.10250833251823982	0.09964777772159626	2157689.183333333	8388604.0
+2017-01-05	21	0.09280749969184399	0.08252055554961164	0.07384833312050129	2157615.966666667	8388604.0
+2017-01-05	22	0.12193222126613061	0.1165772213290135	0.13440000043871503	2157412.325	8388604.0
+2017-01-05	23	0.12363944388926029	0.10315083401898544	0.09123750037979335	2157480.425	8388604.0
+2017-01-06	0	0.14606888890266417	0.14045694426943858	0.14151888871371435	2157526.8916666666	8388604.0
+2017-01-06	1	0.11137166656553746	0.08777305539697408	0.07703472280797238	2157528.0708333333	8388604.0
+2017-01-06	2	0.09189194391171138	0.08420805508891742	0.08945388836630931	2157556.9791666665	8388604.0
+2017-01-06	3	0.11062361095100641	0.1174763890914619	0.12368166734231636	2156442.5833333335	8388604.0
+2017-01-06	4	0.15077444252868494	0.1336122221002976	0.14231250034257148	2154126.595833333	8388604.0
+2017-01-06	5	0.08335222204526266	0.08269611115877827	0.09117472184589133	2155150.8375	8388604.0
+2017-01-06	6	0.08438222203403711	0.08668333354095618	0.07395861129819727	2155560.65	8388604.0
+2017-01-06	7	0.10765249965091546	0.10485277759532134	0.10753749987731377	2156069.004166667	8388604.0
+2017-01-06	8	0.11446972172707319	0.09703583338608344	0.08741638879291713	2156031.075	8388604.0
+2017-01-06	9	0.06034638875474532	0.07753249984234571	0.08067666665301658	2155965.375	8388604.0
+2017-01-06	10	0.09297333341091871	0.10178500022739172	0.10280888836520413	2155782.495833333	8388604.0
+2017-01-06	11	0.09418888924022516	0.07414861085514228	0.06712055572813067	2155963.316666667	8388604.0
+2017-01-06	12	0.08447166650245587	0.08856000021720926	0.08750777832853297	2155933.2375	8388604.0
+2017-01-06	13	0.10033833322425684	0.09205083319296439	0.10012944373496187	2156056.5083333333	8388604.0
+2017-01-06	14	0.12480916579564412	0.11884888854498664	0.11095666622277349	2155958.2	8388604.0
+2017-01-06	15	0.10974416583776474	0.09111055533091227	0.09935527763833912	2156070.2875	8388604.0
+2017-01-06	16	0.09751916670550903	0.08861972233280539	0.0855072219739668	2155921.0375	8388604.0
+2017-01-06	17	0.07831722212334474	0.08212027785678705	0.07779611045261844	2155709.754166667	8388604.0
+2017-01-06	18	0.05849805548787117	0.0752005553804338	0.06946805582071344	2155935.3125	8388604.0
+2017-01-06	19	0.10868555543323358	0.11651527745028337	0.1208350005482013	2155951.129166667	8388604.0
+2017-01-06	20	0.12161388831833998	0.10482305486996969	0.09871472232431794	2155670.2041666666	8388604.0
+2017-01-06	21	0.12383972133199374	0.10861527801801761	0.09750805590689803	2155606.879166667	8388604.0
+2017-01-06	22	0.11690166592597961	0.10696944442267219	0.11853694523839901	2155773.7708333335	8388604.0
+2017-01-06	23	0.1241477768868208	0.10161472236116727	0.10429055508575402	2155512.175	8388604.0
+2017-01-07	0	0.13435361062486967	0.127694444420437	0.13321777830521267	2155834.0875	8388604.0
+2017-01-07	1	0.11266194432973861	0.09735861128817001	0.09657888838555664	2155860.3041666667	8388604.0
+2017-01-07	2	0.11044749952852725	0.09410805537675818	0.09852555607018681	2155723.025	8388604.0
+2017-01-07	3	0.08386305558184783	0.08519916646182538	0.08837527875051213	2154415.5541666667	8388604.0
+2017-01-07	4	0.1288394436240196	0.1224238890533646	0.12212777726623851	2153784.0416666665	8388604.0
+2017-01-07	5	0.11153138789037863	0.09476888900001844	0.10457305494540682	2155218.7666666666	8388604.0
+2017-01-07	6	0.13171166591346264	0.12011250002930561	0.12435944453657916	2154716.6375	8388604.0
+2017-01-07	7	0.1250991656134526	0.10306833405047655	0.09455527810302253	2154865.1625	8388604.0
+2017-01-07	8	0.08763083343704542	0.07407583314925432	0.075451945020662	2154932.4791666665	8388604.0
+2017-01-07	9	0.10922749992460012	0.11359805551668008	0.1197013890525947	2154903.966666667	8388604.0
+2017-01-07	10	0.10072972203294436	0.08804055557896694	0.07780888887355104	2154806.4541666666	8388604.0
+2017-01-07	11	0.10521750040352344	0.10553583341340224	0.11668888939311728	2154747.404166667	8388604.0
+2017-01-07	12	0.12571166617174942	0.10943888947367668	0.10949555593542755	2154755.6	8388604.0
+2017-01-07	13	0.1249544436732928	0.10555499953528245	0.09935222254037702	2154928.1791666667	8388604.0
+2017-01-07	14	0.12590833206971486	0.11718000036974748	0.11581166570928568	2154793.3208333333	8388604.0
+2017-01-07	15	0.09265305530279874	0.09002861107389132	0.10350138941187954	2154600.504166667	8388604.0
+2017-01-07	16	0.09222888884445031	0.08801750003670653	0.09472444411367179	2154554.7958333334	8388604.0
+2017-01-07	17	0.10075027775019407	0.08458694421375791	0.0766372220115348	2154598.1041666665	8388604.0
+2017-01-07	18	0.10147361134489377	0.1008458336815238	0.10167166577884927	2154738.029166667	8388604.0
+2017-01-07	19	0.09666888838013013	0.10691555549080173	0.11004722161063303	2154661.1041666665	8388604.0
+2017-01-07	20	0.10799333316584428	0.08293166682124138	0.07982333340575375	2154369.4291666667	8388604.0
+2017-01-07	21	0.10198527785638968	0.0947680555904905	0.09041472262082001	2154595.566666667	8388604.0
+2017-01-07	22	0.06630444433540106	0.07041638844336072	0.06661194454839764	2154370.2666666666	8388604.0
+2017-01-07	23	0.10210361083348592	0.11088194443533818	0.10942583287833259	2150071.5416666665	8388604.0
+2017-01-08	0	0.07928777808944384	0.06945944475010038	0.06329444413422607	2146417.066666667	8388604.0
+2017-01-08	1	0.07957833347221216	0.09387944480404257	0.10099555531342048	2146481.654166667	8388604.0
+2017-01-08	2	0.10864666601022084	0.08729694460829099	0.07111861132240543	2146330.325	8388604.0
+2017-01-08	3	0.11374444402754307	0.10025749920556942	0.10012444289168343	2145088.841666667	8388604.0
+2017-01-08	4	0.11595472171902657	0.12547527768959602	0.1329413877557575	2144110.78125	8388604.0
+2017-01-08	5	0.11365055528779824	0.09868472249557575	0.09432444457391588	2146392.85	8388604.0
+2017-01-08	6	0.1237236101180315	0.10569250031063954	0.09282444434308369	2145716.6375	8388604.0
+2017-01-08	7	0.1273477764179309	0.11354888814191023	0.11857166656603416	2145075.995833333	8388604.0
+2017-01-08	8	0.1365463883926471	0.12374055478721857	0.11750666686906092	2145025.8916666666	8388604.0
+2017-01-08	9	0.10061083336671194	0.08410111144185066	0.08406888877119248	2145091.4	8388604.0
+2017-01-08	10	0.07494166692097982	0.08576333324114481	0.08346583335951437	2145428.2416666667	8388604.0
+2017-01-08	11	0.11485749942560991	0.10503555536270141	0.11680527763868061	2145330.1625	8388604.0
+2017-01-08	12	0.1283133325477441	0.11136361124614874	0.10050805536253998	2145388.3125	8388604.0
+2017-01-08	13	0.10609694384038448	0.08837166621039311	0.09538111087458674	2145153.216666667	8388604.0
+2017-01-08	14	0.11839194459219773	0.1052236121147871	0.10144666717969812	2145024.7125	8388604.0
+2017-01-08	15	0.09263500006248554	0.0926441668222348	0.09044222203083337	2145151.970833333	8388604.0
+2017-01-08	16	0.09664055556058884	0.0930036108319958	0.09533194417017513	2145103.2416666667	8388604.0
+2017-01-08	17	0.06105749998241663	0.06733222197120388	0.06546500023202194	2144911.6166666667	8388604.0
+2017-01-08	18	0.074573610847195	0.09279388897120952	0.08531583284493535	2145046.2375	8388604.0
+2017-01-08	19	0.11674749925732612	0.09787583397701383	0.08649083361863935	2144829.9875	8388604.0
+2017-01-08	20	0.08550277824203173	0.08478749990463257	0.08639666639452723	2144794.4291666667	8388604.0
+2017-01-08	21	0.07088916655629873	0.0892022222901384	0.09048222200556968	2144966.25	8388604.0
+2017-01-08	22	0.067472777950267	0.07679611078153054	0.06936250049620866	2145056.4458333333	8388604.0
+2017-01-08	23	0.1028036108861367	0.10487194489687682	0.0997247223785962	2144932.4	8388604.0
+2017-01-09	0	0.08686416670680046	0.07989500022182862	0.0797291667414053	2144815.933333333	8388604.0
+2017-01-09	1	0.09337972303231558	0.10032694392527143	0.09999194341459466	2144916.1	8388604.0
+2017-01-09	2	0.1429738877962033	0.14393972226728996	0.14694749957561726	2144887.275	8388604.0
+2017-01-09	3	0.12775055555005868	0.10705388899271687	0.09926499930443242	2144506.3041666667	8388604.0
+2017-01-09	4	0.11586888867119947	0.10868083300689856	0.10546805601916276	2142843.5416666665	8388604.0
+2017-01-09	5	0.12128638811409473	0.10324638883272806	0.09664888834959129	2144009.7291666665	8388604.0
+2017-01-09	6	0.10399999978641669	0.09181944423665603	0.1055166674220042	2144019.120833333	8388604.0
+2017-01-09	7	0.10574999985595544	0.0880688891435663	0.08677805519352357	2144813.45	8388604.0
+2017-01-09	8	0.08093388881534339	0.08687000007679065	0.08736222253792221	2144926.254166667	8388604.0
+2017-01-09	9	0.07157888878136873	0.08808944430202245	0.08809166579352071	2144657.225	8388604.0
+2017-01-09	10	0.08930805536607901	0.10994416624307632	0.11131361009708295	2144612.625	8388604.0
+2017-01-09	11	0.13514194438854854	0.1260155559827884	0.11910888880180816	2144762.529166667	8388604.0
+2017-01-09	12	0.11260611079633236	0.10002361045529445	0.08598333332144345	2144622.7291666665	8388604.0
+2017-01-09	13	0.1237541655699412	0.11025777760272225	0.10604361070436426	2144595.8333333335	8388604.0
+2017-01-09	14	0.1211983331789573	0.10637722300986449	0.09917222214862705	2144751.6875	8388604.0
+2017-01-09	15	0.11224861070513725	0.10060722194612026	0.10282222194655333	2144647.95	8388604.0
+2017-01-09	16	0.07829361117134491	0.07683305572718382	0.0706611111954165	2144523.5875	8388604.0
+2017-01-09	17	0.09476111127684514	0.10311888922005892	0.09811972212628461	2144522.0	8388604.0
+2017-01-09	18	0.11918777724107106	0.10715472232550383	0.10485555498550335	2144547.3375	8388604.0
+2017-01-09	19	0.13063638806343078	0.115411944873631	0.12053555569533879	2144669.3375	8388604.0
+2017-01-09	20	0.10678861116369566	0.0969991664091746	0.0955752778487901	2144548.1416666666	8388604.0
+2017-01-09	21	0.13010999796291192	0.12142499970893066	0.12543805516712989	2144554.683333333	8388604.0
+2017-01-09	22	0.11708944427470366	0.1015227776641647	0.08944388832896948	2144577.120833333	8388604.0
+2017-01-09	23	0.09211972200622161	0.08930694479495287	0.09782361215135703	2144540.6625	8388604.0
+2017-01-10	0	0.09406444436560074	0.09819472230349978	0.09566749897785484	2144636.4916666667	8388604.0
+2017-01-10	1	0.12067027712861697	0.10580361181249222	0.09652722170188402	2144368.9833333334	8388604.0
+2017-01-10	2	0.11325999970237415	0.09469277715931336	0.1030455559414501	2144448.5166666666	8388604.0
+2017-01-10	3	0.12430611078937849	0.12068416643887758	0.1323119441512972	2143543.4	8388604.0
+2017-01-10	4	0.16184916533529758	0.15386027805507183	0.1606997221087416	2142588.7354166666	8388604.0
+2017-01-10	5	0.11823138830562432	0.09743527763833602	0.08917388876434415	2144151.308333333	8388604.0
+2017-01-10	6	0.11151333327094713	0.09798611116906007	0.0899802777528142	2144240.925	8388604.0
+2017-01-10	7	0.11213833279907703	0.09176611105600993	0.07756277737983813	2144293.566666667	8388604.0
+2017-01-10	8	0.10404833319286505	0.08997944385434191	0.10099055465931693	2144211.2125	8388604.0
+2017-01-10	9	0.1256466665615638	0.12132472206527987	0.11302694410357314	2144566.1791666667	8388604.0
+2017-01-10	10	0.11986666607360046	0.10056249996026358	0.10170555556154189	2144418.9583333335	8388604.0
+2017-01-10	11	0.09797444393237432	0.08230277765542268	0.0863263887775247	2144463.3291666666	8388604.0
+2017-01-10	12	0.08722222186625003	0.09509111071626346	0.09908944451550876	2144219.1	8388604.0
+2017-01-10	13	0.09324222225695848	0.08891638843342661	0.09115111070180622	2144258.7583333333	8388604.0
+2017-01-10	14	0.10688805505633354	0.10064546348940995	0.09340509343310259	2144284.191666667	8388604.0
+2017-01-10	15	0.11199437437268595	0.11553569488072148	0.11783152756919056	2144295.975	8388604.0
+2017-01-10	16	0.1355276377250751	0.12841388882758717	0.12610298692816285	2144386.622916667	8388604.0
+2017-01-10	17	0.10659680521736542	0.0840172913701584	0.09128215299375976	2144285.4614583333	8388604.0
+2017-01-10	18	0.11573840187241634	0.10678500034846365	0.118531527951806	2144309.767708333	8388604.0
+2017-01-10	19	0.11204027704273661	0.09901951358187944	0.09587777826818637	2144150.75625	8388604.0
+2017-01-10	20	0.09373222224724789	0.08531534740856538	0.08557562555312567	2144084.2427083333	8388604.0
+2017-01-10	21	0.11311305497462551	0.09948694425014158	0.09770791523963757	2144066.480208333	8388604.0
+2017-01-10	22	0.07009770831403633	0.07559298606744656	0.07958479082590202	2144082.528125	8388604.0
+2017-01-10	23	0.10556617993861436	0.10134374992921949	0.09745208402697851	2144062.035416667	8388604.0
+2017-01-11	0	0.14252777686342596	0.1363573615749677	0.13698284631536808	2144168.9166666665	8388604.0
+2017-01-11	1	0.10343902761427065	0.09217958309842894	0.09731041602305292	2144060.439583333	8388604.0
+2017-01-11	2	0.07343770829029381	0.07530659704934806	0.06305951394606382	2144201.1010416667	8388604.0
+2017-01-11	3	0.0733546530517439	0.08935868052455286	0.10009062532917597	2143860.642708333	8388604.0
+2017-01-11	4	0.12063319447139899	0.11820798648210863	0.11340687386376279	2141860.246354167	8388604.0
+2017-01-11	5	0.11260131830349565	0.0981630556130161	0.10159437572813962	2143301.4010416665	8388604.0
+2017-01-11	6	0.08494430592594047	0.09440993017827472	0.10841118015329508	2143227.73125	8388604.0
+2017-01-11	7	0.09903027790909012	0.09638819481090953	0.08026854081448012	2143370.44375	8388604.0
+2017-01-11	8	0.12056861041734616	0.10728958272375166	0.10302326365223659	2143393.1177083333	8388604.0
+2017-01-11	9	0.12784069332604606	0.11582201357620457	0.12336562562001442	2143220.683333333	8388604.0
+2017-01-11	10	0.12128131886323293	0.10299875005924454	0.09292083322628363	2143246.6770833335	8388604.0
+2017-01-11	11	0.11190687436610461	0.09209749967170258	0.09161652755865361	2143272.5614583334	8388604.0
+2017-01-11	12	0.12043069284409284	0.09808347254681091	0.09894513917291382	2143276.6302083335	8388604.0
+2017-01-11	13	0.10197715247049928	0.0913445135888954	0.08603423684689915	2143382.40625	8388604.0
+2017-01-11	14	0.11532607750268653	0.08677697146777064	0.07936718878045212	2143348.34765625	8388604.0
+
diff --git a/regression-test/data/brown_p2/sql/nereids_blockedIOServer.out b/regression-test/data/brown_p2/sql/nereids_blockedIOServer.out
new file mode 100644
index 0000000000..95626f27ea
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_blockedIOServer.out
@@ -0,0 +1,19 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_blockedIOServer --
+0
+
+-- !nereids_blockedIOServer_2 --
+0
+
+-- !nereids_blockedIOServer_3 --
+sourpatch	8861
+louie	581
+zotz	555
+pieces	498
+reeces	453
+thing	438
+adminhost	366
+cadbury	357
+york	194
+reflect	156
+
diff --git a/regression-test/data/brown_p2/sql/nereids_dailyUV.out b/regression-test/data/brown_p2/sql/nereids_dailyUV.out
new file mode 100644
index 0000000000..df2eace2ad
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_dailyUV.out
@@ -0,0 +1,375 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_dailyUV --
+0
+
+-- !nereids_dailyUV_2 --
+0
+
+-- !nereids_dailyUV_3 --
+2012-01-01	9464
+2012-01-02	11382
+2012-01-03	11413
+2012-01-04	11876
+2012-01-05	11610
+2012-01-06	10522
+2012-01-07	9056
+2012-01-08	9483
+2012-01-09	12149
+2012-01-10	12500
+2012-01-11	12331
+2012-01-12	11607
+2012-01-13	10145
+2012-01-14	8233
+2012-01-15	9138
+2012-01-16	11413
+2012-01-17	11865
+2012-01-18	12318
+2012-01-19	12319
+2012-01-20	11442
+2012-01-21	9093
+2012-01-22	9241
+2012-01-23	12055
+2012-01-24	13160
+2012-01-25	12735
+2012-01-26	13173
+2012-01-27	12410
+2012-01-28	9534
+2012-01-29	10628
+2012-01-30	13892
+2012-01-31	13681
+2012-02-01	14566
+2012-02-02	13999
+2012-02-03	12531
+2012-02-04	10471
+2012-02-05	11131
+2012-02-06	14995
+2012-02-07	14781
+2012-02-08	14615
+2012-02-09	13589
+2012-02-10	11967
+2012-02-11	9552
+2012-02-12	10457
+2012-02-13	14533
+2012-02-14	13200
+2012-02-15	13575
+2012-02-16	13269
+2012-02-17	11919
+2012-02-18	9294
+2012-02-19	10368
+2012-02-20	12920
+2012-02-21	3298
+2012-02-22	13412
+2012-02-23	13353
+2012-02-24	11744
+2012-02-25	10341
+2012-02-26	11355
+2012-02-27	14205
+2012-02-28	14691
+2012-02-29	14590
+2012-03-01	13439
+2012-03-02	11875
+2012-03-03	9900
+2012-03-04	12420
+2012-03-05	15147
+2012-03-06	14205
+2012-03-07	13766
+2012-03-08	13193
+2012-03-09	11939
+2012-03-10	9954
+2012-03-11	10457
+2012-03-12	13528
+2012-03-13	13540
+2012-03-14	13250
+2012-03-15	12861
+2012-03-16	11208
+2012-03-17	9257
+2012-03-18	9941
+2012-03-19	12940
+2012-03-20	13158
+2012-03-21	12266
+2012-03-22	11877
+2012-03-23	10186
+2012-03-24	8098
+2012-03-25	8791
+2012-03-26	11994
+2012-03-27	11630
+2012-03-28	11552
+2012-03-29	11022
+2012-03-30	10237
+2012-03-31	8493
+2012-04-01	9869
+2012-04-02	12315
+2012-04-03	12065
+2012-04-04	11836
+2012-04-05	11188
+2012-04-06	9761
+2012-04-07	8852
+2012-04-08	9271
+2012-04-09	11611
+2012-04-10	12256
+2012-04-11	11936
+2012-04-12	11692
+2012-04-13	13339
+2012-04-14	30046
+2012-04-15	10236
+2012-04-16	13208
+2012-04-17	12856
+2012-04-18	12781
+2012-04-19	11944
+2012-04-20	10763
+2012-04-21	8479
+2012-04-22	10192
+2012-04-23	12908
+2012-04-24	12588
+2012-04-25	13535
+2012-04-26	12538
+2012-04-27	10702
+2012-04-28	8283
+2012-04-29	8993
+2012-04-30	11582
+2012-05-01	11469
+2012-05-02	11958
+2012-05-03	11523
+2012-05-04	10460
+2012-05-05	8238
+2012-05-06	9251
+2012-05-07	12342
+2012-05-08	12194
+2012-05-09	12179
+2012-05-10	11738
+2012-05-11	10725
+2012-05-12	8508
+2012-05-13	9220
+2012-05-14	12960
+2012-05-15	12011
+2012-05-16	11788
+2012-05-17	11198
+2012-05-18	9339
+2012-05-19	7373
+2012-05-20	8505
+2012-05-21	11283
+2012-05-22	11776
+2012-05-23	11445
+2012-05-24	11229
+2012-05-25	10334
+2012-05-26	8966
+2012-05-27	8701
+2012-05-28	10714
+2012-05-29	11916
+2012-05-30	11940
+2012-05-31	11386
+2012-06-01	10153
+2012-06-02	8810
+2012-06-03	9025
+2012-06-04	20195
+2012-06-05	14711
+2012-06-06	11617
+2012-06-07	10607
+2012-06-08	9604
+2012-06-09	8028
+2012-06-10	8256
+2012-06-11	10914
+2012-06-12	10558
+2012-06-13	10633
+2012-06-14	10349
+2012-06-15	9443
+2012-06-16	7607
+2012-06-17	8375
+2012-06-18	11686
+2012-06-19	12042
+2012-06-20	10871
+2012-06-21	10461
+2012-06-22	10466
+2012-06-23	7605
+2012-06-24	8195
+2012-06-25	11002
+2012-06-26	11185
+2012-06-27	10802
+2012-06-28	10281
+2012-06-29	9126
+2012-06-30	7269
+2012-07-01	7623
+2012-07-02	9949
+2012-07-03	10692
+2012-07-04	9158
+2012-07-05	9778
+2012-07-06	9085
+2012-07-07	7551
+2012-07-08	8140
+2012-07-09	10787
+2012-07-10	10434
+2012-07-11	10173
+2012-07-12	9896
+2012-07-13	9134
+2012-07-14	7417
+2012-07-15	7702
+2012-07-16	10235
+2012-07-17	10885
+2012-07-18	10523
+2012-07-19	10458
+2012-07-20	9131
+2012-07-21	6962
+2012-07-22	7347
+2012-07-23	9808
+2012-07-24	10157
+2012-07-25	13455
+2012-07-26	12637
+2012-07-27	9487
+2012-07-28	6958
+2012-07-29	8134
+2012-07-30	12233
+2012-07-31	10179
+2012-08-01	9489
+2012-08-02	9706
+2012-08-03	8889
+2012-08-04	6963
+2012-08-05	7701
+2012-08-06	11219
+2012-08-07	8976
+2012-08-08	11288
+2012-08-09	10165
+2012-08-10	9211
+2012-08-11	7621
+2012-08-12	8274
+2012-08-13	11478
+2012-08-14	11230
+2012-08-15	10820
+2012-08-16	10991
+2012-08-17	10694
+2012-08-18	8628
+2012-08-19	8884
+2012-08-20	11310
+2012-08-21	12103
+2012-08-22	12548
+2012-08-23	15555
+2012-08-24	12083
+2012-08-25	9601
+2012-08-26	9974
+2012-08-27	12052
+2012-08-28	9880
+2012-08-29	11600
+2012-08-30	11680
+2012-08-31	10422
+2012-09-01	8537
+2012-09-02	9255
+2012-09-03	12090
+2012-09-04	13570
+2012-09-05	13997
+2012-09-06	13798
+2012-09-07	12636
+2012-09-08	9995
+2012-09-09	11256
+2012-09-10	15346
+2012-09-11	15427
+2012-09-12	15573
+2012-09-13	14694
+2012-09-14	13139
+2012-09-15	10435
+2012-09-16	11707
+2012-09-17	14855
+2012-09-18	15282
+2012-09-19	14402
+2012-09-20	14837
+2012-09-21	13607
+2012-09-22	10750
+2012-09-23	12386
+2012-09-24	15462
+2012-09-25	15638
+2012-09-26	16064
+2012-09-27	15045
+2012-09-28	13698
+2012-09-29	11729
+2012-09-30	12957
+2012-10-01	14258
+2012-10-02	15351
+2012-10-03	14714
+2012-10-04	15203
+2012-10-05	13435
+2012-10-06	11231
+2012-10-07	12674
+2012-10-08	15389
+2012-10-09	15715
+2012-10-10	15579
+2012-10-11	15084
+2012-10-12	13615
+2012-10-13	12777
+2012-10-14	12870
+2012-10-15	18302
+2012-10-16	16586
+2012-10-17	15063
+2012-10-18	14492
+2012-10-19	13505
+2012-10-20	11501
+2012-10-21	13148
+2012-10-22	17130
+2012-10-23	15826
+2012-10-24	15068
+2012-10-25	15063
+2012-10-26	15787
+2012-10-27	11350
+2012-10-28	13272
+2012-10-29	15407
+2012-10-30	15709
+2012-10-31	15700
+2012-11-01	15375
+2012-11-02	14998
+2012-11-03	13348
+2012-11-04	14345
+2012-11-05	16714
+2012-11-06	16522
+2012-11-07	16424
+2012-11-08	16168
+2012-11-09	14432
+2012-11-10	12671
+2012-11-11	13620
+2012-11-12	16696
+2012-11-13	16493
+2012-11-14	17225
+2012-11-15	17355
+2012-11-16	15011
+2012-11-17	12901
+2012-11-18	14518
+2012-11-19	27613
+2012-11-20	23275
+2012-11-21	17657
+2012-11-22	14317
+2012-11-23	12899
+2012-11-24	12089
+2012-11-25	10838
+2012-11-26	16263
+2012-11-27	16530
+2012-11-28	16253
+2012-11-29	15525
+2012-11-30	13233
+2012-12-01	11266
+2012-12-02	12816
+2012-12-03	17287
+2012-12-04	17340
+2012-12-05	15726
+2012-12-06	15408
+2012-12-07	508
+2012-12-08	11204
+2012-12-09	12924
+2012-12-10	15325
+2012-12-11	15117
+2012-12-12	14005
+2012-12-13	13310
+2012-12-14	11731
+2012-12-15	10734
+2012-12-16	11355
+2012-12-17	13305
+2012-12-18	13160
+2012-12-19	12329
+2012-12-20	9592
+2012-12-21	863
+2012-12-22	816
+2012-12-23	794
+2012-12-24	727
+2012-12-25	8062
+2012-12-26	8799
+2012-12-27	9435
+2012-12-28	9185
+2012-12-29	8247
+2012-12-30	8328
+2012-12-31	7824
+
diff --git a/regression-test/data/brown_p2/sql/nereids_dataTransferRate.out b/regression-test/data/brown_p2/sql/nereids_dataTransferRate.out
new file mode 100644
index 0000000000..a1cbaf8ad1
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_dataTransferRate.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_dataTransferRate --
+0
+
+-- !nereids_dataTransferRate_2 --
+0
+
+-- !nereids_dataTransferRate_3 --
+0.0046296999419207785	295.028835936
+
diff --git a/regression-test/data/brown_p2/sql/nereids_doorOpen.out b/regression-test/data/brown_p2/sql/nereids_doorOpen.out
new file mode 100644
index 0000000000..3fba9228d6
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_doorOpen.out
@@ -0,0 +1,29 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_doorOpen --
+0
+
+-- !nereids_doorOpen_2 --
+0
+
+-- !nereids_doorOpen_3 --
+front_right_1	1	64269
+front_center_1	1	37054
+loading_dock_1	1	27284
+lobby_center_2	2	19123
+front_left_1	1	14679
+stairs_east_3	3	12773
+stairs_north_2	2	11208
+stairs_north_1	1	9874
+balcony_5	5	5284
+stairs_east_left_2	2	4646
+stairs_north_4	4	4086
+lobby_left_2	2	4029
+stairs_east_right_2	2	3140
+lobby_right_2	2	3108
+lobby_left_1	1	2944
+stairs_north_5	5	1731
+lobby_right_1	1	1641
+stairs_east_5	5	1637
+balcony_3	3	1619
+stairs_east_4	4	1093
+
diff --git a/regression-test/data/brown_p2/sql/nereids_excessiveRequests.out b/regression-test/data/brown_p2/sql/nereids_excessiveRequests.out
new file mode 100644
index 0000000000..831dca8b72
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_excessiveRequests.out
@@ -0,0 +1,17 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_excessiveRequests --
+0
+
+-- !nereids_excessiveRequests_2 --
+0
+
+-- !nereids_excessiveRequests_3 --
+219.63.173.93	1540391
+229.50.247.232	743801
+97.211.80.244	733261
+152.149.228.251	492221
+198.156.249.133	370834
+70.86.124.37	273057
+67.153.111.239	167287
+249.92.17.134	112909
+
diff --git a/regression-test/data/brown_p2/sql/nereids_hourlyNetworkTraffic.out b/regression-test/data/brown_p2/sql/nereids_hourlyNetworkTraffic.out
new file mode 100644
index 0000000000..2906d8238c
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_hourlyNetworkTraffic.out
@@ -0,0 +1,19 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_hourlyNetworkTraffic --
+0
+
+-- !nereids_hourlyNetworkTraffic_2 --
+0
+
+-- !nereids_hourlyNetworkTraffic_3 --
+2017-01-10	17	87.948585380	71.385253825	159.333839205
+2017-01-10	18	89.649306783	69.156060259	158.805367042
+2017-01-10	19	73.607249260	81.407222077	155.014471337
+2017-01-10	20	68.547946313	85.506676673	154.054622986
+2017-01-11	13	42.000689907	69.613847012	111.614536919
+2017-01-10	16	52.184352597	56.948349728	109.132702325
+2017-01-10	15	58.921870661	47.700976292	106.622846953
+2017-01-10	14	60.980273630	44.448819620	105.429093250
+2017-01-10	21	45.797732305	54.048210813	99.845943118
+2017-01-11	4	48.962175923	48.376258854	97.338434777
+
diff --git a/regression-test/data/brown_p2/sql/nereids_lowMemory.out b/regression-test/data/brown_p2/sql/nereids_lowMemory.out
new file mode 100644
index 0000000000..77e265226e
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_lowMemory.out
@@ -0,0 +1,25 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_lowMemory --
+0
+
+-- !nereids_lowMemory_2 --
+0
+
+-- !nereids_lowMemory_3 --
+chimera	2016-11-04	6135.48
+chimera	2016-11-26	6045.8667
+chimera	2016-11-27	9374.526
+chimera	2016-11-30	6933.56
+chimera	2016-12-01	6535.8135
+chimera	2016-12-02	6393.74
+chimera	2016-12-11	8010.5
+chimera	2016-12-30	8167.6665
+chimera	2016-12-31	6324.6665
+chimera	2017-01-01	5972.0
+chimera	2017-01-03	5948.0
+chimera	2017-01-04	7320.0
+chimera	2017-01-05	8144.0
+chimera	2017-01-07	6308.467
+chimera	2017-01-09	9370.0
+chimera	2017-01-10	7147.467
+
diff --git a/regression-test/data/brown_p2/sql/nereids_offlineMachine.out b/regression-test/data/brown_p2/sql/nereids_offlineMachine.out
new file mode 100644
index 0000000000..585d6a5022
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_offlineMachine.out
@@ -0,0 +1,27 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_offlineMachine --
+0
+
+-- !nereids_offlineMachine_2 --
+0
+
+-- !nereids_offlineMachine_3 --
+cslab9e	2017-01-10T14:14:15
+cslab9e	2017-01-10T14:14:30
+cslab9e	2017-01-10T14:14:45
+cslab9e	2017-01-10T14:15:15
+cslab9e	2017-01-10T14:15:30
+cslab9e	2017-01-10T14:15:45
+cslab9e	2017-01-10T14:16:15
+cslab9e	2017-01-10T14:16:30
+cslab9e	2017-01-10T14:16:45
+cslab9e	2017-01-10T14:17:15
+cslab9e	2017-01-10T14:17:30
+cslab9e	2017-01-10T14:17:45
+cslab9e	2017-01-10T14:18:15
+cslab9e	2017-01-10T14:18:30
+cslab9e	2017-01-10T14:18:45
+cslab9e	2017-01-10T14:19:15
+cslab9e	2017-01-10T14:19:30
+cslab9e	2017-01-10T14:19:45
+
diff --git a/regression-test/data/brown_p2/sql/nereids_passwordLeaked.out b/regression-test/data/brown_p2/sql/nereids_passwordLeaked.out
new file mode 100644
index 0000000000..9d07c9d19f
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_passwordLeaked.out
@@ -0,0 +1,11 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_passwordLeaked --
+0
+
+-- !nereids_passwordLeaked_2 --
+0
+
+-- !nereids_passwordLeaked_3 --
+2012-05-09T14:46:58	201.183.185.11	/?-nd+auto_prepend_file%3D/etc/passwd	200	21173
+2012-05-13T20:17:05	201.183.185.11	/?-nd+auto_prepend_file%3D/etc/passwd	200	21809
+
diff --git a/regression-test/data/brown_p2/sql/nereids_powerConsumptionMetrics.out b/regression-test/data/brown_p2/sql/nereids_powerConsumptionMetrics.out
new file mode 100644
index 0000000000..4623354a02
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_powerConsumptionMetrics.out
@@ -0,0 +1,37 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_powerConsumptionMetrics --
+0
+
+-- !nereids_powerConsumptionMetrics_2 --
+0
+
+-- !nereids_powerConsumptionMetrics_3 --
+2017	9	721638.3414064788	1252.8443427195812	65268.73919188457	113.31378331924404	174895.7715174623	330.61582517478695	176421.94104524443	388.59458380009784
+2017	10	702508.0664338225	1256.7228379853711	66960.70685831293	120.00126677117012	131314.92843738297	270.7524297677999	212072.4254061825	379.3782207624016
+2017	11	903660.5956517105	1258.580216785112	79376.14433888892	110.55173306251939	178488.04901201362	304.06822659627534	257457.22712476412	358.57552524340406
+2017	12	931357.6830229156	1251.824842772736	76585.0368719734	102.93687751609328	112836.92815090144	198.65656364595324	241257.50714199228	324.27084293278534
+2018	1	800695.0232504865	1268.930306260676	52913.86179851601	83.8571502353661	36392.48058457172	83.4689921664489	191628.70119383495	303.6904931756497
+2018	2	788872.0573169792	1188.0603272846072	85621.32358955599	128.94777649029515	83922.79400835955	176.67956633338852	230227.25133465935	346.7277881546074
+2018	3	896816.2190436661	1205.3981438758954	88325.94803945151	118.71767209603698	114322.79839365494	193.7674549044999	269070.6060912008	361.65404044516237
+2018	4	581954.6102904766	1199.9064129700548	55146.13846078815	113.70337826966629	107909.63419773085	260.65129033268323	172977.5683584702	356.6547801205571
+2018	5	810269.3225697606	1246.5681885688625	69687.03583794396	107.21082436606763	83644.78159173676	143.47303875083492	248284.77976738216	381.97658425751104
+2018	6	824150.0588949074	1252.5076882901328	52047.11873700284	79.09896464590098	61491.79513703263	113.24455826341183	242561.98528653922	368.63523599777994
+2018	7	920527.3411698395	1237.2679316798917	54001.80526436998	72.58307159189513	110136.29401019624	175.655971308128	284977.68054289324	383.0345168587275
+2018	8	934028.5503494726	1255.4147182116567	56534.79015953165	75.9876211821662	18440.748190359904	37.25403674820183	281409.0307800985	378.23794459690663
+2018	9	796294.725012032	1201.0478506968807	59750.627903558845	90.12161071426674	123357.51466599084	219.10748608524128	251368.59077414437	379.13814596401863
+2018	10	876930.3483784578	1178.669823089325	68192.5478930525	91.65665039388777	161682.95582566143	259.94044344961645	285017.38156064047	383.08787844172105
+2018	11	220190.80577936105	1177.4909399965832	17258.73825754189	92.29271795476946	31282.504059750245	215.74140730862237	74832.7243967542	400.17499677408665
+2018	12	600604.636942926	1213.3427008948	40572.28465858771	81.96421143149033	45621.901088225226	103.21697078783988	174784.206063148	353.0994061881778
+2019	1	875861.801519637	1177.2336041930605	62356.90803397393	83.81304843276065	38427.200289164524	68.37580122627139	266395.0245066205	358.05782863793075
+2019	2	766839.5051314115	1141.1302159693623	58769.955270648476	87.45529058132213	98888.76720553765	174.4069968351634	263572.66875685327	392.22123326912686
+2019	3	875531.8723175366	1176.790150964431	64134.018569618056	86.20163786238986	137670.7954831729	220.98041008534975	307147.87856089324	412.8331701087275
+2019	4	882405.7822994065	1225.5635865269535	62498.88624107809	86.80400866816402	118655.91830720672	190.76514197300116	310192.1270515335	430.8223986826854
+2019	5	915804.9453381398	1230.920625454489	62733.50787805459	84.31923101889058	51908.476725653636	92.36383759013103	333347.0784992987	448.0471485205628
+2019	6	743714.4735556254	1264.8205332578664	47914.37351050593	81.48702977977199	33701.1576661742	99.12105195933589	258663.94354479393	439.90466589250667
+2019	7	936697.9580959913	1259.0026318494506	60426.11789318792	81.21790039406979	10876.808554053552	30.2133570945932	322797.22597334196	433.86723921148115
+2019	8	930640.7550409781	1250.8612298937878	60639.0856810021	81.50414742070174	13063.088331067778	44.58391921866136	336075.45302452566	451.7143185813517
+2019	9	862784.4318728528	1198.3117109345178	63348.648902750734	87.9842345871538	56973.395663266085	126.32681965247468	322162.84531000606	447.4483962638973
+2019	10	900170.2429565523	1209.9062405330003	64953.12136266857	87.30258247670507	98168.02805722525	218.63703353502282	310577.09491537133	417.4423318754991
+2019	11	881836.9061517053	1224.7734807662573	61941.828695957716	86.0303176332746	181716.3770488152	294.99411858573893	258322.18736711307	358.78081578765705
+2019	12	45118.354529795746	1253.2876258276597	2884.8668441554055	80.13519011542793	13576.481448950073	377.1244846930576	12249.12485575384	340.25346821538443
+
diff --git a/regression-test/data/brown_p2/sql/nereids_serverError.out b/regression-test/data/brown_p2/sql/nereids_serverError.out
new file mode 100644
index 0000000000..595cbf257d
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_serverError.out
@@ -0,0 +1,11 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_serverError --
+0
+
+-- !nereids_serverError_2 --
+0
+
+-- !nereids_serverError_3 --
+2012-12-21T16:58	229.50.247.232	//cgi-bin/feedback/	500	410
+2012-12-23T23:28:02	229.50.247.232	//cgi-bin/feedback/	500	410
+
diff --git a/regression-test/data/brown_p2/sql/nereids_temperatureReachFreezing.out b/regression-test/data/brown_p2/sql/nereids_temperatureReachFreezing.out
new file mode 100644
index 0000000000..3cb0adba65
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_temperatureReachFreezing.out
@@ -0,0 +1,11 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_temperatureReachFreezing --
+0
+
+-- !nereids_temperatureReachFreezing_2 --
+0
+
+-- !nereids_temperatureReachFreezing_3 --
+2019-12-01T09:30:13	temperature	16C448031108ABA	balcony_5	door	5	F	32.0
+2019-12-01T09:59:58	temperature	16C448031108ABA	balcony_5	door	5	F	32.0
+
diff --git a/regression-test/data/brown_p2/sql/nereids_temperatureVariation_order.out b/regression-test/data/brown_p2/sql/nereids_temperatureVariation_order.out
new file mode 100644
index 0000000000..f0e4a16dae
--- /dev/null
+++ b/regression-test/data/brown_p2/sql/nereids_temperatureVariation_order.out
@@ -0,0 +1,20 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_temperatureVariation_order --
+0
+
+-- !nereids_temperatureVariation_order_2 --
+0
+
+-- !nereids_temperatureVariation_order_3 --
+balcony_3	door	3	SUMMER
+balcony_3	door	3	WINTER
+balcony_5	door	5	SUMMER
+balcony_5	door	5	WINTER
+front_center_1	door	1	SUMMER
+front_center_1	door	1	WINTER
+front_left_1	door	1	SUMMER
+front_left_1	door	1	WINTER
+front_right_1	door	1	SUMMER
+front_right_1	door	1	WINTER
+loading_dock_1	door	1	WINTER
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_affinityByIssuesAndPRs1.out b/regression-test/data/github_events_p2/sql/nereids_affinityByIssuesAndPRs1.out
new file mode 100644
index 0000000000..2c739ba869
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_affinityByIssuesAndPRs1.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_affinityByIssuesAndPRs1 --
+0
+
+-- !nereids_affinityByIssuesAndPRs1_2 --
+0
+
+-- !nereids_affinityByIssuesAndPRs1_3 --
+
+Homebrew/homebrew-core	33	15
+
+pocoproject/poco	28	14
+
+saltstack/salt	38	13
+
+apache/flink	54	12
+
+ansible/ansible	42	12
+
+grafana/grafana	87	10
+
+helm/charts	35	10
+
+avelino/awesome-go	33	10
+
+NixOS/nixpkgs	208	9
+
+getredash/redash	20	9
+
+facebook/rocksdb	18	9
+
+apache/spark	18	9
+
+kubernetes/kubernetes	17	9
+
+Vertamedia/chproxy	30	8
+
+django/django	24	8
+
+python/cpython	18	8
+
+hashicorp/consul	9	8
+
+apache/incubator-doris	68	7
+
+iovisor/bcc	36	7
+
+grafana/grafana-plugin-repository	35	7
+
+caskroom/homebrew-cask	32	7
+
+DefinitelyTyped/DefinitelyTyped	26	7
+
+catboost/catboost	13	7
+
+aio-libs/aiohttp	515	6
+
+ant-design/ant-design	236	6
+
+Shopify/sarama	25	6
+
+nodejs/node	14	6
+
+grpc/grpc	11	6
+
+tomchristie/django-rest-framework	8	6
+
+edenhill/librdkafka	8	6
+
+antirez/redis	7	6
+
+monicahq/monica	1318	5
+
+pinterest/secor	1074	5
+
+the-benchmarker/web-frameworks	1035	5
+
+Homebrew/brew	627	5
+
+getsentry/sentry	209	5
+
+golangci/golangci-lint	134	5
+
+pingcap/tidb	100	5
+
+VictoriaMetrics/VictoriaMetrics	99	5
+
+yandex/graphouse	74	5
+
+apache/incubator-dolphinscheduler	51	5
+
+TechEmpower/FrameworkBenchmarks	39	5
+
+prometheus/client_java	25	5
+
+greenplum-db/gpdb	22	5
+
+yiisoft/yii2	17	5
+
+apache/zookeeper	15	5
+
+ceph/ceph	14	5
+
+symfony/symfony	13	5
+
+apache/airflow	13	5
+
+php/php-src	12	5
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_affinityByIssuesAndPRs2.out b/regression-test/data/github_events_p2/sql/nereids_affinityByIssuesAndPRs2.out
new file mode 100644
index 0000000000..5a92ab58c1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_affinityByIssuesAndPRs2.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_affinityByIssuesAndPRs2 --
+0
+
+-- !nereids_affinityByIssuesAndPRs2_2 --
+0
+
+-- !nereids_affinityByIssuesAndPRs2_3 --
+
+grafana/grafana	224	68
+
+golang/go	186	54
+
+apache/incubator-superset	124	36
+
+kubernetes/kubernetes	98	34
+
+elastic/elasticsearch	66	30
+
+ansible/ansible	53	30
+
+pingcap/tidb	122	24
+
+docker/docker	58	23
+
+Microsoft/vscode	39	23
+
+travis-ci/travis-ci	32	23
+
+prestodb/presto	97	22
+
+prometheus/prometheus	50	22
+
+sysown/proxysql	43	21
+
+Vertamedia/chproxy	31	21
+
+VictoriaMetrics/VictoriaMetrics	75	20
+
+metabase/metabase	56	20
+
+telegramdesktop/tdesktop	85	19
+
+getredash/redash	48	18
+
+tabixio/tabix	39	18
+
+edenhill/librdkafka	36	18
+
+influxdata/influxdb	30	17
+
+saltstack/salt	71	16
+
+apache/incubator-dolphinscheduler	39	16
+
+alibaba/druid	32	16
+
+rust-lang/rust	32	16
+
+tensorflow/tensorflow	32	16
+
+pypa/pip	16	16
+
+timberio/vector	178	15
+
+druid-io/druid	83	15
+
+yiisoft/yii2	43	15
+
+minio/minio	31	15
+
+pandas-dev/pandas	26	15
+
+elastic/logstash	21	15
+
+kubernetes/ingress-nginx	21	15
+
+prestosql/presto	89	14
+
+rancher/rancher	64	14
+
+apache/incubator-doris	41	14
+
+grpc/grpc	30	14
+
+antirez/redis	18	14
+
+containous/traefik	18	14
+
+elastic/kibana	17	14
+
+gitlabhq/gitlabhq	17	14
+
+rails/rails	36	13
+
+hashicorp/consul	27	13
+
+helm/charts	26	13
+
+systemd/systemd	25	13
+
+go-gitea/gitea	21	13
+
+nodejs/node	20	13
+
+alibaba/DataX	15	13
+
+getsentry/sentry	207	12
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_authorsWithTheMostPushes.out b/regression-test/data/github_events_p2/sql/nereids_authorsWithTheMostPushes.out
new file mode 100644
index 0000000000..4eff057229
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_authorsWithTheMostPushes.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_authorsWithTheMostPushes --
+0
+
+-- !nereids_authorsWithTheMostPushes_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_countingStar1.out b/regression-test/data/github_events_p2/sql/nereids_countingStar1.out
new file mode 100644
index 0000000000..f63c6fed33
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_countingStar1.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_countingStar1 --
+0
+
+-- !nereids_countingStar1_2 --
+0
+
+-- !nereids_countingStar1_3 --
+
+232118474
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_countingStar2.out b/regression-test/data/github_events_p2/sql/nereids_countingStar2.out
new file mode 100644
index 0000000000..9ba712f1d1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_countingStar2.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_countingStar2 --
+0
+
+-- !nereids_countingStar2_2 --
+0
+
+-- !nereids_countingStar2_3 --
+
+started	232118474
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_countingStar3.out b/regression-test/data/github_events_p2/sql/nereids_countingStar3.out
new file mode 100644
index 0000000000..aff5a4f6e7
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_countingStar3.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_countingStar3 --
+0
+
+-- !nereids_countingStar3_2 --
+0
+
+-- !nereids_countingStar3_3 --
+
+14359
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_distributionOfRepositoriesByStarCount.out b/regression-test/data/github_events_p2/sql/nereids_distributionOfRepositoriesByStarCount.out
new file mode 100644
index 0000000000..5ed887265b
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_distributionOfRepositoriesByStarCount.out
@@ -0,0 +1,23 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_distributionOfRepositoriesByStarCount --
+0
+
+-- !nereids_distributionOfRepositoriesByStarCount_2 --
+0
+
+-- !nereids_distributionOfRepositoriesByStarCount_3 --
+
+1.0	15038158
+
+10.0	1194376
+
+100.0	211933
+
+1000.0	28944
+
+10000.0	1847
+
+100000.0	20
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_githubRoulette.out b/regression-test/data/github_events_p2/sql/nereids_githubRoulette.out
new file mode 100644
index 0000000000..21024c4ef1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_githubRoulette.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_githubRoulette --
+0
+
+-- !nereids_githubRoulette_2 --
+0
+
+-- !nereids_githubRoulette_3 --
+
+ezmobius/super-nginx
+
+joearms/SEBG
+
+jdriscoll/django-imagekit
+
+wincent/Command-T
+
+acdha/NativeImaging
+
+mislav/will_paginate
+
+facebook/php-sdk
+
+cakephp/cakephp
+
+pixelmatrix/mapkey
+
+sebastianbergmann/phpunit
+
+phpbb/phpbb
+
+pieter/gitx
+
+openid/php-openid
+
+getify/LABjs
+
+erlang/otp
+
+opichals/osx-pkg-dmg
+
+scala/scala
+
+blueimp/jQuery-File-Upload
+
+intridea/authbuttons
+
+nitrogen/nitrogen
+
+cldwalker/boson
+
+jsmestad/sinatra_warden
+
+webpy/webpy
+
+edavis10/redmine
+
+Shougo/unite.vim
+
+ezmobius/super-nginx
+
+carlhuda/janus
+
+remy/nodemon
+
+joyent/node
+
+paulirish/html5-boilerplate
+
+philtr/TextMate-Themes
+
+revans/bash-it
+
+amatsuda/kaminari
+
+Arachnid/netboot.me
+
+cracell/s3bear
+
+ezmobius/super-nginx
+
+thoughtbot/paperclip
+
+scalatra/scalatra
+
+chilicat/JsChilicat
+
+PaulKinlan/WebIntents
+
+jnicklas/carrierwave
+
+joewalnes/webbit
+
+zurb/reveal
+
+emacsmirror/ess
+
+headjs/headjs
+
+greim/smallfsm
+
+joearms/SEBG
+
+patrickomatic/django-url-imaging
+
+olivernn/davis.js
+
+KuraFire/runloop
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears1.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears1.out
new file mode 100644
index 0000000000..669e9a2870
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears1 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears1_2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears1_3 --
+
+FreeCodeCamp/FreeCodeCamp	38485
+
+facebook/react-native	25888
+
+apple/swift	25834
+
+sindresorhus/awesome	24420
+
+facebook/react	22977
+
+jlevy/the-art-of-command-line	22105
+
+NARKOZ/hacker-scripts	20450
+
+twbs/bootstrap	19775
+
+google/material-design-lite	17904
+
+airbnb/javascript	17586
+
+nvbn/thefuck	17168
+
+vhf/free-programming-books	16923
+
+getify/You-Dont-Know-JS	16404
+
+atom/electron	16174
+
+tensorflow/tensorflow	16009
+
+FreeCodeCamp/freecodecamp	15321
+
+nylas/N1	14927
+
+angular/angular.js	14824
+
+atom/atom	13737
+
+mbostock/d3	13497
+
+Dogfalo/materialize	13150
+
+ripienaar/free-for-dev	12847
+
+torvalds/linux	12455
+
+robbyrussell/oh-my-zsh	12281
+
+github/gitignore	11358
+
+bevacqua/dragula	11060
+
+meteor/meteor	10963
+
+FortAwesome/Font-Awesome	10849
+
+docker/docker	10845
+
+daneden/animate.css	10732
+
+zenorocha/clipboard.js	10471
+
+0xAX/linux-insides	10459
+
+typicode/json-server	10247
+
+wasabeef/awesome-android-ui	10187
+
+babel/babel	10147
+
+h5bp/Front-end-Developer-Interview-Questions	10011
+
+prakhar1989/awesome-courses	9947
+
+lukehoban/es6features	9890
+
+driftyco/ionic	9771
+
+gorhill/uBlock	9761
+
+minimaxir/big-list-of-naughty-strings	9550
+
+Semantic-Org/Semantic-UI	9546
+
+Microsoft/vscode	9489
+
+alex/what-happens-when	9479
+
+vinta/awesome-python	9304
+
+golang/go	9254
+
+phanan/htaccess	9240
+
+nwjs/nw.js	9203
+
+johnpapa/angular-styleguide	9129
+
+google/material-design-icons	9099
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears2.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears2.out
new file mode 100644
index 0000000000..d082bed852
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears2_2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears2_3 --
+
+FreeCodeCamp/FreeCodeCamp	182203
+
+jwasham/google-interview-university	31522
+
+vhf/free-programming-books	28870
+
+vuejs/vue	28831
+
+tensorflow/tensorflow	28282
+
+facebook/react	26046
+
+getify/You-Dont-Know-JS	24975
+
+sindresorhus/awesome	24829
+
+chrislgarry/Apollo-11	23483
+
+yarnpkg/yarn	21518
+
+facebook/react-native	19779
+
+twbs/bootstrap	19396
+
+airbnb/javascript	19064
+
+joshbuchea/HEAD	18439
+
+facebookincubator/create-react-app	18191
+
+firehol/netdata	17908
+
+robbyrussell/oh-my-zsh	17364
+
+FallibleInc/security-guide-for-developers	15901
+
+open-guides/og-aws	15620
+
+github/gitignore	15205
+
+electron/electron	15138
+
+googlesamples/android-architecture	14647
+
+torvalds/linux	14434
+
+getlantern/lantern	14189
+
+reactjs/redux	13997
+
+nodejs/node	13602
+
+Microsoft/vscode	13284
+
+angular/angular	13204
+
+apple/swift	13060
+
+ParsePlatform/parse-server	12837
+
+braydie/HowToBeAProgrammer	12574
+
+docker/docker	12482
+
+atom/atom	12468
+
+webpack/webpack	12186
+
+ZuzooVn/machine-learning-for-software-engineers	11916
+
+jgthms/bulma	11685
+
+vinta/awesome-python	11626
+
+angular/angular.js	11446
+
+golang/go	11337
+
+toddmotto/public-apis	11266
+
+ReactiveX/RxJava	11244
+
+daneden/animate.css	11109
+
+naptha/tesseract.js	10955
+
+tensorflow/models	10874
+
+josephmisiti/awesome-machine-learning	10546
+
+FortAwesome/Font-Awesome	10496
+
+juliangarnier/anime	10462
+
+AHAAAAAAA/PokemonGo-Map	10448
+
+Microsoft/TypeScript	10340
+
+caesar0301/awesome-public-datasets	10333
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears3.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears3.out
new file mode 100644
index 0000000000..3115d4cd64
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears3.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears3 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears3_2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears3_3 --
+
+freeCodeCamp/freeCodeCamp	90989
+
+tensorflow/tensorflow	49278
+
+vuejs/vue	48185
+
+facebook/react	34524
+
+mr-mig/every-programmer-should-know	30991
+
+kamranahmedse/developer-roadmap	30497
+
+sindresorhus/awesome	29084
+
+getify/You-Dont-Know-JS	28902
+
+thedaviddias/Front-End-Checklist	24745
+
+facebookincubator/create-react-app	24479
+
+Microsoft/vscode	23504
+
+donnemartin/system-design-primer	22584
+
+GoogleChrome/puppeteer	22408
+
+airbnb/javascript	22119
+
+sdmg15/Best-websites-a-programmer-should-visit	21764
+
+jwasham/coding-interview-university	21395
+
+twbs/bootstrap	21157
+
+toddmotto/public-apis	20881
+
+kamranahmedse/design-patterns-for-humans	19420
+
+robbyrussell/oh-my-zsh	19325
+
+airbnb/lottie-android	18700
+
+facebook/react-native	18696
+
+vuejs/awesome-vue	18499
+
+tipsy/github-profile-summary	17847
+
+FreeCodeCampChina/freecodecamp.cn	17794
+
+electron/electron	17490
+
+kdn251/interviews	17471
+
+ryanmcdermott/clean-code-javascript	17433
+
+mzabriskie/axios	17414
+
+vinta/awesome-python	17254
+
+torvalds/linux	17200
+
+tensorflow/models	17066
+
+nodejs/node	17062
+
+github/gitignore	16873
+
+python/cpython	16627
+
+yangshun/tech-interview-handbook	16388
+
+ElemeFE/element	16320
+
+bailicangdu/vue2-elm	16249
+
+d3/d3	16167
+
+Hack-with-Github/Awesome-Hacking	16153
+
+golang/go	16096
+
+k88hudson/git-flight-rules	15950
+
+webpack/webpack	15869
+
+mbeaudru/modern-js-cheatsheet	15321
+
+EbookFoundation/free-programming-books	15319
+
+angular/angular	14392
+
+prettier/prettier	14344
+
+vhf/free-programming-books	14304
+
+JetBrains/kotlin	14210
+
+parcel-bundler/parcel	14190
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears4.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears4.out
new file mode 100644
index 0000000000..d04271fc1b
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears4.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears4 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears4_2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears4_3 --
+
+vuejs/vue	51515
+
+trekhleb/javascript-algorithms	39249
+
+facebook/react	38817
+
+flutter/flutter	38357
+
+danistefanovic/build-your-own-x	37815
+
+tensorflow/tensorflow	36976
+
+kamranahmedse/developer-roadmap	35278
+
+x64dbg/x64dbg	32381
+
+donnemartin/system-design-primer	31384
+
+CyC2018/Interview-Notebook	29941
+
+kelseyhightower/nocode	26326
+
+Microsoft/vscode	26211
+
+xingshaocheng/architect-awesome	25750
+
+sindresorhus/awesome	24977
+
+ry/deno	22798
+
+getify/You-Dont-Know-JS	22014
+
+tensorflow/models	21511
+
+GoogleChrome/puppeteer	21137
+
+leonardomso/33-js-concepts	21033
+
+facebook/create-react-app	20300
+
+axios/axios	20102
+
+houshanren/hangzhou_house_knowledge	19227
+
+ant-design/ant-design	19162
+
+facebookresearch/Detectron	18611
+
+jwasham/coding-interview-university	18255
+
+robbyrussell/oh-my-zsh	18254
+
+EbookFoundation/free-programming-books	18127
+
+github/gitignore	17872
+
+airbnb/javascript	17616
+
+justjavac/free-programming-books-zh_CN	17293
+
+PanJiaChen/vue-element-admin	17256
+
+yangshun/front-end-interview-handbook	17138
+
+vinta/awesome-python	16797
+
+golang/go	16424
+
+facebook/react-native	16039
+
+torvalds/linux	15936
+
+TheAlgorithms/Python	15914
+
+tabler/tabler	15849
+
+kubernetes/kubernetes	15800
+
+Avik-Jain/100-Days-Of-ML-Code	15777
+
+iluwatar/java-design-patterns	15370
+
+parcel-bundler/parcel	15257
+
+Meituan-Dianping/mpvue	15017
+
+storybooks/storybook	14835
+
+dawnlabs/carbon	14807
+
+toddmotto/public-apis	14781
+
+electron/electron	14750
+
+shadowsocks/shadowsocks-windows	14619
+
+kdn251/interviews	14586
+
+scutan90/DeepLearning-500-questions	14497
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears5.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears5.out
new file mode 100644
index 0000000000..27e33b1082
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears5.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears5 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears5_2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears5_3 --
+
+996icu/996.ICU	344825
+
+jackfrued/Python-100-Days	76845
+
+M4cs/BabySploit	71013
+
+Snailclimb/JavaGuide	53444
+
+TheAlgorithms/Python	48859
+
+CyC2018/CS-Notes	46609
+
+MisterBooo/LeetCodeAnimation	41526
+
+vuejs/vue	39159
+
+flutter/flutter	38733
+
+doocs/advanced-java	35338
+
+microsoft/Terminal	34359
+
+jlevy/the-art-of-command-line	30852
+
+kamranahmedse/developer-roadmap	30842
+
+facebook/react	29040
+
+donnemartin/system-design-primer	27042
+
+tensorflow/tensorflow	27032
+
+macrozheng/mall	26520
+
+testerSunshine/12306	26414
+
+sindresorhus/awesome	26286
+
+azl397985856/leetcode	25765
+
+jwasham/coding-interview-university	25556
+
+PanJiaChen/vue-element-admin	25101
+
+0voice/interview_internal_reference	24557
+
+lib-pku/libpku	23015
+
+getify/You-Dont-Know-JS	22647
+
+EbookFoundation/free-programming-books	21884
+
+microsoft/terminal	21878
+
+scutan90/DeepLearning-500-questions	21784
+
+deepfakes/faceswap	21237
+
+sveltejs/svelte	20969
+
+torvalds/linux	20455
+
+vinta/awesome-python	20217
+
+justjavac/free-programming-books-zh_CN	20137
+
+30-seconds/30-seconds-of-code	19784
+
+formulahendry/955.WLB	19772
+
+NationalSecurityAgency/ghidra	19651
+
+robbyrussell/oh-my-zsh	19602
+
+imhuay/Algorithm_Interview_Notes-Chinese	19508
+
+trekhleb/javascript-algorithms	19460
+
+LisaDziuba/Awesome-Design-Tools	19142
+
+freeCodeCamp/freeCodeCamp	18955
+
+golang/go	18842
+
+alibaba/flutter-go	18382
+
+ziishaned/learn-regex	18352
+
+github/gitignore	18228
+
+danistefanovic/build-your-own-x	18155
+
+Advanced-Frontend/Daily-Interview-Question	17797
+
+ossu/computer-science	17794
+
+dcloudio/uni-app	17759
+
+codercom/code-server	17702
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears6.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears6.out
new file mode 100644
index 0000000000..0e2676a90a
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears6.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears6 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears6_2 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears6_3 --
+
+labuladong/fucking-algorithm	77568
+
+jwasham/coding-interview-university	54591
+
+kamranahmedse/developer-roadmap	50944
+
+donnemartin/system-design-primer	37384
+
+EbookFoundation/free-programming-books	36686
+
+public-apis/public-apis	36405
+
+TheAlgorithms/Python	33837
+
+CyC2018/CS-Notes	33517
+
+danistefanovic/build-your-own-x	33283
+
+microsoft/PowerToys	33137
+
+denoland/deno	31550
+
+flutter/flutter	31320
+
+Snailclimb/JavaGuide	31103
+
+trekhleb/javascript-algorithms	30803
+
+sindresorhus/awesome	28424
+
+florinpop17/app-ideas	27989
+
+vuejs/vue	27458
+
+jackfrued/Python-100-Days	26699
+
+CSSEGISandData/COVID-19	26659
+
+ytdl-org/youtube-dl	26475
+
+facebook/react	24122
+
+bradtraversy/design-resources-for-developers	23170
+
+geekxh/hello-algorithm	22650
+
+ohmyzsh/ohmyzsh	21705
+
+microsoft/vscode	21607
+
+cli/cli	21541
+
+torvalds/linux	20547
+
+github/gitignore	19863
+
+getify/You-Dont-Know-JS	19778
+
+goldbergyoni/nodebestpractices	19452
+
+huggingface/transformers	19214
+
+microsoft/playwright	18751
+
+ossu/computer-science	18621
+
+Genymobile/scrcpy	18538
+
+macrozheng/mall	18335
+
+tiangolo/fastapi	17962
+
+gothinkster/realworld	17696
+
+AobingJava/JavaFamily	17495
+
+PanJiaChen/vue-element-admin	17330
+
+microsoft/terminal	16719
+
+willmcgugan/rich	16627
+
+evanw/esbuild	16621
+
+jlevy/the-art-of-command-line	16351
+
+tensorflow/tensorflow	16104
+
+angular/angular	15762
+
+kon9chunkit/GitHub-Chinese-Top-Charts	15738
+
+freeCodeCamp/freeCodeCamp	15701
+
+MisterBooo/LeetCodeAnimation	15686
+
+azl397985856/leetcode	15352
+
+anuraghazra/github-readme-stats	15193
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears7.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears7.out
new file mode 100644
index 0000000000..ebab6a2db9
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheListOfTopRepositoriesChangedOverTheYears7.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears7 --
+0
+
+-- !nereids_howHasTheListOfTopRepositoriesChangedOverTheYears7_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_howHasTheTotalNumberOfStarsChangedOverTime.out b/regression-test/data/github_events_p2/sql/nereids_howHasTheTotalNumberOfStarsChangedOverTime.out
new file mode 100644
index 0000000000..8b8dd02df8
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_howHasTheTotalNumberOfStarsChangedOverTime.out
@@ -0,0 +1,31 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_howHasTheTotalNumberOfStarsChangedOverTime --
+0
+
+-- !nereids_howHasTheTotalNumberOfStarsChangedOverTime_2 --
+0
+
+-- !nereids_howHasTheTotalNumberOfStarsChangedOverTime_3 --
+
+2011	1831742
+
+2012	4048676
+
+2013	7432800
+
+2014	11952935
+
+2015	18994833
+
+2016	26166310
+
+2017	32640040
+
+2018	37068153
+
+2019	46118187
+
+2020	45864798
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments1.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments1.out
new file mode 100644
index 0000000000..8797546ade
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments1.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments1 --
+0
+
+-- !nereids_issuesWithTheMostComments1_2 --
+0
+
+-- !nereids_issuesWithTheMostComments1_3 --
+
+218460262
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments2.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments2.out
new file mode 100644
index 0000000000..1f0f5c6b0a
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments2 --
+0
+
+-- !nereids_issuesWithTheMostComments2_2 --
+0
+
+-- !nereids_issuesWithTheMostComments2_3 --
+
+kubernetes/kubernetes	1450081
+
+apache/spark	790480
+
+rust-lang/rust	502960
+
+cms-sw/cmssw	478607
+
+google-test/signcla-probe-repo	477302
+
+openshift/origin	445639
+
+brianchandotcom/liferay-portal	392474
+
+NixOS/nixpkgs	349733
+
+elastic/kibana	330168
+
+ansible/ansible	312424
+
+everypolitician/everypolitician-data	293714
+
+flutter/flutter	291260
+
+owncloud/core	283295
+
+istio/istio	272426
+
+Microsoft/vscode	267468
+
+nodejs/node	258525
+
+tensorflow/tensorflow	255957
+
+MicrosoftDocs/azure-docs	245829
+
+JuliaLang/julia	229092
+
+golang/go	222317
+
+cockroachdb/cockroach	222305
+
+tgstation/tgstation	221465
+
+joomla/joomla-cms	218215
+
+servo/servo	213924
+
+dotnet/corefx	205892
+
+angular/angular	200608
+
+magento/magento2	198987
+
+saltstack/salt	196898
+
+docker/docker	194622
+
+facebook/react-native	188756
+
+dotnet/roslyn	187150
+
+apple/swift	175983
+
+elastic/elasticsearch	175442
+
+symfony/symfony	171438
+
+rails/rails	170580
+
+godotengine/godot	168950
+
+Automattic/wp-calypso	165136
+
+openshift/release	164215
+
+DefinitelyTyped/DefinitelyTyped	164071
+
+odoo/odoo	163858
+
+edx/edx-platform	157913
+
+pytorch/pytorch	151349
+
+microsoft/vscode	151038
+
+bitcoin/bitcoin	146471
+
+MarlinFirmware/Marlin	146463
+
+ManageIQ/manageiq	145739
+
+scikit-learn/scikit-learn	140762
+
+ceph/ceph	138518
+
+CleverRaven/Cataclysm-DDA	138073
+
+openshift/console	135628
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments3.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments3.out
new file mode 100644
index 0000000000..d749284a6d
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments3.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments3 --
+0
+
+-- !nereids_issuesWithTheMostComments3_2 --
+0
+
+-- !nereids_issuesWithTheMostComments3_3 --
+
+kubernetes/kubernetes	1450081	84926	17.07
+
+apache/spark	790480	26868	29.42
+
+rust-lang/rust	502960	58464	8.6
+
+cms-sw/cmssw	478607	25416	18.83
+
+google-test/signcla-probe-repo	477302	352281	1.35
+
+openshift/origin	445639	24421	18.25
+
+brianchandotcom/liferay-portal	392474	75549	5.19
+
+NixOS/nixpkgs	349733	74658	4.68
+
+elastic/kibana	330168	74871	4.41
+
+ansible/ansible	312424	56428	5.54
+
+everypolitician/everypolitician-data	293714	161361	1.82
+
+flutter/flutter	291260	62236	4.68
+
+owncloud/core	283295	26167	10.83
+
+istio/istio	272426	26903	10.13
+
+Microsoft/vscode	267468	64724	4.13
+
+nodejs/node	258525	33085	7.81
+
+tensorflow/tensorflow	255957	39964	6.4
+
+MicrosoftDocs/azure-docs	245829	64346	3.82
+
+JuliaLang/julia	229092	24823	9.23
+
+golang/go	222317	33491	6.64
+
+cockroachdb/cockroach	222305	49166	4.52
+
+tgstation/tgstation	221465	29711	7.45
+
+joomla/joomla-cms	218215	25276	8.63
+
+servo/servo	213924	21934	9.75
+
+dotnet/corefx	205892	34315	6.0
+
+angular/angular	200608	38680	5.19
+
+magento/magento2	198987	29518	6.74
+
+saltstack/salt	196898	30613	6.43
+
+docker/docker	194622	23236	8.38
+
+facebook/react-native	188756	28972	6.52
+
+dotnet/roslyn	187150	37405	5.0
+
+apple/swift	175983	32754	5.37
+
+elastic/elasticsearch	175442	51588	3.4
+
+symfony/symfony	171438	25420	6.74
+
+rails/rails	170580	22179	7.69
+
+godotengine/godot	168950	35601	4.75
+
+Automattic/wp-calypso	165136	43411	3.8
+
+openshift/release	164215	13736	11.96
+
+DefinitelyTyped/DefinitelyTyped	164071	39051	4.2
+
+odoo/odoo	163858	49072	3.34
+
+edx/edx-platform	157913	18112	8.72
+
+pytorch/pytorch	151349	38739	3.91
+
+microsoft/vscode	151038	39050	3.87
+
+bitcoin/bitcoin	146471	14580	10.05
+
+MarlinFirmware/Marlin	146463	14891	9.84
+
+ManageIQ/manageiq	145739	19212	7.59
+
+scikit-learn/scikit-learn	140762	14127	9.96
+
+ceph/ceph	138518	29380	4.71
+
+CleverRaven/Cataclysm-DDA	138073	22839	6.05
+
+openshift/console	135628	7204	18.83
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments4.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments4.out
new file mode 100644
index 0000000000..4a7de18fac
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments4.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments4 --
+0
+
+-- !nereids_issuesWithTheMostComments4_2 --
+0
+
+-- !nereids_issuesWithTheMostComments4_3 --
+
+sauron-demo/sauron	1	21297
+
+gafusion/regression_notifications	1	15677
+
+odoo-mergebot-testing-org/repo	1	13315
+
+zeit-github-test/github-utils-test	1	9260
+
+odoo-mergebot-testing-org/proj	1	7681
+
+tphongio/elasticbox-plugin	1	6167
+
+openshift/oc	270	5917
+
+openfoodfacts/openfoodfacts-server	3767	5098
+
+codecov/ci-repo	4	5078
+
+openshift/cluster-resource-override-admission-operator	29	4562
+
+odoo-mergebot-testing-org/proj	2	4296
+
+ingvagabund/kubernetes	58	4136
+
+garethjevans/jenkins-cwp-quickstart01	1	4122
+
+Kitware/CDash	80	4005
+
+odoo-mergebot-testing-org/proj	3	3767
+
+cockpit-project/cockpit	7636	3330
+
+fuszenecker/CSharpDemo	5	3329
+
+openshift/tektoncd-pipeline-operator	494	3303
+
+xbrianlee/liferay-portal	369	3201
+
+D00Med/farlands	77	3183
+
+getlantern/forum	313	3123
+
+openshift/origin	18826	3067
+
+githubschool/open-enrollment-classes-introduction-to-github	927	3005
+
+gitalk/gitalk	1	2783
+
+MarshalX/yandex-music-api	339	2712
+
+MicrosoftDocs/E2E_MicrosoftDocs_Dynamic	1	2675
+
+OpenKore/openkore	628	2574
+
+MR-M3/Idksomething	1	2557
+
+D00Med/farlands	108	2554
+
+theapache64/movie-monk-commenter	1	2546
+
+openshift/ovn-kubernetes	159	2534
+
+openshift/template-service-broker-operator	62	2533
+
+sofae/pyscript	1	2518
+
+jaecSolutions/Unito-dev	10	2512
+
+oskosk/node-wms-client	2	2510
+
+Nexus-Mods/Vortex	6634	2509
+
+jaecSolutions/Unito-dev	6	2504
+
+alistairjcbrown/mock-repo	7	2504
+
+didiladi/mac-build-test	8	2504
+
+jaecSolutions/Unito-dev	9	2502
+
+openfoodfacts/openfoodfacts-server	4410	2502
+
+threejsworker/threejsworker	12	2500
+
+mesosphere-mergebot/mergebot-test-dcos	309	2500
+
+openshift/odo	2346	2500
+
+googleapis/google-cloud-go	3111	2499
+
+cockpit-project/cockpit	3455	2499
+
+jlord/patchwork	4542	2499
+
+jlord/patchwork	6762	2499
+
+cockpit-project/cockpit	7635	2499
+
+PennyDreadfulMTG/perf-reports	52349	2498
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments5.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments5.out
new file mode 100644
index 0000000000..9f6a84a7c6
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments5.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments5 --
+0
+
+-- !nereids_issuesWithTheMostComments5_2 --
+0
+
+-- !nereids_issuesWithTheMostComments5_3 --
+
+openshift/oc	270	5917
+
+openfoodfacts/openfoodfacts-server	3767	5098
+
+openshift/cluster-resource-override-admission-operator	29	4562
+
+ingvagabund/kubernetes	58	4136
+
+Kitware/CDash	80	4005
+
+cockpit-project/cockpit	7636	3330
+
+openshift/tektoncd-pipeline-operator	494	3303
+
+xbrianlee/liferay-portal	369	3201
+
+D00Med/farlands	77	3183
+
+getlantern/forum	313	3123
+
+openshift/origin	18826	3067
+
+githubschool/open-enrollment-classes-introduction-to-github	927	3005
+
+MarshalX/yandex-music-api	339	2712
+
+OpenKore/openkore	628	2574
+
+D00Med/farlands	108	2554
+
+openshift/ovn-kubernetes	159	2534
+
+openshift/template-service-broker-operator	62	2533
+
+Nexus-Mods/Vortex	6634	2509
+
+openfoodfacts/openfoodfacts-server	4410	2502
+
+mesosphere-mergebot/mergebot-test-dcos	309	2500
+
+openshift/odo	2346	2500
+
+threejsworker/threejsworker	12	2500
+
+cockpit-project/cockpit	3455	2499
+
+cockpit-project/cockpit	7635	2499
+
+googleapis/google-cloud-go	3111	2499
+
+jlord/patchwork	4542	2499
+
+jlord/patchwork	6762	2499
+
+PennyDreadfulMTG/perf-reports	52349	2498
+
+PennyDreadfulMTG/perf-reports	50472	2497
+
+jlord/patchwork	8914	2496
+
+wildfly/wildfly	8947	2495
+
+PennyDreadfulMTG/perf-reports	53234	2494
+
+PennyDreadfulMTG/perf-reports	50762	2491
+
+RedisDesktop/rdm-debug-symbols	63	2491
+
+allencloud/daoker	48	2491
+
+PennyDreadfulMTG/perf-reports	50189	2488
+
+tannakartikey/currents	29	2487
+
+kubernetes/kubernetes	33388	2485
+
+puneet-tm/wirelessone-support	147	2483
+
+ros-infrastructure/roswiki	139	2483
+
+sauron-demo/sauron-demo	190	2482
+
+tannakartikey/currents	25	2482
+
+tannakartikey/currents	33	2482
+
+vitech-team/mood-feed-frontend	50	2480
+
+tannakartikey/currents	31	2479
+
+Zeroshi/Docs	1370	2475
+
+puneet-tm/wirelessone-support	137	2473
+
+PennyDreadfulMTG/perf-reports	53515	2468
+
+PennyDreadfulMTG/perf-reports	42826	2444
+
+yegor256/cactoos	486	2426
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments6.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments6.out
new file mode 100644
index 0000000000..c119f62650
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments6.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments6 --
+0
+
+-- !nereids_issuesWithTheMostComments6_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments7.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments7.out
new file mode 100644
index 0000000000..6f9aa6c744
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments7.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments7 --
+0
+
+-- !nereids_issuesWithTheMostComments7_2 --
+0
+
+-- !nereids_issuesWithTheMostComments7_3 --
+
+dcos/dcos	99251	16
+
+NREL/EnergyPlus	74922	41
+
+miabot/galleries.csv	52634	2
+
+siggetest/githubtest	52171	1
+
+bambootest-bot/githubtest	46876	1
+
+mozilla/rust	33708	82
+
+TrinityCore/TrinityCore	24386	1550
+
+kubernetes/kubernetes	21406	268
+
+xamarin/xamarin-macios	18893	28
+
+w4ctech/front-end-rss	17979	1
+
+rust-lang/rust	16160	238
+
+zeit-github-test/github-e2e-tests-dev	15344	3
+
+JuliaLang/julia	14932	262
+
+NREL/OpenStudio	14375	32
+
+bvcms/bvcms	13748	12
+
+mozilla-mobile/android-components	13675	10
+
+NixOS/nixpkgs	12854	672
+
+mangosR2/mangos	10585	194
+
+servo/servo	10283	76
+
+jirikuncar/invenio	9687	17
+
+rails/rails	9514	2383
+
+department-of-veterans-affairs/va.gov-cms	9211	10
+
+Wikia/app	9118	95
+
+coala-analyzer/coala	8878	30
+
+discourse/discourse	8625	331
+
+PaddlePaddle/Paddle	8623	30
+
+zeit-github-test/github-e2e-tests-dev-alias-v2-without-alias	8517	3
+
+zeit-github-test/github-e2e-tests-dev-alias-v2-with-alias	8504	3
+
+JetBrains/kotlin	8488	153
+
+zeit-github-test/github-e2e-test-dev-forked-repo	8364	3
+
+pantheon-systems/documentation	8001	38
+
+zeit-github-test/github-e2e-test-dev-domain-issues	7704	3
+
+theowenyoung/theowenyoung.github.io	7610	3
+
+odoo-dev/odoo	7528	210
+
+zeit-github-test/github-utils-test	7477	1
+
+mono/MonoGame	7394	64
+
+Hack23/cia	7099	3
+
+stellar/stellar-core	7098	26
+
+mozilla/servo	6962	26
+
+xbmc/xbmc	6836	416
+
+stdlib-js/stdlib	6782	5
+
+MyEtherWallet/MyEtherWallet	6583	20
+
+cle-event-calendar/cle-event-calendar.github.io	6104	1
+
+advancedtelematic/rvi_sota_server	6028	6
+
+ceph/ceph	5804	208
+
+mono/CppSharp	5790	20
+
+pachoclo/corona-tracker	5443	3
+
+xwiki/xwiki-platform	5144	43
+
+SthephanShinkufag/Dollchan-Extension-Tools	4977	33
+
+netty/netty	4759	156
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments8.out b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments8.out
new file mode 100644
index 0000000000..1e03b9b33c
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_issuesWithTheMostComments8.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_issuesWithTheMostComments8 --
+0
+
+-- !nereids_issuesWithTheMostComments8_2 --
+0
+
+-- !nereids_issuesWithTheMostComments8_3 --
+
+https://github.com/nixxquality/WebMConverter/commit/c1ac0baac06fa7175677a4a1bf65860a84708d67	467	156
+
+https://github.com/torvalds/linux/commit/8a104f8b5867c682d994ffa7a74093c54469c11f	410	181
+
+https://github.com/SEI-ATL/select-best-player/commit/fdc6e0e073fa30acf2041ca0b1c9fecd662d88c8	408	31
+
+https://github.com/goagent/goagent/commit/e492ed0283f5cde7cf71d7ac47429f64aa48cd13	378	346
+
+https://github.com/apple/swift/commit/18844bc65229786b96b89a9fc7739c0fc897905e	345	331
+
+https://github.com/shadowsocks/shadowsocks/commit/938bba32a4008bdde9c064dda6a0597987ddef54	309	258
+
+https://github.com/mosh-hamedani/vidly-mvc-5/commit/b727a26e1b4b88abe84a8b48208fec537db2ed43	283	157
+
+https://github.com/hklcf/myTV-api/commit/375fa7520455b53fad622c0149a473ebee048e15	272	26
+
+https://github.com/NecronomiconCoding/NecroBot/commit/26e57d9feac57ab372ac466ef6cd66218faa475c	262	75
+
+https://github.com/zhaohmng/-21-/commit/0cc2b2a546ad51fb360ba800c67b057ea3270869	249	187
+
+https://github.com/mlouielu/cn_constitution_2018/commit/646c76a573ad49414e708c091393ddb7c437f286	245	181
+
+https://github.com/kohsuke/sandbox-ant/commit/8ae38db0ea5837313ab5f39d43a6f73de3bd9000	233	65
+
+https://github.com/iride2020/iRide-Token/commit/8f810b3700a24de0ee4f945ef84be7b2f1605610	228	183
+
+https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac	227	205
+
+https://github.com/yuuwill/1024app-android/commit/0b02f1815686fa657d7b4a9583019fe4d203b80a	217	142
+
+https://github.com/3dshax/ctr/commit/bcb3734b9a26d0fe7ef66f7d3814406fee797303	201	137
+
+https://github.com/rails/rails/commit/b83965785db1eec019edf1fc272b1aa393e6dc57	200	123
+
+https://github.com/tmux/tmux/commit/d2b35e19cdd61d163d26c4babccc1550e72a9623	196	188
+
+https://github.com/mosh-hamedani/vidly-mvc-5/commit/93f39efe3ef0ce9c25ef09ebef60ad2dfc1fe7f3	191	107
+
+https://github.com/mosh-hamedani/vidly-mvc-5/commit/acb8c0a0a27255e3f0af85ab2f687e0e9b82b6db	165	95
+
+https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23ca2e25604af290	163	151
+
+https://github.com/easylist/easylist/commit/a4d380ad1a3b33a0fab679a1a8c5a791321622b3	159	68
+
+https://github.com/udacity/ud843-QuakeReport/commit/14541da929b771249ea8209698d324b61bbeee7e	153	89
+
+https://github.com/mikeozornin/constitution-of-russia/commit/facbe841eab3f434bd03af3627d4475ea4a671cd	138	60
+
+https://github.com/lianshang/code-review-fe/commit/552d837b334b32130a50db389e5ceee1a66f0f37	133	11
+
+https://github.com/BETAFPV/opentx/commit/49a748044b6fd538b581db3bab0c127f6c7959bc	128	10
+
+https://github.com/octocat/Spoon-Knife/commit/d0dd1f61b33d64e29d8bc1372a94ef6a2fee76a9	126	93
+
+https://github.com/Unad-BDBasicas/Inicial_Evidencia_1_3/commit/c7ab5c04f438f0221d2beb75a868a82f40adcb56	125	98
+
+https://github.com/Ar1i/PokemonGo-Bot/commit/e3d12abaf0c6ab022ea33c126856cac46c530f6d	123	19
+
+https://github.com/ruby/ruby/commit/6b8d4ab840b2d76d356ba30dbccfef4f5fd10767	122	122
+
+https://github.com/tumblr/policy/commit/991c5d73775a0fa0e06e258768f91d040e27a7a5	121	82
+
+https://github.com/ajithcj/Stockfish/commit/e8b409d740e3170aaa52d0304bab330a845e6ffe	120	17
+
+https://github.com/torvalds/linux/commit/1da177e4c3f41524e886b7f1b8a0c1fc7321cac2	120	113
+
+https://github.com/mosh-hamedani/vidly-mvc-5/commit/e7fb4e6973bbcf640780e44e18f3c12344460138	117	67
+
+https://github.com/github/dmca/commit/bccf7d0dbfec423c4a967f668be47b6339d15893	114	78
+
+https://github.com/mikegithubber/my-first-github-repository/commit/b5ed1a1bc1a737c13818847529fb21ed615e6e66	109	107
+
+https://github.com/google/brotli/commit/c4f439dbe6007b2a37d50c20419253d5aaa8b46b	106	53
+
+https://github.com/londonappbrewery/destini-challenge-completed/commit/69ed867992fc05f13a4fbef452173a956312993d	103	78
+
+https://github.com/bkeepers/dear-github/commit/4afa490932578027462f2a8f404a38adace02f16	101	94
+
+https://github.com/summerhoax/summerhoax.github.io/commit/446dbba4e51319fb62c55ef55bfbd12bfd92021f	100	10
+
+https://github.com/IIITSERC/SSAD_2015_A3_Group2_23/commit/404661768e73939c0dbe3fa80ca2752587158e29	99	10
+
+https://github.com/laboratorioIS/04_CV/commit/4a63b5b50251c59e74560e60054470fc9abc8d27	99	94
+
+https://github.com/mpv-player/mpv/commit/a20ae0417f2d1e1a2c173f5eaf66a81974df0008	98	25
+
+https://github.com/shadowsocks/shadowsocks/commit/5b450acfaa15cd6c2d3e8ab99f9297542df74025	98	92
+
+https://github.com/PCSX2/pcsx2/commit/f81cf360bce91649a5827967dc5e73c926711611	97	10
+
+https://github.com/linsonder6/Tesla/commit/217ed735d4b568cd02b6a3903b305a622c14a0b1	97	11
+
+https://github.com/mosh-hamedani/vidly-mvc-5/commit/8a852d11f4f8eb95b9f57e296fefb25bc0acd21b	96	64
+
+https://github.com/DrKLO/Telegram/commit/64e8ec3fbd26a876b7683f83a6f59c6b67316421	95	46
+
+https://github.com/forezp/SpringcloudConfig/commit/a68876a6211369bae723348d5f8c3defe4a55e04	95	66
+
+https://github.com/imsun/gitment/commit/cb5779f30b603b3431c2ee6e759ae6425d89797e	94	30
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_mostForkedRepositories.out b/regression-test/data/github_events_p2/sql/nereids_mostForkedRepositories.out
new file mode 100644
index 0000000000..835383d784
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_mostForkedRepositories.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_mostForkedRepositories --
+0
+
+-- !nereids_mostForkedRepositories_2 --
+0
+
+-- !nereids_mostForkedRepositories_3 --
+
+jtleek/datasharing	262926
+
+octocat/Spoon-Knife	198031
+
+rdpeng/ProgrammingAssignment2	160794
+
+tensorflow/tensorflow	98226
+
+twbs/bootstrap	92878
+
+github/gitignore	84075
+
+SmartThingsCommunity/SmartThingsPublic	78551
+
+barryclark/jekyll-now	68601
+
+rdpeng/ExData_Plotting1	67182
+
+nightscout/cgm-remote-monitor	59420
+
+Pierian-Data/Complete-Python-3-Bootcamp	49504
+
+tensorflow/models	49502
+
+torvalds/linux	47280
+
+jlord/patchwork	45136
+
+facebook/react	44678
+
+eugenp/tutorials	44522
+
+rdpeng/RepData_PeerAssessment1	44449
+
+angular/angular.js	43790
+
+jackfrued/Python-100-Days	41558
+
+opencv/opencv	41545
+
+spring-projects/spring-boot	38610
+
+LarryMad/recipes	38317
+
+vuejs/vue	37441
+
+laravel/laravel	36584
+
+jwasham/coding-interview-university	36256
+
+udacity/frontend-nanodegree-resume	35434
+
+mrdoob/three.js	35378
+
+django/django	34930
+
+firstcontributions/first-contributions	34173
+
+spring-projects/spring-framework	33862
+
+Snailclimb/JavaGuide	33198
+
+jquery/jquery	31858
+
+ant-design/ant-design	31286
+
+getify/You-Dont-Know-JS	31020
+
+CyC2018/CS-Notes	30915
+
+TheAlgorithms/Python	30656
+
+rails/rails	30602
+
+DefinitelyTyped/DefinitelyTyped	30389
+
+mmistakes/minimal-mistakes	29852
+
+kubernetes/kubernetes	29487
+
+apache/spark	28904
+
+facebook/react-native	27146
+
+996icu/996.ICU	27101
+
+ansible/ansible	27001
+
+scikit-learn/scikit-learn	26726
+
+robbyrussell/oh-my-zsh	26561
+
+coolsnowwolf/lede	26469
+
+bitcoin/bitcoin	26356
+
+git/git	25929
+
+angular/angular	25463
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_mostPopularCommentsOnGithub.out b/regression-test/data/github_events_p2/sql/nereids_mostPopularCommentsOnGithub.out
new file mode 100644
index 0000000000..5f5abdf922
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_mostPopularCommentsOnGithub.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_mostPopularCommentsOnGithub --
+0
+
+-- !nereids_mostPopularCommentsOnGithub_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_organizationsByTheNumberOfRepositories.out b/regression-test/data/github_events_p2/sql/nereids_organizationsByTheNumberOfRepositories.out
new file mode 100644
index 0000000000..736f5d0eb4
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_organizationsByTheNumberOfRepositories.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_organizationsByTheNumberOfRepositories --
+0
+
+-- !nereids_organizationsByTheNumberOfRepositories_2 --
+0
+
+-- !nereids_organizationsByTheNumberOfRepositories_3 --
+
+microsoft	3359
+
+google	1599
+
+openstack	1412
+
+packtpublishing	1381
+
+apache	1017
+
+sindresorhus	1016
+
+azure	818
+
+aws-samples	761
+
+mozilla	727
+
+googlecloudplatform	718
+
+awslabs	712
+
+jenkinsci	596
+
+substack	594
+
+ibm	593
+
+adafruit	541
+
+mapbox	494
+
+mafintosh	481
+
+azure-samples	473
+
+cyanogenmod	451
+
+apress	445
+
+w3c	397
+
+keijiro	391
+
+udacity	387
+
+stackforge	359
+
+alibaba	348
+
+facebookresearch	328
+
+llsourcell	328
+
+esri	325
+
+facebook	311
+
+egoist	302
+
+github	299
+
+fossasia	292
+
+spatie	292
+
+mattn	288
+
+heroku	283
+
+unity-technologies	278
+
+vim-scripts	277
+
+ropensci	275
+
+jonschlinkert	271
+
+gnome	267
+
+googlesamples	264
+
+maxogden	264
+
+hashicorp	262
+
+jetbrains	260
+
+lineageos	259
+
+eclipse	257
+
+automattic	255
+
+officedev	255
+
+segmentio	253
+
+aws	251
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_organizationsByTheNumberOfStars.out b/regression-test/data/github_events_p2/sql/nereids_organizationsByTheNumberOfStars.out
new file mode 100644
index 0000000000..debe49e8c2
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_organizationsByTheNumberOfStars.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_organizationsByTheNumberOfStars --
+0
+
+-- !nereids_organizationsByTheNumberOfStars_2 --
+0
+
+-- !nereids_organizationsByTheNumberOfStars_3 --
+
+google	1414877
+
+microsoft	1361303
+
+facebook	1123380
+
+alibaba	580707
+
+sindresorhus	565535
+
+apache	553204
+
+vuejs	494824
+
+tensorflow	425613
+
+freecodecamp	407610
+
+fossasia	398255
+
+github	379901
+
+airbnb	378280
+
+996icu	354957
+
+angular	314363
+
+square	296221
+
+tencent	290161
+
+symfony	281686
+
+mozilla	275422
+
+facebookresearch	269377
+
+twitter	236120
+
+shadowsocks	232179
+
+kamranahmedse	209439
+
+donnemartin	195645
+
+netflix	193916
+
+dotnet	191059
+
+kubernetes	188557
+
+golang	178867
+
+googlesamples	176609
+
+thealgorithms	174471
+
+spring-projects	174352
+
+zeit	174319
+
+apple	173102
+
+getify	171049
+
+docker	170096
+
+laravel	167122
+
+jwasham	166419
+
+googlechrome	162071
+
+twbs	161475
+
+flutter	159926
+
+hashicorp	158643
+
+awslabs	154676
+
+jakewharton	143577
+
+reactjs	142652
+
+kennethreitz	140109
+
+reactivex	140062
+
+elastic	139639
+
+googlecloudplatform	139094
+
+uber	137406
+
+atom	137328
+
+justjavac	136694
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_organizationsByTheSizeOfCommunity.out b/regression-test/data/github_events_p2/sql/nereids_organizationsByTheSizeOfCommunity.out
new file mode 100644
index 0000000000..1dafdeb74e
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_organizationsByTheSizeOfCommunity.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_organizationsByTheSizeOfCommunity --
+0
+
+-- !nereids_organizationsByTheSizeOfCommunity_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks1.out b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks1.out
new file mode 100644
index 0000000000..fbc7d732f5
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_proportionsBetweenStarsAndForks1 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks1_2 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks1_3 --
+
+jtleek/datasharing	262926	6364	0.024
+
+octocat/Spoon-Knife	198031	4601	0.023
+
+rdpeng/ProgrammingAssignment2	160794	990	0.006
+
+tensorflow/tensorflow	98226	173681	1.768
+
+twbs/bootstrap	92878	126371	1.361
+
+github/gitignore	84075	119322	1.419
+
+SmartThingsCommunity/SmartThingsPublic	78551	2073	0.026
+
+barryclark/jekyll-now	68601	8185	0.119
+
+rdpeng/ExData_Plotting1	67182	271	0.004
+
+nightscout/cgm-remote-monitor	59420	1784	0.03
+
+Pierian-Data/Complete-Python-3-Bootcamp	49504	14952	0.302
+
+tensorflow/models	49502	75206	1.519
+
+torvalds/linux	47280	121415	2.568
+
+jlord/patchwork	45136	1329	0.029
+
+facebook/react	44678	188575	4.221
+
+eugenp/tutorials	44522	26055	0.585
+
+rdpeng/RepData_PeerAssessment1	44449	124	0.003
+
+angular/angular.js	43790	76251	1.741
+
+jackfrued/Python-100-Days	41558	108760	2.617
+
+opencv/opencv	41545	45223	1.089
+
+spring-projects/spring-boot	38610	58232	1.508
+
+LarryMad/recipes	38317	170	0.004
+
+vuejs/vue	37441	199731	5.335
+
+laravel/laravel	36584	74136	2.026
+
+jwasham/coding-interview-university	36256	119797	3.304
+
+udacity/frontend-nanodegree-resume	35434	1351	0.038
+
+mrdoob/three.js	35378	72597	2.052
+
+django/django	34930	66415	1.901
+
+firstcontributions/first-contributions	34173	11620	0.34
+
+spring-projects/spring-framework	33862	44540	1.315
+
+Snailclimb/JavaGuide	33198	97793	2.946
+
+jquery/jquery	31858	65497	2.056
+
+ant-design/ant-design	31286	71552	2.287
+
+getify/You-Dont-Know-JS	31020	144146	4.647
+
+CyC2018/CS-Notes	30915	93320	3.019
+
+TheAlgorithms/Python	30656	102067	3.329
+
+rails/rails	30602	53620	1.752
+
+DefinitelyTyped/DefinitelyTyped	30389	27883	0.918
+
+mmistakes/minimal-mistakes	29852	8299	0.278
+
+kubernetes/kubernetes	29487	68644	2.328
+
+apache/spark	28904	32616	1.128
+
+facebook/react-native	27146	105346	3.881
+
+996icu/996.ICU	27101	354850	13.094
+
+ansible/ansible	27001	51144	1.894
+
+scikit-learn/scikit-learn	26726	48654	1.82
+
+robbyrussell/oh-my-zsh	26561	107173	4.035
+
+coolsnowwolf/lede	26469	15568	0.588
+
+bitcoin/bitcoin	26356	53646	2.035
+
+git/git	25929	41413	1.597
+
+angular/angular	25463	80602	3.165
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks2.out b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks2.out
new file mode 100644
index 0000000000..479a0072be
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_proportionsBetweenStarsAndForks2 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks2_2 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks2_3 --
+
+M4cs/BabySploit	147	71572	486.884
+
+tipsy/github-profile-summary	330	22397	67.87
+
+doctrine/inflector	155	10236	66.039
+
+phpDocumentor/ReflectionDocBlock	143	8547	59.769
+
+pakastin/open-source-flash	128	7326	57.234
+
+egulias/EmailValidator	177	9835	55.565
+
+symfony/var-dumper	127	6770	53.307
+
+laravel/tinker	129	6773	52.504
+
+guzzle/promises	126	6596	52.349
+
+paragonie/random_compat	157	7941	50.58
+
+fideloper/TrustedProxy	147	7201	48.986
+
+charmbracelet/glow	120	5838	48.65
+
+woltapp/blurhash	168	7875	46.875
+
+dandavison/delta	140	6494	46.386
+
+simeji/jid	129	5976	46.326
+
+akavel/up	111	4873	43.901
+
+evanw/esbuild	384	16631	43.31
+
+webmozart/assert	158	6795	43.006
+
+tomnomnom/gron	200	8597	42.985
+
+sharkdp/hyperfine	158	6685	42.31
+
+pikapkg/web	119	4986	41.899
+
+mixn/carbon-now-cli	116	4778	41.19
+
+CodeHubApp/CodeHub	392	15897	40.554
+
+mjswensen/themer	102	4091	40.108
+
+react-spring/zustand	105	4166	39.676
+
+GoogleChromeLabs/react-adaptive-hooks	117	4620	39.487
+
+swc-project/swc	254	10011	39.413
+
+Raathigesh/majestic	180	7055	39.194
+
+sveinbjornt/Sloth	109	4254	39.028
+
+luruke/browser-2020	213	8278	38.864
+
+rhysd/vim.wasm	119	4603	38.681
+
+auchenberg/volkswagen	306	11730	38.333
+
+resume/resume.github.com	1786	68423	38.311
+
+kdeldycke/awesome-falsehood	411	15675	38.139
+
+uswds/public-sans	102	3890	38.137
+
+GoogleChromeLabs/ndb	265	10035	37.868
+
+developit/htm	159	5973	37.566
+
+Canop/broot	131	4894	37.359
+
+you-dont-need/You-Dont-Need-Momentjs	288	10749	37.323
+
+romefrontend/rome	131	4843	36.969
+
+jlongster/prettier	139	5111	36.77
+
+pojala/electrino	118	4333	36.72
+
+symfony/console	235	8546	36.366
+
+timqian/chart.xkcd	182	6578	36.143
+
+developit/workerize	111	4000	36.036
+
+joeycastillo/The-Open-Book	122	4362	35.754
+
+framer/motion	242	8626	35.645
+
+nearform/node-clinic	102	3633	35.618
+
+dylanbeattie/rockstar	139	4863	34.986
+
+muesli/duf	141	4933	34.986
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks3.out b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks3.out
new file mode 100644
index 0000000000..82403da740
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks3.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_proportionsBetweenStarsAndForks3 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks3_2 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks3_3 --
+
+rdpeng/RepData_PeerAssessment1	44449	124	358.46
+
+rdpeng/ExData_Plotting1	67182	271	247.9
+
+LarryMad/recipes	38317	170	225.39
+
+rdpeng/ProgrammingAssignment2	160794	990	162.42
+
+jenkins-docs/simple-java-maven-app	14484	222	65.24
+
+deadlyvipers/dojo_rules	13600	213	63.85
+
+google/it-cert-automation-practice	15163	288	52.65
+
+jleetutorial/maven-project	8191	171	47.9
+
+jenkins-docs/simple-node-js-react-npm-app	5946	128	46.45
+
+udacity/fullstack-nanodegree-vm	16782	373	44.99
+
+typicode/demo	8291	185	44.82
+
+octocat/Spoon-Knife	198031	4601	43.04
+
+scm-ninja/starter-web	16299	385	42.34
+
+jtleek/datasharing	262926	6364	41.31
+
+openshift/nodejs-ex	6956	171	40.68
+
+saasbook/hw-ruby-intro	4303	109	39.48
+
+SmartThingsCommunity/SmartThingsPublic	78551	2073	37.89
+
+saasbook/hw3_rottenpotatoes	8813	242	36.42
+
+sclorg/nodejs-ex	6243	175	35.67
+
+holbertonschool/your_first_code	4153	117	35.5
+
+jlord/patchwork	45136	1329	33.96
+
+LambdaSchool/portfolio-website	3526	104	33.9
+
+nightscout/cgm-remote-monitor	59420	1784	33.31
+
+udacity/OAuth2.0	3779	114	33.15
+
+xudailong/xudailong.github.io	3235	101	32.03
+
+zeit/now-github-starter	5992	190	31.54
+
+springframeworkguru/spring5-recipe-app	3585	118	30.38
+
+udacity/course-git-blog-project	4720	166	28.43
+
+cerner/smart-on-fhir-tutorial	3031	108	28.06
+
+devart-by-google/devart-template	2887	105	27.5
+
+codeschool-projects/HTMLPortfolioProject	3588	133	26.98
+
+carbon-design-system/carbon-tutorial	2862	109	26.26
+
+udacity/frontend-nanodegree-resume	35434	1351	26.23
+
+udacity/create-your-own-adventure	16268	630	25.82
+
+MicrosoftDocs/pipelines-dotnet-core	4198	166	25.29
+
+Cutwell/Hacktoberfest-Census	3641	144	25.28
+
+iloveponies/training-day	3274	140	23.39
+
+yankils/Simple-DevOps-Project	4408	196	22.49
+
+fluxcd/flux-get-started	2868	129	22.23
+
+udacity/mws-restaurant-stage-1	2807	127	22.1
+
+udacity/devops-intro-project	4152	190	21.85
+
+udacity/course-JS-and-the-DOM	2494	115	21.69
+
+cnfeat/blog.io	5354	256	20.91
+
+evanca/quick-portfolio	4234	205	20.65
+
+udacity/frontend-nanodegree-styleguide	4813	234	20.57
+
+DevMountain/learn-git	2279	111	20.53
+
+Nguyen17/Hacktoberfest-Sign-In	3111	152	20.47
+
+springframeworkguru/spring5webapp	8163	408	20.01
+
+MLH/mlh-localhost-github	2056	105	19.58
+
+do-community/cloud_haiku	2058	106	19.42
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks4.out b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks4.out
new file mode 100644
index 0000000000..85ee1627bb
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks4.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_proportionsBetweenStarsAndForks4 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks4_2 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks4_3 --
+
+84709181	232118474	2.74
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks5.out b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks5.out
new file mode 100644
index 0000000000..8bcf25626a
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_proportionsBetweenStarsAndForks5.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_proportionsBetweenStarsAndForks5 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks5_2 --
+0
+
+-- !nereids_proportionsBetweenStarsAndForks5_3 --
+
+44944118	171567035	3.82
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesByAmountOfModifiedCode.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesByAmountOfModifiedCode.out
new file mode 100644
index 0000000000..13e3c72fd8
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesByAmountOfModifiedCode.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesByAmountOfModifiedCode --
+0
+
+-- !nereids_repositoriesByAmountOfModifiedCode_2 --
+0
+
+-- !nereids_repositoriesByAmountOfModifiedCode_3 --
+
+everypolitician/everypolitician-data	150531	18	66782324	71203492
+
+brianchandotcom/liferay-portal	91962	337	29304605	13799025
+
+googleapis/google-api-java-client-services	4689	17	12184021	9874444
+
+code-dot-org/code-dot-org	35776	125	14329448	6810679
+
+elastic/kibana	51783	798	12478455	6092002
+
+dotnet/roslyn	23642	580	12112106	5703835
+
+shuyangzhou/liferay-portal	7334	140	11510525	6287677
+
+cms-sw/cmssw	28087	947	9488742	5076486
+
+Azure/azure-sdk-for-python	10323	339	10692004	3691779
+
+Azure/azure-sdk-for-net	9775	935	9759909	3188655
+
+Azure/azure-sdk-for-java	11486	270	10819433	2093449
+
+kubernetes/kubernetes	50005	4010	8499117	4214536
+
+Azure/azure-sdk-for-js	8559	173	7966391	2764315
+
+brain-tec/odoo	11568	25	6844586	3767385
+
+rust-lang/rust	35150	3253	6333591	4134718
+
+Azure/azure-sdk-for-go	11374	145	8813959	1631936
+
+ImagicalMine/ImagicalMine	1808	494	5657300	4651706
+
+cockroachdb/cockroach	27273	448	6339775	3681529
+
+AzureSDKAutomation/azure-sdk-for-go	11359	5	7347712	2664515
+
+AzureSDKAutomation/azure-sdk-for-java	5625	2	8289316	950276
+
+dotnet/corefx	23909	1077	5551303	3611403
+
+elastic/elasticsearch	35505	1954	6096474	3035768
+
+sergiogonzalez/liferay-portal	3834	160	6082683	2815344
+
+Azure/azure-powershell	6641	1141	6148306	2514765
+
+DefinitelyTyped/DefinitelyTyped	35999	13794	5722804	2630593
+
+NixOS/nixpkgs	84339	3806	5039996	2723533
+
+ballerina-platform/ballerina-lang	11611	200	4683027	2902904
+
+AzureSDKAutomation/azure-sdk-for-python	3169	8	5340322	2059824
+
+Baystation12/Baystation12	17379	581	4046648	3326499
+
+Roll20/roll20-character-sheets	6955	1090	5360348	2000635
+
+CleverRaven/Cataclysm-DDA	27370	1421	4512562	2775415
+
+edx/edx-platform	24649	721	4436061	2720801
+
+apple/swift	33600	1148	4628287	2429224
+
+Azure/azure-rest-api-specs	9771	1830	6060533	971685
+
+mozilla-b2g/gaia	30192	903	4533023	2275032
+
+BabylonJS/Babylon.js	6378	379	3782068	2994772
+
+apache/flink	13581	1142	4835276	1780093
+
+Ericsson/llvm-project	5273	7	4409783	1959794
+
+ansible/ansible	42368	7278	4943233	1324581
+
+ceph/ceph	37310	1394	4388528	1763042
+
+odoo/odoo	46326	2002	4017686	2067374
+
+pytorch/pytorch	29916	2188	3818920	2261688
+
+cocos2d/cocos2d-x	14981	1125	3764992	2237766
+
+Azure/azure-sdk-for-ruby	1582	93	3334700	2667297
+
+apache/ignite	6894	366	4519341	1470598
+
+juju/juju	11939	145	3949798	1887980
+
+tensorflow/tensorflow	15404	3806	4007607	1503030
+
+servo/servo	14402	1147	3660324	1840343
+
+AzureSDKAutomation/azure-sdk-for-js	2655	4	4085633	1330763
+
+natecavanaugh/liferay-portal	3608	109	3534320	1779103
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesByTheNumberOfPushes.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesByTheNumberOfPushes.out
new file mode 100644
index 0000000000..e420867c1a
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesByTheNumberOfPushes.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesByTheNumberOfPushes --
+0
+
+-- !nereids_repositoriesByTheNumberOfPushes_2 --
+0
+
+-- !nereids_repositoriesByTheNumberOfPushes_3 --
+
+CocoaPods/Specs	516861	375
+
+odoo/odoo	239208	95
+
+docker-library/docs	237496	6
+
+openstack/openstack	202003	2
+
+greatfire/wiki	169566	4
+
+pytorch/pytorch	147447	212
+
+/	145675	18546
+
+NixOS/nixpkgs	125285	177
+
+Automattic/wp-calypso	120883	432
+
+edx/edx-platform	118395	330
+
+freebsd/freebsd	109816	2
+
+ghc/ghc	79590	6
+
+servo/servo	76171	33
+
+JetBrains/kotlin	75102	119
+
+boostorg/boost	72188	14
+
+llvm-mirror/llvm	71895	2
+
+gradle/gradle	71725	72
+
+elastic/elasticsearch	70432	252
+
+chromium/chromium	67467	3
+
+getsentry/sentry	63600	96
+
+keybase/client	61854	44
+
+guardian/frontend	61601	205
+
+rust-lang/rust	60604	39
+
+elastic/kibana	59447	329
+
+llvm/llvm-project	56714	826
+
+arangodb/arangodb	55932	46
+
+discourse/discourse	55921	47
+
+cockroachdb/cockroach	55384	139
+
+JuliaLang/julia	54396	75
+
+owncloud/core	53321	136
+
+apple/swift	52099	188
+
+ornicar/lila	51919	13
+
+ceph/ceph	51024	144
+
+Homebrew/homebrew-core	50537	50
+
+tensorflow/tensorflow	50499	110
+
+WordPress/gutenberg	49950	179
+
+sourcegraph/sourcegraph	49580	84
+
+JetBrains/intellij-community	48047	15
+
+cdnjs/cdnjs	46219	24
+
+mongodb/mongo	43202	268
+
+Homebrew/homebrew-cask	41360	14
+
+ansible/ansible	41176	74
+
+dart-lang/sdk	40914	104
+
+php/php-src	39739	8
+
+libretro/RetroArch	39628	17
+
+h2oai/h2o-3	38992	99
+
+kubernetes/kubernetes	38568	94
+
+crate/crate	38146	47
+
+ruby/ruby	37868	31
+
+mono/monodevelop	37843	96
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithClickhouse_related_comments1.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithClickhouse_related_comments1.out
new file mode 100644
index 0000000000..5c1298066a
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithClickhouse_related_comments1.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithClickhouse_related_comments1 --
+0
+
+-- !nereids_repositoriesWithClickhouse_related_comments1_2 --
+0
+
+-- !nereids_repositoriesWithClickhouse_related_comments1_3 --
+
+ClickHouse/ClickHouse	12661
+
+yandex/ClickHouse	7412
+
+traceon/ClickHouse	2339
+
+kokizzu/ClickHouse	1794
+
+skirdey/ClickHouse	881
+
+getsentry/snuba	764
+
+Mu-L/ClickHouse	644
+
+Vertamedia/clickhouse-grafana	538
+
+Altinity/clickhouse-operator	532
+
+mymarilyn/clickhouse-driver	475
+
+yandex/clickhouse-jdbc	428
+
+ClickHouse/clickhouse-odbc	365
+
+housepower/ClickHouse-Native-JDBC	331
+
+kshvakov/clickhouse	303
+
+PostHog/posthog	299
+
+DataDog/integrations-core	286
+
+AlexAkulov/clickhouse-backup	284
+
+Infinidat/infi.clickhouse_orm	261
+
+yandex/clickhouse-odbc	260
+
+xzkostyan/clickhouse-sqlalchemy	227
+
+Mattlk13/ClickHouse	217
+
+getsentry/onpremise	205
+
+lomik/graphite-clickhouse	204
+
+smi2/phpClickHouse	203
+
+ibis-project/ibis	196
+
+getsentry/sentry	190
+
+killwort/ClickHouse-Net	188
+
+NixOS/nixpkgs	182
+
+housepower/clickhouse_sinker	181
+
+microfleet/clickhouse-adapter	164
+
+timberio/vector	162
+
+ClickHouse/clickhouse-jdbc	161
+
+adjust/clickhouse_fdw	149
+
+ClickHouse/clickhouse-go	143
+
+lomik/carbon-clickhouse	137
+
+sentry-kubernetes/charts	123
+
+InterestingLab/waterdrop	122
+
+apache/incubator-superset	122
+
+apla/node-clickhouse	122
+
+suharev7/clickhouse-rs	112
+
+sysown/proxysql	110
+
+artpaul/clickhouse-cpp	109
+
+dbeaver/dbeaver	105
+
+IMSMWU/RClickhouse	104
+
+childe/gohangout	103
+
+DarkWanderer/ClickHouse.Client	100
+
+enqueue/metabase-clickhouse-driver	100
+
+go-graphite/carbonapi	100
+
+Altinity/ClickHouse	98
+
+BayoNet/ClickHouse	98
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithClickhouse_related_comments2.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithClickhouse_related_comments2.out
new file mode 100644
index 0000000000..2f0f2ec3fe
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithClickhouse_related_comments2.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithClickhouse_related_comments2 --
+0
+
+-- !nereids_repositoriesWithClickhouse_related_comments2_2 --
+0
+
+-- !nereids_repositoriesWithClickhouse_related_comments2_3 --
+
+996icu/996.ICU	354850	1
+
+golang/go	92407	6
+
+nodejs/node	75477	1
+
+kubernetes/kubernetes	68644	1
+
+avelino/awesome-go	64700	2
+
+rails/rails	53620	2
+
+rust-lang/rust	53027	3
+
+ansible/ansible	51144	5
+
+elastic/elasticsearch	48810	1
+
+grafana/grafana	39147	77
+
+Kickball/awesome-selfhosted	37934	2
+
+prometheus/prometheus	35949	5
+
+apache/spark	32616	3
+
+fffaraz/awesome-cpp	31297	2
+
+rethinkdb/rethinkdb	28628	2
+
+pingcap/tidb	28099	4
+
+netty/netty	27854	2
+
+getsentry/sentry	27255	190
+
+composer/composer	26787	2
+
+Homebrew/brew	26658	2
+
+alibaba/druid	24851	26
+
+sequelize/sequelize	24415	4
+
+metabase/metabase	23835	91
+
+moby/moby	22615	2
+
+pandas-dev/pandas	22473	5
+
+dmlc/xgboost	21377	3
+
+spf13/cobra	20509	1
+
+jinzhu/gorm	20443	4
+
+hasura/graphql-engine	20060	2
+
+facebook/rocksdb	19694	1
+
+netdata/netdata	19605	9
+
+zhangdaiscott/jeecg-boot	19119	2
+
+alibaba/easyexcel	18773	2
+
+palantir/blueprint	18294	2
+
+apache/incubator-superset	18265	122
+
+protocolbuffers/protobuf	18210	1
+
+StevenBlack/hosts	18004	1
+
+sebastianbergmann/phpunit	17932	1
+
+alibaba/canal	17810	1
+
+yiisoft/yii2	17490	5
+
+getredash/redash	17471	45
+
+celery/celery	16593	2
+
+openssl/openssl	15814	1
+
+apache/flink	15690	6
+
+taosdata/TDengine	15322	9
+
+brettwooldridge/HikariCP	14983	4
+
+rancher/k3s	14664	3
+
+influxdata/influxdb	14374	2
+
+dbeaver/dbeaver	13757	105
+
+requests/requests	12997	4
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithDoris_related_comments1.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithDoris_related_comments1.out
new file mode 100644
index 0000000000..7f1b8915b4
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithDoris_related_comments1.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithDoris_related_comments1 --
+0
+
+-- !nereids_repositoriesWithDoris_related_comments1_2 --
+0
+
+-- !nereids_repositoriesWithDoris_related_comments1_3 --
+
+everypolitician/everypolitician-data	3612
+
+apache/incubator-doris	3588
+
+balena-io/balena-sdk	399
+
+nullart/freqtrade	316
+
+Mozilla-TWQA/Hasal	238
+
+Mu-L/incubator-doris	203
+
+tektoncd/triggers	129
+
+mozilla/localForage	110
+
+angular-ui/ui-sortable	96
+
+balena-io/balena-cli	84
+
+frontendbr/vagas	79
+
+balena-io/open-balena-api	67
+
+balena-io-modules/rendition	65
+
+backend-br/vagas	58
+
+JuliaRegistries/General	45
+
+fake-name/ReadableWebProxy	45
+
+sopoforic/gamest	45
+
+fake-name/wlnupdates	43
+
+GitDoris/rest	36
+
+thodoriskonstantoulias/Angular_Full_Guide	34
+
+aivendor/onlysdk	33
+
+androiddevbr/vagas	33
+
+cjdoris/Infinity.jl	30
+
+jeffknupp/sandman2	30
+
+olivierfriard/DORIS	30
+
+Khan/khan-i18n	29
+
+rOpenGov/pxweb	29
+
+CocoaHeadsBrasil/vagas	27
+
+unitsofmeasurement/unit-api	27
+
+acelyc111/incubator-doris	26
+
+cds-snc/notification-api	26
+
+localForage/localForage	25
+
+LeonardoRiselli/python	24
+
+TUDelftGeodesy/Doris	23
+
+frontendbr/forum	23
+
+lux-org/lux	23
+
+phpdevbr/vagas	23
+
+coderetreat/coderetreat.github.io	22
+
+ftes/clickr-rails	22
+
+markdorison/github-actions-for-ci	22
+
+resin-io/resin-sdk	21
+
+QoreCode/doris-yii2-bug-report	20
+
+arendst/Tasmota	20
+
+dorisol1019/BGMPlayer	20
+
+tangydoris/WormGUIDES	20
+
+teodorislava/startup-network	20
+
+react-brasil/vagas	19
+
+tgstation/-tg-station	19
+
+dd-center/vdb	18
+
+markdorison/github-actions-continuous-delivery	18
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithDoris_related_comments2.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithDoris_related_comments2.out
new file mode 100644
index 0000000000..581c9f8b2d
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithDoris_related_comments2.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithDoris_related_comments2 --
+0
+
+-- !nereids_repositoriesWithDoris_related_comments2_2 --
+0
+
+-- !nereids_repositoriesWithDoris_related_comments2_3 --
+
+996icu/996.ICU	354850	4
+
+FreeCodeCamp/FreeCodeCamp	225490	1
+
+facebook/react	188575	2
+
+flutter/flutter	116303	4
+
+angular/angular	80602	3
+
+angular/angular.js	76251	1
+
+ant-design/ant-design	71552	2
+
+atom/atom	68396	2
+
+meteor/meteor	51930	1
+
+gatsbyjs/gatsby	51589	2
+
+rg3/youtube-dl	51271	2
+
+ansible/ansible	51144	1
+
+antirez/redis	49108	1
+
+elastic/elasticsearch	48810	4
+
+babel/babel	38965	1
+
+chartjs/Chart.js	36085	2
+
+prometheus/prometheus	35949	1
+
+JuliaLang/julia	34480	1
+
+mozilla/pdf.js	34406	1
+
+firehol/netdata	34246	1
+
+driftyco/ionic	33243	2
+
+apache/spark	32616	1
+
+kennethreitz/requests	30772	1
+
+NervJS/taro	28813	2
+
+pi-hole/pi-hole	28431	1
+
+fzaninotto/Faker	27336	1
+
+minio/minio	26176	1
+
+laravel/framework	25317	1
+
+rapid7/metasploit-framework	24953	4
+
+sequelize/sequelize	24415	3
+
+facebook/flow	23227	4
+
+littlecodersh/ItChat	22574	1
+
+getlantern/forum	21526	1
+
+Meituan-Dianping/mpvue	21316	2
+
+vlang/v	20611	1
+
+apache/incubator-echarts	19972	6
+
+alibaba/weex	19723	1
+
+jhipster/generator-jhipster	19597	1
+
+angular/material2	19494	3
+
+google/ExoPlayer	18241	1
+
+alibaba/canal	17810	3
+
+Automattic/mongoose	17562	1
+
+numpy/numpy	17320	2
+
+explosion/spaCy	16383	1
+
+realm/realm-cocoa	15801	2
+
+dotnet/roslyn	15605	3
+
+google/fonts	15448	1
+
+sqlitebrowser/sqlitebrowser	15227	2
+
+golang/dep	14641	1
+
+elastic/kibana	13434	1
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheHighestGrowthYoY.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheHighestGrowthYoY.out
new file mode 100644
index 0000000000..e8a385357e
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheHighestGrowthYoY.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheHighestGrowthYoY --
+0
+
+-- !nereids_repositoriesWithTheHighestGrowthYoY_2 --
+0
+
+-- !nereids_repositoriesWithTheHighestGrowthYoY_3 --
+
+puppeteer/puppeteer	11310	1255	9.012	2014-03-14T12:01:39
+
+ohmyzsh/ohmyzsh	21705	2529	8.582	2017-03-22T16:44:20
+
+halfrost/LeetCode-Go	8887	1191	7.462	2018-04-16T09:29:48
+
+jitsi/jitsi-meet	10451	1548	6.751	2014-03-31T20:41:15
+
+desktop/desktop	12512	2600	4.812	2017-05-16T17:10:37
+
+TheAlgorithms/Javascript	6009	1312	4.58	2017-08-03T16:27:42
+
+iamadamdev/bypass-paywalls-chrome	9503	2246	4.231	2018-04-07T23:54:45
+
+loadimpact/k6	5018	1352	3.712	2017-01-18T18:26:09
+
+r-spacex/SpaceX-API	4020	1083	3.712	2017-06-26T07:00:38
+
+openspug/spug	4086	1116	3.661	2018-02-10T11:01:08
+
+Dod-o/Statistical-Learning-Method_Code	5227	1437	3.637	2018-11-15T16:38:25
+
+Fndroid/clash_for_windows_pkg	9438	2979	3.168	2018-10-19T00:14:07
+
+williamfiset/Algorithms	5339	1778	3.003	2017-05-12T03:37:24
+
+aniftyco/awesome-tailwindcss	2992	1007	2.971	2018-08-07T10:00:59
+
+LingCoder/OnJava8	11972	4082	2.933	2018-12-06T07:16:35
+
+the1812/Bilibili-Evolved	3678	1255	2.931	2018-08-30T09:55:58
+
+jgraph/drawio-desktop	9253	3293	2.81	2017-06-07T17:17:38
+
+darlinghq/darling	3130	1133	2.763	2015-10-11T15:42:44
+
+twintproject/twint	5899	2254	2.617	2018-06-12T03:34:17
+
+ctgk/PRML	5129	1970	2.604	2017-07-03T03:06:25
+
+tomnomnom/gron	2733	1051	2.6	2016-06-04T23:19:04
+
+trojan-gfw/trojan	10218	3945	2.59	2017-11-13T05:54:52
+
+dabreegster/abstreet	3865	1503	2.572	2018-06-06T22:07:38
+
+an-tao/drogon	3223	1262	2.554	2018-05-04T10:03:32
+
+ritchieng/the-incredible-pytorch	3499	1401	2.498	2017-02-11T08:37:30
+
+elsewhencode/project-guidelines	3752	1503	2.496	2018-03-21T18:06:16
+
+AlexeyAB/darknet	8569	3465	2.473	2016-12-04T19:18:28
+
+denoland/deno	31550	12833	2.459	2018-08-03T00:26:45
+
+GitSquared/edex-ui	14151	5797	2.441	2017-10-14T15:55:21
+
+MathewSachin/Captura	3392	1392	2.437	2015-09-12T12:31:42
+
+Aircoookie/WLED	2767	1141	2.425	2017-12-17T08:36:13
+
+edent/SuperTinyIcons	3747	1559	2.403	2017-11-12T01:57:38
+
+tiangolo/fastapi	17962	7474	2.403	2018-12-08T10:05:29
+
+remoteintech/remote-jobs	6819	2858	2.386	2017-09-09T13:12:05
+
+retejs/rete	2541	1075	2.364	2018-05-31T03:06:05
+
+Anuken/Mindustry	5439	2322	2.342	2017-05-12T17:52:31
+
+Dreamacro/clash	8836	3850	2.295	2018-06-10T14:41:49
+
+debauchee/barrier	5731	2505	2.288	2018-02-23T12:36:21
+
+ryansolid/solid	3249	1433	2.267	2018-05-26T14:28:51
+
+wilsonfreitas/awesome-quant	2362	1053	2.243	2016-05-10T10:19:52
+
+JanDeDobbeleer/oh-my-posh	2748	1229	2.236	2018-04-12T04:42:01
+
+TheAlgorithms/Go	2905	1299	2.236	2017-07-11T04:34:48
+
+The-Art-of-Hacking/h4cker	5791	2622	2.209	2018-10-06T12:02:56
+
+TheCherno/Hazel	2852	1292	2.207	2018-10-20T04:01:11
+
+FreeCAD/FreeCAD	3897	1777	2.193	2015-07-04T23:06:13
+
+squidfunk/mkdocs-material	2318	1066	2.174	2016-02-09T19:27:50
+
+JaeYeopHan/Interview_Question_for_Beginner	3727	1719	2.168	2017-06-16T15:39:58
+
+Requarks/wiki	5999	2769	2.166	2016-08-30T18:46:22
+
+midwayjs/midway	2257	1052	2.145	2018-07-12T07:12:06
+
+jwasham/coding-interview-university	54591	25556	2.136	2017-02-27T20:09:29
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues1.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues1.out
new file mode 100644
index 0000000000..556ac9dfd1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues1 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues1_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues1_3 --
+
+koorellasuresh/UKRegionTest	379379	4
+
+pddemo/demo	216215	1
+
+lstjsuperman/fabric	173986	1
+
+Khan/khan-exercises	157016	462
+
+No-CQRT/GooGuns	149264	1
+
+Khan/khan-i18n	130920	3
+
+jlippold/tweakCompatible	127029	11243
+
+Ramos-dev/jniwebshell	108096	1
+
+ron190/jsql-injection	91086	30
+
+debricked/debricked-test-integration	83341	1
+
+chrmarti/testissues	72695	19
+
+BoltunovOleg/ChatRoulette	69970	2
+
+imamandrews/imamandrews.github.io	68926	3
+
+Microsoft/vscode	65122	27038
+
+pulWifi/pulWifi	63002	4
+
+AdguardTeam/AdguardFilters	61979	634
+
+webcompat/web-bugs	61268	3959
+
+nainardev/tamil-dubbed	58392	1
+
+PennyDreadfulMTG/perf-reports	55259	5
+
+joshjach/zaptest1	48149	1
+
+ssi-qa/Test-ssi	45982	1
+
+flutter/flutter	45920	16677
+
+znjk123123/uoI3JGf	45797	1
+
+MicrosoftDocs/azure-docs	44131	21036
+
+xuyuhuan123/x	43079	1
+
+bippybop/iitest	41581	1
+
+webhintio/scan-issues	41570	4
+
+humera987/FXLabs-Test-Automation	41383	2
+
+test-organization-kkjeer/bot-validation	40140	8
+
+test-organization-kkjeer/app-test	39963	4
+
+ssi-qa/TestSSI	39666	1
+
+support-ops/sit-repo	39296	1
+
+antonba/ApimTest	37973	1
+
+microsoft/vscode	34798	19479
+
+theapache64/movie-monk-creator	34666	2
+
+ZeroK-RTS/CrashReports	34133	16
+
+koorellasuresh/samples	32636	1
+
+kubernetes/kubernetes	31644	8615
+
+golang/go	31443	10190
+
+shuhongwu/hockeyapp	31401	1
+
+hq450/fancyss	31124	778
+
+StepanFirsov/tutorials	30336	5
+
+as00789/---------	29134	2
+
+zwwxy001/001	28833	1
+
+cockroachdb/cockroach	28390	1049
+
+tensorflow/tensorflow	28380	16377
+
+Zhycrin/Time	28104	1
+
+rust-lang/rust	28036	6283
+
+ansible/ansible	27774	13050
+
+ikedaosushi/tech-news	27774	6
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues2.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues2.out
new file mode 100644
index 0000000000..f28a81bf1c
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues2_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues2_3 --
+
+koorellasuresh/UKRegionTest	379379	4	1
+
+pddemo/demo	216215	1	1
+
+lstjsuperman/fabric	173986	1	5
+
+Khan/khan-exercises	157016	462	1749
+
+No-CQRT/GooGuns	149264	1	0
+
+Khan/khan-i18n	130920	3	9
+
+jlippold/tweakCompatible	127029	11243	478
+
+Ramos-dev/jniwebshell	108096	1	5
+
+ron190/jsql-injection	91086	30	907
+
+debricked/debricked-test-integration	83341	1	0
+
+chrmarti/testissues	72695	19	9
+
+BoltunovOleg/ChatRoulette	69970	2	0
+
+imamandrews/imamandrews.github.io	68926	3	3
+
+Microsoft/vscode	65122	27038	82043
+
+pulWifi/pulWifi	63002	4	24
+
+AdguardTeam/AdguardFilters	61979	634	984
+
+webcompat/web-bugs	61268	3959	483
+
+nainardev/tamil-dubbed	58392	1	1
+
+PennyDreadfulMTG/perf-reports	55259	5	3
+
+joshjach/zaptest1	48149	1	0
+
+ssi-qa/Test-ssi	45982	1	0
+
+flutter/flutter	45920	16677	116303
+
+znjk123123/uoI3JGf	45797	1	0
+
+MicrosoftDocs/azure-docs	44131	21036	4888
+
+xuyuhuan123/x	43079	1	0
+
+bippybop/iitest	41581	1	0
+
+webhintio/scan-issues	41570	4	7
+
+humera987/FXLabs-Test-Automation	41383	2	0
+
+test-organization-kkjeer/bot-validation	40140	8	6
+
+test-organization-kkjeer/app-test	39963	4	5
+
+ssi-qa/TestSSI	39666	1	0
+
+support-ops/sit-repo	39296	1	0
+
+antonba/ApimTest	37973	1	0
+
+microsoft/vscode	34798	19479	38395
+
+theapache64/movie-monk-creator	34666	2	0
+
+ZeroK-RTS/CrashReports	34133	16	11
+
+koorellasuresh/samples	32636	1	0
+
+kubernetes/kubernetes	31644	8615	68644
+
+golang/go	31443	10190	92407
+
+shuhongwu/hockeyapp	31401	1	0
+
+hq450/fancyss	31124	778	7921
+
+StepanFirsov/tutorials	30336	5	0
+
+as00789/---------	29134	2	1
+
+zwwxy001/001	28833	1	0
+
+cockroachdb/cockroach	28390	1049	21147
+
+tensorflow/tensorflow	28380	16377	173681
+
+Zhycrin/Time	28104	1	1
+
+rust-lang/rust	28036	6283	53027
+
+ansible/ansible	27774	13050	51144
+
+ikedaosushi/tech-news	27774	6	15
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues3.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues3.out
new file mode 100644
index 0000000000..dab84b93cd
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues3.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues3 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues3_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues3_3 --
+
+Khan/khan-exercises	157016	462	1749
+
+Microsoft/vscode	65122	27038	82043
+
+flutter/flutter	45920	16677	116303
+
+MicrosoftDocs/azure-docs	44131	21036	4888
+
+microsoft/vscode	34798	19479	38395
+
+kubernetes/kubernetes	31644	8615	68644
+
+golang/go	31443	10190	92407
+
+hq450/fancyss	31124	778	7921
+
+cockroachdb/cockroach	28390	1049	21147
+
+tensorflow/tensorflow	28380	16377	173681
+
+rust-lang/rust	28036	6283	53027
+
+ansible/ansible	27774	13050	51144
+
+elastic/kibana	26962	4151	13434
+
+dotnet/roslyn	24027	3153	15605
+
+godotengine/godot	23546	5521	34238
+
+996icu/996.ICU	22791	12818	354850
+
+rancher/rancher	22512	4689	15241
+
+saltstack/salt	22450	5777	12989
+
+angular/angular	21806	10403	80602
+
+Microsoft/TypeScript	21004	6744	52328
+
+fanout/pushpin	20793	260	2928
+
+/	20676	883	5496
+
+facebook/react-native	19926	11861	105346
+
+dart-lang/sdk	19737	2965	6976
+
+TrinityCore/TrinityCore	19513	2806	7942
+
+spring-projects/spring-boot	19349	5732	58232
+
+ant-design/ant-design	19149	9312	71552
+
+magento/magento2	18884	7452	10987
+
+NixOS/nixpkgs	18497	3236	6679
+
+JuliaLang/julia	18456	3227	34480
+
+owncloud/core	18366	6352	9048
+
+andresriancho/w3af	18128	394	3713
+
+elastic/elasticsearch	18111	5912	48810
+
+dotnet/corefx	17693	4157	20702
+
+grafana/grafana	17543	7973	39147
+
+pytorch/pytorch	16622	7044	47889
+
+FortAwesome/Font-Awesome	16438	12745	75924
+
+rg3/youtube-dl	16144	8557	51271
+
+hashicorp/terraform	15869	8496	26227
+
+CleverRaven/Cataclysm-DDA	15797	2927	5293
+
+ethereum/go-ethereum	15632	2526	30598
+
+ElemeFE/element	15541	8909	53749
+
+atom/atom	14919	10357	68396
+
+symfony/symfony	14712	6383	27656
+
+Automattic/wp-calypso	14616	953	13129
+
+npm/npm	14494	11403	16774
+
+laravel/framework	14341	8388	25317
+
+rails/rails	13904	7909	53620
+
+twbs/bootstrap	13599	8526	126371
+
+odoo/odoo	12941	4196	22407
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues4.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues4.out
new file mode 100644
index 0000000000..cac3af11b6
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfIssues4.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues4 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues4_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfIssues4_3 --
+
+Microsoft/vscode	65122	27038	82043
+
+MicrosoftDocs/azure-docs	44131	21036	4888
+
+microsoft/vscode	34798	19479	38395
+
+flutter/flutter	45920	16677	116303
+
+tensorflow/tensorflow	28380	16377	173681
+
+ansible/ansible	27774	13050	51144
+
+996icu/996.ICU	22791	12818	354850
+
+FortAwesome/Font-Awesome	16438	12745	75924
+
+facebook/react-native	19926	11861	105346
+
+npm/npm	14494	11403	16774
+
+jlippold/tweakCompatible	127029	11243	478
+
+githubschool/open-enrollment-classes-introduction-to-github	12094	10730	921
+
+angular/angular	21806	10403	80602
+
+atom/atom	14919	10357	68396
+
+golang/go	31443	10190	92407
+
+ContinuumIO/anaconda-issues	11834	9570	688
+
+ant-design/ant-design	19149	9312	71552
+
+ElemeFE/element	15541	8909	53749
+
+kubernetes/kubernetes	31644	8615	68644
+
+rg3/youtube-dl	16144	8557	51271
+
+twbs/bootstrap	13599	8526	126371
+
+hashicorp/terraform	15869	8496	26227
+
+laravel/framework	14341	8388	25317
+
+docker/for-win	9429	8124	1418
+
+grafana/grafana	17543	7973	39147
+
+rails/rails	13904	7909	53620
+
+magento/magento2	18884	7452	10987
+
+angular/angular-cli	12114	7313	26924
+
+pytorch/pytorch	16622	7044	47889
+
+qbittorrent/qBittorrent	10988	6762	12064
+
+Microsoft/TypeScript	21004	6744	52328
+
+docker/docker	12292	6466	33396
+
+symfony/symfony	14712	6383	27656
+
+owncloud/core	18366	6352	9048
+
+rust-lang/rust	28036	6283	53027
+
+facebook/react	9651	6271	188575
+
+nodejs/node	11756	6221	75477
+
+XX-net/XX-Net	12533	6192	36800
+
+electron/electron	10445	6059	71394
+
+elastic/elasticsearch	18111	5912	48810
+
+Wynncraft/Issues	8840	5854	229
+
+spyder-ide/spyder	11348	5818	6558
+
+travis-ci/travis-ci	10057	5800	9368
+
+saltstack/salt	22450	5777	12989
+
+angular/angular.js	8785	5757	76251
+
+spring-projects/spring-boot	19349	5732	58232
+
+home-assistant/home-assistant	11875	5632	30023
+
+gatsbyjs/gatsby	11540	5565	51589
+
+godotengine/godot	23546	5521	34238
+
+nextcloud/server	11355	5471	13428
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfPullRequests1.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfPullRequests1.out
new file mode 100644
index 0000000000..6fe2f5cd56
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfPullRequests1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumAmountOfPullRequests1 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfPullRequests1_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfPullRequests1_3 --
+
+google-test/signcla-probe-repo	351806	4
+
+everypolitician/everypolitician-data	158134	18
+
+brianchandotcom/liferay-portal	93222	338
+
+NixOS/nixpkgs	84557	3816
+
+Homebrew/homebrew-core	60457	5852
+
+sauron-demo/sauron	54806	1
+
+elastic/kibana	52317	832
+
+test-organization-kkjeer/bot-validation	51409	4
+
+SmartThingsCommunity/SmartThingsPublic	51280	716
+
+test-organization-kkjeer/app-test	51006	6
+
+kubernetes/kubernetes	50768	4124
+
+odoo/odoo	46764	2038
+
+Homebrew/homebrew-cask	44006	3378
+
+ansible/ansible	42592	7337
+
+caskroom/homebrew-cask	38985	4825
+
+ceph/ceph	37495	1413
+
+code-dot-org/code-dot-org	37133	125
+
+jlord/patchwork	36787	31919
+
+rdxvsrmv/OfficeDocs-OfficeUpdates-test	36706	7
+
+DefinitelyTyped/DefinitelyTyped	36240	13826
+
+elastic/elasticsearch	35673	2030
+
+saltstack/salt	35222	3067
+
+rust-lang/rust	35214	3259
+
+apple/swift	33758	1154
+
+openmicroscopy/snoopys-sandbox	32507	9
+
+argo-testing/app	31861	1
+
+Automattic/wp-calypso	31687	629
+
+mozilla-b2g/gaia	30403	911
+
+apache/spark	30079	2970
+
+pytorch/pytorch	29990	2192
+
+cms-sw/cmssw	29045	973
+
+sauron-demo/sauron-demo	28654	12
+
+dimagi/commcare-hq	28143	127
+
+CleverRaven/Cataclysm-DDA	27698	1430
+
+cockroachdb/cockroach	27386	449
+
+firstcontributions/first-contributions	27015	24995
+
+ros/rosdistro	26541	1197
+
+ideatest1/PullRequestTest	26336	1
+
+JuliaRegistries/General	25487	171
+
+tgstation/tgstation	25305	967
+
+rails/rails	25232	5621
+
+openshift/openshift-docs	25146	677
+
+edx/edx-platform	25049	737
+
+bbq-beets/ForkPRCanary	24593	1
+
+dotnet/roslyn	24488	582
+
+dotnet/corefx	24151	1085
+
+flutter/flutter	23707	1331
+
+symfony/symfony	23572	3617
+
+void-linux/void-packages	23522	790
+
+bioconda/bioconda-recipes	23249	1209
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfPullRequests2.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfPullRequests2.out
new file mode 100644
index 0000000000..73677c6e8b
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumAmountOfPullRequests2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumAmountOfPullRequests2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfPullRequests2_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumAmountOfPullRequests2_3 --
+
+jlord/patchwork	36787	31919
+
+firstcontributions/first-contributions	27015	24995
+
+octocat/Spoon-Knife	20116	18204
+
+DefinitelyTyped/DefinitelyTyped	36240	13826
+
+deadlyvipers/dojo_rules	15925	9751
+
+google/it-cert-automation-practice	10132	9749
+
+udacity/create-your-own-adventure	10423	8839
+
+JetBrains/swot	9866	8291
+
+udacity/course-collaboration-travel-plans	8417	8132
+
+zero-to-mastery/start-here-guidelines	8940	8112
+
+githubschool/open-enrollment-classes-introduction-to-github	9299	7534
+
+learn-co-students/js-from-dom-to-node-bootcamp-prep-000	7435	7383
+
+ansible/ansible	42592	7337
+
+learn-co-students/javascript-intro-to-functions-lab-bootcamp-prep-000	7161	7131
+
+learn-co-students/js-functions-lab-bootcamp-prep-000	6984	6950
+
+learn-co-students/js-node-practice-lab-bootcamp-prep-000	6761	6736
+
+learn-co-students/js-if-else-files-lab-bootcamp-prep-000	6523	6509
+
+learn-co-students/javascript-arithmetic-lab-bootcamp-prep-000	6501	6472
+
+learn-co-students/js-what-is-a-test-lab-bootcamp-prep-000	6344	6329
+
+learn-co-students/first-ide-lab-bootcamp-prep-000	6250	6202
+
+AliceWonderland/hacktoberfest	7550	6092
+
+learn-co-students/js-what-is-a-test-bootcamp-prep-000	6060	6048
+
+learn-co-students/javascript-fix-the-scope-lab-bootcamp-prep-000	5978	5957
+
+Roshanjossey/first-contributions	6337	5931
+
+Homebrew/homebrew-core	60457	5852
+
+TheOdinProject/curriculum	21191	5847
+
+MicrosoftDocs/azure-docs	18001	5827
+
+freeCodeCamp/freeCodeCamp	19485	5716
+
+rails/rails	25232	5621
+
+learn-co-students/javascript-arrays-bootcamp-prep-000	5475	5441
+
+learn-co-students/javascript-arrays-lab-bootcamp-prep-000	5226	5197
+
+laravel/framework	20000	5082
+
+learn-co-students/javascript-objects-bootcamp-prep-000	4937	4911
+
+freddier/hyperblog	5000	4830
+
+caskroom/homebrew-cask	38985	4825
+
+learn-co-students/your-first-lab-cb-gh-000	4727	4700
+
+learn-co-students/javascript-objects-lab-bootcamp-prep-000	4668	4652
+
+Homebrew/homebrew	19058	4361
+
+gatsbyjs/gatsby	15847	4358
+
+wbond/package_control_channel	7843	4358
+
+learn-co-students/javascript-intro-to-looping-bootcamp-prep-000	4350	4325
+
+rdpeng/ProgrammingAssignment2	4713	4318
+
+michaelliao/learngit	4574	4299
+
+mxcl/homebrew	12780	4283
+
+kubernetes/kubernetes	50768	4124
+
+learn-co-students/javascript-logging-lab-js-intro-000	4112	4086
+
+CocoaPods/Specs	13787	4072
+
+learn-co-students/js-beatles-loops-lab-bootcamp-prep-000	4042	4024
+
+LarryMad/recipes	4417	4018
+
+helm/charts	12273	3956
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumNumberOfAcceptedInvitations.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumNumberOfAcceptedInvitations.out
new file mode 100644
index 0000000000..4e1efcf546
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMaximumNumberOfAcceptedInvitations.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMaximumNumberOfAcceptedInvitations --
+0
+
+-- !nereids_repositoriesWithTheMaximumNumberOfAcceptedInvitations_2 --
+0
+
+-- !nereids_repositoriesWithTheMaximumNumberOfAcceptedInvitations_3 --
+
+githubschool/open-enrollment-classes-introduction-to-github	10453	921
+
+gatsbyjs/gatsby	3161	51589
+
+/	3144	5496
+
+openjournals/joss-reviews	1733	411
+
+InfiniteFlightAirportEditing/Airports	684	192
+
+zulip/zulip	644	14027
+
+tencentyun/qcloud-documents	446	1032
+
+w3c/web-platform-tests	343	1662
+
+llvm/llvm-project	322	7228
+
+koppi/iso-country-flags-svg-collection	318	408
+
+zephyrproject-rtos/zephyr	291	4198
+
+Automattic/wp-calypso	246	13129
+
+FightPandemics/FightPandemics	238	108
+
+magento/magento2	234	10987
+
+dotnet/corefx	216	20702
+
+helm/charts	213	11693
+
+oppia/oppia	210	1802
+
+Code4SocialGood/c4sg-web	184	100
+
+pqrs-org/KE-complex_modifications	174	701
+
+IBM-Bluemix/docs	166	153
+
+OfficeDev/office-ui-fabric-react	156	7194
+
+openshiftio/openshift.io	155	106
+
+julianguyen/ifme	150	547
+
+dotnet/runtime	149	4842
+
+Techtonica/curriculum	149	437
+
+pytorch/pytorch	139	47889
+
+MicrosoftDocs/mixed-reality	138	155
+
+ifmeorg/ifme	136	728
+
+magento-engcom/msi	135	234
+
+MicrosoftDocs/office-docs-powershell	132	342
+
+MicrosoftDocs/azure-docs	126	4888
+
+leanprover-community/mathlib	125	420
+
+pytorch/vision	124	8418
+
+pytorch/tutorials	121	4838
+
+pytorch/text	120	2706
+
+MicrosoftDocs/visualstudio-docs	120	630
+
+sigmavirus24/Todo.txt-python	120	109
+
+MicrosoftDocs/OfficeDocs-SharePoint	119	254
+
+MicrosoftDocs/feedback	118	223
+
+pytorch/builder	116	156
+
+MicrosoftDocs/windowsserverdocs	115	926
+
+MicrosoftDocs/OfficeDocs-SkypeForBusiness	115	220
+
+MicrosoftDocs/windows-powershell-docs	115	213
+
+cockroachdb/cockroach	114	21147
+
+MicrosoftDocs/windows-itpro-docs	114	952
+
+MicrosoftDocs/intellicode	114	443
+
+MicrosoftDocs/edge-developer	114	157
+
+hoodiehq/camp	114	124
+
+MicrosoftDocs/microsoft-365-docs	113	296
+
+pytorch/examples	112	16121
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess1.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess1.out
new file mode 100644
index 0000000000..f8432f2e30
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess1.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostPeopleWhoHavePushAccess1 --
+0
+
+-- !nereids_repositoriesWithTheMostPeopleWhoHavePushAccess1_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess2.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess2.out
new file mode 100644
index 0000000000..3b4a96782c
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess2.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostPeopleWhoHavePushAccess2 --
+0
+
+-- !nereids_repositoriesWithTheMostPeopleWhoHavePushAccess2_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess3.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess3.out
new file mode 100644
index 0000000000..5583a19f1f
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostPeopleWhoHavePushAccess3.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostPeopleWhoHavePushAccess3 --
+0
+
+-- !nereids_repositoriesWithTheMostPeopleWhoHavePushAccess3_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay1.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay1.out
new file mode 100644
index 0000000000..4ef6eaf16b
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay1.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostStarsOverOneDay1 --
+0
+
+-- !nereids_repositoriesWithTheMostStarsOverOneDay1_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay2.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay2.out
new file mode 100644
index 0000000000..98cdad34b3
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay2.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostStarsOverOneDay2 --
+0
+
+-- !nereids_repositoriesWithTheMostStarsOverOneDay2_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay3.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay3.out
new file mode 100644
index 0000000000..823b467de7
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostStarsOverOneDay3.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostStarsOverOneDay3 --
+0
+
+-- !nereids_repositoriesWithTheMostStarsOverOneDay3_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostSteadyGrowthOverTime.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostSteadyGrowthOverTime.out
new file mode 100644
index 0000000000..34f1c0d807
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheMostSteadyGrowthOverTime.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheMostSteadyGrowthOverTime --
+0
+
+-- !nereids_repositoriesWithTheMostSteadyGrowthOverTime_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheWorstStagnation_order.out b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheWorstStagnation_order.out
new file mode 100644
index 0000000000..5df4ed1017
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoriesWithTheWorstStagnation_order.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoriesWithTheWorstStagnation_order --
+0
+
+-- !nereids_repositoriesWithTheWorstStagnation_order_2 --
+0
+
+-- !nereids_repositoriesWithTheWorstStagnation_order_3 --
+
+AioiLight/TJAPlayer3	29	5308	0.005	2018-01-17T19:59:10
+
+Bogdan-Lyashenko/codecrumbs	199	2293	0.087	2018-05-03T10:50:17
+
+CoolPhilChen/SJTU-Courses	538	5739	0.094	2018-01-20T02:04:41
+
+DoubleLabyrinth/navicat-keygen	1	6459	0.0	2017-12-08T02:04:48
+
+FreeCodeCampChina/freecodecamp.cn	343	7651	0.045	2016-09-24T10:10:42
+
+JesseKPhillips/USA-Constitution	93	1924	0.048	2017-11-16T21:14:35
+
+KidkArolis/jetpack	32	1174	0.027	2017-03-13T12:09:24
+
+Louiszhai/tool	418	4286	0.098	2016-07-14T06:04:09
+
+M4cs/BabySploit	126	71013	0.002	2018-11-11T10:10:30
+
+RomuloOliveira/commit-messages-guide	305	5817	0.052	2018-02-26T02:54:42
+
+SqueezerIO/squeezer	41	3307	0.012	2017-05-15T07:31:14
+
+TheBerkin/rant	83	1283	0.065	2017-07-24T23:31:51
+
+Wookai/paper-tips-and-tricks	251	2705	0.093	2015-07-09T18:16:32
+
+achael/eht-imaging	170	5358	0.032	2016-02-03T03:06:34
+
+adblockradio/adblockradio	100	1184	0.084	2018-11-15T14:33:52
+
+apachecn/awesome-algorithm	191	3424	0.056	2018-09-24T16:46:26
+
+app-developers/top	37	1950	0.019	2018-06-27T08:04:07
+
+arpitjindal97/technology_books	1	4001	0.0	2017-08-16T19:08:59
+
+b3log/pipe	2	2380	0.001	2017-12-20T05:08:15
+
+charlax/professional-programming	1112	12892	0.086	2016-05-07T03:25:06
+
+chrisdickinson/git-rs	88	1197	0.074	2018-12-22T05:52:49
+
+danijar/handout	140	1825	0.077	2018-11-24T21:07:46
+
+dengyuhan/magnetW	54	4215	0.013	2018-03-09T09:18:23
+
+dwyl/learn-json-web-tokens	175	2500	0.07	2015-07-06T13:09:04
+
+ecthros/uncaptcha2	259	4219	0.061	2018-12-31T17:20:19
+
+energicryptocurrency/energi	12	6720	0.002	2017-07-14T16:01:39
+
+everitoken/evt	8	1366	0.006	2018-04-23T03:57:30
+
+facebookincubator/redux-react-hook	185	1799	0.103	2018-11-09T16:19:29
+
+facebookincubator/spectrum	131	1471	0.089	2018-11-20T16:31:01
+
+geekinglcq/CDCS	154	1628	0.095	2018-03-19T07:54:49
+
+hiroppy/fusuma	332	3327	0.1	2018-04-27T01:43:35
+
+jeffgerickson/algorithms	677	6137	0.11	2018-12-28T03:01:40
+
+jfcoz/postgresqltuner	146	1750	0.083	2016-12-15T22:08:38
+
+jhuangtw-dev/xg2xg	600	7033	0.085	2017-01-07T15:54
+
+kezhenxu94/mini-github	50	1283	0.039	2018-11-04T15:11:38
+
+koekeishiya/chunkwm	61	1331	0.046	2017-01-15T14:43:56
+
+lib-pku/libpku	1950	23015	0.085	2018-11-22T13:35:21
+
+marcan/takeover.sh	112	2786	0.04	2017-02-10T16:27:02
+
+metatron-app/metatron-discovery	119	3120	0.038	2018-07-27T07:55:44
+
+mgp25/Instagram-API	96	1769	0.054	2015-11-16T18:48:36
+
+mlabouardy/komiser	189	1904	0.099	2018-03-17T16:43:27
+
+react-native-training/react-native-elements	48	3341	0.014	2017-04-03T04:27:02
+
+sinclairzx81/zero	94	2160	0.044	2017-06-14T03:45:10
+
+soheilpro/catj	52	1307	0.04	2014-12-13T06:16:38
+
+sveinbjornt/Sloth	329	3483	0.094	2011-12-03T20:50:21
+
+trimstray/htrace.sh	221	2788	0.079	2018-07-13T22:40:41
+
+trimstray/the-practical-linux-hardening-guide	516	7355	0.07	2018-10-06T22:36:36
+
+trojanowski/react-apollo-hooks	90	1976	0.046	2018-10-29T07:56:09
+
+uswds/public-sans	272	3601	0.076	2018-10-06T20:42:23
+
+x-ream/x7	131	1275	0.103	2018-12-23T13:46:14
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoryAffinityList1.out b/regression-test/data/github_events_p2/sql/nereids_repositoryAffinityList1.out
new file mode 100644
index 0000000000..2be258faf1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoryAffinityList1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoryAffinityList1 --
+0
+
+-- !nereids_repositoryAffinityList1_2 --
+0
+
+-- !nereids_repositoryAffinityList1_3 --
+
+tensorflow/tensorflow	4895
+
+golang/go	4354
+
+pingcap/tidb	4128
+
+donnemartin/system-design-primer	4020
+
+sindresorhus/awesome	3899
+
+prometheus/prometheus	3881
+
+avelino/awesome-go	3792
+
+kubernetes/kubernetes	3741
+
+grafana/grafana	3574
+
+facebook/react	3511
+
+vuejs/vue	3347
+
+gin-gonic/gin	3246
+
+flutter/flutter	3160
+
+facebook/rocksdb	3156
+
+antirez/redis	3101
+
+istio/istio	3094
+
+ansible/ansible	3094
+
+torvalds/linux	3092
+
+minio/minio	3068
+
+cockroachdb/cockroach	3006
+
+robbyrussell/oh-my-zsh	2981
+
+vinta/awesome-python	2964
+
+996icu/996.ICU	2959
+
+grpc/grpc	2942
+
+jlevy/the-art-of-command-line	2916
+
+elastic/elasticsearch	2781
+
+containous/traefik	2776
+
+hashicorp/consul	2745
+
+rust-lang/rust	2673
+
+wg/wrk	2671
+
+metabase/metabase	2666
+
+facebook/react-native	2656
+
+kamranahmedse/developer-roadmap	2642
+
+ant-design/ant-design	2602
+
+GoogleChrome/puppeteer	2549
+
+getify/You-Dont-Know-JS	2504
+
+apache/spark	2486
+
+google/leveldb	2475
+
+github/gitignore	2437
+
+airbnb/javascript	2435
+
+coreos/etcd	2429
+
+danistefanovic/build-your-own-x	2392
+
+Microsoft/vscode	2375
+
+fatedier/frp	2367
+
+tensorflow/models	2355
+
+getsentry/sentry	2354
+
+dgraph-io/dgraph	2338
+
+TheAlgorithms/Python	2320
+
+mholt/caddy	2317
+
+astaxie/build-web-application-with-golang	2317
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_repositoryAffinityList2.out b/regression-test/data/github_events_p2/sql/nereids_repositoryAffinityList2.out
new file mode 100644
index 0000000000..4b16646c36
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_repositoryAffinityList2.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_repositoryAffinityList2 --
+0
+
+-- !nereids_repositoryAffinityList2_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_starsFromHeavyGithubUsers1.out b/regression-test/data/github_events_p2/sql/nereids_starsFromHeavyGithubUsers1.out
new file mode 100644
index 0000000000..02b05b9896
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_starsFromHeavyGithubUsers1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_starsFromHeavyGithubUsers1 --
+0
+
+-- !nereids_starsFromHeavyGithubUsers1_2 --
+0
+
+-- !nereids_starsFromHeavyGithubUsers1_3 --
+
+facebook/react	121976
+
+vuejs/vue	109518
+
+996icu/996.ICU	109244
+
+sindresorhus/awesome	106729
+
+getify/You-Dont-Know-JS	102997
+
+tensorflow/tensorflow	96960
+
+kamranahmedse/developer-roadmap	93499
+
+FreeCodeCamp/FreeCodeCamp	89246
+
+airbnb/javascript	81594
+
+donnemartin/system-design-primer	79909
+
+github/gitignore	79316
+
+torvalds/linux	77051
+
+robbyrussell/oh-my-zsh	75246
+
+twbs/bootstrap	70968
+
+jwasham/coding-interview-university	68898
+
+facebook/react-native	65952
+
+flutter/flutter	65423
+
+danistefanovic/build-your-own-x	62992
+
+golang/go	62718
+
+vhf/free-programming-books	62366
+
+M4cs/BabySploit	61966
+
+trekhleb/javascript-algorithms	59556
+
+jlevy/the-art-of-command-line	58887
+
+resume/resume.github.com	57943
+
+Microsoft/vscode	57636
+
+freeCodeCamp/freeCodeCamp	57145
+
+vinta/awesome-python	57027
+
+nodejs/node	50677
+
+FortAwesome/Font-Awesome	50169
+
+angular/angular.js	49818
+
+angular/angular	48952
+
+EbookFoundation/free-programming-books	48548
+
+daneden/animate.css	47795
+
+nvbn/thefuck	47668
+
+TheAlgorithms/Python	46791
+
+hakimel/reveal.js	46051
+
+mrdoob/three.js	46046
+
+atom/atom	46045
+
+kubernetes/kubernetes	45303
+
+webpack/webpack	45159
+
+toddmotto/public-apis	45011
+
+electron/electron	44893
+
+avelino/awesome-go	44819
+
+apple/swift	43735
+
+laravel/laravel	43569
+
+ant-design/ant-design	43134
+
+GoogleChrome/puppeteer	42974
+
+django/django	41836
+
+tonsky/FiraCode	41629
+
+adam-p/markdown-here	40647
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_starsFromHeavyGithubUsers2.out b/regression-test/data/github_events_p2/sql/nereids_starsFromHeavyGithubUsers2.out
new file mode 100644
index 0000000000..a2442c7a44
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_starsFromHeavyGithubUsers2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_starsFromHeavyGithubUsers2 --
+0
+
+-- !nereids_starsFromHeavyGithubUsers2_2 --
+0
+
+-- !nereids_starsFromHeavyGithubUsers2_3 --
+
+facebook/react	56889
+
+getify/You-Dont-Know-JS	49496
+
+sindresorhus/awesome	48750
+
+vuejs/vue	43864
+
+airbnb/javascript	40277
+
+kamranahmedse/developer-roadmap	39809
+
+tensorflow/tensorflow	38087
+
+resume/resume.github.com	37815
+
+robbyrussell/oh-my-zsh	37015
+
+donnemartin/system-design-primer	36259
+
+torvalds/linux	35229
+
+github/gitignore	34664
+
+golang/go	31545
+
+danistefanovic/build-your-own-x	30382
+
+facebook/react-native	30200
+
+Microsoft/vscode	29541
+
+twbs/bootstrap	29045
+
+vhf/free-programming-books	29025
+
+jlevy/the-art-of-command-line	28095
+
+FreeCodeCamp/FreeCodeCamp	27446
+
+trekhleb/javascript-algorithms	26912
+
+flutter/flutter	26693
+
+jwasham/coding-interview-university	26360
+
+nvbn/thefuck	26204
+
+hakimel/reveal.js	25546
+
+FortAwesome/Font-Awesome	24949
+
+nodejs/node	24475
+
+angular/angular.js	23688
+
+webpack/webpack	23617
+
+toddmotto/public-apis	23601
+
+rust-lang/rust	23408
+
+996icu/996.ICU	23405
+
+atom/atom	23250
+
+gatsbyjs/gatsby	23062
+
+GoogleChrome/puppeteer	22863
+
+tonsky/FiraCode	22544
+
+zeit/next.js	22455
+
+daneden/animate.css	22396
+
+kubernetes/kubernetes	22151
+
+apple/swift	22129
+
+avelino/awesome-go	21905
+
+vinta/awesome-python	21870
+
+mrdoob/three.js	21756
+
+rails/rails	21095
+
+typicode/json-server	20671
+
+yarnpkg/yarn	20650
+
+neovim/neovim	20466
+
+Microsoft/TypeScript	20355
+
+angular/angular	20242
+
+papers-we-love/papers-we-love	20168
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theLongestRepositoryNames1.out b/regression-test/data/github_events_p2/sql/nereids_theLongestRepositoryNames1.out
new file mode 100644
index 0000000000..42957a7f2d
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theLongestRepositoryNames1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theLongestRepositoryNames1 --
+0
+
+-- !nereids_theLongestRepositoryNames1_2 --
+0
+
+-- !nereids_theLongestRepositoryNames1_3 --
+
+1	JonathanJonathanJonathanJonathanJonatha/JonathanJonathanJonathanJonathanJonathanJonathanJonathanJonathanJonathanJonathanJonathanJonathanJona
+
+1	UDtUf4aRyjv7nU3YTg056xCJw1ghAJYXgad7oB5/hJJRB7rpa3IXwX8HRsA1B4jCDmlZBY9fAzXZWNPyhrsXYG5kCeC4RPFqKQ4I9sAu1aNzX2G6wAkBjm8BjPfKjdubEqkmeAIkIwgu
+
+1	a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a/a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-
+
+1	accounts-inheritance-finders-of-america/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+
+1	dldadnasjndfsjafajnsdfadnfadfkoafasdklk/fjkdasifjasdiofasiodfasjdogasdgajsdpgasdpgasjkdgo-askdpgspkdgvjaspgpasjidpgjiajisdgpjioasdpigasgpjia
+
+15	fkdjfkdkfjskfjsldkfjvndkslakfjgkdlskfjg/fksfekgkslgkkdjfkdlskfjkfkdlslakdjfkekjlklfkjdkslkjfojksjdfaskdjfsalkdfj-laskfjls-kdajfoasjfpoawefjk
+
+4	joooooooooooooooooooooooooooooooooooooj/jooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooj
+
+1	joooooooooooooooooooooooooooooooooooooj/jooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
+
+3	uwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwu/uwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuwuuwuwuwuwuwuwuwuwuwuwuw
+
+2	yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
+
+2	Gremling-Machine-Learning-Study-Group/A-Simple-Deep-Neural-Network-Approach-to-Estimate-the-Reproduction-Number-for-Pandemic-Influenza-R0
+
+11	yingyingyingyingyingyingyingyingying/yingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingyingying
+
+1	reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+
+1	1b3634f6-9166-46d7-a43a-51d575159cf0/Name-INDIVIDUAL-ENTREPRENEURSAPRYGIN-SERGEY-ALEXANDROVICH-Legal-address-152300-RUSSIA-YAROSLAVSKAY
+
+3	Artificial-Intelligence-Big-Data-Lab/A-Multi-Layer-and-Multi-Ensembled-Stock-Trader-Using-Deep-Learning-and-Deep-Reinforcement-Learning
+
+1	Gremling-Machine-Learning-Study-Group/Extracting-the-Ideality-Factor-of-a-Diode-on-the-Single-Diode-Solar-Cell-Model-with-Deep-Learning
+
+14	bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
+
+8466	eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+
+89	uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu/uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
+
+1	1b3634f6-9166-46d7-a43a-51d575159cf0/Correspondent-account-30101810945250000297-TIN-KPP-of-the-bank-7706092528-770543003-BIC-0445252
+
+3	kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk/kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
+
+1	Smithju1986-org-Gibbstersgame-ca/windows10-Systems-Android-10-phone-latin-reset-my-Enterprise-lib-set-IT-NETWORKING-smithju1986.org
+
+1	abortionpillsforsaleintembisa/0734408121-Abortion-Pills-For-Sale-In-Tembisa-Mamelodi-Ssoshanguve-Mabopane-Witbank-Rustenburg-Mafik
+
+1	Artificial-Intelligence-for-NLP/Source-Code-of-Pragmatic-Artificial-Intelligence-Algorithms-Based-on-Natrual-Language-Processing
+
+2	hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm/hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
+
+570	reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+
+1	Gremling-Machine-Learning-Study-Group/Deep-Learning-na-analise-de-imagens-de-raio-x-para-auxilio-na-decis-o-clinica-de-COVID-19
+
+4	1b3634f6-9166-46d7-a43a-51d575159cf0/t.1FqJlUEmmyCmGBMs1HHLszGztmmESHtJfcGQQN0V4Abbj-KUGfc4s8hX2ID89sfAlR9ogNwxscREeDrfkiqzZA
+
+4	HCIT-Computing-Intelligence/Source-Code-of-Pragmatic-Artificial-Intelligence-Algorithms-Based-on-Natrual-Language-Processing
+
+1	ArthurEmanuelRodriguesCosta/PIBITI-2015-2016-VISUALIZA-O-DO-GRAFO-DE-CORRELA-O-ENTRE-DISCIPLINAS-NO-CURSO-DE-COMPUTA-O-UFCG
+
+1	BurakKahramanHacettepe/Drug-Sensitivity-Prediction-for-Cancer-Cell-lines-with-Pairwise-Input-Graph-Convolutional-Neural-Net
+
+4	Data-Science-and-Data-Analytics-Courses/MITx---Machine-Learning-with-Python-From-Linear-Models-to-Deep-Learning-Jun-11-2019
+
+1	EduardoMartinezEnriquez/Optimized-Update-Prediction-Assignment-for-Lifting-Transforms-on-Graphs-III-Multiresolution-example
+
+1	deepakrajpurushothaman/Solution-to-Trajectory-planning-problem-using-dynamic-optimization-method-and-meta-heuristic-solver-
+
+1	globalmigrateimmigration/The-Australia-working-holiday-visa-subclass-417-is-a-visa-in-a-perfect-world-appropriate-for-young
+
+4	DeligenceTechnologies/Home-Automation-to-monitor-heat-fire-smoke-CO-and-room-by-room-movement-of-people-using-Raspberry-Pi
+
+1	Md-Samiul-Abid-Chowdhury/inputting-from-and-outputting-in-any-positive-integer-in-dos-console-using-assembly-language-8086
+
+1	Money-Maker-Research/commmodity-tipsCommodities-are-leveraged-products-where-one-needs-to-pay-initial-margin-to-take-posi
+
+5	during-master-degree/M.E-Energy-Efficient-Power-and-Subcarrier-Allocation-for-OFDMA-Systems-with-Value-Function-Approxima
+
+1	todo-sobre-el-universo/todo-sobre-el-universo.github.io-Te-presentamos-todo-acerca-del-universo-El-Sistema-Solar-Agujeros
+
+1	DevExpress-Examples/Reporting_aspxreportdesigner-how-to-create-an-aspnet-end-user-reporting-application-with-the-t227679
+
+3	DevExpress-Examples/XAF_how-to-use-google-facebook-and-microsoft-accounts-in-aspnet-xaf-applications-oauth2-demo-t535280
+
+5	Esmaeili-Najafabadi/Designing-Sequence-With-Minimum-PSL-Using-Chebyshev-Distance-and-its-Application-for-Chaotic-MIMO-Ra
+
+1	InternetofThings2017/is-open-is-pr-author-Eskimo2016-comments-50-user-InternetofThings2017-sort-updated-desc-is-private-
+
+3	SmartPracticeschool/SBSPS-Challenge-4528-Creating-The-Twitter-Sentiment-Analysis-Program-in-Python-with-Naive-Bayes-Clas
+
+1	SmartPracticeschool/llSPS-INT-3437-Predicting-the-Energy-Output-of-Wind-Turbine-Based-on-Weather-Conditions-Watson-Auto-
+
+6	nirmalsenthilnathan/Open-Set-Domain-Adaptation-for-Hyperspectral-Image-Classification-Using-Generative-Adversarial-Netwo
+
+1	thomasrussellmurphy/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
+
+1	Brundashanthmurthy/Image-Processing-Global-Thresholding-Techniques-and-Morphological-Operations-Using-MATLAB-and-Python
+
+6	Computing-Intelligence/Source-Code-of-Pragmatic-Artificial-Intelligence-Algorithms-Based-on-Natrual-Language-Processing
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theLongestRepositoryNames2.out b/regression-test/data/github_events_p2/sql/nereids_theLongestRepositoryNames2.out
new file mode 100644
index 0000000000..c651865173
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theLongestRepositoryNames2.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theLongestRepositoryNames2 --
+0
+
+-- !nereids_theLongestRepositoryNames2_2 --
+0
+
+-- !nereids_theLongestRepositoryNames2_3 --
+
+2/t	1
+
+e/m	1
+
+f/f	7
+
+s/s	1
+
+19/x	2
+
+3x/n	2
+
+69/a	3
+
+7f/h	2
+
+9H/F	2
+
+9H/Z	1
+
+Xe/h	7
+
+Xe/x	32
+
+as/a	289
+
+cv/t	23
+
+f/hy	1
+
+f/pq	162
+
+f/r3	6
+
+hf/q	6
+
+i/AI	1
+
+mg/i	5
+
+nd/e	1
+
+tj/n	13477
+
+0/...	1
+
+0/Eos	1
+
+0/RPS	1
+
+0a-/M	1
+
+0tv/t	1
+
+1-t/h	1
+
+13/GC	1
+
+17h/h	1
+
+19/19	2
+
+2vk/-	1
+
+2vn/x	1
+
+39M/M	14
+
+3F/Jt	1
+
+3p/3p	1
+
+4bx/a	1
+
+4hj/-	1
+
+5-7/-	1
+
+51c/0	1
+
+51c/1	4
+
+51c/2	1
+
+51c/3	3
+
+51c/4	1
+
+51c/5	1
+
+51c/6	1
+
+520/a	7
+
+520/b	8
+
+520/q	6
+
+57/ti	2
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theMostToughCodeReviews.out b/regression-test/data/github_events_p2/sql/nereids_theMostToughCodeReviews.out
new file mode 100644
index 0000000000..078417aef9
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theMostToughCodeReviews.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theMostToughCodeReviews --
+0
+
+-- !nereids_theMostToughCodeReviews_2 --
+0
+
+-- !nereids_theMostToughCodeReviews_3 --
+
+https://github.com/torvalds/linux/pull/684	66
+
+https://github.com/NixOS/rfcs/pull/49	52
+
+https://github.com/sunpy/sunpy/pull/3391	52
+
+https://github.com/dashbitco/mix_phx_gen_auth_demo/pull/1	51
+
+https://github.com/reactjs/rfcs/pull/2	44
+
+https://github.com/php/php-rfcs/pull/1	40
+
+https://github.com/danielmiessler/SecLists/pull/155	38
+
+https://github.com/symfony/symfony/pull/33553	35
+
+https://github.com/kubernetes/community/pull/306	34
+
+https://github.com/rust-lang/rfcs/pull/2850	33
+
+https://github.com/date-fns/date-fns/pull/1671	32
+
+https://github.com/github/site-policy/pull/1	31
+
+https://github.com/996icu/996.ICU/pull/25509	30
+
+https://github.com/dotnet/designs/pull/92	30
+
+https://github.com/symfony/symfony/pull/11882	30
+
+https://github.com/tc39/ecma262/pull/1062	30
+
+https://github.com/rust-lang/rfcs/pull/517	29
+
+https://github.com/open-telemetry/oteps/pull/97	28
+
+https://github.com/matrix-org/matrix-doc/pull/1772	27
+
+https://github.com/scipy/scipy/pull/11061	27
+
+https://github.com/Samsung/tizen-docs/pull/871	26
+
+https://github.com/bitcoin/bitcoin/pull/17977	25
+
+https://github.com/rust-lang/rfcs/pull/1566	25
+
+https://github.com/babel/babel.github.io/pull/1014	24
+
+https://github.com/bitcoin-core/secp256k1/pull/558	24
+
+https://github.com/opscode/chef-rfc/pull/21	24
+
+https://github.com/rust-lang/rust-www/pull/202	24
+
+https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1854	23
+
+https://github.com/bitcoin/bitcoin/pull/7910	23
+
+https://github.com/kubernetes/enhancements/pull/686	23
+
+https://github.com/nodejs/modules/pull/23	23
+
+https://github.com/nodejs/node/pull/11533	23
+
+https://github.com/openshift/openshift-docs/pull/18254	23
+
+https://github.com/rust-lang/rfcs/pull/2395	23
+
+https://github.com/EpicGames/Signup/pull/10	22
+
+https://github.com/PowerShell/PowerShell-RFC/pull/185	22
+
+https://github.com/apache/kafka/pull/6295	22
+
+https://github.com/hannahhch/github-cheatsheet/pull/4	22
+
+https://github.com/kubernetes/community/pull/1629	22
+
+https://github.com/nodejs/node/pull/5020	22
+
+https://github.com/reactjs/rfcs/pull/6	22
+
+https://github.com/rust-lang/rfcs/pull/1105	22
+
+https://github.com/symfony/symfony/pull/23315	22
+
+https://github.com/symfony/symfony/pull/24411	22
+
+https://github.com/tgstation/tgstation/pull/27155	22
+
+https://github.com/whatwg/html/pull/3752	22
+
+https://github.com/Samsung/tizen-docs/pull/1250	21
+
+https://github.com/bids-standard/pybids/pull/308	21
+
+https://github.com/kubernetes/enhancements/pull/1367	21
+
+https://github.com/rails/rails/pull/19832	21
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfRepositoriesOnGithub.out b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfRepositoriesOnGithub.out
new file mode 100644
index 0000000000..62a99c7fc1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfRepositoriesOnGithub.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theTotalNumberOfRepositoriesOnGithub --
+0
+
+-- !nereids_theTotalNumberOfRepositoriesOnGithub_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub1.out b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub1.out
new file mode 100644
index 0000000000..af76ab5bd4
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub1.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theTotalNumberOfUsersOnGithub1 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub1_2 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub1_3 --
+
+34099240
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub2.out b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub2.out
new file mode 100644
index 0000000000..08ae85862f
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub2.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theTotalNumberOfUsersOnGithub2 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub2_2 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub2_3 --
+
+10131322
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub3.out b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub3.out
new file mode 100644
index 0000000000..b0b6741e77
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub3.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theTotalNumberOfUsersOnGithub3 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub3_2 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub3_3 --
+
+18808891
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub4.out b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub4.out
new file mode 100644
index 0000000000..1ce37a4a69
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_theTotalNumberOfUsersOnGithub4.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_theTotalNumberOfUsersOnGithub4 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub4_2 --
+0
+
+-- !nereids_theTotalNumberOfUsersOnGithub4_3 --
+
+6418718
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_topLabels1.out b/regression-test/data/github_events_p2/sql/nereids_topLabels1.out
new file mode 100644
index 0000000000..804389d254
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_topLabels1.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_topLabels1 --
+0
+
+-- !nereids_topLabels1_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_topLabels2.out b/regression-test/data/github_events_p2/sql/nereids_topLabels2.out
new file mode 100644
index 0000000000..93ea7a9559
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_topLabels2.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_topLabels2 --
+0
+
+-- !nereids_topLabels2_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_topLabels3.out b/regression-test/data/github_events_p2/sql/nereids_topLabels3.out
new file mode 100644
index 0000000000..c9ec290adf
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_topLabels3.out
@@ -0,0 +1,7 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_topLabels3 --
+0
+
+-- !nereids_topLabels3_2 --
+0
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_topRepositoriesByStars.out b/regression-test/data/github_events_p2/sql/nereids_topRepositoriesByStars.out
new file mode 100644
index 0000000000..39787ae9f5
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_topRepositoriesByStars.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_topRepositoriesByStars --
+0
+
+-- !nereids_topRepositoriesByStars_2 --
+0
+
+-- !nereids_topRepositoriesByStars_3 --
+
+996icu/996.ICU	354850
+
+FreeCodeCamp/FreeCodeCamp	225490
+
+vuejs/vue	199731
+
+facebook/react	188575
+
+tensorflow/tensorflow	173681
+
+sindresorhus/awesome	160542
+
+kamranahmedse/developer-roadmap	147561
+
+getify/You-Dont-Know-JS	144146
+
+freeCodeCamp/freeCodeCamp	140027
+
+twbs/bootstrap	126371
+
+torvalds/linux	121415
+
+jwasham/coding-interview-university	119797
+
+github/gitignore	119322
+
+donnemartin/system-design-primer	118394
+
+flutter/flutter	116303
+
+airbnb/javascript	115651
+
+jackfrued/Python-100-Days	108760
+
+robbyrussell/oh-my-zsh	107173
+
+facebook/react-native	105346
+
+TheAlgorithms/Python	102067
+
+vinta/awesome-python	98604
+
+Snailclimb/JavaGuide	97793
+
+vhf/free-programming-books	94137
+
+CyC2018/CS-Notes	93320
+
+golang/go	92407
+
+EbookFoundation/free-programming-books	92016
+
+trekhleb/javascript-algorithms	89512
+
+danistefanovic/build-your-own-x	89253
+
+jlevy/the-art-of-command-line	87750
+
+Microsoft/vscode	82043
+
+angular/angular	80602
+
+justjavac/free-programming-books-zh_CN	78460
+
+labuladong/fucking-algorithm	77568
+
+angular/angular.js	76251
+
+FortAwesome/Font-Awesome	75924
+
+nodejs/node	75477
+
+tensorflow/models	75206
+
+laravel/laravel	74136
+
+daneden/animate.css	74095
+
+mrdoob/three.js	72597
+
+M4cs/BabySploit	71572
+
+ant-design/ant-design	71552
+
+electron/electron	71394
+
+kubernetes/kubernetes	68644
+
+resume/resume.github.com	68423
+
+atom/atom	68396
+
+iluwatar/java-design-patterns	67831
+
+PanJiaChen/vue-element-admin	67625
+
+django/django	66415
+
+apple/swift	66350
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_whatIsTheBestDayOfTheWeekToCatchAStar.out b/regression-test/data/github_events_p2/sql/nereids_whatIsTheBestDayOfTheWeekToCatchAStar.out
new file mode 100644
index 0000000000..5bd75ecd9c
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_whatIsTheBestDayOfTheWeekToCatchAStar.out
@@ -0,0 +1,25 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_whatIsTheBestDayOfTheWeekToCatchAStar --
+0
+
+-- !nereids_whatIsTheBestDayOfTheWeekToCatchAStar_2 --
+0
+
+-- !nereids_whatIsTheBestDayOfTheWeekToCatchAStar_3 --
+
+1	24102566
+
+2	36491986
+
+3	38094378
+
+4	37570733
+
+5	37208005
+
+6	34924484
+
+7	23726322
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars1.out b/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars1.out
new file mode 100644
index 0000000000..2d5121e5e0
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars1.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_whoAreAllThosePeopleGivingStars1 --
+0
+
+-- !nereids_whoAreAllThosePeopleGivingStars1_2 --
+0
+
+-- !nereids_whoAreAllThosePeopleGivingStars1_3 --
+
+4148	232492
+
+salifm	202534
+
+x0rzkov	73531
+
+fly51fly	57756
+
+PCOffline	56725
+
+baslr	50363
+
+gkze	49078
+
+StarTheWorld	45691
+
+thanhtoan1196	44715
+
+mcanthony	44331
+
+gauravssnl	43832
+
+ik5	42817
+
+jenniemanphonsy	41784
+
+madshansens	41045
+
+denji	40921
+
+jorgemachucav	39905
+
+korolr	39723
+
+esneko	39073
+
+5l1v3r1	38034
+
+roscopecoltran	35734
+
+tdusty46	34200
+
+JT5D	32595
+
+pranavlathigara	32068
+
+reduxionist	31377
+
+StarsEverywhere	31079
+
+nikolay	28975
+
+maoabc1818	28857
+
+gaoypChina	28767
+
+vulcangz	28602
+
+hcilab	28215
+
+CNXTEoE	28045
+
+tdusty47	27534
+
+lifa123	24146
+
+MihalczGabor	23416
+
+romanofficial	22976
+
+morristech	22269
+
+savage69kr	22178
+
+trietptm	22165
+
+the-cc-dev	22094
+
+Jackneill	21974
+
+hartca	21820
+
+jiangplus	21366
+
+topcloud	21343
+
+Jerzerak	21066
+
+mrluanma	20812
+
+pkt	20799
+
+wangpengwen	20754
+
+denisfitz57	20680
+
+mhaidarh	20418
+
+likaihere	19667
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars2.out b/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars2.out
new file mode 100644
index 0000000000..57650c0861
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars2.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_whoAreAllThosePeopleGivingStars2 --
+0
+
+-- !nereids_whoAreAllThosePeopleGivingStars2_2 --
+0
+
+-- !nereids_whoAreAllThosePeopleGivingStars2_3 --
+
+alexey-milovidov	203
+
+
+
diff --git a/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars3.out b/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars3.out
new file mode 100644
index 0000000000..9f7815ece1
--- /dev/null
+++ b/regression-test/data/github_events_p2/sql/nereids_whoAreAllThosePeopleGivingStars3.out
@@ -0,0 +1,111 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_whoAreAllThosePeopleGivingStars3 --
+0
+
+-- !nereids_whoAreAllThosePeopleGivingStars3_2 --
+0
+
+-- !nereids_whoAreAllThosePeopleGivingStars3_3 --
+
+koalaman/shellcheck	23579
+
+mxgmn/WaveFunctionCollapse	16007
+
+nothings/stb	15327
+
+Swordfish90/cool-retro-term	13619
+
+gabime/spdlog	10904
+
+kovidgoyal/kitty	10829
+
+lemire/simdjson	9541
+
+rsms/inter	8653
+
+yandex/ClickHouse	8629
+
+olivernn/lunr.js	7635
+
+llvm/llvm-project	7228
+
+mre/awesome-static-analysis	7126
+
+cube-js/cube.js	6783
+
+sharkdp/hyperfine	6685
+
+darlinghq/darling	6194
+
+google/oss-fuzz	6036
+
+catboost/catboost	6010
+
+chrissimpkins/codeface	5998
+
+jemalloc/jemalloc	5895
+
+mozilla/rr	5848
+
+hashicorp/packer	5740
+
+rqlite/rqlite	5390
+
+antirez/kilo	5372
+
+angr/angr	5013
+
+sysown/proxysql	4288
+
+unicorn-engine/unicorn	4175
+
+zmap/zmap	3821
+
+plausible/analytics	3614
+
+kahing/goofys	3351
+
+weidai11/cryptopp	2732
+
+jbeder/yaml-cpp	2539
+
+intel/hyperscan	2200
+
+jlfwong/speedscope	2177
+
+lief-project/LIEF	2131
+
+boyter/scc	1919
+
+simongog/sdsl-lite	1860
+
+yandex/odyssey	1833
+
+phracker/MacOSX-SDKs	1793
+
+apache/avro	1792
+
+zserge/awfice	1706
+
+randombit/botan	1677
+
+arrowtype/recursive	1613
+
+GoogleCloudPlatform/PerfKitBenchmarker	1565
+
+drh/lcc	1449
+
+uncrustify/uncrustify	1322
+
+orlp/pdqsort	1319
+
+google/highwayhash	1142
+
+centaurean/density	988
+
+google/boringssl	976
+
+woboq/woboq_codebrowser	916
+
+
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.1.out
new file mode 100644
index 0000000000..7e27d53aad
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.1.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q1.1 --
+0
+
+-- !nereids_flat_q1.1_2 --
+0
+
+-- !nereids_flat_q1.1_3 --
+40408592843
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.2.out
new file mode 100644
index 0000000000..f5b7231a96
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.2.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q1.2 --
+0
+
+-- !nereids_flat_q1.2_2 --
+0
+
+-- !nereids_flat_q1.2_3 --
+9122707260
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.3.out
new file mode 100644
index 0000000000..4cc4ddefb4
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q1.3.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q1.3 --
+0
+
+-- !nereids_flat_q1.3_2 --
+0
+
+-- !nereids_flat_q1.3_3 --
+2458647398
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.1.out
new file mode 100644
index 0000000000..ab4fdddbc2
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.1.out
@@ -0,0 +1,289 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q2.1 --
+0
+
+-- !nereids_flat_q2.1_2 --
+0
+
+-- !nereids_flat_q2.1_3 --
+44020938	1992	MFGR#121
+61069019	1992	MFGR#1210
+98770796	1992	MFGR#1211
+55714017	1992	MFGR#1212
+30859869	1992	MFGR#1213
+7655070	1992	MFGR#1214
+24888208	1992	MFGR#1215
+23379772	1992	MFGR#1216
+56476383	1992	MFGR#1217
+57043338	1992	MFGR#1218
+32145078	1992	MFGR#1219
+99329461	1992	MFGR#122
+74527914	1992	MFGR#1220
+44999728	1992	MFGR#1221
+51232286	1992	MFGR#1222
+34310857	1992	MFGR#1223
+113795427	1992	MFGR#1224
+34206250	1992	MFGR#1225
+55651923	1992	MFGR#1226
+41734506	1992	MFGR#1227
+49250683	1992	MFGR#1228
+38872880	1992	MFGR#1229
+19513495	1992	MFGR#123
+30074382	1992	MFGR#1230
+36122196	1992	MFGR#1231
+45964173	1992	MFGR#1232
+55214909	1992	MFGR#1233
+64954836	1992	MFGR#1234
+49076192	1992	MFGR#1235
+72479136	1992	MFGR#1236
+45028882	1992	MFGR#1237
+58021772	1992	MFGR#1238
+32264994	1992	MFGR#1239
+44086292	1992	MFGR#124
+69438922	1992	MFGR#1240
+50915712	1992	MFGR#125
+54423227	1992	MFGR#126
+38517896	1992	MFGR#127
+40358571	1992	MFGR#128
+29673343	1992	MFGR#129
+16480856	1993	MFGR#121
+61526362	1993	MFGR#1210
+62269128	1993	MFGR#1211
+49135175	1993	MFGR#1212
+19363246	1993	MFGR#1213
+29026117	1993	MFGR#1214
+35637454	1993	MFGR#1215
+20647862	1993	MFGR#1216
+65123252	1993	MFGR#1217
+25352010	1993	MFGR#1218
+68564939	1993	MFGR#1219
+17042606	1993	MFGR#122
+61430989	1993	MFGR#1220
+26382572	1993	MFGR#1221
+60006256	1993	MFGR#1222
+42890945	1993	MFGR#1223
+59983138	1993	MFGR#1224
+58171358	1993	MFGR#1225
+108538569	1993	MFGR#1226
+46953139	1993	MFGR#1227
+50357127	1993	MFGR#1228
+31565836	1993	MFGR#1229
+38160720	1993	MFGR#123
+50151622	1993	MFGR#1230
+29327673	1993	MFGR#1231
+38503874	1993	MFGR#1232
+19778805	1993	MFGR#1233
+41858350	1993	MFGR#1234
+24051246	1993	MFGR#1235
+52361976	1993	MFGR#1236
+38500972	1993	MFGR#1237
+40361967	1993	MFGR#1238
+52043689	1993	MFGR#1239
+64673820	1993	MFGR#124
+93511363	1993	MFGR#1240
+31696482	1993	MFGR#125
+65480881	1993	MFGR#126
+60071054	1993	MFGR#127
+44611749	1993	MFGR#128
+56729947	1993	MFGR#129
+25080633	1994	MFGR#121
+44421057	1994	MFGR#1210
+80008319	1994	MFGR#1211
+103863339	1994	MFGR#1212
+54621314	1994	MFGR#1213
+15680735	1994	MFGR#1214
+54681430	1994	MFGR#1215
+43692857	1994	MFGR#1216
+49325094	1994	MFGR#1217
+73675432	1994	MFGR#1218
+49871984	1994	MFGR#1219
+21256963	1994	MFGR#122
+31955137	1994	MFGR#1220
+48453428	1994	MFGR#1221
+53874152	1994	MFGR#1222
+62865250	1994	MFGR#1223
+63595818	1994	MFGR#1224
+28152809	1994	MFGR#1225
+69659357	1994	MFGR#1226
+75096847	1994	MFGR#1227
+42757254	1994	MFGR#1228
+32327218	1994	MFGR#1229
+22888353	1994	MFGR#123
+41728518	1994	MFGR#1230
+19387027	1994	MFGR#1231
+52487222	1994	MFGR#1232
+35994313	1994	MFGR#1233
+60742116	1994	MFGR#1234
+45227060	1994	MFGR#1235
+59160212	1994	MFGR#1236
+54619957	1994	MFGR#1237
+47480957	1994	MFGR#1238
+25888685	1994	MFGR#1239
+70368638	1994	MFGR#124
+72629620	1994	MFGR#1240
+33238482	1994	MFGR#125
+72394492	1994	MFGR#126
+56029736	1994	MFGR#127
+38147992	1994	MFGR#128
+69501483	1994	MFGR#129
+20924289	1995	MFGR#121
+36975122	1995	MFGR#1210
+48756873	1995	MFGR#1211
+53856557	1995	MFGR#1212
+38371527	1995	MFGR#1213
+20160501	1995	MFGR#1214
+24921435	1995	MFGR#1215
+49182346	1995	MFGR#1216
+79421062	1995	MFGR#1217
+43871805	1995	MFGR#1218
+40799560	1995	MFGR#1219
+48863048	1995	MFGR#122
+30480350	1995	MFGR#1220
+39631840	1995	MFGR#1221
+46048864	1995	MFGR#1222
+54794320	1995	MFGR#1223
+58418860	1995	MFGR#1224
+46832764	1995	MFGR#1225
+93015568	1995	MFGR#1226
+59555495	1995	MFGR#1227
+64677848	1995	MFGR#1228
+54371856	1995	MFGR#1229
+41367445	1995	MFGR#123
+62730952	1995	MFGR#1230
+20240121	1995	MFGR#1231
+31312779	1995	MFGR#1232
+61254571	1995	MFGR#1233
+101408529	1995	MFGR#1234
+35489977	1995	MFGR#1235
+72283474	1995	MFGR#1236
+44169187	1995	MFGR#1237
+76982851	1995	MFGR#1238
+17887986	1995	MFGR#1239
+25579008	1995	MFGR#124
+57259273	1995	MFGR#1240
+48737579	1995	MFGR#125
+46441183	1995	MFGR#126
+78098863	1995	MFGR#127
+27870848	1995	MFGR#128
+35908546	1995	MFGR#129
+35271098	1996	MFGR#121
+38792230	1996	MFGR#1210
+47160693	1996	MFGR#1211
+68210595	1996	MFGR#1212
+44722895	1996	MFGR#1213
+26593762	1996	MFGR#1214
+32215205	1996	MFGR#1215
+36462712	1996	MFGR#1216
+74558576	1996	MFGR#1217
+54779933	1996	MFGR#1218
+73411970	1996	MFGR#1219
+34964197	1996	MFGR#122
+68558799	1996	MFGR#1220
+51301494	1996	MFGR#1221
+72933737	1996	MFGR#1222
+63554793	1996	MFGR#1223
+89879873	1996	MFGR#1224
+66262314	1996	MFGR#1225
+80568026	1996	MFGR#1226
+44565937	1996	MFGR#1227
+52846872	1996	MFGR#1228
+44976411	1996	MFGR#1229
+15588645	1996	MFGR#123
+53581284	1996	MFGR#1230
+22553880	1996	MFGR#1231
+96176719	1996	MFGR#1232
+52077897	1996	MFGR#1233
+66828307	1996	MFGR#1234
+30327368	1996	MFGR#1235
+50040478	1996	MFGR#1236
+46199045	1996	MFGR#1237
+40764060	1996	MFGR#1238
+60654980	1996	MFGR#1239
+69640803	1996	MFGR#124
+48177264	1996	MFGR#1240
+28190715	1996	MFGR#125
+50400382	1996	MFGR#126
+64695119	1996	MFGR#127
+56829515	1996	MFGR#128
+34826763	1996	MFGR#129
+22963752	1997	MFGR#121
+34840658	1997	MFGR#1210
+49126086	1997	MFGR#1211
+68574455	1997	MFGR#1212
+38647328	1997	MFGR#1213
+19070678	1997	MFGR#1214
+34729724	1997	MFGR#1215
+45360726	1997	MFGR#1216
+100366087	1997	MFGR#1217
+23839879	1997	MFGR#1218
+64452428	1997	MFGR#1219
+29119805	1997	MFGR#122
+49517616	1997	MFGR#1220
+69279406	1997	MFGR#1221
+56714590	1997	MFGR#1222
+39678871	1997	MFGR#1223
+73858672	1997	MFGR#1224
+13942407	1997	MFGR#1225
+80693293	1997	MFGR#1226
+79034646	1997	MFGR#1227
+60410183	1997	MFGR#1228
+29923476	1997	MFGR#1229
+38002024	1997	MFGR#123
+15398954	1997	MFGR#1230
+25870965	1997	MFGR#1231
+82101226	1997	MFGR#1232
+35715749	1997	MFGR#1233
+47016892	1997	MFGR#1234
+60104390	1997	MFGR#1235
+49230267	1997	MFGR#1236
+60826887	1997	MFGR#1237
+46058415	1997	MFGR#1238
+20840231	1997	MFGR#1239
+73636093	1997	MFGR#124
+52792905	1997	MFGR#1240
+49503830	1997	MFGR#125
+40570441	1997	MFGR#126
+52426752	1997	MFGR#127
+56182164	1997	MFGR#128
+37727233	1997	MFGR#129
+3549137	1998	MFGR#121
+49830740	1998	MFGR#1210
+20393668	1998	MFGR#1211
+21173543	1998	MFGR#1212
+20087827	1998	MFGR#1213
+10743126	1998	MFGR#1214
+12847957	1998	MFGR#1215
+19691011	1998	MFGR#1216
+51049704	1998	MFGR#1217
+23558548	1998	MFGR#1218
+25951054	1998	MFGR#1219
+17166766	1998	MFGR#122
+28493696	1998	MFGR#1220
+12744431	1998	MFGR#1221
+22077936	1998	MFGR#1222
+33163504	1998	MFGR#1223
+66412310	1998	MFGR#1224
+26213544	1998	MFGR#1225
+32389442	1998	MFGR#1226
+42104295	1998	MFGR#1227
+33078210	1998	MFGR#1228
+37064611	1998	MFGR#1229
+24156825	1998	MFGR#123
+25580571	1998	MFGR#1230
+10782317	1998	MFGR#1231
+22813148	1998	MFGR#1232
+17629146	1998	MFGR#1233
+36569860	1998	MFGR#1234
+40382918	1998	MFGR#1235
+35602723	1998	MFGR#1236
+24130345	1998	MFGR#1237
+30693015	1998	MFGR#1238
+14929431	1998	MFGR#1239
+39975811	1998	MFGR#124
+16736766	1998	MFGR#1240
+29646784	1998	MFGR#125
+19901786	1998	MFGR#126
+45106934	1998	MFGR#127
+26254536	1998	MFGR#128
+42825370	1998	MFGR#129
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.2.out
new file mode 100644
index 0000000000..3e2c757983
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.2.out
@@ -0,0 +1,65 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q2.2 --
+0
+
+-- !nereids_flat_q2.2_2 --
+0
+
+-- !nereids_flat_q2.2_3 --
+49901521	1992	MFGR#2221
+96163939	1992	MFGR#2222
+90215446	1992	MFGR#2223
+48493609	1992	MFGR#2224
+110952177	1992	MFGR#2225
+106008540	1992	MFGR#2226
+57647604	1992	MFGR#2227
+86072957	1992	MFGR#2228
+67725886	1993	MFGR#2221
+67725009	1993	MFGR#2222
+81806477	1993	MFGR#2223
+50421651	1993	MFGR#2224
+94454058	1993	MFGR#2225
+70629830	1993	MFGR#2226
+45404279	1993	MFGR#2227
+79310904	1993	MFGR#2228
+47777086	1994	MFGR#2221
+71637360	1994	MFGR#2222
+72156568	1994	MFGR#2223
+51587753	1994	MFGR#2224
+83364340	1994	MFGR#2225
+60478099	1994	MFGR#2226
+56003454	1994	MFGR#2227
+89029764	1994	MFGR#2228
+72175190	1995	MFGR#2221
+71019982	1995	MFGR#2222
+96319277	1995	MFGR#2223
+68803330	1995	MFGR#2224
+80093694	1995	MFGR#2225
+78383156	1995	MFGR#2226
+49502866	1995	MFGR#2227
+104551526	1995	MFGR#2228
+51297584	1996	MFGR#2221
+96580568	1996	MFGR#2222
+75725909	1996	MFGR#2223
+64823360	1996	MFGR#2224
+125578266	1996	MFGR#2225
+47938897	1996	MFGR#2226
+70423501	1996	MFGR#2227
+108054309	1996	MFGR#2228
+108073280	1997	MFGR#2221
+43179221	1997	MFGR#2222
+70814037	1997	MFGR#2223
+60936293	1997	MFGR#2224
+81810165	1997	MFGR#2225
+67439343	1997	MFGR#2226
+42064594	1997	MFGR#2227
+87179304	1997	MFGR#2228
+25132568	1998	MFGR#2221
+55722350	1998	MFGR#2222
+48431542	1998	MFGR#2223
+12880429	1998	MFGR#2224
+32016105	1998	MFGR#2225
+39867983	1998	MFGR#2226
+17482648	1998	MFGR#2227
+54980480	1998	MFGR#2228
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.3.out
new file mode 100644
index 0000000000..3d170b6994
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q2.3.out
@@ -0,0 +1,16 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q2.3 --
+0
+
+-- !nereids_flat_q2.3_2 --
+0
+
+-- !nereids_flat_q2.3_3 --
+126104513	1992	MFGR#2239
+55041640	1993	MFGR#2239
+53176975	1994	MFGR#2239
+91516581	1995	MFGR#2239
+89177504	1996	MFGR#2239
+109557743	1997	MFGR#2239
+64474863	1998	MFGR#2239
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.1.out
new file mode 100644
index 0000000000..18f289e3f0
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.1.out
@@ -0,0 +1,159 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q3.1 --
+0
+
+-- !nereids_flat_q3.1_2 --
+0
+
+-- !nereids_flat_q3.1_3 --
+JAPAN	CHINA	1992	894662617
+VIETNAM	CHINA	1992	879657868
+INDONESIA	CHINA	1992	848560058
+CHINA	CHINA	1992	819815922
+INDIA	CHINA	1992	806291092
+JAPAN	INDONESIA	1992	680053883
+VIETNAM	INDONESIA	1992	673179581
+INDONESIA	INDONESIA	1992	664270844
+INDONESIA	JAPAN	1992	643752974
+INDIA	INDONESIA	1992	638903445
+JAPAN	VIETNAM	1992	635824950
+JAPAN	JAPAN	1992	633585481
+INDIA	JAPAN	1992	607839613
+VIETNAM	JAPAN	1992	607710783
+INDIA	INDIA	1992	536769929
+JAPAN	INDIA	1992	534088599
+VIETNAM	VIETNAM	1992	516117221
+CHINA	INDONESIA	1992	506456790
+CHINA	INDIA	1992	480846807
+CHINA	VIETNAM	1992	477208003
+CHINA	JAPAN	1992	472412008
+INDIA	VIETNAM	1992	471237542
+INDONESIA	VIETNAM	1992	459553516
+VIETNAM	INDIA	1992	456110182
+INDONESIA	INDIA	1992	455186775
+INDONESIA	CHINA	1993	943734711
+JAPAN	CHINA	1993	884999330
+VIETNAM	CHINA	1993	776170628
+JAPAN	JAPAN	1993	763155805
+INDIA	CHINA	1993	727268159
+JAPAN	INDONESIA	1993	725974841
+CHINA	CHINA	1993	699037918
+VIETNAM	INDONESIA	1993	678558585
+INDIA	INDONESIA	1993	636586282
+JAPAN	VIETNAM	1993	615519995
+CHINA	INDONESIA	1993	611808285
+INDONESIA	INDONESIA	1993	603487543
+VIETNAM	JAPAN	1993	581395052
+INDIA	INDIA	1993	562950799
+VIETNAM	INDIA	1993	560138093
+JAPAN	INDIA	1993	556451843
+INDONESIA	JAPAN	1993	551536311
+INDIA	JAPAN	1993	520291875
+INDONESIA	VIETNAM	1993	516700032
+CHINA	JAPAN	1993	513860361
+VIETNAM	VIETNAM	1993	511572341
+INDONESIA	INDIA	1993	475772900
+CHINA	INDIA	1993	469387738
+CHINA	VIETNAM	1993	445157921
+INDIA	VIETNAM	1993	421899314
+JAPAN	CHINA	1994	1078430520
+CHINA	CHINA	1994	780416580
+INDIA	CHINA	1994	775588173
+VIETNAM	CHINA	1994	770264574
+JAPAN	JAPAN	1994	759994553
+JAPAN	INDONESIA	1994	714753599
+INDONESIA	CHINA	1994	714095689
+VIETNAM	JAPAN	1994	709054030
+INDONESIA	JAPAN	1994	700405590
+VIETNAM	VIETNAM	1994	642825294
+INDONESIA	INDONESIA	1994	620705729
+JAPAN	INDIA	1994	615711853
+JAPAN	VIETNAM	1994	604773981
+INDIA	JAPAN	1994	603556186
+INDONESIA	VIETNAM	1994	583034876
+VIETNAM	INDONESIA	1994	564257510
+INDIA	INDONESIA	1994	516996319
+VIETNAM	INDIA	1994	499086392
+CHINA	JAPAN	1994	497106086
+CHINA	INDONESIA	1994	464805234
+INDIA	INDIA	1994	460482523
+INDIA	VIETNAM	1994	457376149
+INDONESIA	INDIA	1994	456297959
+CHINA	INDIA	1994	432006728
+CHINA	VIETNAM	1994	351960554
+JAPAN	CHINA	1995	986663348
+INDIA	CHINA	1995	861068631
+INDONESIA	CHINA	1995	822855656
+CHINA	CHINA	1995	767174809
+JAPAN	INDONESIA	1995	745662666
+VIETNAM	CHINA	1995	729675158
+JAPAN	JAPAN	1995	707259778
+VIETNAM	JAPAN	1995	692786366
+INDONESIA	JAPAN	1995	691858407
+INDONESIA	INDONESIA	1995	643912652
+VIETNAM	INDONESIA	1995	623670464
+JAPAN	VIETNAM	1995	595667658
+INDIA	JAPAN	1995	595328992
+INDONESIA	INDIA	1995	578833336
+INDIA	VIETNAM	1995	575485335
+CHINA	JAPAN	1995	574277531
+INDIA	INDONESIA	1995	573908169
+CHINA	INDONESIA	1995	545491112
+VIETNAM	INDIA	1995	539065793
+JAPAN	INDIA	1995	535604852
+VIETNAM	VIETNAM	1995	533647175
+INDIA	INDIA	1995	479262711
+INDONESIA	VIETNAM	1995	467482484
+CHINA	VIETNAM	1995	456995300
+CHINA	INDIA	1995	428711969
+JAPAN	CHINA	1996	986140813
+VIETNAM	CHINA	1996	802903887
+JAPAN	JAPAN	1996	770237433
+JAPAN	INDONESIA	1996	753998482
+INDONESIA	CHINA	1996	740555766
+CHINA	CHINA	1996	725619149
+CHINA	INDONESIA	1996	679336367
+INDIA	CHINA	1996	671074957
+VIETNAM	JAPAN	1996	644535010
+VIETNAM	INDONESIA	1996	641798202
+JAPAN	INDIA	1996	617455416
+INDONESIA	JAPAN	1996	615961620
+JAPAN	VIETNAM	1996	615247275
+CHINA	JAPAN	1996	567641014
+INDIA	INDONESIA	1996	553269889
+INDIA	JAPAN	1996	529524803
+INDONESIA	INDONESIA	1996	522610713
+VIETNAM	VIETNAM	1996	492513335
+CHINA	INDIA	1996	485501126
+VIETNAM	INDIA	1996	483604465
+INDIA	VIETNAM	1996	476602949
+INDONESIA	INDIA	1996	459775845
+INDONESIA	VIETNAM	1996	436568261
+CHINA	VIETNAM	1996	427435930
+INDIA	INDIA	1996	378608488
+JAPAN	CHINA	1997	950779597
+VIETNAM	CHINA	1997	908837192
+INDONESIA	CHINA	1997	869538220
+INDIA	CHINA	1997	798545421
+JAPAN	INDONESIA	1997	793631604
+JAPAN	JAPAN	1997	743977084
+VIETNAM	JAPAN	1997	662366183
+VIETNAM	INDONESIA	1997	656632582
+INDIA	INDONESIA	1997	644452063
+CHINA	CHINA	1997	638308872
+INDONESIA	JAPAN	1997	601147475
+INDIA	JAPAN	1997	591931506
+CHINA	INDONESIA	1997	588058561
+JAPAN	INDIA	1997	586235315
+INDONESIA	INDIA	1997	580061411
+CHINA	JAPAN	1997	576981874
+INDONESIA	INDONESIA	1997	570813647
+JAPAN	VIETNAM	1997	560180609
+INDIA	VIETNAM	1997	537809881
+VIETNAM	INDIA	1997	509338268
+INDONESIA	VIETNAM	1997	506305004
+VIETNAM	VIETNAM	1997	480669507
+CHINA	INDIA	1997	465641614
+CHINA	VIETNAM	1997	453346071
+INDIA	INDIA	1997	384517066
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.2.out
new file mode 100644
index 0000000000..e391c66962
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.2.out
@@ -0,0 +1,323 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q3.2 --
+0
+
+-- !nereids_flat_q3.2_2 --
+0
+
+-- !nereids_flat_q3.2_3 --
+UNITED ST4	UNITED ST0	1992	41731025
+UNITED ST4	UNITED ST3	1992	40001969
+UNITED ST1	UNITED ST9	1992	33158800
+UNITED ST4	UNITED ST9	1992	28893071
+UNITED ST2	UNITED ST0	1992	28495669
+UNITED ST4	UNITED ST6	1992	24351778
+UNITED ST2	UNITED ST3	1992	23948087
+UNITED ST7	UNITED ST3	1992	23105112
+UNITED ST1	UNITED ST0	1992	22259691
+UNITED ST1	UNITED ST7	1992	22081488
+UNITED ST0	UNITED ST0	1992	18293852
+UNITED ST1	UNITED ST3	1992	18119462
+UNITED ST9	UNITED ST3	1992	17863433
+UNITED ST5	UNITED ST6	1992	17493829
+UNITED ST5	UNITED ST2	1992	17414941
+UNITED ST7	UNITED ST9	1992	17042156
+UNITED ST4	UNITED ST2	1992	16123916
+UNITED ST9	UNITED ST0	1992	15335446
+UNITED ST5	UNITED ST9	1992	14871338
+UNITED ST6	UNITED ST0	1992	14409189
+UNITED ST4	UNITED ST7	1992	13420748
+UNITED ST8	UNITED ST0	1992	12694771
+UNITED ST1	UNITED ST6	1992	12615015
+UNITED ST5	UNITED ST3	1992	12609431
+UNITED ST9	UNITED ST2	1992	12370917
+UNITED ST2	UNITED ST9	1992	12343455
+UNITED ST5	UNITED ST0	1992	12301234
+UNITED ST0	UNITED ST3	1992	11998215
+UNITED ST0	UNITED ST7	1992	11561727
+UNITED ST0	UNITED ST9	1992	10044917
+UNITED ST1	UNITED ST2	1992	9911709
+UNITED ST7	UNITED ST7	1992	9715656
+UNITED ST8	UNITED ST9	1992	9595969
+UNITED ST9	UNITED ST9	1992	9263093
+UNITED ST7	UNITED ST2	1992	9032051
+UNITED ST6	UNITED ST6	1992	8685228
+UNITED ST2	UNITED ST2	1992	8313714
+UNITED ST2	UNITED ST7	1992	7759164
+UNITED ST7	UNITED ST0	1992	7492111
+UNITED ST5	UNITED ST7	1992	7225053
+UNITED ST9	UNITED ST7	1992	7204874
+UNITED ST6	UNITED ST9	1992	6597261
+UNITED ST7	UNITED ST6	1992	6058017
+UNITED ST8	UNITED ST7	1992	5480207
+UNITED ST3	UNITED ST3	1992	4080199
+UNITED ST2	UNITED ST6	1992	2888270
+UNITED ST3	UNITED ST9	1992	2614811
+UNITED ST9	UNITED ST6	1992	2066609
+UNITED ST6	UNITED ST3	1992	1873819
+UNITED ST0	UNITED ST2	1992	742480
+UNITED ST6	UNITED ST2	1992	291566
+UNITED ST4	UNITED ST3	1993	40655188
+UNITED ST2	UNITED ST3	1993	36003298
+UNITED ST5	UNITED ST3	1993	35074448
+UNITED ST1	UNITED ST0	1993	32371096
+UNITED ST7	UNITED ST0	1993	31623473
+UNITED ST1	UNITED ST9	1993	26085806
+UNITED ST4	UNITED ST7	1993	21770572
+UNITED ST5	UNITED ST0	1993	21615102
+UNITED ST7	UNITED ST6	1993	21431650
+UNITED ST5	UNITED ST9	1993	20060148
+UNITED ST1	UNITED ST3	1993	19637560
+UNITED ST7	UNITED ST9	1993	19210567
+UNITED ST4	UNITED ST9	1993	18760567
+UNITED ST0	UNITED ST0	1993	17492841
+UNITED ST7	UNITED ST3	1993	15593304
+UNITED ST4	UNITED ST0	1993	15352086
+UNITED ST5	UNITED ST7	1993	14364086
+UNITED ST9	UNITED ST3	1993	14042622
+UNITED ST9	UNITED ST6	1993	13589827
+UNITED ST9	UNITED ST0	1993	12719524
+UNITED ST2	UNITED ST9	1993	11922413
+UNITED ST6	UNITED ST6	1993	11516451
+UNITED ST4	UNITED ST2	1993	11384511
+UNITED ST3	UNITED ST3	1993	11191859
+UNITED ST3	UNITED ST0	1993	9854232
+UNITED ST6	UNITED ST3	1993	9745502
+UNITED ST2	UNITED ST2	1993	9293748
+UNITED ST1	UNITED ST6	1993	8167490
+UNITED ST8	UNITED ST9	1993	7538212
+UNITED ST0	UNITED ST9	1993	7051950
+UNITED ST0	UNITED ST3	1993	7048726
+UNITED ST9	UNITED ST2	1993	6542474
+UNITED ST5	UNITED ST6	1993	6445893
+UNITED ST1	UNITED ST2	1993	6218710
+UNITED ST9	UNITED ST9	1993	5718455
+UNITED ST1	UNITED ST7	1993	5301113
+UNITED ST2	UNITED ST0	1993	5272433
+UNITED ST8	UNITED ST0	1993	5183529
+UNITED ST5	UNITED ST2	1993	5154059
+UNITED ST6	UNITED ST9	1993	4893382
+UNITED ST8	UNITED ST3	1993	4251663
+UNITED ST3	UNITED ST9	1993	3950878
+UNITED ST6	UNITED ST2	1993	3713458
+UNITED ST8	UNITED ST7	1993	3584217
+UNITED ST6	UNITED ST7	1993	3449550
+UNITED ST3	UNITED ST7	1993	3028547
+UNITED ST0	UNITED ST2	1993	2972456
+UNITED ST7	UNITED ST2	1993	2849011
+UNITED ST2	UNITED ST6	1993	2026185
+UNITED ST0	UNITED ST7	1993	1920827
+UNITED ST8	UNITED ST6	1993	1728360
+UNITED ST4	UNITED ST6	1993	1327362
+UNITED ST7	UNITED ST7	1993	1259361
+UNITED ST8	UNITED ST2	1993	1205222
+UNITED ST2	UNITED ST7	1993	861413
+UNITED ST0	UNITED ST6	1993	239766
+UNITED ST4	UNITED ST3	1994	56786075
+UNITED ST2	UNITED ST0	1994	39867652
+UNITED ST1	UNITED ST9	1994	36849068
+UNITED ST7	UNITED ST3	1994	36135207
+UNITED ST1	UNITED ST0	1994	34629122
+UNITED ST5	UNITED ST0	1994	33907176
+UNITED ST5	UNITED ST9	1994	33823060
+UNITED ST4	UNITED ST0	1994	31296783
+UNITED ST2	UNITED ST3	1994	30499072
+UNITED ST1	UNITED ST3	1994	24377956
+UNITED ST7	UNITED ST0	1994	23008324
+UNITED ST2	UNITED ST9	1994	21959692
+UNITED ST2	UNITED ST7	1994	20638024
+UNITED ST2	UNITED ST6	1994	20528502
+UNITED ST9	UNITED ST3	1994	18885838
+UNITED ST0	UNITED ST3	1994	17087910
+UNITED ST5	UNITED ST3	1994	15657670
+UNITED ST9	UNITED ST0	1994	15346708
+UNITED ST0	UNITED ST9	1994	15287365
+UNITED ST1	UNITED ST7	1994	14942235
+UNITED ST7	UNITED ST9	1994	14832404
+UNITED ST5	UNITED ST2	1994	14684226
+UNITED ST0	UNITED ST0	1994	14402583
+UNITED ST1	UNITED ST6	1994	13845158
+UNITED ST5	UNITED ST6	1994	13062098
+UNITED ST9	UNITED ST7	1994	12190876
+UNITED ST7	UNITED ST2	1994	11794166
+UNITED ST4	UNITED ST9	1994	10839580
+UNITED ST6	UNITED ST6	1994	10539775
+UNITED ST8	UNITED ST3	1994	10521895
+UNITED ST3	UNITED ST3	1994	8638496
+UNITED ST9	UNITED ST6	1994	7446705
+UNITED ST6	UNITED ST0	1994	7185704
+UNITED ST4	UNITED ST7	1994	7128172
+UNITED ST4	UNITED ST2	1994	6706172
+UNITED ST6	UNITED ST9	1994	5203336
+UNITED ST6	UNITED ST3	1994	5073736
+UNITED ST6	UNITED ST7	1994	4976821
+UNITED ST1	UNITED ST2	1994	4941099
+UNITED ST0	UNITED ST7	1994	4844537
+UNITED ST0	UNITED ST6	1994	4830134
+UNITED ST0	UNITED ST2	1994	4733405
+UNITED ST3	UNITED ST0	1994	4537669
+UNITED ST9	UNITED ST9	1994	4529452
+UNITED ST7	UNITED ST6	1994	4075826
+UNITED ST8	UNITED ST6	1994	3931144
+UNITED ST2	UNITED ST2	1994	3459349
+UNITED ST3	UNITED ST6	1994	3431309
+UNITED ST8	UNITED ST0	1994	1741475
+UNITED ST3	UNITED ST9	1994	1523937
+UNITED ST7	UNITED ST7	1994	1431045
+UNITED ST8	UNITED ST2	1994	1128443
+UNITED ST2	UNITED ST9	1995	36282710
+UNITED ST2	UNITED ST3	1995	35484180
+UNITED ST7	UNITED ST9	1995	29730468
+UNITED ST1	UNITED ST3	1995	27630044
+UNITED ST7	UNITED ST3	1995	27429744
+UNITED ST4	UNITED ST3	1995	27071122
+UNITED ST5	UNITED ST3	1995	26581069
+UNITED ST4	UNITED ST6	1995	25783319
+UNITED ST5	UNITED ST0	1995	24869803
+UNITED ST0	UNITED ST0	1995	24489125
+UNITED ST9	UNITED ST0	1995	22146600
+UNITED ST4	UNITED ST0	1995	21413592
+UNITED ST9	UNITED ST9	1995	21288680
+UNITED ST5	UNITED ST9	1995	20601949
+UNITED ST1	UNITED ST6	1995	18131457
+UNITED ST1	UNITED ST0	1995	17183088
+UNITED ST4	UNITED ST9	1995	17064057
+UNITED ST2	UNITED ST0	1995	17061868
+UNITED ST1	UNITED ST9	1995	16559901
+UNITED ST0	UNITED ST9	1995	15255164
+UNITED ST9	UNITED ST3	1995	14519986
+UNITED ST0	UNITED ST3	1995	14085981
+UNITED ST7	UNITED ST0	1995	12686420
+UNITED ST2	UNITED ST6	1995	12238732
+UNITED ST9	UNITED ST6	1995	12092801
+UNITED ST7	UNITED ST6	1995	11244631
+UNITED ST6	UNITED ST0	1995	9285442
+UNITED ST6	UNITED ST2	1995	8987771
+UNITED ST5	UNITED ST7	1995	8841032
+UNITED ST8	UNITED ST3	1995	8767451
+UNITED ST7	UNITED ST7	1995	8726612
+UNITED ST3	UNITED ST6	1995	8520722
+UNITED ST6	UNITED ST3	1995	7711813
+UNITED ST2	UNITED ST7	1995	7275705
+UNITED ST0	UNITED ST6	1995	6314215
+UNITED ST9	UNITED ST2	1995	6173678
+UNITED ST3	UNITED ST9	1995	5823913
+UNITED ST1	UNITED ST2	1995	5797623
+UNITED ST4	UNITED ST2	1995	5343777
+UNITED ST8	UNITED ST0	1995	4872186
+UNITED ST7	UNITED ST2	1995	4793054
+UNITED ST3	UNITED ST3	1995	4757898
+UNITED ST5	UNITED ST2	1995	4727810
+UNITED ST6	UNITED ST9	1995	4323440
+UNITED ST5	UNITED ST6	1995	4074166
+UNITED ST1	UNITED ST7	1995	3766151
+UNITED ST3	UNITED ST0	1995	3227817
+UNITED ST9	UNITED ST7	1995	1755678
+UNITED ST8	UNITED ST9	1995	580117
+UNITED ST6	UNITED ST7	1995	121961
+UNITED ST7	UNITED ST0	1996	43046117
+UNITED ST4	UNITED ST3	1996	31999863
+UNITED ST1	UNITED ST3	1996	31649828
+UNITED ST2	UNITED ST3	1996	29871031
+UNITED ST5	UNITED ST3	1996	29177422
+UNITED ST7	UNITED ST3	1996	26823399
+UNITED ST2	UNITED ST0	1996	24571005
+UNITED ST4	UNITED ST6	1996	23629745
+UNITED ST7	UNITED ST6	1996	22124325
+UNITED ST2	UNITED ST9	1996	20665225
+UNITED ST5	UNITED ST7	1996	19002925
+UNITED ST9	UNITED ST3	1996	18625572
+UNITED ST9	UNITED ST0	1996	16972322
+UNITED ST4	UNITED ST0	1996	16605828
+UNITED ST4	UNITED ST9	1996	15641240
+UNITED ST1	UNITED ST9	1996	14655108
+UNITED ST7	UNITED ST7	1996	14200242
+UNITED ST9	UNITED ST6	1996	13464987
+UNITED ST3	UNITED ST9	1996	12451358
+UNITED ST6	UNITED ST2	1996	12362074
+UNITED ST0	UNITED ST2	1996	12275126
+UNITED ST0	UNITED ST3	1996	11826143
+UNITED ST2	UNITED ST6	1996	11455069
+UNITED ST5	UNITED ST9	1996	11383869
+UNITED ST0	UNITED ST0	1996	11296453
+UNITED ST6	UNITED ST9	1996	10757396
+UNITED ST3	UNITED ST3	1996	10513276
+UNITED ST0	UNITED ST9	1996	10147365
+UNITED ST1	UNITED ST2	1996	9773797
+UNITED ST9	UNITED ST2	1996	9438435
+UNITED ST6	UNITED ST3	1996	9342044
+UNITED ST8	UNITED ST9	1996	9247187
+UNITED ST1	UNITED ST7	1996	9042320
+UNITED ST7	UNITED ST9	1996	9013568
+UNITED ST9	UNITED ST9	1996	8980638
+UNITED ST5	UNITED ST0	1996	8552217
+UNITED ST6	UNITED ST7	1996	8221347
+UNITED ST9	UNITED ST7	1996	8210248
+UNITED ST2	UNITED ST2	1996	8125332
+UNITED ST1	UNITED ST0	1996	7469781
+UNITED ST4	UNITED ST2	1996	7050699
+UNITED ST5	UNITED ST2	1996	6684834
+UNITED ST0	UNITED ST7	1996	6169927
+UNITED ST3	UNITED ST0	1996	5411275
+UNITED ST3	UNITED ST6	1996	5129866
+UNITED ST6	UNITED ST0	1996	5012896
+UNITED ST7	UNITED ST2	1996	4949885
+UNITED ST1	UNITED ST6	1996	4432387
+UNITED ST2	UNITED ST7	1996	3802080
+UNITED ST8	UNITED ST2	1996	2813925
+UNITED ST6	UNITED ST6	1996	2796195
+UNITED ST3	UNITED ST7	1996	2723812
+UNITED ST8	UNITED ST6	1996	1604698
+UNITED ST4	UNITED ST7	1996	872339
+UNITED ST4	UNITED ST3	1997	41543013
+UNITED ST7	UNITED ST3	1997	38517527
+UNITED ST7	UNITED ST7	1997	35180248
+UNITED ST1	UNITED ST3	1997	29038386
+UNITED ST2	UNITED ST0	1997	28725513
+UNITED ST5	UNITED ST3	1997	27261467
+UNITED ST8	UNITED ST9	1997	22351756
+UNITED ST1	UNITED ST0	1997	21810980
+UNITED ST5	UNITED ST9	1997	20049570
+UNITED ST0	UNITED ST7	1997	19895765
+UNITED ST2	UNITED ST3	1997	18172167
+UNITED ST5	UNITED ST6	1997	18137063
+UNITED ST5	UNITED ST0	1997	17044142
+UNITED ST0	UNITED ST6	1997	16771333
+UNITED ST0	UNITED ST0	1997	16726896
+UNITED ST4	UNITED ST2	1997	16381337
+UNITED ST2	UNITED ST7	1997	15974714
+UNITED ST1	UNITED ST6	1997	14935124
+UNITED ST4	UNITED ST9	1997	14177148
+UNITED ST1	UNITED ST9	1997	13785007
+UNITED ST6	UNITED ST6	1997	13513362
+UNITED ST4	UNITED ST6	1997	13374220
+UNITED ST9	UNITED ST3	1997	13095174
+UNITED ST7	UNITED ST6	1997	11572813
+UNITED ST9	UNITED ST9	1997	11569028
+UNITED ST6	UNITED ST0	1997	11320722
+UNITED ST2	UNITED ST2	1997	10427890
+UNITED ST0	UNITED ST3	1997	10077913
+UNITED ST7	UNITED ST0	1997	8617843
+UNITED ST6	UNITED ST2	1997	7774767
+UNITED ST6	UNITED ST7	1997	7772982
+UNITED ST1	UNITED ST2	1997	7540067
+UNITED ST2	UNITED ST6	1997	7482323
+UNITED ST7	UNITED ST9	1997	7464182
+UNITED ST4	UNITED ST0	1997	7381500
+UNITED ST6	UNITED ST3	1997	7378889
+UNITED ST4	UNITED ST7	1997	7314217
+UNITED ST1	UNITED ST7	1997	7002722
+UNITED ST8	UNITED ST3	1997	6618773
+UNITED ST3	UNITED ST0	1997	4915297
+UNITED ST2	UNITED ST9	1997	4357257
+UNITED ST6	UNITED ST9	1997	3566068
+UNITED ST9	UNITED ST0	1997	3120773
+UNITED ST3	UNITED ST7	1997	3003109
+UNITED ST7	UNITED ST2	1997	2965713
+UNITED ST0	UNITED ST9	1997	2775552
+UNITED ST3	UNITED ST3	1997	2480732
+UNITED ST9	UNITED ST7	1997	1683427
+UNITED ST8	UNITED ST2	1997	1055237
+UNITED ST5	UNITED ST2	1997	520484
+UNITED ST9	UNITED ST2	1997	281577
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.3.out
new file mode 100644
index 0000000000..bd263251a7
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.3.out
@@ -0,0 +1,15 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q3.3 --
+0
+
+-- !nereids_flat_q3.3_2 --
+0
+
+-- !nereids_flat_q3.3_3 --
+UNITED KI5	UNITED KI1	1992	4397192
+UNITED KI5	UNITED KI1	1993	7269877
+UNITED KI1	UNITED KI1	1993	1243929
+UNITED KI1	UNITED KI1	1995	7942813
+UNITED KI5	UNITED KI1	1995	7117276
+UNITED KI5	UNITED KI1	1996	5994601
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.4.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.4.out
new file mode 100644
index 0000000000..06d4212bfa
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q3.4.out
@@ -0,0 +1,9 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q3.4 --
+0
+
+-- !nereids_flat_q3.4_2 --
+0
+
+-- !nereids_flat_q3.4_3 --
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.1.out
new file mode 100644
index 0000000000..221e8c60e0
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.1.out
@@ -0,0 +1,44 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q4.1 --
+0
+
+-- !nereids_flat_q4.1_2 --
+0
+
+-- !nereids_flat_q4.1_3 --
+1992	ARGENTINA	761138275
+1992	BRAZIL	985977209
+1992	CANADA	715150888
+1992	PERU	786152296
+1992	UNITED STATES	907927557
+1993	ARGENTINA	784246323
+1993	BRAZIL	795928807
+1993	CANADA	799906352
+1993	PERU	662883880
+1993	UNITED STATES	839069702
+1994	ARGENTINA	876750011
+1994	BRAZIL	812474812
+1994	CANADA	869964593
+1994	PERU	747762673
+1994	UNITED STATES	976192749
+1995	ARGENTINA	759176421
+1995	BRAZIL	801672129
+1995	CANADA	839133378
+1995	PERU	824927582
+1995	UNITED STATES	834105034
+1996	ARGENTINA	694255805
+1996	BRAZIL	881917583
+1996	CANADA	837622649
+1996	PERU	679125115
+1996	UNITED STATES	813543116
+1997	ARGENTINA	757821503
+1997	BRAZIL	680132381
+1997	CANADA	867432100
+1997	PERU	786577542
+1997	UNITED STATES	814894451
+1998	ARGENTINA	368756023
+1998	BRAZIL	560248513
+1998	CANADA	455229134
+1998	PERU	436261212
+1998	UNITED STATES	387112795
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.2.out
new file mode 100644
index 0000000000..a44250f9a9
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.2.out
@@ -0,0 +1,109 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q4.2 --
+0
+
+-- !nereids_flat_q4.2_2 --
+0
+
+-- !nereids_flat_q4.2_3 --
+1997	ARGENTINA	MFGR#11	84900777
+1997	ARGENTINA	MFGR#12	105777008
+1997	ARGENTINA	MFGR#13	64922663
+1997	ARGENTINA	MFGR#14	74698017
+1997	ARGENTINA	MFGR#15	80724749
+1997	ARGENTINA	MFGR#21	75795929
+1997	ARGENTINA	MFGR#22	61932653
+1997	ARGENTINA	MFGR#23	98394367
+1997	ARGENTINA	MFGR#24	69666059
+1997	ARGENTINA	MFGR#25	76900173
+1997	BRAZIL	MFGR#11	92141153
+1997	BRAZIL	MFGR#12	84364820
+1997	BRAZIL	MFGR#13	60152598
+1997	BRAZIL	MFGR#14	68822442
+1997	BRAZIL	MFGR#15	49647952
+1997	BRAZIL	MFGR#21	48001851
+1997	BRAZIL	MFGR#22	57586251
+1997	BRAZIL	MFGR#23	104789661
+1997	BRAZIL	MFGR#24	76057674
+1997	BRAZIL	MFGR#25	73807859
+1997	CANADA	MFGR#11	57810845
+1997	CANADA	MFGR#12	39565355
+1997	CANADA	MFGR#13	62795630
+1997	CANADA	MFGR#14	74527292
+1997	CANADA	MFGR#15	39782846
+1997	CANADA	MFGR#21	58809118
+1997	CANADA	MFGR#22	34180455
+1997	CANADA	MFGR#23	90940750
+1997	CANADA	MFGR#24	68977639
+1997	CANADA	MFGR#25	69718345
+1997	PERU	MFGR#11	86491759
+1997	PERU	MFGR#12	38459763
+1997	PERU	MFGR#13	74844638
+1997	PERU	MFGR#14	33890140
+1997	PERU	MFGR#15	51549827
+1997	PERU	MFGR#21	45930118
+1997	PERU	MFGR#22	79490770
+1997	PERU	MFGR#23	81097234
+1997	PERU	MFGR#24	42145567
+1997	PERU	MFGR#25	93896161
+1997	UNITED STATES	MFGR#11	128974616
+1997	UNITED STATES	MFGR#12	103852297
+1997	UNITED STATES	MFGR#13	111925293
+1997	UNITED STATES	MFGR#14	156900557
+1997	UNITED STATES	MFGR#15	147809168
+1997	UNITED STATES	MFGR#21	112788514
+1997	UNITED STATES	MFGR#22	111947464
+1997	UNITED STATES	MFGR#23	97287950
+1997	UNITED STATES	MFGR#24	133285537
+1997	UNITED STATES	MFGR#25	68097673
+1998	ARGENTINA	MFGR#11	34265472
+1998	ARGENTINA	MFGR#12	38574220
+1998	ARGENTINA	MFGR#13	54861309
+1998	ARGENTINA	MFGR#14	44132616
+1998	ARGENTINA	MFGR#15	46293084
+1998	ARGENTINA	MFGR#21	20943149
+1998	ARGENTINA	MFGR#22	31396688
+1998	ARGENTINA	MFGR#23	33142495
+1998	ARGENTINA	MFGR#24	38183235
+1998	ARGENTINA	MFGR#25	47966630
+1998	BRAZIL	MFGR#11	9682250
+1998	BRAZIL	MFGR#12	42674635
+1998	BRAZIL	MFGR#13	47806774
+1998	BRAZIL	MFGR#14	48944962
+1998	BRAZIL	MFGR#15	35897291
+1998	BRAZIL	MFGR#21	49067522
+1998	BRAZIL	MFGR#22	39261303
+1998	BRAZIL	MFGR#23	28969547
+1998	BRAZIL	MFGR#24	72118672
+1998	BRAZIL	MFGR#25	52144905
+1998	CANADA	MFGR#11	23156877
+1998	CANADA	MFGR#12	57017498
+1998	CANADA	MFGR#13	57600275
+1998	CANADA	MFGR#14	9031433
+1998	CANADA	MFGR#15	29733304
+1998	CANADA	MFGR#21	19140829
+1998	CANADA	MFGR#22	35257852
+1998	CANADA	MFGR#23	35225991
+1998	CANADA	MFGR#24	34724347
+1998	CANADA	MFGR#25	13482188
+1998	PERU	MFGR#11	25696896
+1998	PERU	MFGR#12	46161153
+1998	PERU	MFGR#13	26901626
+1998	PERU	MFGR#14	38016600
+1998	PERU	MFGR#15	19566691
+1998	PERU	MFGR#21	24265273
+1998	PERU	MFGR#22	25779227
+1998	PERU	MFGR#23	39744896
+1998	PERU	MFGR#24	42297999
+1998	PERU	MFGR#25	38086043
+1998	UNITED STATES	MFGR#11	76915262
+1998	UNITED STATES	MFGR#12	67705762
+1998	UNITED STATES	MFGR#13	85954726
+1998	UNITED STATES	MFGR#14	62885468
+1998	UNITED STATES	MFGR#15	67836613
+1998	UNITED STATES	MFGR#21	63566982
+1998	UNITED STATES	MFGR#22	67972090
+1998	UNITED STATES	MFGR#23	94697392
+1998	UNITED STATES	MFGR#24	87772845
+1998	UNITED STATES	MFGR#25	75086780
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.3.out
new file mode 100644
index 0000000000..60948519e9
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_flat_q4.3.out
@@ -0,0 +1,211 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q4.3 --
+0
+
+-- !nereids_flat_q4.3_2 --
+0
+
+-- !nereids_flat_q4.3_3 --
+1997	UNITED ST0	MFGR#1410	13477726
+1997	UNITED ST0	MFGR#1411	1131596
+1997	UNITED ST0	MFGR#1412	1675766
+1997	UNITED ST0	MFGR#1413	9084301
+1997	UNITED ST0	MFGR#1414	10225592
+1997	UNITED ST0	MFGR#1415	61734
+1997	UNITED ST0	MFGR#1416	2081784
+1997	UNITED ST0	MFGR#1418	4280621
+1997	UNITED ST0	MFGR#142	4272322
+1997	UNITED ST0	MFGR#1420	4995802
+1997	UNITED ST0	MFGR#1422	7777485
+1997	UNITED ST0	MFGR#1424	415314
+1997	UNITED ST0	MFGR#1426	2709835
+1997	UNITED ST0	MFGR#1427	1842735
+1997	UNITED ST0	MFGR#1429	11735400
+1997	UNITED ST0	MFGR#143	1408161
+1997	UNITED ST0	MFGR#1432	6900352
+1997	UNITED ST0	MFGR#1433	2773371
+1997	UNITED ST0	MFGR#1434	11633767
+1997	UNITED ST0	MFGR#1435	8022588
+1997	UNITED ST0	MFGR#1436	10900405
+1997	UNITED ST0	MFGR#1437	4883797
+1997	UNITED ST0	MFGR#1439	3947594
+1997	UNITED ST0	MFGR#144	12286295
+1997	UNITED ST0	MFGR#146	3799112
+1997	UNITED ST2	MFGR#141	8618423
+1997	UNITED ST2	MFGR#1410	3307298
+1997	UNITED ST2	MFGR#1411	3890975
+1997	UNITED ST2	MFGR#1414	5676958
+1997	UNITED ST2	MFGR#1415	307670
+1997	UNITED ST2	MFGR#1421	8414075
+1997	UNITED ST2	MFGR#1422	7527974
+1997	UNITED ST2	MFGR#1423	3252824
+1997	UNITED ST2	MFGR#1424	2317371
+1997	UNITED ST2	MFGR#1426	10601349
+1997	UNITED ST2	MFGR#1433	2014845
+1997	UNITED ST2	MFGR#1435	242061
+1997	UNITED ST3	MFGR#1410	3985098
+1997	UNITED ST3	MFGR#1412	10368277
+1997	UNITED ST3	MFGR#1413	7115770
+1997	UNITED ST3	MFGR#1414	7187734
+1997	UNITED ST3	MFGR#1415	1688919
+1997	UNITED ST3	MFGR#1416	7581355
+1997	UNITED ST3	MFGR#1419	178998
+1997	UNITED ST3	MFGR#142	5373798
+1997	UNITED ST3	MFGR#1420	3051498
+1997	UNITED ST3	MFGR#1421	6361174
+1997	UNITED ST3	MFGR#1424	5265213
+1997	UNITED ST3	MFGR#1426	3085943
+1997	UNITED ST3	MFGR#1427	1442686
+1997	UNITED ST3	MFGR#1428	9607764
+1997	UNITED ST3	MFGR#143	8617915
+1997	UNITED ST3	MFGR#1430	11136547
+1997	UNITED ST3	MFGR#1432	10490356
+1997	UNITED ST3	MFGR#1434	4436541
+1997	UNITED ST3	MFGR#1435	145357
+1997	UNITED ST3	MFGR#1436	11636005
+1997	UNITED ST3	MFGR#1437	4734063
+1997	UNITED ST3	MFGR#1438	7866008
+1997	UNITED ST3	MFGR#1439	4003230
+1997	UNITED ST3	MFGR#144	2677841
+1997	UNITED ST3	MFGR#145	769796
+1997	UNITED ST3	MFGR#146	1393223
+1997	UNITED ST3	MFGR#147	13464467
+1997	UNITED ST3	MFGR#148	6894444
+1997	UNITED ST6	MFGR#1410	15314239
+1997	UNITED ST6	MFGR#1413	3296933
+1997	UNITED ST6	MFGR#142	5906623
+1997	UNITED ST6	MFGR#1422	1472298
+1997	UNITED ST6	MFGR#1424	5517883
+1997	UNITED ST6	MFGR#1425	7142620
+1997	UNITED ST6	MFGR#1426	372019
+1997	UNITED ST6	MFGR#1432	4600393
+1997	UNITED ST6	MFGR#1433	13423348
+1997	UNITED ST6	MFGR#1434	1968821
+1997	UNITED ST6	MFGR#1439	4838571
+1997	UNITED ST6	MFGR#147	3587496
+1997	UNITED ST6	MFGR#148	702290
+1997	UNITED ST6	MFGR#149	3420425
+1997	UNITED ST7	MFGR#141	234478
+1997	UNITED ST7	MFGR#1415	7270650
+1997	UNITED ST7	MFGR#1417	3729358
+1997	UNITED ST7	MFGR#1421	1236154
+1997	UNITED ST7	MFGR#1422	1790814
+1997	UNITED ST7	MFGR#1425	3083550
+1997	UNITED ST7	MFGR#1429	405372
+1997	UNITED ST7	MFGR#1430	9415365
+1997	UNITED ST7	MFGR#1431	1924890
+1997	UNITED ST7	MFGR#1434	8824017
+1997	UNITED ST7	MFGR#1436	3210582
+1997	UNITED ST7	MFGR#1438	2282974
+1997	UNITED ST7	MFGR#144	3607000
+1997	UNITED ST7	MFGR#145	4396854
+1997	UNITED ST7	MFGR#147	3872593
+1997	UNITED ST9	MFGR#1410	9705983
+1997	UNITED ST9	MFGR#1412	10366314
+1997	UNITED ST9	MFGR#1414	23471819
+1997	UNITED ST9	MFGR#1416	5079988
+1997	UNITED ST9	MFGR#1417	3909867
+1997	UNITED ST9	MFGR#1418	3542205
+1997	UNITED ST9	MFGR#1421	4807216
+1997	UNITED ST9	MFGR#1422	1601211
+1997	UNITED ST9	MFGR#1424	1046454
+1997	UNITED ST9	MFGR#1425	4189195
+1997	UNITED ST9	MFGR#1427	3301933
+1997	UNITED ST9	MFGR#143	5101762
+1997	UNITED ST9	MFGR#1430	2344496
+1997	UNITED ST9	MFGR#1431	4131978
+1997	UNITED ST9	MFGR#1432	3504323
+1997	UNITED ST9	MFGR#1435	8034673
+1997	UNITED ST9	MFGR#1436	1693656
+1997	UNITED ST9	MFGR#1437	389519
+1997	UNITED ST9	MFGR#1438	11644879
+1997	UNITED ST9	MFGR#144	3475388
+1997	UNITED ST9	MFGR#1440	4829762
+1997	UNITED ST9	MFGR#145	39653
+1997	UNITED ST9	MFGR#146	13853442
+1997	UNITED ST9	MFGR#147	3657668
+1997	UNITED ST9	MFGR#148	7887845
+1997	UNITED ST9	MFGR#149	4352548
+1998	UNITED ST0	MFGR#141	3380910
+1998	UNITED ST0	MFGR#1412	4133188
+1998	UNITED ST0	MFGR#1413	2668812
+1998	UNITED ST0	MFGR#1414	5971689
+1998	UNITED ST0	MFGR#1416	5712462
+1998	UNITED ST0	MFGR#1417	5446709
+1998	UNITED ST0	MFGR#1418	3978748
+1998	UNITED ST0	MFGR#1423	4295756
+1998	UNITED ST0	MFGR#1424	2884437
+1998	UNITED ST0	MFGR#1425	2708911
+1998	UNITED ST0	MFGR#1426	5882143
+1998	UNITED ST0	MFGR#1427	1738417
+1998	UNITED ST0	MFGR#1428	3847110
+1998	UNITED ST0	MFGR#1435	5306378
+1998	UNITED ST0	MFGR#1436	4877671
+1998	UNITED ST0	MFGR#1437	1254408
+1998	UNITED ST0	MFGR#147	3440479
+1998	UNITED ST2	MFGR#1412	3989941
+1998	UNITED ST2	MFGR#1414	2615699
+1998	UNITED ST2	MFGR#1415	1164247
+1998	UNITED ST2	MFGR#1416	1140355
+1998	UNITED ST2	MFGR#142	2914401
+1998	UNITED ST2	MFGR#1430	4795306
+1998	UNITED ST2	MFGR#1432	3987452
+1998	UNITED ST2	MFGR#1433	3452627
+1998	UNITED ST2	MFGR#146	2296424
+1998	UNITED ST2	MFGR#149	6706568
+1998	UNITED ST3	MFGR#1410	4569384
+1998	UNITED ST3	MFGR#1415	2726191
+1998	UNITED ST3	MFGR#1416	5554404
+1998	UNITED ST3	MFGR#1417	8590630
+1998	UNITED ST3	MFGR#1418	920355
+1998	UNITED ST3	MFGR#1421	3044496
+1998	UNITED ST3	MFGR#1422	4335121
+1998	UNITED ST3	MFGR#1423	2625064
+1998	UNITED ST3	MFGR#1427	5563641
+1998	UNITED ST3	MFGR#1428	3310166
+1998	UNITED ST3	MFGR#1429	2142148
+1998	UNITED ST3	MFGR#1431	12064252
+1998	UNITED ST3	MFGR#1434	2678930
+1998	UNITED ST3	MFGR#1435	5573130
+1998	UNITED ST3	MFGR#1437	1179224
+1998	UNITED ST3	MFGR#1438	1110737
+1998	UNITED ST3	MFGR#144	5768414
+1998	UNITED ST3	MFGR#145	6943188
+1998	UNITED ST3	MFGR#146	6264244
+1998	UNITED ST3	MFGR#147	6623163
+1998	UNITED ST6	MFGR#1414	2377768
+1998	UNITED ST6	MFGR#1416	2547588
+1998	UNITED ST6	MFGR#1419	4889639
+1998	UNITED ST6	MFGR#142	4218991
+1998	UNITED ST6	MFGR#1427	5151664
+1998	UNITED ST6	MFGR#1432	4737390
+1998	UNITED ST6	MFGR#1435	379286
+1998	UNITED ST6	MFGR#1439	3255983
+1998	UNITED ST6	MFGR#144	2557646
+1998	UNITED ST6	MFGR#1440	2377229
+1998	UNITED ST7	MFGR#141	2482134
+1998	UNITED ST7	MFGR#1410	5139336
+1998	UNITED ST7	MFGR#1413	4188060
+1998	UNITED ST7	MFGR#1415	4914228
+1998	UNITED ST7	MFGR#1418	3723433
+1998	UNITED ST7	MFGR#1421	2916659
+1998	UNITED ST7	MFGR#143	1427968
+1998	UNITED ST7	MFGR#1431	1723135
+1998	UNITED ST7	MFGR#1436	3384193
+1998	UNITED ST7	MFGR#1437	3885888
+1998	UNITED ST7	MFGR#1438	6004902
+1998	UNITED ST7	MFGR#1439	2611386
+1998	UNITED ST7	MFGR#144	2322930
+1998	UNITED ST9	MFGR#1413	13244182
+1998	UNITED ST9	MFGR#1414	3962036
+1998	UNITED ST9	MFGR#1415	5012323
+1998	UNITED ST9	MFGR#1419	1926911
+1998	UNITED ST9	MFGR#1428	3816952
+1998	UNITED ST9	MFGR#143	2438736
+1998	UNITED ST9	MFGR#1430	2182673
+1998	UNITED ST9	MFGR#1432	2749769
+1998	UNITED ST9	MFGR#1435	9924298
+1998	UNITED ST9	MFGR#1437	8516771
+1998	UNITED ST9	MFGR#1438	5374476
+1998	UNITED ST9	MFGR#149	4740736
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.1.out
new file mode 100644
index 0000000000..31183d5eb6
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.1.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q1.1 --
+0
+
+-- !nereids_q1.1_2 --
+0
+
+-- !nereids_q1.1_3 --
+\N
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.2.out
new file mode 100644
index 0000000000..c241874119
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.2.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q1.2 --
+0
+
+-- !nereids_q1.2_2 --
+0
+
+-- !nereids_q1.2_3 --
+\N
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.3.out
new file mode 100644
index 0000000000..c60b777509
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q1.3.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q1.3 --
+0
+
+-- !nereids_q1.3_2 --
+0
+
+-- !nereids_q1.3_3 --
+\N
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.1.out
new file mode 100644
index 0000000000..8fccf186b7
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.1.out
@@ -0,0 +1,49 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q2.1 --
+0
+
+-- !nereids_q2.1_2 --
+0
+
+-- !nereids_q2.1_3 --
+29165996	1992	MFGR#121
+23120066	1992	MFGR#1210
+52982362	1992	MFGR#1211
+30954680	1992	MFGR#1212
+15288453	1992	MFGR#1213
+7655070	1992	MFGR#1214
+22246540	1992	MFGR#1215
+19716439	1992	MFGR#1216
+43666251	1992	MFGR#1217
+22759602	1992	MFGR#1218
+23318799	1992	MFGR#1219
+74056106	1992	MFGR#122
+51050565	1992	MFGR#1220
+38878674	1992	MFGR#1221
+16558051	1992	MFGR#1222
+26690787	1992	MFGR#1223
+76498594	1992	MFGR#1224
+32608903	1992	MFGR#1225
+47636685	1992	MFGR#1226
+27691433	1992	MFGR#1227
+32513490	1992	MFGR#1228
+35514258	1992	MFGR#1229
+17199862	1992	MFGR#123
+24678908	1992	MFGR#1230
+26231337	1992	MFGR#1231
+36330900	1992	MFGR#1232
+24946678	1992	MFGR#1233
+36431683	1992	MFGR#1234
+39368479	1992	MFGR#1235
+44456974	1992	MFGR#1236
+31443810	1992	MFGR#1237
+49003021	1992	MFGR#1238
+31379822	1992	MFGR#1239
+24245603	1992	MFGR#124
+49870826	1992	MFGR#1240
+28194770	1992	MFGR#125
+40503844	1992	MFGR#126
+36027836	1992	MFGR#127
+35881895	1992	MFGR#128
+21732451	1992	MFGR#129
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.2.out
new file mode 100644
index 0000000000..b50330b186
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.2.out
@@ -0,0 +1,17 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q2.2 --
+0
+
+-- !nereids_q2.2_2 --
+0
+
+-- !nereids_q2.2_3 --
+28235270	1992	MFGR#2221
+64071827	1992	MFGR#2222
+48591160	1992	MFGR#2223
+20416501	1992	MFGR#2224
+74950776	1992	MFGR#2225
+60628045	1992	MFGR#2226
+39273349	1992	MFGR#2227
+66658087	1992	MFGR#2228
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.3.out
new file mode 100644
index 0000000000..168b82dc66
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q2.3.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q2.3 --
+0
+
+-- !nereids_q2.3_2 --
+0
+
+-- !nereids_q2.3_3 --
+89380397	1992	MFGR#2239
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.1.out
new file mode 100644
index 0000000000..a6e1355262
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.1.out
@@ -0,0 +1,34 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q3.1 --
+0
+
+-- !nereids_q3.1_2 --
+0
+
+-- !nereids_q3.1_3 --
+JAPAN	CHINA	1992	637991852
+VIETNAM	CHINA	1992	621845377
+INDONESIA	CHINA	1992	621316255
+CHINA	CHINA	1992	614550901
+INDIA	CHINA	1992	561966207
+INDIA	INDONESIA	1992	487449629
+INDONESIA	INDONESIA	1992	477417717
+JAPAN	INDONESIA	1992	476513261
+JAPAN	VIETNAM	1992	468999429
+INDONESIA	JAPAN	1992	465870469
+VIETNAM	INDONESIA	1992	462424521
+INDIA	JAPAN	1992	412186106
+JAPAN	JAPAN	1992	399179790
+VIETNAM	JAPAN	1992	395247587
+JAPAN	INDIA	1992	393835589
+CHINA	INDONESIA	1992	352903905
+CHINA	INDIA	1992	348359904
+VIETNAM	VIETNAM	1992	342176333
+INDIA	VIETNAM	1992	334582962
+INDIA	INDIA	1992	329354089
+CHINA	JAPAN	1992	327558220
+CHINA	VIETNAM	1992	324763767
+INDONESIA	INDIA	1992	310417666
+VIETNAM	INDIA	1992	296225919
+INDONESIA	VIETNAM	1992	278083418
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.2.out
new file mode 100644
index 0000000000..b6706a0d77
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.2.out
@@ -0,0 +1,57 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q3.2 --
+0
+
+-- !nereids_q3.2_2 --
+0
+
+-- !nereids_q3.2_3 --
+UNITED ST4	UNITED ST0	1992	34626982
+UNITED ST4	UNITED ST3	1992	29767238
+UNITED ST1	UNITED ST9	1992	25644597
+UNITED ST2	UNITED ST0	1992	23943154
+UNITED ST4	UNITED ST9	1992	21189183
+UNITED ST0	UNITED ST0	1992	18293852
+UNITED ST7	UNITED ST3	1992	17996772
+UNITED ST9	UNITED ST3	1992	17863433
+UNITED ST1	UNITED ST7	1992	17410800
+UNITED ST2	UNITED ST3	1992	15331073
+UNITED ST5	UNITED ST9	1992	14448179
+UNITED ST1	UNITED ST3	1992	13938002
+UNITED ST5	UNITED ST6	1992	12398029
+UNITED ST9	UNITED ST2	1992	12370917
+UNITED ST2	UNITED ST9	1992	12343455
+UNITED ST5	UNITED ST0	1992	12301234
+UNITED ST6	UNITED ST0	1992	11900889
+UNITED ST4	UNITED ST2	1992	11696334
+UNITED ST4	UNITED ST6	1992	11369008
+UNITED ST1	UNITED ST6	1992	11000283
+UNITED ST1	UNITED ST0	1992	10878084
+UNITED ST4	UNITED ST7	1992	10151573
+UNITED ST5	UNITED ST2	1992	9917834
+UNITED ST7	UNITED ST7	1992	9715656
+UNITED ST6	UNITED ST6	1992	8685228
+UNITED ST2	UNITED ST2	1992	8313714
+UNITED ST1	UNITED ST2	1992	8004700
+UNITED ST2	UNITED ST7	1992	7759164
+UNITED ST0	UNITED ST7	1992	7137641
+UNITED ST9	UNITED ST7	1992	6703890
+UNITED ST6	UNITED ST9	1992	6597261
+UNITED ST7	UNITED ST2	1992	6125476
+UNITED ST7	UNITED ST6	1992	6058017
+UNITED ST5	UNITED ST3	1992	5862031
+UNITED ST8	UNITED ST9	1992	5690491
+UNITED ST7	UNITED ST9	1992	5403152
+UNITED ST9	UNITED ST0	1992	4816370
+UNITED ST9	UNITED ST9	1992	4234523
+UNITED ST3	UNITED ST3	1992	4080199
+UNITED ST5	UNITED ST7	1992	3936271
+UNITED ST8	UNITED ST0	1992	3574169
+UNITED ST0	UNITED ST3	1992	3201624
+UNITED ST3	UNITED ST9	1992	2614811
+UNITED ST8	UNITED ST7	1992	2373825
+UNITED ST9	UNITED ST6	1992	2066609
+UNITED ST7	UNITED ST0	1992	1882015
+UNITED ST6	UNITED ST3	1992	1873819
+UNITED ST6	UNITED ST2	1992	291566
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.3.out
new file mode 100644
index 0000000000..6b2ccc7623
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.3.out
@@ -0,0 +1,10 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q3.3 --
+0
+
+-- !nereids_q3.3_2 --
+0
+
+-- !nereids_q3.3_3 --
+UNITED KI5	UNITED KI1	1992	4397192
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.4.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.4.out
new file mode 100644
index 0000000000..68b1e78f1f
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q3.4.out
@@ -0,0 +1,9 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q3.4 --
+0
+
+-- !nereids_q3.4_2 --
+0
+
+-- !nereids_q3.4_3 --
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.1.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.1.out
new file mode 100644
index 0000000000..86cc3ede57
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.1.out
@@ -0,0 +1,14 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q4.1 --
+0
+
+-- !nereids_q4.1_2 --
+0
+
+-- !nereids_q4.1_3 --
+1992	ARGENTINA	533196600
+1992	BRAZIL	684224630
+1992	CANADA	532686194
+1992	PERU	586223155
+1992	UNITED STATES	682387184
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.2.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.2.out
new file mode 100644
index 0000000000..76b62b5759
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.2.out
@@ -0,0 +1,9 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q4.2 --
+0
+
+-- !nereids_q4.2_2 --
+0
+
+-- !nereids_q4.2_3 --
+
diff --git a/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.3.out b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.3.out
new file mode 100644
index 0000000000..dc711c6ad7
--- /dev/null
+++ b/regression-test/data/ssb_sf0.1_p1/sql/nereids_q4.3.out
@@ -0,0 +1,9 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_q4.3 --
+0
+
+-- !nereids_q4.3_2 --
+0
+
+-- !nereids_q4.3_3 --
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.1.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.1.out
new file mode 100644
index 0000000000..034bea1f88
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.1.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q1.1 --
+0
+
+-- !nereids_flat_q1.1_2 --
+0
+
+-- !nereids_flat_q1.1_3 --
+
+44652567249651
+
+
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.2.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.2.out
new file mode 100644
index 0000000000..2bd87b1342
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.2.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q1.2 --
+0
+
+-- !nereids_flat_q1.2_2 --
+0
+
+-- !nereids_flat_q1.2_3 --
+
+9624332170119
+
+
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.3.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.3.out
new file mode 100644
index 0000000000..00764acdd0
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q1.3.out
@@ -0,0 +1,13 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q1.3 --
+0
+
+-- !nereids_flat_q1.3_2 --
+0
+
+-- !nereids_flat_q1.3_3 --
+
+2611093671163
+
+
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.1.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.1.out
new file mode 100644
index 0000000000..7be822da46
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.1.out
@@ -0,0 +1,569 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q2.1 --
+0
+
+-- !nereids_flat_q2.1_2 --
+0
+
+-- !nereids_flat_q2.1_3 --
+
+64420005618	1992	MFGR#121
+
+63389346096	1992	MFGR#1210
+
+68416605637	1992	MFGR#1211
+
+64135723264	1992	MFGR#1212
+
+66331370055	1992	MFGR#1213
+
+68845875547	1992	MFGR#1214
+
+66904465316	1992	MFGR#1215
+
+70319870047	1992	MFGR#1216
+
+68267527590	1992	MFGR#1217
+
+66926367280	1992	MFGR#1218
+
+65782836872	1992	MFGR#1219
+
+69508731922	1992	MFGR#122
+
+63203814984	1992	MFGR#1220
+
+64789273274	1992	MFGR#1221
+
+65230048283	1992	MFGR#1222
+
+62572271531	1992	MFGR#1223
+
+67364473399	1992	MFGR#1224
+
+64934693552	1992	MFGR#1225
+
+67714285222	1992	MFGR#1226
+
+63011651003	1992	MFGR#1227
+
+68563228745	1992	MFGR#1228
+
+65718753047	1992	MFGR#1229
+
+67379253744	1992	MFGR#123
+
+64479084897	1992	MFGR#1230
+
+67746373837	1992	MFGR#1231
+
+71869090656	1992	MFGR#1232
+
+63916250263	1992	MFGR#1233
+
+66991803290	1992	MFGR#1234
+
+67762944343	1992	MFGR#1235
+
+65982930144	1992	MFGR#1236
+
+67650501920	1992	MFGR#1237
+
+59700762652	1992	MFGR#1238
+
+66962093312	1992	MFGR#1239
+
+67795377366	1992	MFGR#124
+
+69274205300	1992	MFGR#1240
+
+66101799042	1992	MFGR#125
+
+63608298263	1992	MFGR#126
+
+65408125786	1992	MFGR#127
+
+67321111718	1992	MFGR#128
+
+61225666342	1992	MFGR#129
+
+63711018934	1993	MFGR#121
+
+65104631212	1993	MFGR#1210
+
+68043278225	1993	MFGR#1211
+
+64331464926	1993	MFGR#1212
+
+66440828622	1993	MFGR#1213
+
+67888068776	1993	MFGR#1214
+
+66763328895	1993	MFGR#1215
+
+69980540848	1993	MFGR#1216
+
+69601200719	1993	MFGR#1217
+
+66301797406	1993	MFGR#1218
+
+64827944136	1993	MFGR#1219
+
+68712577146	1993	MFGR#122
+
+63874423108	1993	MFGR#1220
+
+65900576205	1993	MFGR#1221
+
+65818918885	1993	MFGR#1222
+
+61826930817	1993	MFGR#1223
+
+66787227051	1993	MFGR#1224
+
+65235843498	1993	MFGR#1225
+
+67836302631	1993	MFGR#1226
+
+63125656325	1993	MFGR#1227
+
+68569462360	1993	MFGR#1228
+
+65187217536	1993	MFGR#1229
+
+66832830692	1993	MFGR#123
+
+62804224921	1993	MFGR#1230
+
+66638084312	1993	MFGR#1231
+
+70417605792	1993	MFGR#1232
+
+65066073393	1993	MFGR#1233
+
+66949604341	1993	MFGR#1234
+
+67756389117	1993	MFGR#1235
+
+68114835996	1993	MFGR#1236
+
+66691054622	1993	MFGR#1237
+
+60921857215	1993	MFGR#1238
+
+66872749014	1993	MFGR#1239
+
+65686854967	1993	MFGR#124
+
+69570017688	1993	MFGR#1240
+
+65480784170	1993	MFGR#125
+
+63883612382	1993	MFGR#126
+
+65222421025	1993	MFGR#127
+
+67400528431	1993	MFGR#128
+
+60653348432	1993	MFGR#129
+
+64154951811	1994	MFGR#121
+
+64581844976	1994	MFGR#1210
+
+69373852137	1994	MFGR#1211
+
+64827515872	1994	MFGR#1212
+
+66742944895	1994	MFGR#1213
+
+67904324360	1994	MFGR#1214
+
+66346349874	1994	MFGR#1215
+
+71885044426	1994	MFGR#1216
+
+68245296858	1994	MFGR#1217
+
+66661763271	1994	MFGR#1218
+
+66014633338	1994	MFGR#1219
+
+69023890557	1994	MFGR#122
+
+63543622920	1994	MFGR#1220
+
+64987911875	1994	MFGR#1221
+
+66360909973	1994	MFGR#1222
+
+62477730907	1994	MFGR#1223
+
+65999658437	1994	MFGR#1224
+
+64022411913	1994	MFGR#1225
+
+67427331620	1994	MFGR#1226
+
+62735666365	1994	MFGR#1227
+
+68137641896	1994	MFGR#1228
+
+67297492999	1994	MFGR#1229
+
+67683521851	1994	MFGR#123
+
+63257946270	1994	MFGR#1230
+
+68879929345	1994	MFGR#1231
+
+69653776792	1994	MFGR#1232
+
+64346911902	1994	MFGR#1233
+
+66250397798	1994	MFGR#1234
+
+66729354778	1994	MFGR#1235
+
+65611799280	1994	MFGR#1236
+
+66647607800	1994	MFGR#1237
+
+60670845484	1994	MFGR#1238
+
+66263976135	1994	MFGR#1239
+
+65953958520	1994	MFGR#124
+
+69381616794	1994	MFGR#1240
+
+65943739029	1994	MFGR#125
+
+64032220068	1994	MFGR#126
+
+65791604589	1994	MFGR#127
+
+66610968234	1994	MFGR#128
+
+61475593782	1994	MFGR#129
+
+63263974414	1995	MFGR#121
+
+64304304777	1995	MFGR#1210
+
+68212986928	1995	MFGR#1211
+
+64175258355	1995	MFGR#1212
+
+66432800017	1995	MFGR#1213
+
+68267705094	1995	MFGR#1214
+
+66632640327	1995	MFGR#1215
+
+70240802380	1995	MFGR#1216
+
+69183354006	1995	MFGR#1217
+
+66668818913	1995	MFGR#1218
+
+64400105393	1995	MFGR#1219
+
+68915803780	1995	MFGR#122
+
+63913454167	1995	MFGR#1220
+
+66817954745	1995	MFGR#1221
+
+66197694284	1995	MFGR#1222
+
+62903784103	1995	MFGR#1223
+
+64999737736	1995	MFGR#1224
+
+65048577815	1995	MFGR#1225
+
+68456787663	1995	MFGR#1226
+
+63065186138	1995	MFGR#1227
+
+68311501910	1995	MFGR#1228
+
+65184650603	1995	MFGR#1229
+
+68021028650	1995	MFGR#123
+
+64088056188	1995	MFGR#1230
+
+68074530934	1995	MFGR#1231
+
+70584695203	1995	MFGR#1232
+
+64138592319	1995	MFGR#1233
+
+66089315402	1995	MFGR#1234
+
+66757600973	1995	MFGR#1235
+
+66395459694	1995	MFGR#1236
+
+67318241626	1995	MFGR#1237
+
+59565332400	1995	MFGR#1238
+
+65258133484	1995	MFGR#1239
+
+65656018752	1995	MFGR#124
+
+68587341011	1995	MFGR#1240
+
+66518439339	1995	MFGR#125
+
+63539629581	1995	MFGR#126
+
+65721210169	1995	MFGR#127
+
+66992770332	1995	MFGR#128
+
+61501070234	1995	MFGR#129
+
+63531708475	1996	MFGR#121
+
+63726244276	1996	MFGR#1210
+
+69440987726	1996	MFGR#1211
+
+64292131118	1996	MFGR#1212
+
+66161753699	1996	MFGR#1213
+
+68293302297	1996	MFGR#1214
+
+66694287291	1996	MFGR#1215
+
+70959570278	1996	MFGR#1216
+
+67985600841	1996	MFGR#1217
+
+66382319102	1996	MFGR#1218
+
+65928022812	1996	MFGR#1219
+
+71014765996	1996	MFGR#122
+
+63733612894	1996	MFGR#1220
+
+65841348795	1996	MFGR#1221
+
+65695826238	1996	MFGR#1222
+
+62903601050	1996	MFGR#1223
+
+67271467228	1996	MFGR#1224
+
+66002169430	1996	MFGR#1225
+
+68643608622	1996	MFGR#1226
+
+63311474914	1996	MFGR#1227
+
+67603351227	1996	MFGR#1228
+
+65164789187	1996	MFGR#1229
+
+67327145661	1996	MFGR#123
+
+63925315584	1996	MFGR#1230
+
+68662549729	1996	MFGR#1231
+
+71900034302	1996	MFGR#1232
+
+63411284811	1996	MFGR#1233
+
+66989996850	1996	MFGR#1234
+
+66445537023	1996	MFGR#1235
+
+67200551049	1996	MFGR#1236
+
+66836632975	1996	MFGR#1237
+
+60045225065	1996	MFGR#1238
+
+67046547893	1996	MFGR#1239
+
+66260786647	1996	MFGR#124
+
+69371764764	1996	MFGR#1240
+
+65600140210	1996	MFGR#125
+
+64013283129	1996	MFGR#126
+
+65471555954	1996	MFGR#127
+
+67432878123	1996	MFGR#128
+
+60805856465	1996	MFGR#129
+
+63492754110	1997	MFGR#121
+
+64171236423	1997	MFGR#1210
+
+68389845610	1997	MFGR#1211
+
+65038041637	1997	MFGR#1212
+
+65762902689	1997	MFGR#1213
+
+68635464488	1997	MFGR#1214
+
+65931694784	1997	MFGR#1215
+
+70221771130	1997	MFGR#1216
+
+68090687759	1997	MFGR#1217
+
+67108507426	1997	MFGR#1218
+
+65907232707	1997	MFGR#1219
+
+68099989904	1997	MFGR#122
+
+64057698804	1997	MFGR#1220
+
+65532052905	1997	MFGR#1221
+
+65125347720	1997	MFGR#1222
+
+63449473131	1997	MFGR#1223
+
+65299614194	1997	MFGR#1224
+
+64715285594	1997	MFGR#1225
+
+67951417824	1997	MFGR#1226
+
+62908600973	1997	MFGR#1227
+
+68318150533	1997	MFGR#1228
+
+65347234281	1997	MFGR#1229
+
+67108487009	1997	MFGR#123
+
+63352109103	1997	MFGR#1230
+
+67506077279	1997	MFGR#1231
+
+71103124287	1997	MFGR#1232
+
+63714783823	1997	MFGR#1233
+
+67072667535	1997	MFGR#1234
+
+67486375766	1997	MFGR#1235
+
+67809634149	1997	MFGR#1236
+
+66921146425	1997	MFGR#1237
+
+61036758593	1997	MFGR#1238
+
+66629051045	1997	MFGR#1239
+
+65515195107	1997	MFGR#124
+
+69670002045	1997	MFGR#1240
+
+66335049362	1997	MFGR#125
+
+63268572380	1997	MFGR#126
+
+66203485495	1997	MFGR#127
+
+66615450053	1997	MFGR#128
+
+61500898314	1997	MFGR#129
+
+37324111562	1998	MFGR#121
+
+36958781931	1998	MFGR#1210
+
+40041889896	1998	MFGR#1211
+
+37999719326	1998	MFGR#1212
+
+39224927231	1998	MFGR#1213
+
+38929679294	1998	MFGR#1214
+
+38285228302	1998	MFGR#1215
+
+41527177023	1998	MFGR#1216
+
+39553337697	1998	MFGR#1217
+
+39155053510	1998	MFGR#1218
+
+38025626873	1998	MFGR#1219
+
+41108469661	1998	MFGR#122
+
+38366708061	1998	MFGR#1220
+
+38585880381	1998	MFGR#1221
+
+37960253378	1998	MFGR#1222
+
+36144190443	1998	MFGR#1223
+
+38118789531	1998	MFGR#1224
+
+37975548118	1998	MFGR#1225
+
+40377476129	1998	MFGR#1226
+
+36315628294	1998	MFGR#1227
+
+40629913825	1998	MFGR#1228
+
+38009921602	1998	MFGR#1229
+
+38922380369	1998	MFGR#123
+
+37444501440	1998	MFGR#1230
+
+39786007272	1998	MFGR#1231
+
+42201584894	1998	MFGR#1232
+
+37263839105	1998	MFGR#1233
+
+39296560826	1998	MFGR#1234
+
+38756128910	1998	MFGR#1235
+
+38458847282	1998	MFGR#1236
+
+39236821138	1998	MFGR#1237
+
+35105308587	1998	MFGR#1238
+
+38603929984	1998	MFGR#1239
+
+39306208901	1998	MFGR#124
+
+40897901826	1998	MFGR#1240
+
+38248439933	1998	MFGR#125
+
+37043563027	1998	MFGR#126
+
+38499217759	1998	MFGR#127
+
+39679892915	1998	MFGR#128
+
+35300513083	1998	MFGR#129
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.2.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.2.out
new file mode 100644
index 0000000000..4a689e6c8f
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.2.out
@@ -0,0 +1,121 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q2.2 --
+0
+
+-- !nereids_flat_q2.2_2 --
+0
+
+-- !nereids_flat_q2.2_3 --
+
+66450349438	1992	MFGR#2221
+
+65423264312	1992	MFGR#2222
+
+66936772687	1992	MFGR#2223
+
+64047191934	1992	MFGR#2224
+
+65744559138	1992	MFGR#2225
+
+66993045668	1992	MFGR#2226
+
+67411226147	1992	MFGR#2227
+
+69390885970	1992	MFGR#2228
+
+66819757447	1993	MFGR#2221
+
+67805601887	1993	MFGR#2222
+
+67208412655	1993	MFGR#2223
+
+64222070981	1993	MFGR#2224
+
+66159498618	1993	MFGR#2225
+
+68387963965	1993	MFGR#2226
+
+68470823598	1993	MFGR#2227
+
+70176992353	1993	MFGR#2228
+
+66201929022	1994	MFGR#2221
+
+66601352347	1994	MFGR#2222
+
+67149651412	1994	MFGR#2223
+
+64508853727	1994	MFGR#2224
+
+66008726728	1994	MFGR#2225
+
+66358870053	1994	MFGR#2226
+
+67912269895	1994	MFGR#2227
+
+69071503806	1994	MFGR#2228
+
+65269818712	1995	MFGR#2221
+
+65566595895	1995	MFGR#2222
+
+65980940491	1995	MFGR#2223
+
+63741007905	1995	MFGR#2224
+
+64701224302	1995	MFGR#2225
+
+67771832811	1995	MFGR#2226
+
+67898964035	1995	MFGR#2227
+
+70977692364	1995	MFGR#2228
+
+67169465617	1996	MFGR#2221
+
+67121666299	1996	MFGR#2222
+
+66485923436	1996	MFGR#2223
+
+64410797788	1996	MFGR#2224
+
+65788692665	1996	MFGR#2225
+
+68193662121	1996	MFGR#2226
+
+67904649725	1996	MFGR#2227
+
+69705348599	1996	MFGR#2228
+
+66839293911	1997	MFGR#2221
+
+65623735495	1997	MFGR#2222
+
+66608624781	1997	MFGR#2223
+
+64127451073	1997	MFGR#2224
+
+66071861556	1997	MFGR#2225
+
+68517706654	1997	MFGR#2226
+
+67632192229	1997	MFGR#2227
+
+70029520291	1997	MFGR#2228
+
+39646973602	1998	MFGR#2221
+
+38969579899	1998	MFGR#2222
+
+38767988496	1998	MFGR#2223
+
+38020572188	1998	MFGR#2224
+
+38328423898	1998	MFGR#2225
+
+38705033272	1998	MFGR#2226
+
+39907545239	1998	MFGR#2227
+
+40654201840	1998	MFGR#2228
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.3.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.3.out
new file mode 100644
index 0000000000..97128111a5
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q2.3.out
@@ -0,0 +1,25 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q2.3 --
+0
+
+-- !nereids_flat_q2.3_2 --
+0
+
+-- !nereids_flat_q2.3_3 --
+
+65751589723	1992	MFGR#2239
+
+64532844801	1993	MFGR#2239
+
+64722599002	1994	MFGR#2239
+
+65616432683	1995	MFGR#2239
+
+64802884686	1996	MFGR#2239
+
+64485541165	1997	MFGR#2239
+
+37276536361	1998	MFGR#2239
+
+
+
diff --git a/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q3.1.out b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q3.1.out
new file mode 100644
index 0000000000..42d94d0ba3
--- /dev/null
+++ b/regression-test/data/ssb_sf100_p2/sql/nereids_flat_q3.1.out
@@ -0,0 +1,311 @@
+-- This file is automatically generated. You should know what you did if you want to edit this
+-- !nereids_flat_q3.1 --
+0
+
+-- !nereids_flat_q3.1_2 --
+0
+
+-- !nereids_flat_q3.1_3 --
+
+INDIA	INDIA	1992	541898351355
+
+INDIA	INDONESIA	1992	538677350228
+
+INDIA	JAPAN	1992	537843758035
+
+INDONESIA	INDIA	1992	537095003089
+
+INDONESIA	JAPAN	1992	535376687650
+
+JAPAN	INDIA	1992	534092242125
+
+CHINA	JAPAN	1992	534079825484
+
+INDIA	VIETNAM	1992	533431353873
+
+JAPAN	JAPAN	1992	532955374233
+
+CHINA	INDIA	1992	532923573242
+
+INDONESIA	CHINA	1992	532785036541
+
+VIETNAM	INDONESIA	1992	532776025488
+
+INDONESIA	INDONESIA	1992	532601278879
+
+VIETNAM	INDIA	1992	531957303013
+
+VIETNAM	JAPAN	1992	531871145571
+
+INDIA	CHINA	1992	531808691821
+
+CHINA	INDONESIA	1992	531452292781
+
+VIETNAM	VIETNAM	1992	531305050396
+
+INDONESIA	VIETNAM	1992	530922563480
+
+CHINA	CHINA	1992	529911021227
+
+VIETNAM	CHINA	1992	528201090407
+
+JAPAN	VIETNAM	1992	527992612362
+
+JAPAN	CHINA	1992	527727130517
+
+JAPAN	INDONESIA	1992	527406462849
+
+CHINA	VIETNAM	1992	526900846599
+
+INDONESIA	INDIA	1993	537207492736
+
+INDONESIA	INDONESIA	1993	534732054193
+
+JAPAN	INDIA	1993	534612311250
+
+INDONESIA	JAPAN	1993	534002136011
+
+CHINA	INDIA	1993	533930016244
+
+INDIA	INDIA	1993	533598825205
+
+VIETNAM	INDIA	1993	533510892699
+
+INDIA	INDONESIA	1993	532720001507
+
+INDIA	JAPAN	1993	532046018160
+
+INDONESIA	VIETNAM	1993	530863180393
+
+CHINA	JAPAN	1993	530752425945
+
+VIETNAM	INDONESIA	1993	530677035289
+
+INDIA	CHINA	1993	530592398891
+
+VIETNAM	JAPAN	1993	530520899327
+
+INDONESIA	CHINA	1993	530280283836
+
+VIETNAM	CHINA	1993	529716813198
+
+CHINA	INDONESIA	1993	529535858815
+
+JAPAN	JAPAN	1993	529142994776
+
+CHINA	CHINA	1993	528589918471
+
+VIETNAM	VIETNAM	1993	527647757335
+
+JAPAN	CHINA	1993	526799189472
+
+JAPAN	INDONESIA	1993	526464287860
+
+CHINA	VIETNAM	1993	525631246454
+
+INDIA	VIETNAM	1993	525416370831
+
+JAPAN	VIETNAM	1993	525235733898
+
+INDIA	INDIA	1994	539450670804
+
+INDONESIA	INDIA	1994	537769922217
+
+INDIA	JAPAN	1994	536328292381
+
+VIETNAM	INDIA	1994	534670901936
+
+INDONESIA	JAPAN	1994	534023528198
+
+CHINA	INDIA	1994	534006707864
+
+JAPAN	INDIA	1994	533664839684
+
+VIETNAM	JAPAN	1994	533236676334
+
+INDONESIA	CHINA	1994	532996181603
+
+INDIA	CHINA	1994	532716219277
+
+INDONESIA	VIETNAM	1994	532701155745
+
+INDIA	INDONESIA	1994	531858827805
+
+VIETNAM	CHINA	1994	531582071471
+
+INDONESIA	INDONESIA	1994	531382878901
+
+VIETNAM	INDONESIA	1994	530466898439
+
+JAPAN	JAPAN	1994	530203306240
+
+CHINA	JAPAN	1994	530168084408
+
+JAPAN	INDONESIA	1994	529959434252
+
+CHINA	CHINA	1994	529814233920
+
+INDIA	VIETNAM	1994	529066144711
+
+CHINA	INDONESIA	1994	528160683754
+
+VIETNAM	VIETNAM	1994	527477173747
+
+CHINA	VIETNAM	1994	525223841368
+
+JAPAN	CHINA	1994	525122608316
+
... 132409 lines suppressed ...


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org