Support any-C,all-C queries