adding sql example
updates to docs; work on datetime_to_duration