create table pdoc(name MyString,
author-list setof(ref(people)),
date MyDate,
keyword-list setof(MyString))
select namefrom pdoc
where ``database'' in keyword-list
select B.name, Y.namefrom pdoc as B, B.author-list as Y
select name, count(author-list) from pdoc