toronto , grey and bruce railway
baldwin locomotive works was the builder for eight railways .
{'scope': 'all', 'criterion': 'equal', 'value': 'baldwin locomotive works', 'result': '8', 'col': '3', 'subset': None}
{'func': 'eq', 'args': [{'func': 'count', 'args': [{'func': 'filter_str_eq', 'args': ['all_rows', 'builder', 'baldwin locomotive works'], 'result': None, 'ind': 0, 'tointer': 'select the rows whose builder record fuzzily matches to baldwin locomotive works .', 'tostr': 'filter_eq { all_rows ; builder ; baldwin locomotive works }'}], 'result': '8', 'ind': 1, 'tostr': 'count { filter_eq { all_rows ; builder ; baldwin locomotive works } }', 'tointer': 'select the rows whose builder record fuzzily matches to baldwin locomotive works . the number of such rows is 8 .'}, '8'], 'result': True, 'ind': 2, 'tostr': 'eq { count { filter_eq { all_rows ; builder ; baldwin locomotive works } } ; 8 } = true', 'tointer': 'select the rows whose builder record fuzzily matches to baldwin locomotive works . the number of such rows is 8 .'}
eq { count { filter_eq { all_rows ; builder ; baldwin locomotive works } } ; 8 } = true
select the rows whose builder record fuzzily matches to baldwin locomotive works . the number of such rows is 8 .
{'eq_2': 'eq', 'result_3': 'true', 'count_1': 'count', 'filter_str_eq_0': 'filter_str_eq', 'all_rows_4': 'all_rows', 'builder_5': 'builder', 'baldwin locomotive works_6': 'baldwin locomotive works', '8_7': '8'}
['number', 'name', 'builder', 'type', 'date', 'works number']
[['1', 'gordon', 'avonside engine company', '4 - 6 - 0', 'aug 1870', '799'], ['2', 'ar mcmaster', 'avonside engine company', '4 - 4 - 0', 'aug 1870', '800'], ['3', 'kincardine', 'avonside engine company', '4 - 4 - 0', 'september 1870', '809'], ['4', 'r walker & sons', 'avonside engine company', '4 - 4 - 0', 'may 1871', '838'], ['5', 'albion', 'avonside engine company', '4 - 4 - 0', 'july 1871', '839'], ['6', 'rice lewis & son', 'avonside engine company', '4 - 4 - 0', 'mid 1871', '840'], ['7', 'caledon', 'avonside engine company', '0 - 6 - 6 - 0 fairlie type', 'late 1872', '862 & 863'], ['8', 'mono', 'avonside engine company', '4 - 6 - 0', 'late 1871', '866'], ['9', 'toronto', 'baldwin locomotive works', '2 - 6 - 0', 'september 1871', '2534'], ['10', 'amaranth', 'baldwin locomotive works', '2 - 6 - 0', 'september 1871', '2538'], ['11', 'holland', 'avonside engine company', '4 - 6 - 0', 'early 1873', 'one of 935 - 939'], ['12', 'sydenham', 'avonside engine company', '4 - 6 - 0', 'early 1873', 'one of 935 - 939'], ['13', 'artemisia', 'avonside engine company', '4 - 6 - 0', 'early 1873', 'one of 935 - 939'], ['14', 'owen sound', 'avonside engine company', '4 - 6 - 0', 'early 1873', 'one of 931932933 , or 934'], ['15', 'mount forest', 'baldwin locomotive works', '2 - 8 - 0', 'february 1874', '3524'], ['16', 'orangeville', 'baldwin locomotive works', '2 - 8 - 0', 'february 1874', '3525'], ['17', 'sarawak', 'baldwin locomotive works', '2 - 8 - 0', 'april 1874', '3551'], ['18', 'melancthon', 'baldwin locomotive works', '2 - 8 - 0', 'april 1874', '3552'], ['19', 'howick', 'baldwin locomotive works', '2 - 8 - 0', 'september 1874', '3636'], ['20', 'culross', 'baldwin locomotive works', '2 - 8 - 0', 'september 1874', '3640']]