What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?
return jobs ;return salaries of #1 ;return the  highest of #2 for each #1 ;return #1 where #3 is at least 12000 ;return #1 where #3 is at most 18000 ;return #1 in  both #4 and  #5 ;return job titles of #6 ;return ranges of salaries of  #6 ;return #7 ,  #8
['select', 'project', 'group', 'comparative', 'comparative', 'intersection', 'project', 'project', 'union']