Nested versions of AKI query (no 'WITH' clauses)

Two nested versions of this query (one for PostgreSQL & other for SAP
HANA). These do not use the 'WITH' clauses and they run correctly on
both the databases.
Fix AKI definition

A small fixe to Mornin's AKI definition query