PIM-870 : Precise query removing useless and unavailable product entities