Is there a way to convert the following Postgres query:
SELECT a FROM test ORDER BY a <-> cube(array[0.5,0.5,0.5]) LIMIT 50;
To a worki