Add typed-query definitions using table type derivations.