SphinxAPI and SphinxQL exercise solutions