The first problem was to intregrate the source data. In Odysseus this is done with a source definition.

Next, there are the two solutions for Query 1 and for Query 2.