def _initialise_notable_eids(db):
    """Returns set of eids corresponding to "notable" entities."""

    rows = db.query("""
      SELECT eid FROM entity_flags
      WHERE political_entity=TRUE;
  """)
    notable_eids = set(row["eid"] for row in rows)
    print('[OK] Received %d notable eIDs.' % len(notable_eids))
    return notable_eids