MATCH (runcontrol:RunController)<--(contract:Contract)<--(term:Term)<--(label:Label)
WITH runcontrol, contract, term, label
MATCH (term)-->(c:Country)
WITH runcontrol, contract, term, label, COLLECT(c.id) AS countries 
MATCH (term)-->(s:Store)
WITH runcontrol, contract, term, label, countries, COLLECT(s.id) AS stores 
MATCH (term)-->(t:TXNType)
WITH runcontrol, contract, term, label, countries, stores, COLLECT(t.id) AS txntypes ORDER BY term.ordinalPosition
RETURN
	runcontrol.name,
	contract.name,
	toString(contract.start_date),
	toString(contract.end_date),
	term.ordinalPosition,
	term.name,
	toString(term.term_start),
	toString(term.term_end),
	term.share,
	countries,
	stores,
	txntypes,
	label.id
