Add score and match methods for queries