Examples of STRUQL queries:

 

a) WHERE
     X->":NAME"->"Thorax",
     X->"part"+."contains"->Y,
     Y->":NAME"->Contains
     CREATE
     TheThorax(Contains)

The above query will return what is contained by the parts of the thorax.

 

b) WHERE
     X->":NAME"->"Heart",
     X->"part"+->Y,
     Y->":NAME"->Parts
     CREATE
     TheHeart(Parts)

The above query will return the parts of the heart.

 

c) WHERE
     X->":NAME"->"Thorax",
     X->"part"+->Y,
     Y->"contains"->Z,
     Z->":NAME"->"Lung",
     Y->":NAME"->Partcontains
     CREATE
     TheHeart(Partcontains)

The above query will return the parts of the thorax that contain the lung