Task: Text to Code
Input (English): select the rows whose venue record fuzzily matches to beirut . among these rows , select the rows whose result record does not match to win . the number of such rows is 2 .
Output (English): eq { count { filter_not_eq { filter_eq { all_rows ; venue ; beirut } ; result ; win } } ; 2 }