Spatial analogy problem