What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'
return things ;return statuses of #1 ;return #1 where #2 is  'Close ;return status  records of #1 ;return dates of #4 ;return #1 where #5 is  before '2017-06-19 02:59:21 ;return #3 or  #6 ;return distinct id of #7 ;return type of #7 ;return #8 ,  #9
['select', 'project', 'comparative', 'project', 'project', 'comparative', 'union', 'project', 'project', 'union']