select name, A as author, date.day, date.month, date.year, K as keywordfrom doc as B, B.author-list as A, B.keyword-list as K
select title, author, (day, month, year) as date, set(keyword) as keyword-listfrom flat-doc
groupby title, author, date
This wil generate the following table.
select title, set(author) as author-list, (day, month, year) as date, set(keyword) as keyword-listfrom flat-doc
groupby title, date