Test nested sub-query compilation.

It just wants to work.

See #49.