What are the codes corresponding to document types for which there are less than 3 documents?
return document types ;return documents of  #1 ;return number of  #2 for each  #1 ;return #1 where #3 is  lower than 3 ;return codes corresponding to #4
['select', 'project', 'group', 'comparative', 'project']