qnli question: What mode of transportation took over from the canals? sentence: Designed by electric power pioneer Frank J. Sprague, the trolley system opened its first line in 1888, and electric streetcar lines rapidly spread to other cities across the country.