presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/metadata/MetadataDao.java/MetadataDao/getOrganizationEligibleTables
class MetadataDao:    @SqlQuery("SELECT table_id\n" +
            "FROM tables\n" +
            "WHERE organization_enabled\n" +
            "  AND maintenance_blocked IS NULL\n" +
            "  AND table_id IN\n" +
            "       (SELECT table_id\n" +
            "        FROM columns\n" +
            "        WHERE sort_ordinal_position IS NOT NULL)")
    Set<Long> getOrganizationEligibleTables();