Query parsing

shape