query outside