Comments: v.3 22p; Proposition 1.7 is new; Section 2 was partially rewritten, Theorem 2.6 now has a stronger bound; minor corrections and additional explanations throughout the article; accepted to the Journal of Mathematical Logic
We prove a generalizations of the Elekes-Szabó theorem for relations definable in strongly minimal structures that are interpretable in distal structures.