second version of a.sql