Multiple Instance Learning with Query Bags