test: print the query plan