Self-Test 3

Diagramming structured objects and their queries
 
You are advised to draw the solutions for all questions before you look at the answers.
 
  Draw trees to represent each of the following structured objects and their queries:
 
Structured object:
object(cube, red, size(5), coord(pt(1,1,1),pt(1,6,1), pt(6,6,1), pt(6,1,1))).
 
Query:
object(cube, Col, size(Length),
coord(pt(X,Y,Z), Sec_pt, P3, P4)).
 


Structured object:
word(the, determiner, number(Numb)).
 
Query:
word(the, Class, number(sing))