Dynamic SQL parameters in Data Connection Sync

I’m using a Data Connection Sync with the Custom SQL option in Foundry. Is there a way to let users enter values (like a date or location) in a form and have those inputs automatically plugged into the sync’s SQL query instead of hard-coding them?