Updated sparse_build_query to use "create array" instead of "build_sparse" as the latter is deprecated.