Task: Text to Code
Input (English): select the rows whose party affiliation record fuzzily matches to dravida munnetra kazhagam . among these rows , select the rows whose name of mp record fuzzily matches to t r baalu . there is only one such row in the table . the duration record of this unqiue row is 2009 - incumbent .
Output (English): and { only { filter_eq { filter_eq { all_rows ; party affiliation ; dravida munnetra kazhagam } ; name of mp ; t r baalu } } ; eq { hop { filter_eq { filter_eq { all_rows ; party affiliation ; dravida munnetra kazhagam } ; name of mp ; t r baalu } ; duration } ; 2009 - incumbent } }