What are the names and types of the companies that have ever operated a flight?
return companies ;return flights that  #1 have operated ;return number of  #2 for each #1 ;return #1 where #3 is  at least one ;return names of #4 ;return types of #4 ;return #5 ,  #6
['select', 'project', 'group', 'comparative', 'project', 'project', 'union']