conditional worked. trying with boolean query