-- in.cue --
b: {
	a: 1
	b: 2
	c: 3
	d: 4
}

a: [for k, v in b if k < "d" if v > b.a {k}] @test(eq, ["b", "c"])
c: {
	[for _, x in b for _, y in b if x < y {x}]
	@test(eq, [1, 1, 1, 2, 2, 3])
}
d: [for x, _ in a {x}] @test(eq, [0, 1])
-- out/eval/stats --
Leaks:  0
Freed:  19
Reused: 12
Allocs: 7
Retain: 10

Unifications: 19
Conjuncts:    36
Disjuncts:    23
