How to measure the distance between two points in MapInfo Pro using a MapBasic statement

Products affected: MapInfo Pro™
MapInfo Pro users can either run a query or show the MapBasic window and run the following Distance statement
where x1, y1, x2, y2 represent the coordinates of the 2 points being queried for distance, and "unit_name" represents the units of measurement desired such as "mi", "km", etc.

Distance(x1, y1, x2, y2, unit_name)

More information can be found in the MapBasic Help Guide under the heading Distance() Function
UPDATED:  September 20, 2017