Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:

Convert text to sql: Find the name of the person who has friends with age above 40 but not under age 30? | person : name , age , city , gender , job | personfriend : name , friend , year | personfriend.friend = person.name | personfriend.name = person.name | 

### Response:

select _ from _ where _ in ( select _ from _ where _ ) except select _ from _ where _ in ( select _ from _ where _ ) | select person.name from person join personfriend on person.name = personfriend.name where personfriend.friend in ( select name from person where age > 40 ) except select person.name from person join personfriend on person.name = personfriend.name where personfriend.friend in ( select name from person where age < 30 )