extract a deuce query method