CREATE TABLE mountainJcoord
AS (SELECT name, mountains, elevation, type,
       jgeocoord(m.coordinates.latitude,
                 m.coordinates.longitude) as coords
    FROM mountain m);

SELECT name, m.coords.distance(jgeocoord(51.5,0))
FROM mountainJcoord m
ORDER BY 2 DESC;
