Figure 7: Execution time for query function.