sql support for ASTMapLookup when the result is a list