在 Google 表格中使用查询,如何只显示一次对?

Using Query in Google Sheets, how display a pair only once?

我正在尝试将一对分组并显示一次。 一对可以以多种方式出现,并且当前针对每个不同的出现显示。

删除了骰子的坏例子。

我的实际问题比下面的例子更复杂,但这是创建一个 simple/short 数据集来处理。

花卉的育种组合:https://docs.google.com/spreadsheets/d/1-Kkr3P3_LRhFcmhNpf3JJwo5aXu1fp11muRBUxmShKU/edit?usp=sharing

已完成单元格输入以完成所需的输出:(sheet 中的 F26)

    ={"Can be produced by:"\ "And:"\ "Entries:";
    ARRAYFORMULA(QUERY(IF(D3:D=F4; IF(C3:C<B3:B; {C3:C\ B3:B}; {B3:B\ C3:C}); 
    ); 
    "select Col2,Col1,count(Col1) 
    where Col1 is not null
    group by Col1,Col2
    order by count(Col1) desc
    label count(Col1)''"; 0))}
={A1:C1;
 ARRAYFORMULA(QUERY(IF(C:C=6, IF(A:A<B:B, {A:A, B:B}, {B:B, A:A}), ), 
 "select Col1,Col2,count(Col1) 
  where Col1 is not null
  group by Col1,Col2
  label count(Col1)''", 0))}


={"Can be produced by:"\ "And:"\ "Entries:";
 ARRAYFORMULA(QUERY(IF(D3:D=F4; IF(C3:C<B3:B; {B3:B\ C3:C}; {C3:C\ B3:B}); ); 
 "select Col1,Col2,count(Col1) 
  where Col1 is not null
  group by Col1,Col2
  order by count(Col1) desc
  label count(Col1)''"; 0))}