spatial querries tutorial