anchor.diff:               actedIn.roles AS role, 
                movie.title AS title, movie.tagline AS tagline, movie.released AS released" AS query
   CALL apoc.export.csv.query(query, null, {stream: true})
  -YIELD file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
  -RETURN file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
  -----
  -
  -.Results
  -[opts="header", cols="1,2,1,1,1,1,1,1,1,1,1,5"]
  -|===
  -| file         | source                        | format | nodes | relationships | properties | time | rows | batchSize | batches | done | data 
  -| NULL | "statement: cols(6)" | "csv"  | 0     | 0             | 12         | 2    | 2    | 20000     | 1       | TRUE | "\"name\",\"born\",\"role\",\"title\",\"tagline\",\"released\"
  +YIELD file, nodes, relationships, properties, data
  +RETURN file, nodes, relationships, properties, data
  +----
  +
  +.Results
  +[opts="header"]
  +|===
  +| file       | nodes | relationships | properties | data 
  +| NULL  | 0     | 0             | 12        | "\"name\",\"born\",\"role\",\"title\",\"tagline\",\"released\"
   \"Lilly Wachowski\",\"1967\",\"\",\"The Matrix\",\"Welcome to the Real World\",\"1999\"
   \"Lana Wachowski\",\"1965\",\"\",\"The Matrix\",\"Welcome to the Real World\",\"1999\"
   "
   |===
  -
   // end::export.csv[]
positive.code: MATCH (person:Person)-[actedIn:ACTED_IN]->(movie:Movie)
  WITH collect(DISTINCT person) AS people, collect(DISTINCT movie) AS movies, collect(actedIn) AS actedInRels
  CALL apoc.export.csv.data(people + movies, actedInRels, null, {stream: true})
  YIELD file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
  RETURN file, source, format, nodes, relationships, properties, time, rows, batchSize, batches, done, data
  ----
  
  .Results
  [opts="header", cols="1,2,1,1,1,1,1,1,1,1,1,5"]
  |===
  | file         | source                        | format | nodes | relationships | properties | time | rows | batchSize | batches | done | data 
  | NULL | "data: nodes(5), rels(4)" | "csv"  | 5     | 4             | 15         | 2    | 9    | 20000     | 1       | TRUE | "\"_id\",\"_labels\",\"born\",\"name\",\"released\",\"tagline\",\"title\",\"_start\",\"_end\",\"_type\",\"roles\"
  \"190\",\":Person\",\"1967\",\"Carrie-Anne Moss\",\"\",\"\",\"\",,,,
  \"189\",\":Person\",\"1964\",\"Keanu Reeves\",\"\",\"\",\"\",,,,
  \"191\",\":Person\",\"1961\",\"Laurence Fishburne\",\"\",\"\",\"\",,,,
  
negative.code: ----
  
  .Results
  [opts="header"]
  |===
  | file         | nodes | relationships | properties | data 
  | NULL | 8     | 7             | 21         | "\"_id\",\"_labels\",\"born\",\"name\",\"released\",\"tagline\",\"title\",\"_start\",\"_end\",\"_type\",\"roles\"
  \"188\",\":Movie\",\"\",\"\",\"1999\",\"Welcome to the Real World\",\"The Matrix\",,,,
  \"189\",\":Person\",\"1964\",\"Keanu Reeves\",\"\",\"\",\"\",,,,
  \"190\",\":Person\",\"1967\",\"Carrie-Anne Moss\",\"\",\"\",\"\",,,,
  