    [ 1 / 3 3 ]   F A I L     3 8 . 6 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 
 
 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   p . s t a t u s   =   ' s u c c e s s '   A N D   o . s t a t u s   =   ' c o m p l e t e d ' 
 
                 r o w s = [ ( 1 4 5 8 5 . 5 , ) ]   g o l d = [ ( 2 6 0 3 5 . 7 1 , ) ] 
 
     [ 2 / 3 3 ]   o k           4 . 0 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 ]   o k           5 . 0 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 ? 
 
     [ 4 / 3 3 ]   F A I L       8 . 1 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           6 . 5 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 . 2 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 . 5 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 
 
     [ 9 / 3 3 ]   F A I L       9 . 1 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 
 
 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   p . s t a t u s   =   ' s u c c e s s '   A N D   o . 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 = [ ( ' b a n k ' ,   5 5 8 2 . 1 6 ) ,   ( ' c a r d ' ,   4 6 9 0 . 5 2 ) ,   ( ' g i f t ' ,   4 3 1 2 . 8 2 ) ]   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           6 . 6 s   C u s t o m e r s   b y   r e g i o n 
 
     [ 1 2 / 3 3 ]   o k           7 . 3 s   R e v e n u e   f r o m   c a r d   p a y m e n t s 
 
     [ 1 3 / 3 3 ]   o k           6 . 2 s   R e v e n u e   f r o m   b a n k   p a y m e n t s 
 
     [ 1 4 / 3 3 ]   o k           6 . 1 s   R e v e n u e   f r o m   g i f t   p a y m e n t s 
 
     [ 1 5 / 3 3 ]   o k           4 . 9 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           4 . 8 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 . 3 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 . 0 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           4 . 9 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 ]   o k           5 . 5 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 ? 
 
     [ 2 1 / 3 3 ]   o k           6 . 3 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 ]   F A I L       4 . 7 s   ( E U   a n a l y s t )   H o w   m a n y   o r d e r 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   t o t a l _ o r d e r s 
 
 F R O M   o r d e r s 
 
 W H E R E   r e g i o n   =   ' E U '   - >   B i n d e r   E r r o r :   R e f e r e n c e d   c o l u m n   " r e g i o n "   n o t   f o u n d   i n   F R O M   c l a u s e ! 
 
 C a n d i d a t e   b i n d i n g s :   " o r d e r _ d a t e " 
 
 
 
 L I N E   3 :   W H E R E   r e g i o n   =   ' E U ' 
 
                             ^ ^ ^ ^ ^ ^ 
 
     [ 2 3 / 3 3 ]   F A I L       8 . 8 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 
 
 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 . c u s t o m e r _ i d   I N   ( 
 
         S E L E C T   i d   F R O M   c u s t o m e r s   W H E R E   r e g i o n   =   ' E U ' 
 
 ) 
 
 A N D   p . s t a t u s   =   ' s u c c e s s ' 
 
     [ 2 4 / 3 3 ]   F A I L       7 . 3 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 ( 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   p . s t a t u s   =   ' s u c c e s s '   A N D   o . s t a t u s   =   ' c o m p l e t e d ' 
 
     [ 2 5 / 3 3 ]   F A I L       5 . 7 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 ( D I S T I N C T   c . i d )   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   c 
 
 W H E R E   c . e m a i l   I S   N U L L   O R   c . n a m e   =   ' ' 
 
     [ 2 6 / 3 3 ]   F A I L       4 . 3 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       6 . 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 O U N T ( C A S E   W H E N   o . s t a t u s   =   ' r e t u r n e d '   T H E N   1   E N D ) : : f l o a t   /   
 
         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           7 . 9 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 2 . 9 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   =   ' c o m p l e t 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 0   - -   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   9   - -   N e u t r a l / Z e r o   p a y m e n t   b u t   c o m p l e t e d 
 
 
 
     [ 3 0 / 3 3 ]   F A I L       6 . 4 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 
 
 F R O M   c u s t o m e r s 
 
     [ 3 1 / 3 3 ]   F A I L       7 . 3 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 '   A N D   p . s t a t u s   =   ' s u c c e s s ' 
 
                 r o w s = [ ( 1 4 5 8 5 . 5 , ) ]   g o l d = [ ( 2 5 4 1 5 . 9 6 , ) ] 
 
     [ 3 2 / 3 3 ]   F A I L       6 . 7 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 . 3 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 '   A N D   p . s t a t u s   =   ' s u c c e s s ' 
 
                 r o w s = [ ( 2 8 9 3 . 1 8 , ) ]   g o l d = [ ( 1 3 5 2 6 . 4 6 , ) ] 
 
 
 
 a r m = b a s e l i n e - h i n t s     q u e s t i o n s = 3 3     t i m e = 2 4 5 s   ( 7 . 4 s / q u e s t i o n ) 
 
 a n s w e r   a c c u r a c y :   1 7 / 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 :   5     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 :   4 
 
     a b s t a i n         1 / 4 
 
     f i l t e r e d       8 / 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           5 / 8 
 
 