We are supposing that you would like to use the result of the query as a variable/context afterwards on the Talend job, if so you are able to push the result to a tJavaRow to populate the context variable.
You may also push the result to a tSetGlobalVar if you want to use a global variable instead of a context variable.
tJavaRow:
context.yourVariable = input_row.yourField (for example; the column name that you want to use);
tSetGlobalVar:
Just connect it to the DB component. It will create a global variable for you with a name based on the flow + the field name such as row1.yourField