Utility functions to query and manipulate data from the ICEWS database