Test sc query