a sample that demonstrates how to query the invocation framework