CGI interview question

Asked about etl process, complex sql