I will rewrite my question using **Matt F.** suggestion.

Consider $\mathbb{R}$ in the language $L$ with one function $f$, and a family of relations like
$$\{Sq(x,y):=x=y^2,  In(x):=x∈[1,3]\}$$
Consider the map $Q:2^\mathbb{R}→2^\mathbb{R}$ by
$$Q(S)=\{a:∃x,y∈S \: In(a)∧a=f(x)∧Sq(x,y)\}$$
which has a first-order definition in $L$ and uses $f$ only once. For a given language with one function $f$ and a family of relations, can we characterize the maps from $2^\mathbb{R}→2^\mathbb{R}$ which have similar first-order definitions in $L$ and use $f$ only once? 

---

Motivation: I wanted to give logically correct definition of all constructions of fractals such as Apollonian gasket and Sierpinski triangle. In the setting of Apollonian gasket it is natural to replace $\mathbb{R}$ with the set $\mathcal{S}$ of circles in $\mathbb{R}^2$ and $f$ with the map that inputs three pairwase tangent circles and outputs two tangent circles to a given three ones. So the map $$Q(S) = \Big\{a: \exists b, x, y, z\in S\: \{a, b\} = f(x, y, z)∧ a\notin S\Big\}$$ realize Apollonian fractal as $Q(S_0)\sqcup Q(Q(S_0))\sqcup\ldots$ where $S_0$ denote three pairwise tangent circles.