Actually adding INPUT_QUERY to query rules.