(
(let $1 '('('"_logical_id" '681) '('"_id" '"e32bb2f6-8bfb7bae-adbce441-28f826b6") '('"_partition_mode" '"single")))
(let $2 (DqPhyStage '() (lambda '() (block '(
  (let $5 '('"subkey" (String '"3")))
  (let $6 '('"value" (String '"aaa")))
  (let $7 (AsStruct '('"key" (Double '"23")) $5 $6))
  (let $8 (AsStruct '('"key" (Double '"37")) '('"subkey" (String '"5")) '('"value" (String '"ddd"))))
  (let $9 '('"subkey" (String '1)))
  (let $10 (AsStruct '('"key" (Double '"75.1")) $9 '('"value" (String '"abc"))))
  (let $11 '('"key" (Double '"150")))
  (let $12 (AsStruct $11 $9 $6))
  (let $13 (AsStruct $11 $5 '('"value" (String '"iii"))))
  (let $14 (AsStruct $11 '('"subkey" (String '"8")) '('"value" (String '"zzz"))))
  (let $15 '('"value" (String '"qqq")))
  (let $16 (AsStruct $11 '('"subkey" (String '"7")) $15))
  (let $17 (AsStruct '('"key" (Double '"527.2")) '('"subkey" (String '"4")) '('"value" (String '"bbb"))))
  (let $18 '('"key" (Double '"inf")))
  (let $19 (AsStruct $18 '('"subkey" (String '"6")) '('"value" (String '"ccc"))))
  (let $20 (AsStruct $18 '('"subkey" (String '"11")) $15))
  (let $21 (AsStruct '('"key" (Double '"nan")) '('"subkey" (String '"2")) '('"value" (String '"kkk"))))
  (let $22 (AsStruct '('"key" (Double '"-inf")) '('"subkey" (String '"9")) '('"value" (String '"uuu"))))
  (let $23 (AsList $7 $8 $10 $12 $13 $14 $16 $17 $19 $20 $21 $22))
  (let $24 (Sort $23 (Bool 'true) (lambda '($25) '((Member $25 '"key") (Member $25 '"subkey")))))
  (return (Iterator (AsList (AsStruct '('"column0" $24)))))
))) $1))
(let $3 (DqCnResult (TDqOutput $2 '"0") '('"column0")))
(let $4 (DataType 'String))
(return (KqpPhysicalQuery '((KqpPhysicalTx '($2) '($3) '() '('('"type" '"generic")))) '((KqpTxResultBinding (ListType (StructType '('"column0" (ListType (StructType '('"key" (DataType 'Double)) '('"subkey" $4) '('"value" $4)))))) '"0" '"0")) '('('"type" '"query"))))
)
