table: [['line name', 'date closed', 'nimt junction', 'terminus', 'length'], ['auckland - newmarket line', 'open', 'quay park junction', 'newmarket junction', '2.5 km'], ['north auckland line', 'open', 'westfield junction', 'otiria junction', '280 km'], ['manukau branch', 'open', 'wiri junction', 'manukau', '2.5 km'], ['mission bush branch', 'open', 'paerata junction', 'mission bush', '17 km'], ['kimihia branch', 'open', 'huntly north', 'kimihia mine', '2.75 km'], ['rotowaro branch', 'open', 'huntly', 'rotowaro', '8.5 km'], ['waipa railway and coal co line', '19 - 5 - 1958', 'ngaruawahia', 'wilton collieries', '10.5 km'], ['east coast main trunk railway', 'open', 'frankton junction', 'kawerau', '180 km'], ['stratford - okahukura line', 'mothballed 2009', 'okahukura junction', 'stratford', '144 km'], ['raetihi branch', '1 - 1 - 1968', 'ohakune junction', 'raetihi', '13 km'], ['marton - new plymouth line', 'open', 'marton junction', 'breakwater (new plymouth)', '212 km'], ['taonui branch', '14 - 8 - 1895', 'taonui', 'colyton', '3.5 km'], ['palmerston north - gisborne line', 'open', 'roslyn junction', 'gisborne', '391 km'], ['foxton branch', '18 - 7 - 1959', 'longburn junction', 'foxton', '31 km'], ['wairarapa line', 'open', 'distant junction (wellington)', 'woodville', '170 km'], ['johnsonville branch', 'open', 'wellington junction', 'johnsonville', '10 km'], ['te aro branch', '23 - 4 - 1917', 'wellington (lambton)', 'te aro', '1.77 km']]
ref: 3 Branch have a Junction in or around Wellington , Wairarapa Line , Johnsonville Branch and Te Aro Branch
template: 3 [ENT] have a [ENT] in or around [ENT] , [ENT] , [ENT] and [ENT]