Hello Glen,
Thank you for reaching out. Please use the below link to refer the images.
https://uipath-survey.secure.force.com/CaseView/articles/Knowledge/How-to-pass-dynamic-data-to-SQL-query-from-UiPath?lang=en_US
Thanks, UiPath Quality Team