我是Neo4j的新手,在使用neo4j在以下数据集中展示排名最高的前五名球队时遇到了问题。问题是每支球队都取得了同样的最高分,即6.Help me please
下面有部分数据。
Round,Date,Team 1,FT,HT,Team 2
1,(Fri) 11 Aug 2017 (32),Arsenal FC,4-3,2-2,Leicester City FC
1,(Sat) 12 Aug 2017 (32),Brighton & Hove Albion FC,0-2,0-0,Manchester City FC
1,(Sat) 12 Aug 2017 (32),Chelsea FC,2-3,0-3,Burnley FC
1,(Sat) 12 Aug 2017 (32),Crystal Palace FC,0-3,0-2,Huddersfield Town AFC
1,(Sat) 12 Aug 2017 (32),Everton FC,1-0,1-0,Stoke City FC
1,(Sat) 12 Aug 2017 (32),Southampton FC,0-0,0-0,Swansea City AFC
1,(Sat) 12 Aug 2017 (32),Watford FC,3-3,2-1,Liverpool FC
1,(Sat) 12 Aug 2017 (32),West Bromwich Albion FC,1-0,1-0,AFC Bournemouth
1,(Sun) 13 Aug 2017 (32),Manchester United FC,4-0,1-0,West Ham United FC
1,(Sun) 13 Aug 2017 (32),Newcastle United FC,0-2,0-0,Tottenham Hotspur FC
2,(Sat) 19 Aug 2017 (33),AFC Bournemouth,0-2,0-0,Watford FC
2,(Sat) 19 Aug 2017 (33),Burnley FC,0-1,0-0,West Bromwich Albion FC
我找到了前5名团队“团队2”,其得分高于团队1,并通过将列数据分成数组并比较
Score Ft[0] < Score Ft[2]
来显示结果。然后出现五个具有相同分数的不同团队。
t2.key s
"Southampton FC" 6
"West Bromwich Albion FC" 6
"Watford FC" 6
"Brighton & Hove Albion FC" 6
"Crystal Palace FC" 6