Adds query prefix to results