Task: Text to Code
Input (English): select the rows whose joined record is equal to 2007 . the number of such rows is 2 .
Output (English): eq { count { filter_eq { all_rows ; joined ; 2007 } } ; 2 }