Exactly five rectangles are gray shapes if and only if a magenta cross is closer to a circle than the cyan rectangle.
The magenta shape closer to the cyan shape is a square if and only if exactly zero rectangles are magenta shapes.
More than two shapes are cyan shapes or a magenta shape is bigger than a green circle.
A magenta shape is the same shape as a gray semicircle if and only if a cyan shape is closer to a gray semicircle than the ellipse.
An ellipse is a blue shape or at most three quarters of the shapes are magenta rectangles.