Patch query to do a match