[fix] missing externs for QueryEvent metadata