Plot Theories and Queries