inverted index table sql