Checking in a program that computes the expected query results from a given query specified in XML