querying blocks with multiple codes in one call