< ^  >

Example Animal Query #1

Query:

  Show the migration path of a specific animal named Elephant.

Strategy:

  • find the scenes showing this particular animal

  • extract the trajectory from each scene and display

Expressed as:

  [ S | S <- AnimalDB, S.has(Elephant) ] . trajectory(Elephant)


< ^  >