def METHOD_NAME(query, neumes, global_sequences):
    """Query for a lyric sequence across a parsed MEI file."""
    query = query.replace(" ", "")
    g_lyrics = "".join(global_sequences["lyrics"])
    l_neume = global_sequences["lyric_neume_grouping"]
    q_starts = g_lyrics.find(query)
    matches = []
    while q_starts != -1:
        q_ends = q_starts + len(query) - 1
        neume_ids = list(range(l_neume[q_starts], l_neume[q_ends] + 1))
        matches.append([neumes[idx] for idx in neume_ids])
        q_starts = g_lyrics.find(query, q_ends)
    return matches