Unfortunately the Google Sheets Query function doesn’t have the possibility to use the DISTINCT clause, and then you have to wrap your formula inside an =unique() formula.
However, our conditional filter has become so powerful that perhaps we can apply this feature inside of it like a radio button you toggle on or off.