directing the metaquery script