It uses a form so that all dashboard inputs arrive at the SQL node at the same time.
If you are using separate UI elements, then you will need to either use a JOIN node (to make a single object with all the user values in) OR use flow/global context to store the users input.