Appendix D: Amazon Athena Queries