It is a common misconception that any XQuery is a FLWOR expression. This misconception arises when people approach XQuery in terms of SQL, treating it as SELECT.
In fact, this is not so; the FLWOR expression is in many ways another expression. Maybe the FLWOR statement is executed as an SQL statement, but this is not necessary.
XQuery (, Haskell), (, ).
1+2 - XQuery, 1 2, FLWOR.
XQuery , . .
:
for $x in ...
for $y in ...
where $x/@name=$y/@name
return $x
, , for , $x $y. , . $x $y , .
. FLWOR let ( , ). . , ( ) XQuery .