intent: Python: filter list of list with another list
rewritten_intent: create a list `result` containing elements form list `list_a` if first element of list `list_a` is in list `list_b`
snippet: result = [x for x in list_a if x[0] in list_b]