<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def target_query(plugin, port, location):
 """ prepared ReQL for target """

    return ((r.row[PLUGIN_NAME_KEY] == plugin) &
            (r.row[PORT_FIELD] == port) &
            (r.row[LOCATION_FIELD] == location))