/* syntax version 1 */
/* postgres can not */
define subquery $sub() as
   select * from (values (1),(2),(3)) as a(x);
end define;

$sub2 = SubqueryOrderBy($sub, [("x",false)]);

process $sub2();