Query refinement in constraint multimedia databases