If $x < y$, then there lies a relation between $x$ and $y$, the "$\text{is less than}$" relation. And $x$ is related to $y$ by the "$\text{is less than}$" relation. Since "$\text{is less than}$" might not be the only relation that lies between $x$ and $y$, they can be related by other relations too. The idea that $x$ is less than $y$ is a relation that lies between $x$ and $y$. The idea is the relation.
Let $A = \{0, 1, 2\}$ and $B = \{1, 2, 3\}$. Then the Cartesian product of $A$ and $B$,
$$ A \times B = \{(0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3)\} $$
The set of all the ordered pairs whose first elements are related to their second elements by the relation "$\text{is less than}$" is
$$ R = \{(0, 1), (0, 2), (0, 3), (1, 2), (1, 3), (2, 3)\} $$
We can see that $R$ contains all those ordered pairs whose elements are related by the "$\text{is less than}$" relation. Therefore, knowing which ordered pairs belong to $R$ is virtually the same as knowing which elements of $A$ are related to which elements of $B$. So, now, if $(x, y) \in R$, then $x$ is related to $y$ by "$\text{is less than}$" relation because we know that $R$ contains only those ordered pairs whose elements are related by the "$\text{is less than}$" relation. But when $(x, y) \in R$, we don't say, $x$ is related to $y$ by the "$\text{is less than}$" relation, instead we say, $x$ is related to $y$ by $R$. Why can we do that? How can $x$ be related to $y$ by some set? Is it because $R$ represents the "$\text{is less than}$" relation? (More on this below)
If the idea — $x$ is less than $y$ — is the relation, then why is $R$ defined as the relation? I believe $R$ is the set-representation of the "$\text{is less than}$" relation. But I can't see how it is representing that relation.
We know, that the "$\text{is less than}$" relation is not limited to $A$ and $B$, it also lies between the elements of the set of real numbers. If that's the case, how can $R$ represent the "$\text{is less than}$" relation?
And when we say, a relation from $A$ to $B$, do we mean there lies a relation between $A$ and $B$ or between the elements of $A$ and $B$? What exactly do we mean by a relation from $A$ to $B$?
Since the definition of a relation from the set-theoretic perspective is correct, I can define a relation
$$ R = \{(a, 1), (b, 9), (2, 1), (\pi, \text{ superman})\} $$
Now, if $(x, y) \in R$, then we know, $x$ is related to $y$ by $R$. Here, $1$ is not related to $3$ by $R$ because $(1, 3) \notin R$. But, $\pi$ is related to $\text{superman}$ by $R$ because $(\pi, \text{ superman}) \in R$.
So, we can represent a relation such as, "$\text{is less than}$" as a set of ordered pairs, and if we can do that, it means sets of ordered pairs can be thought of as a relation itself. Thus, we can define a set of ordered pairs whose elements can be practically unrelated, but yet we can say that they are related. Is my understanding correct? How can we represent a relation itself, such as "$\text{is less than}$" as a set of ordered pairs?
Please take your time answering this question.