partially finished NewOrder query