(
(let $1 (DataSource '"yt" '"/Root/plato"))
(let $2 '@@["StructType";[["K";["DataType";"Int64"]];["J";["DataType";"Json"]]]]@@)
(let $3 (YqlRowSpec '('NativeYtTypeFlags '0) '('StrictSchema '1) '('UniqueKeys '0) '('Type $2)))
(let $4 (YtMeta '('CanWrite '1) '('DoesExist '1) '('YqlCompatibleScheme '1) '('InferredScheme '0) '('IsDynamic '0) '('Attrs '('('"native_strict_schema" 'false)))))
(let $5 '('ChunkCount '1))
(let $6 '('ModifyTime '0))
(let $7 '('Revision '0))
(let $8 (YtStat '('Id '"T") '('RecordsCount '6) '('DataSize '"672") $5 $6 $7))
(let $9 (YtTable '"T" $3 $4 $8 '() (Void) (Void) '"/Root/plato"))
(let $10 '('"J" '"K"))
(let $11 (YtReadTable! world $1 '((YtSection '((YtPath $9 $10 (Void) (Void))) '()))))
(let $12 '((OptionalType (DataType 'Bool))))
(let $13 (ResourceType '"JsonNode"))
(let $14 '((ResourceType '"JsonPath")))
(let $15 (DataType 'Utf8))
(let $16 (DictType $15 $13))
(let $17 (CallableType '() $12 '((OptionalType $13)) $14 '($16) $12))
(let $18 (Udf '"Json2.SqlExists" (Void) (VoidType) '"" $17 (VoidType) '"" '('('"strict"))))
(let $19 '((DataType 'Json) '"" '1))
(let $20 (CallableType '() '($13) $19))
(let $21 (Udf '"Json2.Parse" (Void) (VoidType) '"" $20 (VoidType) '"" '()))
(let $22 (CallableType '() $14 '($15)))
(let $23 (Udf '"Json2.CompilePath" (Void) (VoidType) '"" $22 (VoidType) '"" '()))
(let $24 (Dict $16))
(let $25 (Bool 'false))
(let $26 (Just $25))
(let $27 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $11 '()) (lambda '($103 $104) (block '(
  (let $105 (Apply $18 (Just (Apply $21 $103)) (Apply $23 (Utf8 '"lax $.where")) $24 $26))
  (return (Coalesce $105 $25))
)))) (lambda '($106 $107) (AsStruct '('"K" $107)))))) '('('"_logical_id" '9143) '('"_id" '"27d5d6d0-1dc937e3-af1384f7-ee7140e1"))))
(let $28 (DqCnUnionAll (TDqOutput $27 '0)))
(let $29 (DqPhyStage '($28) (lambda '($108) $108) '('('"_logical_id" '9937) '('"_id" '"3bf7cbac-de4c521a-7dc68ad3-352fc976"))))
(let $30 '('"K"))
(let $31 (DqCnResult (TDqOutput $29 '0) $30))
(let $32 '('('"type" '"generic")))
(let $33 (KqpPhysicalTx '($27 $29) '($31) '() $32))
(let $34 (DqReadWideWrap $11 '()))
(let $35 (Apply $23 (Utf8 '"strict $.where")))
(let $36 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter $34 (lambda '($109 $110) (block '(
  (let $111 (Apply $18 (Just (Apply $21 $109)) $35 $24 $26))
  (return (Coalesce $111 $25))
)))) (lambda '($112 $113) (AsStruct '('"K" $113)))))) '('('"_logical_id" '9226) '('"_id" '"5d4a6f3e-3cdaee7b-b6a42d0d-aeab0091"))))
(let $37 (DqCnUnionAll (TDqOutput $36 '0)))
(let $38 (DqPhyStage '($37) (lambda '($114) $114) '('('"_logical_id" '10269) '('"_id" '"a2c9557b-115fad2-fdc960bd-a9adbc33"))))
(let $39 (DqCnResult (TDqOutput $38 '0) $30))
(let $40 (KqpPhysicalTx '($36 $38) '($39) '() $32))
(let $41 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter $34 (lambda '($115 $116) (block '(
  (let $117 (Apply $18 (Just (Apply $21 $115)) $35 $24 $26))
  (return (Coalesce $117 $25))
)))) (lambda '($118 $119) (AsStruct '('"K" $119)))))) '('('"_logical_id" '9309) '('"_id" '"cc7ef316-38476a31-9860cba6-fc52b9f5"))))
(let $42 (DqCnUnionAll (TDqOutput $41 '0)))
(let $43 (DqPhyStage '($42) (lambda '($120) $120) '('('"_logical_id" '10557) '('"_id" '"fdeb91e8-4c9055b5-4f8c1dfa-2cf3900f"))))
(let $44 (DqCnResult (TDqOutput $43 '0) $30))
(let $45 (KqpPhysicalTx '($41 $43) '($44) '() $32))
(let $46 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $11 '()) (lambda '($121 $122) (block '(
  (let $123 (Apply $18 (Just (Apply $21 $121)) (Apply $23 (Utf8 '"strict $.friends[*].rank")) $24 $26))
  (return (Coalesce $123 $25))
)))) (lambda '($124 $125) (AsStruct '('"K" $125)))))) '('('"_logical_id" '9392) '('"_id" '"5fdc6104-aa07fdee-e6442e02-1938ffb7"))))
(let $47 (DqCnUnionAll (TDqOutput $46 '0)))
(let $48 (DqPhyStage '($47) (lambda '($126) $126) '('('"_logical_id" '10845) '('"_id" '"624aeafa-f7ae228f-1ae83365-b3955800"))))
(let $49 (DqCnResult (TDqOutput $48 '0) $30))
(let $50 (KqpPhysicalTx '($46 $48) '($49) '() $32))
(let $51 '('RecordsCount '2))
(let $52 (YtStat '('Id '"Filter1") $51 '('DataSize '"102") $5 $6 $7))
(let $53 (YtTable '"Filter1" $3 $4 $52 '() (Void) (Void) '"/Root/plato"))
(let $54 (YtReadTable! world $1 '((YtSection '((YtPath $53 $10 (Void) (Void))) '()))))
(let $55 (Apply $23 (Utf8 '"lax $ ? (@.pay/@.hours > 9)")))
(let $56 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $54 '()) (lambda '($127 $128) (block '(
  (let $129 (Apply $18 (Just (Apply $21 $127)) $55 $24 $26))
  (return (Coalesce $129 $25))
)))) (lambda '($130 $131) (AsStruct '('"K" $131)))))) '('('"_logical_id" '9475) '('"_id" '"8cc46985-86fd7653-98ea0841-a74ba5be"))))
(let $57 (DqCnUnionAll (TDqOutput $56 '0)))
(let $58 (DqPhyStage '($57) (lambda '($132) $132) '('('"_logical_id" '11133) '('"_id" '"6b85e638-8cebe486-c160dc4b-9ed8de50"))))
(let $59 (DqCnResult (TDqOutput $58 '0) $30))
(let $60 (KqpPhysicalTx '($56 $58) '($59) '() $32))
(let $61 (Apply $23 (Utf8 '"strict $ ? (@.pay/@.hours > 9)")))
(let $62 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $54 '()) (lambda '($133 $134) (block '(
  (let $135 (Apply $18 (Just (Apply $21 $133)) $61 $24 $26))
  (return (Coalesce $135 $25))
)))) (lambda '($136 $137) (AsStruct '('"K" $137)))))) '('('"_logical_id" '9558) '('"_id" '"bcdedc78-4871793d-adc803b9-bf1c7cd1"))))
(let $63 (DqCnUnionAll (TDqOutput $62 '0)))
(let $64 (DqPhyStage '($63) (lambda '($138) $138) '('('"_logical_id" '11421) '('"_id" '"ed1c167-1e960b5d-94894102-c616ee5b"))))
(let $65 (DqCnResult (TDqOutput $64 '0) $30))
(let $66 (KqpPhysicalTx '($62 $64) '($65) '() $32))
(let $67 (YtStat '('Id '"Filter2") $51 '('DataSize '"97") $5 $6 $7))
(let $68 (YtTable '"Filter2" $3 $4 $67 '() (Void) (Void) '"/Root/plato"))
(let $69 (YtReadTable! world $1 '((YtSection '((YtPath $68 $10 (Void) (Void))) '()))))
(let $70 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $69 '()) (lambda '($139 $140) (block '(
  (let $141 (Apply $18 (Just (Apply $21 $139)) $55 $24 $26))
  (return (Coalesce $141 $25))
)))) (lambda '($142 $143) (AsStruct '('"K" $143)))))) '('('"_logical_id" '9641) '('"_id" '"c9b42e96-ad5471ec-c4f07bfe-14f3afad"))))
(let $71 (DqCnUnionAll (TDqOutput $70 '0)))
(let $72 (DqPhyStage '($71) (lambda '($144) $144) '('('"_logical_id" '11709) '('"_id" '"b941788-544aac4d-d1df2290-c4c3e267"))))
(let $73 (DqCnResult (TDqOutput $72 '0) $30))
(let $74 (KqpPhysicalTx '($70 $72) '($73) '() $32))
(let $75 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $69 '()) (lambda '($145 $146) (block '(
  (let $147 (Apply $18 (Just (Apply $21 $145)) $61 $24 $26))
  (return (Coalesce $147 $25))
)))) (lambda '($148 $149) (AsStruct '('"K" $149)))))) '('('"_logical_id" '9724) '('"_id" '"d5815252-75636896-fc81f725-c2a445e5"))))
(let $76 (DqCnUnionAll (TDqOutput $75 '0)))
(let $77 (DqPhyStage '($76) (lambda '($150) $150) '('('"_logical_id" '11997) '('"_id" '"bbf33d44-4d2768e-b4ff2de2-c6336e2c"))))
(let $78 (DqCnResult (TDqOutput $77 '0) $30))
(let $79 (KqpPhysicalTx '($75 $77) '($78) '() $32))
(let $80 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $69 '()) (lambda '($151 $152) (block '(
  (let $153 (Apply $18 (Just (Apply $21 $151)) (Apply $23 (Utf8 '"lax $ ? (@.hours > 9)")) $24 $26))
  (return (Coalesce $153 $25))
)))) (lambda '($154 $155) (AsStruct '('"K" $155)))))) '('('"_logical_id" '9807) '('"_id" '"5bca6c5a-255b25a7-1e992c2a-6bc7c90"))))
(let $81 (DqCnUnionAll (TDqOutput $80 '0)))
(let $82 (DqPhyStage '($81) (lambda '($156) $156) '('('"_logical_id" '12285) '('"_id" '"7829e01a-eb86149a-66bafa65-4e015629"))))
(let $83 (DqCnResult (TDqOutput $82 '0) $30))
(let $84 (KqpPhysicalTx '($80 $82) '($83) '() $32))
(let $85 (DqPhyStage '() (lambda '() (FromFlow (NarrowMap (WideFilter (DqReadWideWrap $69 '()) (lambda '($157 $158) (block '(
  (let $159 (Apply $18 (Just (Apply $21 $157)) (Apply $23 (Utf8 '"strict $ ? (@.hours > 9)")) $24 $26))
  (return (Coalesce $159 $25))
)))) (lambda '($160 $161) (AsStruct '('"K" $161)))))) '('('"_logical_id" '9890) '('"_id" '"9e66e223-1b98187b-8679b252-29a27913"))))
(let $86 (DqCnUnionAll (TDqOutput $85 '0)))
(let $87 (DqPhyStage '($86) (lambda '($162) $162) '('('"_logical_id" '12573) '('"_id" '"f08d6cfd-53d6eab7-294faf24-fc677b01"))))
(let $88 (DqCnResult (TDqOutput $87 '0) $30))
(let $89 (KqpPhysicalTx '($85 $87) '($88) '() $32))
(let $90 '($33 $40 $45 $50 $60 $66 $74 $79 $84 $89))
(let $91 (ListType (StructType '('"K" (DataType 'Int64)))))
(let $92 (KqpTxResultBinding $91 '0 '0))
(let $93 (KqpTxResultBinding $91 '1 '0))
(let $94 (KqpTxResultBinding $91 '2 '0))
(let $95 (KqpTxResultBinding $91 '"3" '0))
(let $96 (KqpTxResultBinding $91 '"4" '0))
(let $97 (KqpTxResultBinding $91 '"5" '0))
(let $98 (KqpTxResultBinding $91 '6 '0))
(let $99 (KqpTxResultBinding $91 '"7" '0))
(let $100 (KqpTxResultBinding $91 '"8" '0))
(let $101 (KqpTxResultBinding $91 '"9" '0))
(let $102 '($92 $93 $94 $95 $96 $97 $98 $99 $100 $101))
(return (KqpPhysicalQuery $90 $102 '('('"type" '"query"))))
)
