CREATE TABLE t1 (n REAL);
-- this is postgresql specific, fill the table
INSERT INTO t1 (SELECT generate_series(1,1000)::REAL);
WITH tt AS (
  SELECT 1/(n*n) AS recip FROM t1
) SELECT SUM(recip) FROM tt;