Adds query with custom return type example