Fixed syntax error in alternate SQL for list_paths