Time for action – constructing the query