Trying to figure out how to get selection to the query.