Dropdown choices

In query widget, how can I CustomFilter a dropdown choice list which is manually or dynamically generated on the fly rather than taking a column from the dataset table.