# open database pgraph1; # query p1 loadgraph; query p1 match2 [' ( (theater Venue ( (Name "Theatre Royal") )) (newcastle City ( (Name "Newcastle") )) (bard Author ( (Lastname "Shakespeare") )) (theater STREET s) (s CITY newcastle) (perf VENUE theater) (perf PERFORMANCE_OF prod) (prod PRODUCTION_OF play) (bard w WROTE_PLAY play) )', '( ((w Year) > 1608 ) )', '( ((theater Name) Name) ((s Name) StreetName) ((prod Name) ProdName) ((w Year) Year) )' ] consume;