query stubbs