(what movies directed by david lean star omar sharif) ((lawrence of arabia)) (what movies star both olivia de havilland and butterfly mcqueen) ((gone with the wind))This requires the pattern/action pairs made by:
(make-pattern/action ; new for exercise 7.35 '(what (movie movies) directed by ... star ...) director-and-star-action) (make-pattern/action ; new for exercise 7.35 '(what (movie movies) star both ... and ...) two-stars-action)You will need to modify matches? and substitutions-in-to-match to recognize multiple "..." wild-cards, and you will need to write the action procedures director-and-star-action and two-stars-action.
You may ignore the situation mentioned in the text where the existence of multiple "..." wild-cards causes there to be multiple ways of matching a query. This means you do not have to change substitutions-in-to-match to return a list of all possible sets of substitutions.