Updating EC2 example
Adding INLINE pragmas for toQuery