function name as qualified ident
hierarchical query fk shortcut join bugfix
tests added