Coded some querySeat functions, need to be tested