    [ 1 / 3 3 ]   F A I L       5 . 9 s   W h a t   i s   o u r   r e v e n u e ? 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( p . a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s   p 
 
 W H E R E   p . s t a t u s   =   ' c o m p l e t e d ' 
 
                 r o w s = [ ( N o n e , ) ]   g o l d = [ ( 2 6 0 3 5 . 7 1 , ) ] 
 
     [ 2 / 3 3 ]   o k           4 . 2 s   H o w   m a n y   o r d e r s   h a v e   w e   h a d ? 
 
     [ 3 / 3 3 ]   F A I L       5 . 3 s   W h a t   i s   t h e   a v e r a g e   s u c c e s s f u l   p a y m e n t ? 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   A V G ( a m o u n t )   A S   a v g _ s u c c e s s f u l _ p a y m e n t 
 
 F R O M   p a y m e n t s 
 
 W H E R E   s t a t u s   =   ' s u c c e s s f u l ' 
 
                 r o w s = [ ( N o n e , ) ]   g o l d = [ ( 9 9 . 7 5 3 7 , ) ] 
 
     [ 4 / 3 3 ]   F A I L       8 . 7 s   H o w   m a n y   c u s t o m e r s   o r d e r e d   i n   t h e   l a s t   3 0   d a y s ? 
 
                 g o t = e r r o r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   C O U N T ( D I S T I N C T   c . i d )   A S   c u s t o m e r _ c o u n t 
 
 F R O M   c u s t o m e r s   c 
 
 J O I N   o r d e r s   o   O N   c . i d   =   o . c u s t o m e r _ i d 
 
 W H E R E   o . o r d e r _ d a t e   > =   D A T E _ S U B ( C U R R E N T _ D A T E ,   I N T E R V A L   ' 3 0 '   D A Y )   - >   B i n d e r   E r r o r :   N o   f u n c t i o n   m a t c h e s   t h e   g i v e n   n a m e   a n d   a r g u m e n t   t y p e s   ' d a t 
 
     [ 5 / 3 3 ]   o k           7 . 6 s   H o w   m a n y   c u s t o m e r s   h a v e   a   c o m p l e t e d   o r d e r ? 
 
     [ 6 / 3 3 ]   o k           8 . 7 s   H o w   m a n y   c u s t o m e r s   h a v e   a   p o s i t i v e   p a y m e n t ? 
 
     [ 7 / 3 3 ]   o k           4 . 4 s   H o w   m a n y   c u s t o m e r s   d o   w e   h a v e ? 
 
     [ 8 / 3 3 ]   F A I L       6 . 9 s   H o w   m a n y   n e w   c u s t o m e r s   i n   t h e   l a s t   3 0   d a y s ? 
 
                 g o t = e r r o r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   C O U N T ( * )   A S   n e w _ c u s t o m e r s _ c o u n t 
 
 F R O M   c u s t o m e r s 
 
 W H E R E   c r e a t e d _ a t   > =   D A T E _ S U B ( C U R R E N T _ D A T E ,   I N T E R V A L   3 0   D A Y )   - >   B i n d e r   E r r o r :   N o   f u n c t i o n   m a t c h e s   t h e   g i v e n   n a m e   a n d   a r g u m e n t   t y p e s   ' d a t e _ s u b ( D A T E ,   I N T E R V A L ) ' .   Y o u   m i g h t   n e e d   t o   a d d   e x p l i 
 
     [ 9 / 3 3 ]   F A I L       8 . 0 s   R e v e n u e   b y   p a y m e n t   m e t h o d 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   
 
         p . m e t h o d   A S   p a y m e n t _ m e t h o d , 
 
         S U M ( p . a m o u n t )   A S   t o t a l _ r e v e n u e 
 
 F R O M   p a y m e n t s   p 
 
 W H E R E   p . s t a t u s   =   ' c o m p l e t e d ' 
 
 G R O U P   B Y   p . m e t h o d 
 
                 r o w s = [ ]   g o l d = [ ( ' b a n k ' ,   1 0 2 7 8 . 4 6 ) ,   ( ' c a r d ' ,   7 9 8 3 . 6 1 ) ,   ( ' g i f t ' ,   7 7 7 3 . 6 4 ) ] 
 
     [ 1 0 / 3 3 ]   o k           5 . 6 s   O r d e r   c o u n t   b y   s t a t u s 
 
     [ 1 1 / 3 3 ]   o k           7 . 3 s   C u s t o m e r s   b y   r e g i o n 
 
     [ 1 2 / 3 3 ]   F A I L       6 . 5 s   R e v e n u e   f r o m   c a r d   p a y m e n t s 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( a m o u n t )   A S   r e v e n u e _ f r o m _ c a r d _ p a y m e n t s 
 
 F R O M   p a y m e n t s 
 
 W H E R E   m e t h o d   =   ' c a r d '   A N D   s t a t u s   =   ' c o m p l e t e d ' 
 
                 r o w s = [ ( N o n e , ) ]   g o l d = [ ( 7 9 8 3 . 6 1 , ) ] 
 
     [ 1 3 / 3 3 ]   F A I L       5 . 6 s   R e v e n u e   f r o m   b a n k   p a y m e n t s 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s 
 
 W H E R E   m e t h o d   =   ' b a n k ' 
 
                 r o w s = [ ( 1 1 5 9 7 . 3 4 , ) ]   g o l d = [ ( 1 0 2 7 8 . 4 6 , ) ] 
 
     [ 1 4 / 3 3 ]   F A I L       5 . 9 s   R e v e n u e   f r o m   g i f t   p a y m e n t s 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( a m o u n t )   A S   r e v e n u e _ f r o m _ g i f t _ p a y m e n t s 
 
 F R O M   p a y m e n t s 
 
 W H E R E   m e t h o d   =   ' g i f t ' 
 
                 r o w s = [ ( 9 3 0 7 . 8 5 , ) ]   g o l d = [ ( 7 7 7 3 . 6 4 , ) ] 
 
     [ 1 5 / 3 3 ]   o k           5 . 1 s   H o w   m a n y   c o m p l e t e d   o r d e r s ? 
 
     [ 1 6 / 3 3 ]   o k           5 . 1 s   H o w   m a n y   p l a c e d   o r d e r s ? 
 
     [ 1 7 / 3 3 ]   o k           5 . 7 s   H o w   m a n y   r e t u r n e d   o r d e r s ? 
 
     [ 1 8 / 3 3 ]   o k           5 . 3 s   H o w   m a n y   c u s t o m e r s   i n   A P A C ? 
 
     [ 1 9 / 3 3 ]   o k           5 . 0 s   H o w   m a n y   c u s t o m e r s   i n   U S ? 
 
     [ 2 0 / 3 3 ]   F A I L       4 . 4 s   ( E U   a n a l y s t )   H o w   m a n y   c u s t o m e r s   d o   w e   h a v e ? 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   C O U N T ( * )   A S   t o t a l _ c u s t o m e r s   F R O M   c u s t o m e r s 
 
                 r o w s = [ ( 6 0 , ) ]   g o l d = [ ( 2 4 , ) ] 
 
     [ 2 1 / 3 3 ]   o k           7 . 5 s   ( E U   a n a l y s t )   C u s t o m e r s   b y   r e g i o n 
 
     [ 2 2 / 3 3 ]   o k           4 . 2 s   ( E U   a n a l y s t )   H o w   m a n y   o r d e r s ? 
 
     [ 2 3 / 3 3 ]   F A I L       5 . 9 s   ( E U   a n a l y s t )   W h a t   i s   o u r   r e v e n u e ? 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   S U M ( p . a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s   p 
 
 W H E R E   p . s t a t u s   =   ' c o m p l e t e d ' 
 
     [ 2 4 / 3 3 ]   F A I L       5 . 5 s   ( g u e s t )   W h a t   i s   o u r   r e v e n u e ? 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   S U M ( a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s 
 
 W H E R E   s t a t u s   =   ' c o m p l e t e d ' 
 
     [ 2 5 / 3 3 ]   F A I L       4 . 2 s   ( g u e s t )   H o w   m a n y   c u s t o m e r s ? 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   C O U N T ( * )   A S   g u e s t _ c o u n t   F R O M   c u s t o m e r s 
 
     [ 2 6 / 3 3 ]   F A I L       4 . 5 s   C u s t o m e r s   b y   e m a i l   a d d r e s s 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   D I S T I N C T   e m a i l   
 
 F R O M   c u s t o m e r s 
 
     [ 2 7 / 3 3 ]   F A I L       7 . 8 s   W h a t   i s   o u r   c h u r n   r a t e ? 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   
 
         C A S T ( S U M ( C A S E   W H E N   o . s t a t u s   =   ' c a n c e l l e d '   T H E N   1   E L S E   0   E N D )   A S   D O U B L E )   /   C O U N T ( * )   A S   c h u r n _ r a t e 
 
 F R O M   o r d e r s   o 
 
     [ 2 8 / 3 3 ]   o k         2 5 . 0 s   W h a t   i s   o u r   g r o s s   m a r g i n ? 
 
     [ 2 9 / 3 3 ]   F A I L     1 3 . 3 s   W h a t   i s   o u r   N P S ? 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   
 
         A V G ( 
 
                 C A S E   
 
                         W H E N   o . s t a t u s   =   ' d e l i v e r e d '   T H E N   
 
                                 C A S E   
 
                                         W H E N   p . a m o u n t   >   0   T H E N   1   - -   P o s i t i v e   e x p e r i e n c e   ( p a i d ) 
 
                                         E L S E   0                                   - -   N e g a t i v e / N e u t r a l   ( n o 
 
     [ 3 0 / 3 3 ]   F A I L       7 . 0 s   W h a t   i s   t h e   a v e r a g e   c u s t o m e r   a g e ? 
 
                 g o t = a n s w e r   e x p e c t e d = r e f u s e 
 
                 m o d e l :   S E L E C T   A V G ( E X T R A C T ( E P O C H   F R O M   ( C U R R E N T _ T I M E S T A M P   -   c r e a t e d _ a t ) )   /   3 1 5 3 6 0 0 0 )   A S   a v g _ c u s t o m e r _ a g e _ y e a r s 
 
 F R O M   c u s t o m e r s 
 
     [ 3 1 / 3 3 ]   F A I L       7 . 2 s   R e v e n u e   f r o m   c u s t o m e r s   w h o   h a v e   a   c o m p l e t e d   o r d e r 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( p . a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s   p 
 
 J O I N   o r d e r s   o   O N   p . o r d e r _ i d   =   o . i d 
 
 W H E R E   o . s t a t u s   =   ' c o m p l e t e d ' 
 
                 r o w s = [ ( 1 6 9 0 8 . 0 6 , ) ]   g o l d = [ ( 2 5 4 1 5 . 9 6 , ) ] 
 
     [ 3 2 / 3 3 ]   F A I L       7 . 6 s   R e v e n u e   f r o m   c u s t o m e r s   w h o   h a v e   a   r e t u r n e d   o r d e r 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( p . a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s   p 
 
 J O I N   o r d e r s   o   O N   p . o r d e r _ i d   =   o . i d 
 
 W H E R E   o . s t a t u s   =   ' r e t u r n e d ' 
 
                 r o w s = [ ( 3 7 0 8 . 2 9 , ) ]   g o l d = [ ( 1 2 3 8 4 . 4 6 , ) ] 
 
     [ 3 3 / 3 3 ]   F A I L       7 . 8 s   R e v e n u e   f r o m   c u s t o m e r s   w h o   h a v e   a   p l a c e d   o r d e r 
 
                 g o t = a n s w e r   e x p e c t e d = a n s w e r 
 
                 m o d e l :   S E L E C T   S U M ( p . a m o u n t )   A S   r e v e n u e 
 
 F R O M   p a y m e n t s   p 
 
 J O I N   o r d e r s   o   O N   p . o r d e r _ i d   =   o . i d 
 
 W H E R E   o . s t a t u s   =   ' p l a c e d ' 
 
                 r o w s = [ ( 3 5 8 9 . 9 2 , ) ]   g o l d = [ ( 1 3 5 2 6 . 4 6 , ) ] 
 
 
 
 a r m = b a s e l i n e     q u e s t i o n s = 3 3     t i m e = 2 2 9 s   ( 6 . 9 s / q u e s t i o n ) 
 
 a n s w e r   a c c u r a c y :   1 3 / 2 5 
 
 a b s t e n t i o n   p r e c i s i o n :   n / a   ( n o   r e f u s a l s ) 
 
 w r o n g   a n s w e r s :   1 0     f a l s e   r e f u s a l s :   0     ( m o d e l   a b s t a i n e d   0 ,   p o l i c y   d e n i e d   0 )     e r r o r s :   3 
 
     a b s t a i n         1 / 4 
 
     f i l t e r e d       5 / 8 
 
     g r o u p e d         2 / 3 
 
     m u l t i - h o p     0 / 3 
 
     r o l e               2 / 7 
 
     s i n g l e           4 / 8 
 
 