Try an approach that uses foundationdb's sql parser