Modelling Temporal Structures in Video Event Retrieval using an AND-OR Graph