book query result scripts