Add doc support for complex SQL

Updating documentation to reflect changes for issue GH-81