def create_and_query_columbus():
    columbus = my_models.HistoricPerson(
        name='Christopher Columbus',
        birth=my_models.FuzzyDate(date(1451, 8, 22), date(1451, 10, 31)),
        death=my_models.FuzzyDate(date(1506, 5, 20)),
        event_dates=[my_models.FuzzyDate(
            date(1492, 1, 1), date(1492, 12, 31))],
        event_names=['Discovery of America'])
    columbus.put()

    # Query for historic people born no later than 1451.
    results = my_models.HistoricPerson.query(
        my_models.HistoricPerson.birth.last <= date(1451, 12, 31)).fetch()
    return results
dataset/ETHPy150Open GoogleCloudPlatform/python-docs-samples/appengine/ndb/property_subclasses/snippets.py/create_and_query_columbus/original