This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Generate your own different queries to test above predicate Q2. Add some more clauses to store telephone number for each room. Use a predicate phone with two arguments, 1 st argument should be room number , second should be extension Phone(room number, extension) Lecturer: Aasma Memon [ CPCS-331 ] Write this rule here Ring(P,N):-room(P,R),phone(R.N). Visiting(alan,Helen) Find(X.Z):- visiting(X,Y),room(Y,Z). Q3....
View Full Document
- Spring '11