1. 3
  1.  

  2. 2

    And with PostGIS:

    select company, city, location
    from walmarts
    where st_dwithin(
        location,
        'SRID=4326;POINT(40.94 -74.05)'::geography,
        5000
    );