presto-main/src/main/java/io/prestosql/sql/analyzer/FieldId.java/FieldId/from
class FieldId:    public static FieldId from(ResolvedField field)
    {
        requireNonNull(field, "field is null");

        Scope sourceScope = field.getScope();
        RelationType relationType = sourceScope.getRelationType();
        return new FieldId(sourceScope.getRelationId(), relationType.indexOf(field.getField()));
    }